koopjs / koop-core

Core library for KoopJS (deprecated)
Other
16 stars 19 forks source link

Koop not recognizing the existence of the z value #153

Closed emilianoMBemt closed 1 year ago

emilianoMBemt commented 2 years ago

I'm trying to send geo data to arcgis utilizing my own custom Koop provider, however even though the resulting query recognizes the z value of a POINTZ and prints it as such in the geometry, the "hasZ" field of the overall query is still "false". I've looked around the docs but I have not found any way to manually change it to "true" either. Is there a way to fix this issue?

Pictures for more context: image image

rgwozdz commented 2 years ago

@emilianoMBemt - thank you for reaching out with this issue. Looks like this is a current limitation of FeatureServer; I'll open an issue there.

rgwozdz commented 2 years ago

https://github.com/koopjs/FeatureServer/pull/238

rgwozdz commented 1 year ago

Feature server has been updated now to support this. When you create the geojson in your provider, add a metadata.haz property to it.

const geojson = {
  metadata: {
    hasZ: true,
    // other metadata
  },
  // other geojson properties
}