terraformer-js / terraformer

A geographic toolkit for dealing with geometry, geography, formats, and building geodatabases
MIT License
182 stars 28 forks source link

Add support for Z values #61

Closed juliancox closed 3 years ago

juliancox commented 3 years ago

At the moment Z values in a geojson point get stripped. it looks as though the issue us in the geojsonToArcGIS funciton in terraformer/packages/arcgis/src/geojson.js. Line 61 has:
result.y = geojson.coordinates[1]; There is no: if (geojson.coordinates[2]) result.z = geojson.coordinates[2] I'm not sure if there are other areas that also need updating. Thanks!

jgravois commented 3 years ago

a PR for this would be welcome

jgravois commented 3 years ago

released in v2.1.0 thanks to @barrynickel 🚀🎉