Timeline for Buffer line between two coordinates with meters
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 27, 2020 at 12:26 | vote | accept | staszko032 | ||
Oct 27, 2020 at 12:26 | comment | added | staszko032 | Thanks again, unfortunately I decided to gave up for now. PostGIS is dedicated to PostgreSQL engine, but I am using Mongo's spatial queries, so I'll limit my assumptions for now. | |
Oct 26, 2020 at 11:29 | comment | added | Ian Turton | consider using PostGIS or port their Geography Buffer code to GeoTools | |
Oct 26, 2020 at 11:11 | comment | added | staszko032 | Then what do you think I should do? I need to calculate such buffers in meters within different cities in the world, I have lat long coordinates and then I need such polygons in MongoDB queries, so their format must be normalized degrees (-180/180, -90,90), eventually I need to display them on openstreetmap. I am out of ideas. | |
Oct 26, 2020 at 8:36 | comment | added | Ian Turton | which is why I used the phrase - rough and ready. 3857 may give a "result" but it is very worng. | |
Oct 25, 2020 at 17:15 | comment | added | staszko032 |
Then I tried EPSG:4326 -> EPSG:3857 transformation first, to at least get the result.
|
|
Oct 25, 2020 at 17:13 | comment | added | staszko032 |
This is exactly what I did initially and it works perfect for like European region. Thank you for that. The problem appears when I tried to buffer a line between Moscow and New York and it said org.geotools.referencing.operation.projection.ProjectionException: The transform result may be 4,780,472.998 meters away from the expected position. Are you sure that the input coordinates are inside this map projection area of validity? The point is located 45°57.4'W away from the central meridian and 70°31.0'N away from the latitude of origin. The projection is "Transverse_Mercator".
|
|
Oct 25, 2020 at 10:19 | history | answered | Ian Turton | CC BY-SA 4.0 |