On Mon, Aug 13, 2012 at 4:19 AM, Ben Caradoc-Davies <
ben.caradoc-dav...@csiro.au> wrote:
>
> 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<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<http://www.opengis.net/gml/srs/epsg.xml#4326>being
>  lon/lat.
>

Good.


>
> 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 <http://www.opengis.net/def/crs/CRS/0/84>",**
> true);
> assertTrue(CRS.**equalsIgnoreMetadata(**DefaultGeographicCRS.WGS84, crs));
>
> which I think confirms the expected behaviour.


Not really, as I said, CRS:84 is expected to be in lon/lat regardless of
the hints you provide,
so the test above is not actually testing the effects of the hints (as
there should be none).

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 962313
mob:   +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
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

Reply via email to