Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-153
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GEOS-153
Summary: Bug clipping data to a given bbox
Type: Bug
Status: Open
Priority: Major
Original Estimate: 2 days
Time Spent: Unknown
Remaining: 2 days
Project: GeoServer
Components:
WFS
Assignee: Chris Holmes
Reporter: Jeroen Christiaens
Created: Fri, 9 Apr 2004 2:22 AM
Updated: Fri, 9 Apr 2004 2:22 AM
Environment: GeoServer
Tomcat 4.1.29
Description:
I have a shapefile served by GeoServer WFS. It's a polygonlayer that consists of one outerboundary polygon (LinearRing) and none internal boundaries. The max extends I can measure of the whole shapefile are (LON/LAT)
6<-->8.16 (east<->west) and 49.5<-->50.95 (north-south).
If I access the file without a bounding box clip, I get the correct gml. I receive back data and can use/read it properly. OK
If I add a bounding box "&bbox=xmin,ymin,xmax,ymax" with values that contain the whole shapefile, I get the exactly the same data. OK
If I add a bounding box that contains some internal area, I will get back again the full result because that is the boundary. OK
If I add another boundary that only overlaps with the North-West part of the full area, I don't get ANY results... where I expect to have also the full border because there is an overlap with the given bbox and the area.
Try...
[...]wfs?request=GetFeature&typename=topp:test --> returns the full GML
[...]wfs?request=GetFeature&typename=topp:test&bbox=6,49.8,6.3,50.2 --> returns result like it should.
[...]wfs?request=GetFeature&typename=topp:test&bbox=3.27,50.7,7.3,53.6 --> return an empty GML result (see below) Look at the strange results for the boundedBy coordinates.
What is going on here? Anyone any idea? It is very strange because if I zoom on a map, sometimes the area is drawn and sometimes not (and then it looks stupid because you see the hole that it creates by not displaying it (it doesn't get a result from the geoserver)
Jeroen
<?xml version="1.0" encoding="UTF-8" ?>
- <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openplans.org/topp http://localhost:8888/geoserver/wfs/DescribeFeatureType?typeName=topp:test http://www.opengis.net/wfs http://localhost:8888/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates decimal="." cs="," ts="">0,0 0,-1 -1,-1 -1,0</gml:coordinates>
</gml:Box>
</gml:boundedBy>
</wfs:FeatureCollection>
I have added the necessairy files...
---------------------------------------------------------------------
JIRA INFORMATION:
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