calvinmetcalf / shapefile-js

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

Can't parse shapefile zip #195

Open Nimazhabu opened 1 year ago

Nimazhabu commented 1 year ago

code:

    shp('http://192.168.1.8:8081/Productions/demo/demo.zip')
    .then((geojson: any) => {
      console.log(geojson);
      // Do something with the GeoJSON object
    })
    .catch((error: any) => {
      console.log(error);
    });

error: PROJCS["CGCS2000_3_Degree_GK_CM_123E",GEOGCS["GCS_China_Geodetic_Coordinate_System_2000",DATUM["D_China_2000",SPHEROID["CGCS2000",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Gauss_Kruger"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",123.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]