[OpenLayers-Users] Buffers in kilometer

Robert Sanson Robert.Sanson at asurequality.com
Thu May 28 14:03:48 PDT 2015


Your map is in geographic coordinates (lat/long). Conversion of degrees to meters is complex as it varies depending on latitude.

Take a look at the function OpenLayers.Util.destinationVincenty

You might be able to write a function that takes your vector points and then generates the coordinates of the buffer around them

Another option would be to project your map features that you want buffered into a metric projection eg. Spherical Mercator, then buffer them in m, then reproject them back to 4326 and add them to your vector layer.

regards,

Robert

-----Original Message-----
From: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] On Behalf Of adityakumar529
Sent: Friday, 29 May 2015 8:47 a.m.
To: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] Buffers in kilometer

Its EPSG:4326



-----
GIS Developer

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Buffers-in-kilometer-tp5207934p5208068.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list