Sam,

you can't mix and match GML 3.1.1 and GML 3.2.1 as they have different 
namespaces and the types for a feature and all the geometries are 
different. If your application schema is GML 3.1.1, it will only work 
with GML 3.1.1 requests (WFS 1.1.0). Likewise for GML 3.2.1 (WFS 2.0.0 
or WFS 1.1.0 with outputformat=gml32). Mixing GML versions will give you 
strange results as the encoder makes a best-effort attempt.

If you use GML 3.2.1 you might also need a secondary namespace for gml:
http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

Kind regards,
Ben.

On 24/02/17 06:06, sammeek wrote:
> Hi
>
> I have created an app schema for two different feature types, type 1
> contains a field of type 2 that is then populated via a mapping file.
> However when I do a WFS request with GML 3.1.1, I get:
>
> <aasg1:Facility gml:id="facility.1">
> <aasg1:FacilityName>Edinburgh Castle</aasg1:FacilityName>
> <aasg1:FacilityOperatingStatus>Open</aasg1:FacilityOperatingStatus>
> <aasg1:VerticalConstructionMaterial>Stone</aasg1:VerticalConstructionMaterial>
> <aasg1:TerrainConstructionMaterial>Stone</aasg1:TerrainConstructionMaterial>
> <aasg1:FacilityID>1</aasg1:FacilityID>
> <aasg1:AdministrativeDivision>1</aasg1:AdministrativeDivision>
> <aasg1:longitude>3.1987</aasg1:longitude>
> <aasg1:latitude>55.9486</aasg1:latitude>
> <aasg1:Area/>
> <aasg1:Shape>
> <gml:Point srsDimension="2"
> srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
> <gml:pos>3.1987 55.9486</gml:pos>
> </gml:Point>
> </aasg1:Shape>
> </aasg1:Facility>
>
> However, when I do GML3.2 I get:
>
> <aasg1:Facility id="facility.1">
> <aasg1:FacilityName>Edinburgh Castle</aasg1:FacilityName>
> <aasg1:FacilityOperatingStatus>Open</aasg1:FacilityOperatingStatus>
> <aasg1:VerticalConstructionMaterial>Stone</aasg1:VerticalConstructionMaterial>
> <aasg1:TerrainConstructionMaterial>Stone</aasg1:TerrainConstructionMaterial>
> <aasg1:FacilityID>1</aasg1:FacilityID>
> <aasg1:AdministrativeDivision>1</aasg1:AdministrativeDivision>
> <aasg1:longitude>3.1987</aasg1:longitude>
> <aasg1:latitude>55.9486</aasg1:latitude>
> <aasg1:Area>
> <null:AdministrativeAreas
> xmlns:null="http://stategeothermaldata.org/uri-gin/aasg/xmlschema/thermalconductivity/2.0";
> id="administrativeareas.1">
> <null:ID/>
> <null:NameOfArea>Edinburgh</null:NameOfArea>
> <null:lat>55.9533</null:lat>
> <null:long>3.1883</null:long>
> <null:Shape>POINT (3.1883 55.9533)</null:Shape>
> </null:AdministrativeAreas>
> </aasg1:Area>
> <aasg1:Shape>POINT (3.1987 55.9486)</aasg1:Shape>
> </aasg1:Facility>
>
> The feature of type 2 is imbedded in the Area element (albeit with a null
> namespace).
>
> I am then trying to use the QGIS GML Application toolbox to parse the output
> into related tables, however I believe that it only works with 3.1.1 (throws
> an error with 3.2).
>
> Additionally, if I change the type of the Area field in the XSD to xs:string
> then it produces a string representation of the entire feature in GML 3.1.1.
> I can then import this into QGIS using the aforementioned plugin. However it
> obviously doesn't parse out the object (because its a string and not of
> feature type 2).
>
> What am I doing wrong?
>
> Thanks in advance
>
> Sam
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Complex-GML-3-1-1-from-App-Schema-tp5309269.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Caradoc-Davies <[email protected]>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to