ProRail-DataLab / openspoor

The openspoor package is intended to allow easy transformation between different geographical and topological systems commonly used in Dutch Railway. Its goal is to be publicly available and function as an open source package.
MIT License
7 stars 4 forks source link

Layers in mapservices folders are ignored #69

Open JoostProRail opened 2 weeks ago

JoostProRail commented 2 weeks ago

Without modification the layers within a folder in the mapservices are not found; for example

https://mapservices.prorail.nl/arcgis/rest/services/BBMS/Spoortakken_BBMS_003/FeatureServer/1

Current workaround would be to do this, but a neater integration would be nice. If the contents of these folders deviate a lot from the other featureserver we may want to make the user actively enable this (i.e. include_subfolders=True when calling FeatureServerOverview)

from openspoor.mapservices import FeatureServerOverview fsomodified = FeatureServerOverview() fsomodified.base_url = "https://mapservices.prorail.nl/arcgis/rest/services/BBMS/" fsomodified.search_for('segment')

JoostProRail commented 1 week ago

Can be combined with issue #59 regarding querying maps.prorail .