geometry-api-java icon indicating copy to clipboard operation
geometry-api-java copied to clipboard

Could I do the coordinate transformation by this library?

Open CallumWang opened this issue 7 years ago • 1 comments

For example,I have a series coordinates of a polyline. And the coordinates is based on WGS84. However,when I use the calculateLength2D method for polyline. It seems that it gives the plane result using Euclidean Metric. However,this result is not meaningful. So I reckon that it should be firstly projected to a plane coordinates (unit:m). So that I can calculate the length of this polyline? So how to do coordinate transformation in this library? Or I have to use other library such as GeoTools? Thanks a lot

CallumWang avatar Sep 04 '18 16:09 CallumWang

@wxigsnrr The library does not provide support of projections. If you need to calculate geodesic distance between two vertices on WGS84, you could use GeometryEngine.geodesicDistanceOnWGS84(Point ptFrom, Point ptTo). The points must be in the WGS84 coordianates.

stolstov avatar Sep 04 '18 16:09 stolstov