Issue Type: Bug Bug
Affects Versions: 11-beta
Assignee: Justin Deoliveira
Components: referencing, xsd-gml
Created: 10/Sep/13 4:21 AM
Description:

I have a 3D EngineeringCRS defined in GeoServer epsg.properties as:
700001=LOCAL_CS["Mine coordinates",LOCAL_DATUM["Unknown",0],UNIT["m",1.0],AXIS["x",OTHER],AXIS["y",OTHER],AXIS["z",UP]]

(1) According to gt-referencing CRS.getAxisOrder, any CoordinateReferenceSystem that is not instanceof ProjectedCRS or instanceof GeographicCRS has AxisOrder.INAPPLICABLE.

(2) According to gt-xsd-gml2 GML2EncodingUtils.toURI, any CoordinateReferenceSystem with AxisOrder.INAPPLICABLE whall be encoded with SrsSyntax.OGC_HTTP_URL, regardless of the supplied option. There is a TODO questioning this behaviour.

(1)+(2) results in GeoServer SrsSyntax.OGC_HTTP_URL responses srsName="http://www.opengis.net/gml/srs/epsg.xml#700001" even when another syntax such as SrsSyntax.OGC_URN or SrsSyntax.OGC_HTTP_URI is selected for WFS. This prevents GeoServer from providing WFS 1.1.0 or WFS 2.0.0 compliant service for this CRS.

The fix is to remove AxisOrder.INAPPLICABLE from the test in gt-xsd-gml2 GML2EncodingUtils.toURI. This is a backwards-incompatible change.

Project: GeoTools
Priority: Major Major
Reporter: Ben Caradoc-Davies
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to