twpayne / go-geom

Package geom implements efficient geometry types for geospatial applications.
BSD 2-Clause "Simplified" License
852 stars 105 forks source link

do this suport wgs84? #162

Closed xiaogu-space closed 4 years ago

xiaogu-space commented 4 years ago

I want to get line distance and it is wgs84

twpayne commented 4 years ago

go-geom supports only planar geometry. If you have WGS84 lat/longs and you want distances between them then you need use a method like Vincenty or Haversine distance or project using a suitable map projection (e.g. the local UTM projection) and use this library.