Open ateucher opened 2 years ago
This is probably unnecessarily convoluted, and there is an outputFormat=application/json option that is probably easier to parse than the xml and has more info. There are some differences in the fields however (eg. https://openmaps.gov.bc.ca/geo/pub/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&outputFormat=application/json&typeNames=WHSE_ENVIRONMENTAL_MONITORING.EMS_MONITORING_LOCN_GROUPS_SVW) - notably the GEOEMETRY field is gml:Geometry, whereas the xml output type="gml:GeometryPropertyType". The json has a "local type" which the xml does not.
outputFormat=application/json
GEOEMETRY
gml:Geometry
type="gml:GeometryPropertyType"
This is probably unnecessarily convoluted, and there is an
outputFormat=application/json
option that is probably easier to parse than the xml and has more info. There are some differences in the fields however (eg. https://openmaps.gov.bc.ca/geo/pub/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&outputFormat=application/json&typeNames=WHSE_ENVIRONMENTAL_MONITORING.EMS_MONITORING_LOCN_GROUPS_SVW) - notably theGEOEMETRY
field isgml:Geometry
, whereas the xml outputtype="gml:GeometryPropertyType"
. The json has a "local type" which the xml does not.