You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has me a bit confused because of the emtpy "properties" dict element. I would have expected to see the fields and their types listed in there, like in the example from the docs.
Am I somehow misunderstanding how all this should work together, or is the response of the wfs maybe in a non-compatible format?
I am using owslib version 0.29.2
Update:
I stepped through the code and I think this may be something to do with the namespaces declared by the webservice I am using.
So schema_key first gets set to "xsd" and then clobbered with None in a subsequent pass, causing the code that would add the properties to get bypassed further down the line.
I am not the worlds biggest expert on xml, but the w3c validator at least seems to indicate that something is off with the schema here:
This is probably a case of "you are holding it wrong" or me misunderstanding how wfs works, but I thought I'd ask here just to be sure ..
I am trying to describe a FeatureType from a wfs service with the
get_schema()
method.One example is the FeatureType "ms:gga_lk" here: https://geoportal.freiburg.de/wfs/verma_gga/verma_gga_lageklassen?request=DescribeFeatureType&service=wfs&version=2.0.0&typeNames=ms:gga_lk
This returns the following description:
The code I use to retrieve the schema is this:
And this outputs the following:
{'properties': {}, 'required': ['msGeometry', 'gid', 'objectid_1', 'nutzung', 'gfz14_iii', 'd_innenst', 'stadtteil', 'geschosse', 'jahr', 'brwz_nr', 'brw', 'zustand', 'lk_mod', 'lk_text', 'brw16sg'], 'geometry': 'GeometryCollection', 'geometry_column': 'msGeometry'}
This has me a bit confused because of the emtpy "properties" dict element. I would have expected to see the fields and their types listed in there, like in the example from the docs.
Am I somehow misunderstanding how all this should work together, or is the response of the wfs maybe in a non-compatible format?
I am using owslib version 0.29.2
Update:
I stepped through the code and I think this may be something to do with the namespaces declared by the webservice I am using.
The reason why the
properties
element is empty is because adding the fields is skipped here due toschema_key
being None: https://github.com/geopython/OWSLib/blob/master/owslib/feature/schema.py#L130schema_key
is set here: https://github.com/geopython/OWSLib/blob/master/owslib/feature/schema.py#L100 while stepping thoughnsmap
, which for my input has this value:So
schema_key
first gets set to "xsd" and then clobbered with None in a subsequent pass, causing the code that would add the properties to get bypassed further down the line.I am not the worlds biggest expert on xml, but the w3c validator at least seems to indicate that something is off with the schema here:
The text was updated successfully, but these errors were encountered: