Re: [Geoserver-users] Setting forceXY in a webapp - not in a container

2010-09-23 Thread Andrea Aime
On 23/09/2010 01:30, terry.rank...@csiro.au wrote:
 Hi All

 This is a tomcat6 question - but someone else may know...


 I am currently experiencing the different XY behaviour (WFS 1.1, 1.0 behave 
 differently by default) in a vanilla geoserver 2.0.2.

 I dont want to set the system property like 
 http://docs.codehaus.org/display/GEOTDOC/The+axis+order+issue
 suggests, as I have other applications running in my container.

 How do I do this:

 System.setProperty(org.geotools.referencing.forceXY, true);

 inside my webapp (not at container level - at the context level?)

In GeoServer we set that option in the GeoServerInitStartupListener.
Maybe you can roll your own servlet context variable that is
read by the above listener and makes it set the system variable
accordingly.

The timing when that variable is set is crucial: it has to be before
anything starts hitting the CRS subsystem, once that happens changing
the variable will have no effect.

Also, have no idea what will happen to other applications starting
in parallel, if they also use geotools you might get odd results.

Also mind, a WFS 1.1.0 that returns data in lon/lat order for GML3 is
not compliant.

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Setting forceXY in a webapp - not in a container

2010-09-22 Thread Terry.Rankine
Hi All

This is a tomcat6 question - but someone else may know...


I am currently experiencing the different XY behaviour (WFS 1.1, 1.0 behave 
differently by default) in a vanilla geoserver 2.0.2.

I dont want to set the system property like 
http://docs.codehaus.org/display/GEOTDOC/The+axis+order+issue
suggests, as I have other applications running in my container.

How do I do this:

System.setProperty(org.geotools.referencing.forceXY, true);

inside my webapp (not at container level - at the context level?)



I am using tomcat6.



Regards

Terry Rankine



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Setting forceXY in a webapp - not in a container

2010-09-22 Thread ajs6f
I welcome correction, but my understanding is that since a container runs 
inside a JVM, and system properties are set at the level of a JVM, you can't do 
that.

Perhaps there's a different parameterization (using something other than a 
system property) that could provide the behavior you seek?

---
A. Soroka
Digital Research and Scholarship R  D
the University of Virginia Library



On Sep 22, 2010, at 7:30 PM, terry.rank...@csiro.au wrote:

 Hi All
 
 This is a tomcat6 question - but someone else may know...
 
 
 I am currently experiencing the different XY behaviour (WFS 1.1, 1.0 behave 
 differently by default) in a vanilla geoserver 2.0.2.
 
 I dont want to set the system property like 
 http://docs.codehaus.org/display/GEOTDOC/The+axis+order+issue
 suggests, as I have other applications running in my container.
 
 How do I do this:
 
 System.setProperty(org.geotools.referencing.forceXY, true);
 
 inside my webapp (not at container level - at the context level?)
 
 
 
 I am using tomcat6.
 
 
 
 Regards
 
 Terry Rankine
 
 
 
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users