[Geoserver-devel] [jira] (GEOS-5136) Schema location in GetFeature response points to GML 2.1.2 schema for GML 3.2 output format

Sebastian Graca created BugGEOS-5136
Schema location in GetFeature response points to GML 2.1.2 schema for GML 3.2 output format

Issue Type:

BugBug

Affects Versions:

2.2-beta2

Assignee:

Andrea Aime

Components:

WFS

Created:

30/May/12 6:51 AM

Description:

The response for request
http://localhost:8080/geoserver/sf/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:streams&maxFeatures=50&outputFormat=text/xml;%20subtype=gml/3.2

contains

<wfs:FeatureCollection timeStamp="2012-05-29T12:28:51.419Z" xsi:schemaLocation="http://www.opengis.net/gml/3.2 http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd http://www.opengis.net/wfs/2.0 http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd http://www.openplans.org/spearfish http://localhost:8080/geoserver/sf/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=sf%3Astreams">

The URL http://localhost:8080/geoserver/sf/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=sf%3Astreams

returns schema which includes GML GML 2.1.2 schema, but original request was for GML 3.2

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:gml="http://www.opengis.net/gml" xmlns:sf="http://www.openplans.org/spearfish" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.openplans.org/spearfish">
  <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://localhost:8080/geoserver/schemas/gml/2.1.2/feature.xsd"/>
  <xsd:complexType name="streamsType">
    <xsd:complexContent>
      <xsd:extension base="gml:AbstractFeatureType">
        <xsd:sequence>
          <xsd:element maxOccurs="1" minOccurs="0" name="the_geom" nillable="true" type="gml:MultiLineStringPropertyType"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="cat" nillable="true" type="xsd:long"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="label" nillable="true" type="xsd:string"/>
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="streams" substitutionGroup="gml:_Feature" type="sf:streamsType"/>
</xsd:schema>

Appending &outputFormat=text/xml;%20subtype=gml/3.2 to DescribeFeatureType returns schema for GML 3.2

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Sebastian Graca

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)