There is a real difference (the axis order). The WFS 1.1 DataStore should be
able to sort things out for you; or if you transform your initial
ReferenceEnvelope into the CoordinateReferenceSystem provided by the WFS it
should be able to swap the data value order around so it all lines up
correctly.
The WFS 1.0 DataStore had a filter visitor that performs this kind of check;
I am not sure if it was used for the WFS 1.1 Implementation. If not it is
something that should be done once in the renderer (ie the renderer should
be making the correct request).

Jody

On Fri, Jan 23, 2009 at 8:16 AM, Emily Gouge <ego...@refractions.net> wrote:

> 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
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
------------------------------------------------------------------------------
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
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to