I've setup a default Geoserver install. When I load the states
population layer into uDig using the wfs_1_1_0 datastore I see nothing
until I reproject the uDig map to EPSG:4326.
Geoserver is returning the bounds of the layer as the following (which I
believe is correct):
ReferencedEnvelope[-124.731422 : -66.969849, 24.955967 : 49.371735]
GEOGCS["WGS84(DD)",
DATUM["WGS84",
SPHEROID["WGS84", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]]
The WFS_1_1_0_DataStore.getFeatureTypeBounds() returns the bounds of the
layer as:
ReferencedEnvelope[24.955967 : 49.371735, -124.731422 : -66.969849]
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"]]
So the getFeatureTypeBounds() call is switching the lat/long around.
The order with the AXIS appears in the WKT definition of the SRS are
also switched. This switch is causing uDig to think that there is
nothing to render and thus rendering nothing.
Is there a 'real' difference between the above two WKT definitions?
Should reprojecting between them return different bounds?
Thanks,
Emily
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel