paulsmith / gogeos

Go library for spatial data operations and geometric algorithms (Go bindings for GEOS)
http://paulsmith.github.io/gogeos/
MIT License
280 stars 79 forks source link

Metric format #30

Open h-silva opened 4 years ago

h-silva commented 4 years ago

Which function return metric geometry.Area() ? https://github.com/paulsmith/gogeos/blob/21f81b2ea5af44d3f6029cc3e5bbbd26b2425236/geos/geom.go#L797

tomplex commented 4 years ago

If you're asking for the unit of the returned value, it's the unit of the geometry's coordinates. If your geometry is in WGS84 then it will be degrees^2, if you're using a meter based projection it will be in meters^2.