Martin Desruisseaux ha scritto:
> Andrea Aime a écrit :
>> 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?
> 
> The system property must be set before the first call to 
> ReferencingFactoryFinder.getXXXAuthorityFactory(...), directly or 
> indirectly (e.g. CRS.decode(...)).

The code I did paste:

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"));
       }
}

does set the property in the first line of code. Afaik it's being 
ignored (or else, I'm having a local issue).

> After the first call to ReferencingFactoryFinder, setting the system 
> property doesn't have any effect anymore (or maybe an explicit call to 
> ReferencingFactoryFinder.scanForPlugins would help; I didn't tried).
> 
> Is it possible to set every relevant system properties in some Geoserver 
> starting code before any Geotools code is invoked? If this is an issue, 
> we can investigate some way to allow changes after Geotools class loading.

That's what we do already.
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