Hi Ben, I've kept the GMLAS as shown in my previous email (version 3.2.1) and attempted the following WFS requests:
1) http://localhost:8080/geoserver/wfs?request=GetFeature&maxFeatures=2&typeName=town:TownSurvey 2) http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&outputFormat=gml32&maxFeatures=2&typeName=town:TownSurvey 3) http://localhost:8080/geoserver/wfs?request=GetFeature&version=2.0.0&maxFeatures=2&typeName=town:TownSurvey 4) http://localhost:8080/geoserver/wfs?request=GetFeature&version=2.0.0&outputFormat=gml32&maxFeatures=2&typeName=town:TownSurvey I've also created the GML 3.2.1 secondary namespace as described in the link you sent me, and I already have an AttributeMapping for the gml:id in my mapping file. Unfortunately, I'm still not getting the townName data in the WFS response - is there anything else I may have overlooked? Furthermore, I noticed that the maxFeatures parameter is ignored when the version is set to 2.0.0 - is that expected? Many thanks, Ryan -----Original Message----- From: Ben Caradoc-Davies [mailto:[email protected]] Sent: 11 June 2013 09:49 To: Ryan Moody Cc: [email protected]; Ian Turton; Neil Kirk Subject: Re: [Geoserver-users] App-Schema Publish Layer Exception Aha! Ryan, your application schema is GML 3.2.1, but your test request is for WFS 1.1.0, which defaults to GML 3.1.1. These two GML versions have different definitions of a feature. This will cause Bad Things To Happen. To get a GML 3.2.1 response you can either: (1) Use WFS version=1.1.0 and outputFormat=gml32, or (2) Use WFS version=2.0.0 (currently the default. See: http://docs.geoserver.org/latest/en/user/data/app-schema/supported-gml-versions.html Kind regards, -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
