FeatureServer icon indicating copy to clipboard operation
FeatureServer copied to clipboard

Set hasZ from GeoJSON metadata when available

Open rgwozdz opened this issue 3 years ago • 0 comments

The hasZ setting on the layer-info route is currently hardcoded to false, but should be true when data includes Z-coordinates. This PR allows GeoJSON metadata to override the default. If the GeoJSON looks like:

{
  metadata: {
    hasZ: true
  }
}

then the hasZ in the layer-info response will also be true. So a Koop-provider can set the geojson.metadata.hasZ value if it knows the data has Z coordinates, and FeatureServer will respond appropriately.

rgwozdz avatar Aug 09 '22 13:08 rgwozdz