Processing Geography Markup Language (GML) / WFS

0
Hello, I have some trouble with processing GML in Mendix. I get the data with a POST call in a microflow, but cant use the data i retrieve in an XML file or JSON. It works to store it in a string, but i'm lost as to translate it into my domain model. Here's an example of what i get back: <ns1:FeatureCollection xmlns:ns1="http://www.opengis.net/gml" xmlns:ns2="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.w3.org/2001/SMIL20/" xmlns:ns4="http://www.w3.org/2001/SMIL20/Language"> <ns1:boundedBy> <ns1:Envelope srsName="urn:ogc:def:crs:EPSG::28992"> <ns1:lowerCorner>257466.0212000012 541810.7179999985</ns1:lowerCorner> <ns1:upperCorner>262425.0887000002 544801.8487000018</ns1:upperCorner> </ns1:Envelope> </ns1:boundedBy> <ns1:featureMember> <egeo_rvo_ref_met_label:Topografische_grenzen gml:id="Topografische_grenzen.1403123" xmlns:egeo_rvo_ref_met_label="https://webapplicaties.agro.nl/edicrop/wfs/rvoreferentie" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <egeo_rvo_ref_met_label:OBJECTID>1403123</egeo_rvo_ref_met_label:OBJECTID> <egeo_rvo_ref_met_label:SHAPE> <gml:MultiSurface> <gml:surfaceMember> <gml:Polygon> <gml:interior> <gml:LinearRing> <gml:posList>259544.693500001</gml:posList> </gml:LinearRing> </gml:interior> <gml:interior> <gml:LinearRing> <gml:posList>259864.310899999</gml:posList> </gml:LinearRing> </gml:interior> </gml:Polygon> </gml:surfaceMember> </gml:MultiSurface> </egeo_rvo_ref_met_label:SHAPE> <egeo_rvo_ref_met_label:FUNCTIONEEL_ID>60.0000001168542.018</egeo_rvo_ref_met_label:FUNCTIONEEL_ID> <egeo_rvo_ref_met_label:NEN3610ID>NL.IMGEO.L0001.9D2363EE-1C2F-4824-A0B3-42BD088CBB72</egeo_rvo_ref_met_label:NEN3610ID> <egeo_rvo_ref_met_label:BEGINGELDIGHEID>2015-01-01T00:00:00</egeo_rvo_ref_met_label:BEGINGELDIGHEID> <egeo_rvo_ref_met_label:FYSIEKVOORKOMEN>140</egeo_rvo_ref_met_label:FYSIEKVOORKOMEN> <egeo_rvo_ref_met_label:GLOBALID>{0D99D450-C31C-4837-94CE-3520BFD065AE}</egeo_rvo_ref_met_label:GLOBALID> <egeo_rvo_ref_met_label:IND_BBR>J</egeo_rvo_ref_met_label:IND_BBR> <egeo_rvo_ref_met_label:IND_MST>J</egeo_rvo_ref_met_label:IND_MST> <egeo_rvo_ref_met_label:IND_IMNA>N</egeo_rvo_ref_met_label:IND_IMNA> <egeo_rvo_ref_met_label:IND_ANLB>N</egeo_rvo_ref_met_label:IND_ANLB> <egeo_rvo_ref_met_label:IND_GEEN_REGELING>N</egeo_rvo_ref_met_label:IND_GEEN_REGELING> <egeo_rvo_ref_met_label:SHAPE.AREA>1614698.11743329</egeo_rvo_ref_met_label:SHAPE.AREA> <egeo_rvo_ref_met_label:SHAPE.LEN>23001.4368586752</egeo_rvo_ref_met_label:SHAPE.LEN> <egeo_rvo_ref_met_label:LASTREVIEWEDDATE>2017-05-03T10:38:29.382</egeo_rvo_ref_met_label:LASTREVIEWEDDATE> </egeo_rvo_ref_met_label:Topografische_grenzen> </ns1:featureMember> </ns1:FeatureCollection> Any help will be appreciated..
asked
1 answers
3

You could try the following:

  1. Download http://schemas.opengis.net/gml/3.1.1/base/gml.xsd and all included XSD's.
  2. In you Mendix app, add an XML schema, and open gml.xsd
  3. Now you can create an import mapping for your XML
answered