Ben Caradoc-Davies created GEOS-5070:
----------------------------------------
Summary: app-schema-tutorial SRS encoding depends on request order
Key: GEOS-5070
URL: https://jira.codehaus.org/browse/GEOS-5070
Project: GeoServer
Issue Type: Bug
Components: Application schema
Affects Versions: 2.2.x
Reporter: Ben Caradoc-Davies
Assignee: Niels Charlier
The app-schema-tutorial configuration provides two feature types, GeologicUnit
and MappedFeature, both of which can be requested as top-level types.
MappedFeature is encoded with its specification by reference. GeologicUnit is
encoded with the related MappedFeatures (GeologicUnit/occurrence) inline (that
is, nested inside the GeologicUnit).
http://docs.geoserver.org/latest/en/user/data/app-schema/tutorial.html#wfs-response
Once GeoServer is started (tested in Eclipse/Jetty), if GeologicUnit is
requested first:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=gsml:GeologicUnit
the srsName of the MappedFeature/shape/Polygon is encoded in "XML" form and
geometries are encoded with lon/lat axis order:
{noformat}
srsName="http://www.opengis.net/gml/srs/epsg.xml#4283"
{noformat}
despite the wfs.xml options specifying "URN" got GML 3 / WFS 1.1 .
Once a request has been made for MappedFeature at the top level:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=gsml:MappedFeature
all MappedFeature/shape/Polygon@srsName are encoded in "URN" form and
geometries are encoded with lat/lon axis order:
{noformat}
srsName="urn:x-ogc:def:crs:EPSG:4283"
{noformat}
This "URN" srsName and lat/lon axis order is used for
MappedFeature/shape/Polygon@srsName even when nested inside a GeologicUnit.
Yes, that is that same request as before, with a different response:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=gsml:GeologicUnit
--
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel