[OpenLayers-Users] Get the length of a line string
Janis Elmeris
janis.elmeris at intelligentsystems.lv
Tue May 10 04:45:27 EDT 2011
Hello!
Is getting all vertices (getVertices) of a LineString and using their
distanceTo method and summing all the distances together would be the
right way to calculate the length of a line string? If yes, why isn't it
a standard function of LineString (it seems to me that it should be, and
also Google maps API has such).
Thanks!
Janis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110510/d96a9aa7/attachment.html
More information about the Users
mailing list