Andrea, thanks very much for your prompt review.
On 12/08/12 23:15, Andrea Aime wrote: > However, I'm wondering what happens if you set the following: > Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, > "http"); > Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, > Boolean.TRUE); > and then parse http://www.opengis.net/def/crs/EPSG/0/4326. The result > should be in lat/lon order just > like the urn factory would behave This is exactly what happens in the GeoServer test, where the fixture forces lon/lat for "http" (http://www.opengis.net/gml). The rest of the test confirms that http://www.opengis.net/def/crs/EPSG/0/4326 remains in lat/lon despite the axis order of http://www.opengis.net/gml/srs/epsg.xml#4326 being lon/lat. This cannot be tested in referencing as the EPSG providers are out of scope. The unit tests instead use CRS for tests. In particular, testWhenForceXY in both HTTP_URI_AuthorityFactoryTest and (and URN_AuthorityFactoryTest on which it was based) set Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, "http"); Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE); and then CoordinateReferenceSystem crs = CRS.decode("http://www.opengis.net/def/crs/CRS/0/84",true); assertTrue(CRS.equalsIgnoreMetadata(DefaultGeographicCRS.WGS84, crs)); which I think confirms the expected behaviour. Kind regards, -- Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ 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/ _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel