[Geoserver-devel] Has CRS/axis orientation code been broken?

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

Hi Andrea; geotools trunk now passes your test case ...

And checking out the demo WFS-T I can see the outline of the island ... but the other data (roads, lakes, city) seem not to be there ...

The logs say ...

org.vfny.geoserver.wms.WmsException: No LAYERS has been requested
        at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersParam(GetMapKvpReader.java:1384)
        at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(GetMapKvpReader.java:758)
        at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(GetMapKvpReader.java:409)
        at org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(GetMapKvpReader.java:226)
        at org.geoserver.ows.adapters.KvpRequestReaderAdapter.createRequest(KvpRequestReaderAdapter.java:99)
        at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:922)
        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:361)
        at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:197)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java