Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid corridor width #4

Open
azherebtsov opened this issue Nov 16, 2018 · 2 comments
Open

Invalid corridor width #4

azherebtsov opened this issue Nov 16, 2018 · 2 comments

Comments

@azherebtsov
Copy link

The approach to corridor width is too much straightforward, it does not address in any way changing the width of line when latitude grows closer to the pole point (as well as decreasing to south pole).

@mikhailshilkov
Copy link
Owner

That's a valid remark, feel free to shoot a PR

@azherebtsov
Copy link
Author

Oh... Topic is not that simple. I did it with Java using JTS library and it consumed plenty of time.

There are some ready made solutions around like: https://developers.arcgis.com/javascript/3/samples/exp_cors_buffer/ (description here) but even that proprietary service produces unacceptable results (at least for very long polylines like flight routes). Despite the poor implementation ArcGIS solution has very good API and good approach to use CORS-enabled server to render buffers - there must be a bunch of math to produce geodetically-valid results.

For those who would like to do it in JS I'd suggest to start from JTS JavaScript port or maybe ArcGIS service is working fine when used commercially (had no chance to try).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants