On Fri, Mar 11, 2011 at 5:28 PM, Justin Deoliveira <jdeol...@opengeo.org> wrote: > Thanks for the steps to reproduce andrea. I should have time end of day > today to look at this.
It seems the situation vs name and description is also broken on 2.0.x somehow Making a request against the cite tests EntitéGenerique feature type we get in the output: <sf:EntitéGénérique gml:id="EntitéGénérique.f004"> <gml:description>description-f004</gml:description> <gml:name>name-f004</gml:name> <gml:boundedBy> <gml:Envelope srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326"> <gml:lowerCorner>60.5 0.0</gml:lowerCorner> <gml:upperCorner>64.0 6.25</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <sf:description>description-f004</sf:description> <sf:name>name-f004</sf:name> <sf:attribut.Géométrie> <gml:Polygon srsDimension="2" srsName="urn:x-ogc:def:crs:EPSG:4326"> <gml:exterior> <gml:LinearRing> <gml:posList>60.5 0.0 64.0 0.0 64.0 6.25 60.5 6.25 60.5 0.0</gml:posList> </gml:LinearRing> </gml:exterior> <gml:interior> <gml:LinearRing> <gml:posList>61.5 2.0 62.5 2.0 62.0 4.0 61.5 2.0</gml:posList> </gml:LinearRing> </gml:interior> </gml:Polygon> </sf:attribut.Géométrie> <sf:boolProperty>true</sf:boolProperty> <sf:str4Property>abc3</sf:str4Property> <sf:featureRef>name-f003</sf:featureRef> </sf:EntitéGénérique> See how name and description are reported both in the gml and sf namespaces, the test complains it's not expecting sf:name and sf:description ... However the describeFeatureType 1.1 reports: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:sf="http://cite.opengeospatial.org/gmlsf" elementFormDefault="qualified" targetNamespace="http://cite.opengeospatial.org/gmlsf"> <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://localhost:8080/geoserver/schemas/gml/3.1.1/base/gml.xsd"/> <xsd:complexType name="EntitéGénériqueType"> <xsd:complexContent> <xsd:extension base="gml:AbstractFeatureType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="description" nillable="true" type="xsd:string"/> <xsd:element maxOccurs="1" minOccurs="0" name="name" nillable="true" type="xsd:string"/> <xsd:element maxOccurs="1" minOccurs="0" name="attribut.Géométrie" nillable="true" type="gml:GeometryPropertyType"/> <xsd:element maxOccurs="1" minOccurs="1" name="boolProperty" nillable="false" type="xsd:boolean"/> <xsd:element maxOccurs="1" minOccurs="1" name="str4Property" nillable="false" type="xsd:string"/> <xsd:element maxOccurs="1" minOccurs="0" name="featureRef" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="EntitéGénérique" substitutionGroup="gml:_Feature" type="sf:EntitéGénériqueType"/> </xsd:schema> so in my understanding the above gml, even if odd, should be valid, since name and description were also declared in the sf namespace. However the cite test complains: Messages from parser p:XMLValidatingParser.GMLSF1: Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'sf:description'. One of '{"http://cite.opengeospatial.org/gmlsf":attribut.Géométrie}' is expected. Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'sf:description'. One of '{"http://cite.opengeospatial.org/gmlsf":attribut.Géométrie}' is expected. 2 validation errors detected. (the specific test is wfs:wfs-1.1.0-Basic-GetFeature-tc29.4) Ah btw, the WFS 1.0 tests did run fine, no failures there Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel