Closed aopheim closed 10 months ago
In OCAD, some symbols (style for a map feature) can include a number of elements, which in turn have special styling. For example, elements are how cliff "tags" are added: the cliff itself is a line, and it has a perpendicular element set at a certain interval which becomes the tags. Walls and a lot of other features also use them. If you're using the OCAD data to make a visual map with styling similar to a normal orienteering map, the elements are often desired in the GeoJSON since they are a bit tricky to position correctly.
Having said that, there is an option, generateSymbolElements
, which you can set to false
(it defaults to true
), which will prevent these features from being created in the output.
Ok, thanks! Nice to have the generateSymbolElements
option available. I will probably not need it in my use case.
I notice that point objects (knolls in this case) get two elements in the features list. Exporting a new OCAD map with a single knoll gives the following geojson file:
Why is this represented as two features? It seems unnecessary to me, but I am not familiar that with the geojson format. Do we have to filter out all features having parentId property set in order to get the number of point features on the map?