Open raj1258 opened 2 years ago
this is because JavaScript only has double precise floating points for numbers not true decimals so it can't represent all decimal fractions perfectly, you can read more here https://0.30000000000000004.com/
I exported the shapefile to geojson using mapshaper and shapefile js. I got the correct coordinates.
I think, it can be handled here also.
While reading a shape file many coordinates gets modified because of addition of some extra decimal digits. for ex:
'coStr" is the exact coordinates in the shapefile. but, "Geocoordinates" which i got from geometry after converting to geojson features, has been modified.