shapefile icon indicating copy to clipboard operation
shapefile copied to clipboard

add 4 function to read shp file with Z value

Open wemamawe opened this issue 6 years ago • 3 comments

dear sir: i very thanks that you write this to read shape file, it help me a lot. when i use this to read 3D(x,y,z) shape file, it just return two dimension x and y, so i read you raw code carefully, and then i write some code to read Z value based on yours. recently i find some person get in to the same trouble like me, so i want to upload my code, and share to them. I hope you can accept my code, thanks again. image image

your follower, wema

wemamawe avatar Nov 21 '18 01:11 wemamawe

Should typenames in shp/polylinez.js be "LineString" or "LineStringZ" ?

m-schuetz avatar Dec 05 '18 15:12 m-schuetz

i should explain this , there are many types in shape file like las format, so as the definition of ESRI, the type name should be LineStringZ, but for using easier, I set the type name as LineString. shapetype

wemamawe avatar Dec 06 '18 01:12 wemamawe

Just a quick comment on this PR.

The GeoJSON spec does not have seperate types for Point and PointZ (and the same for other geoemtry types). If this lib is attempting to align to the geojson spec then bits like this would need some tweaking.

Cheers

rowanwins avatar Feb 25 '19 02:02 rowanwins