[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] [jira] Created: (UDIG-404) WFS broken (bounds calculation?)
|
WFS broken (bounds calculation?)
--------------------------------
Key: UDIG-404
URL: http://jira.codehaus.org/browse/UDIG-404
Project: uDIG
Type: Bug
Components: wfs
Versions: UDIG 0.9
Environment: xp
Reporter: dblasby
Assigned to: David Zwiers
Priority: Blocker
Fix For: UDIG 1.0.RC
Attachments: udigbug1.gif
I reported this bug to the news group on the 15th. I've confirmed its still in 0.9.2 and DZ confirmed that its still in SVN head (pre-1.0RC1).
DZ and I worked with this for a bit - he says there's something wrong with the way "bounds" is being computed.
I'm more than willing to leave an accessible WFS server up-and-running for you to test against.
The behavior has improved since this was reported (I think against a 0.9RC).
On 0.9.2, it only draws the state Maine (no matter how hard you try to get it to draw other states). It does not make the full-dataset request.
DZ reports getting things working (sometimes/often?) using the pre-1.0RC1, but its apparently easy to reproduce this bug.
Here's a request for most of the USA that was produced in udig 0.9.2:
(I notice the requests have gotten more verbose).
<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" service="WFS" outputFormat="GML2"><Query typeName="topp:states"><ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:PropertyName>STATE_NAME</ogc:PropertyName>
<ogc:PropertyName>STATE_FIPS</ogc:PropertyName>
<ogc:PropertyName>SUB_REGION</ogc:PropertyName>
<ogc:PropertyName>STATE_ABBR</ogc:PropertyName>
<ogc:PropertyName>LAND_KM</ogc:PropertyName>
<ogc:PropertyName>WATER_KM</ogc:PropertyName>
<ogc:PropertyName>PERSONS</ogc:PropertyName>
<ogc:PropertyName>FAMILIES</ogc:PropertyName>
<ogc:PropertyName>HOUSHOLD</ogc:PropertyName>
<ogc:PropertyName>MALE</ogc:PropertyName>
<ogc:PropertyName>FEMALE</ogc:PropertyName>
<ogc:PropertyName>WORKERS</ogc:PropertyName>
<ogc:PropertyName>DRVALONE</ogc:PropertyName>
<ogc:PropertyName>CARPOOL</ogc:PropertyName>
<ogc:PropertyName>PUBTRANS</ogc:PropertyName>
<ogc:PropertyName>EMPLOYED</ogc:PropertyName>
<ogc:PropertyName>UNEMPLOY</ogc:PropertyName>
<ogc:PropertyName>SERVICE</ogc:PropertyName>
<ogc:PropertyName>MANUAL</ogc:PropertyName>
<ogc:PropertyName>P_MALE</ogc:PropertyName>
<ogc:PropertyName>P_FEMALE</ogc:PropertyName>
<ogc:PropertyName>SAMP_POP</ogc:PropertyName>
<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box><gml:coordinates decimal="." cs="," ts=" ">-66.969849,38.282605440821804 -65.18489812743327,47.61046048766901</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</Query>
</GetFeature>
The xmin (-66.969849) is not correct. Note that xmin is the same as the dataset's xmax (see the getcapabilities, see below) - this is quite strange. The actual xmin should be about -90 degrees!
The other coordinates seems to be correct.
================================================================
original bug report -- see attached image
================================================================
--------------------------------
My WFS data is not rendering. The WMS (as you can see on the attached
image, looks fine). I set my display to EPSG:4326 so everything would
be in the same CRS.
Here's my geoserver wfs getcapabilities for the standard states
shapefile:
<FeatureType>
<Name>topp:states</Name>
<Title>USA Population</Title>
<Abstract>This is some census data on the states.</Abstract>
<Keywords>census, state boundaries, united states</Keywords>
<SRS>EPSG:4326</SRS>
<LatLongBoundingBox minx="-124.731422" miny="24.955967"
maxx="-66.969849" maxy="49.371735"/>
</FeatureType>
As far as I can tell, this is what happens:
1. udig sends a wfs request to geoserver:
<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" service="WFS"
outputFormat="GML2"><Query
typeName="topp:states"><ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box><gml:coordinates decimal="." cs="," ts="
">-66.969849,43.74894583474378
-54.46293908059163,49.371735</gml:coordinates>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</Query>
</GetFeature>
As you can see this isnt the bbounding box of the display - its the part
of the display thats outside the dataset.
NOTE: this actually returns the feature for the state of Maine
2. It then does a GET query:
SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=topp:states
This returns the entire dataset!!!
In the end it doesnt actually draw anything!
Whats going on?
dave
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira