calvinmetcalf / shapefile-js

Convert a Shapefile to GeoJSON. Not many caveats.
http://calvinmetcalf.github.io/shapefile-js/
714 stars 228 forks source link

Opening shp produces wrong coordinates for "EPSG:2039" - Israel 1993 / Israeli TM Grid #193

Open felipecarrillo100 opened 1 year ago

felipecarrillo100 commented 1 year ago

I have a shp file in EPSG:2039. When I use shapefile-js library to open the shp file the geojson features are shifted, the features are not where they should be, they are shifted around 100 meters south-west from where they should be.

If I open the same dataset in shp in CRS84 the library shows the correct coordinates.

How to reproduce?
You can use your sample that opens a zip file from local file system and load the files I have attached.

I have attached the 2 sample files one in CRS84 and one in EPSG:2039. The CRS84 display in the correct location, the EPSG:2039 displays around 100 meters south west.

Thanks for fixing the issue. crs84.zip epsg2039.zip