Hi Andrea - I have a test case for this problem ...

But it is not clear what is going wrong ...
LongitudeFirstFactory seems to change it's priority based on this value 
being set ...
>     private static int relativePriority() {
>         try {
>             if (Boolean.getBoolean(SYSTEM_DEFAULT_KEY)) {
>                 return +10;
>             }
>         } catch (SecurityException e) {
>             // Fall back on default value.
>         }
>         return -10;
>     }
I expected this setting to be provided as a Hint ... so I was worried 
that by asking CRS to pay attention to Hints I had messed up this story.
But the above implementation checks a system property each and every 
time - no Hints required.

I am going to walk through with a debugger and see what happens next,
Jody



> trying the following in Geotools:
>
> public class CRSTest {
>       public static void main(String[] args) throws
> NoSuchAuthorityCodeException, FactoryException {
>           System.setProperty("org.geotools.referencing.forceXY", "true");
>           System.out.println(CRS.decode("EPSG:4326"));
>       }
> }
>
> outputs the following:
>
> GEOGCS["WGS 84",
>     DATUM["World Geodetic System 1984",
>       SPHEROID["WGS 84", 6378137.0, 298.257223563,
> AUTHORITY["EPSG","7030"]],
>       AUTHORITY["EPSG","6326"]],
>     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
>     UNIT["degree", 0.017453292519943295],
>     AXIS["Geodetic latitude", NORTH],
>     AXIS["Geodetic longitude", EAST],
>     AUTHORITY["EPSG","4326"]]
>
> I set a system property to have axis in x/y order, so it should
> have longitude as the first axies.
>
> I believe this explains why Goeserver trunk won't render a single
> map today.  Is this supposed to work, or is there a new way to
> force axis orientation now?
>
> Cheers
> Andrea
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to