Skip to content

GeoJsonSource: withAttrLayers defaults to false, silently dropping nested properties #140

@MisterGC

Description

@MisterGC

When using GeoJsonSource via the GeoJsonFolder datasource type, the withAttrLayers config option defaults to false (cli.cpp:236). This causes all object-typed GeoJSON properties to be silently dropped from the resulting mapget features.

For example, a GeoJSON feature with:

"properties": {
  "layer": {
    "RoadCharacteristicsLayer": {
      "FUNCTIONAL_ROAD_CLASS": { "attributeValue": { "functionalRoadClass": 5 } }
    }
  },
  "length": 25200
}

...only produces { "length": 25200 } in the mapget output. The entire layer object tree is lost.

This is confusing because there is no log warning about skipped properties, making it look like a bug rather than a configuration choice.

Suggested fix: Default withAttrLayers to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions