GeoJSON-Net / GeoJSON.Text

.Net library for GeoJSON types & corresponding System.TExt.Json (de)serializers
MIT License
39 stars 10 forks source link

Current Coordinate type - Double - does not have enough precision #23

Open alexandis opened 8 months ago

alexandis commented 8 months ago

Hi. If you take a look at the example of GeoJSON file, you can see that the coordinate may have up to 16 decimals. When I deserialize the data from such file using FeatureCollection - I loose 2 decimals in coordinates... I think you should store coordinates as a Decimal type instead.

xfischer commented 8 months ago

Hi @alexandis. Why would you need so much precision ? Are those coordinates expressed in Lat/Lon ? If so, please read this : https://gis.stackexchange.com/a/8674. Changing to decimal is a big breaking change, and should be considered only if it is really helpful.