Hi List,
   My GeoServer is behaving a little weirdly and is giving
"<gml:boundedBy><gml:null>unknown</gml:null></gml:boundedBy>" (I guess that
means "no results") as a result for GetFeatureInfo queries.
The problem is I can guarantee there's a feature at that location.

Both of these queries are for the same area at the same scale - 1:40,000.
The layer has a scale threshold of 1:40,000 and is displaying fine (via
WMS).

This one works:
/geoserver/ows?LAYERS=OS_CP_POLYGON_POSTCODES&QUERY_LAYERS=OS_CP_POLYGON_POSTCODES&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=
*424637.3%2C265510.1%2C435904.5%2C274234.9*
&FEATURE_COUNT=8&HEIGHT=779&WIDTH=1006&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A27700&X=
*496&Y=477*

This one returns "unknown".
/geoserver/ows?LAYERS=OS_CP_POLYGON_POSTCODES&QUERY_LAYERS=OS_CP_POLYGON_POSTCODES&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=
*424366.4%2C265637.6%2C435633.6%2C274362.4*
&FEATURE_COUNT=50&HEIGHT=779&WIDTH=1006&FORMAT=image%2Fpng&INFO_FORMAT=application%2Fvnd.ogc.gml&SRS=EPSG%3A27700&X=
*525&Y=514*
*
*
The only differences are bolded (BBOX and X/Y). I don't think it's the X/Y.

I suspect this is a result of a rounding error. I don't have a tool to do
it, but I suspect the bounding box for the second one is probably 40000.5
or something, which gets rounded up to 40001. This is outside of the Scale
Threshold so no features are returned.

----
So questions:
- Does anyone have or know of a tool to calculate scale from bboxes and
width/height? Google isn't getting me far.
- Has anyone encountered this before?

I guess I can change the scale threshold to 1:40010 or something, but I'd
rather not.

Thanks,
Jonathan

-- 
This transmission is intended for the named addressee(s) only and may 
contain sensitive or protectively marked material up to RESTRICTED and 
should be handled accordingly. Unless you are the named addressee (or 
authorised to receive it for the addressee) you may not copy or use it, or 
disclose it to anyone else. If you have received this transmission in error 
please notify the sender immediately. All email traffic sent to or from us, 
including without limitation all GCSX traffic, may be subject to recording 
and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to