What are the distance units in com.vividsolutions.jts.geom.Geometry class?

前端 未结 4 1682
温柔的废话
温柔的废话 2020-12-29 12:00

Our VB.NET project is using a Java library from Vivid Solutoins (com.vividsolutions.jts.geom.Geometry) to do Geometry calculations. The help is here: http://tsusiatsoftware

4条回答
  •  时光说笑
    2020-12-29 12:43

    I confirmed with one of the author's of the library, and by testing it myself using geospatial files with different projections, that the distance units depend on the source file's CRS. This is covered in their FAQ here: https://locationtech.github.io/jts/jts-faq.html#B5

    A quick way to find this is to look up the EPSG code at http://epsg.io/ and find the units. For example, EPSG 3347 has units of metres.

提交回复
热议问题