VS: [mapserver-users] GetFeatureInfo or GetFeature?

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Thu Sep 29 02:52:26 EDT 2011


Hi,

X and Y in GetFeatureInfo are pixel coordinates and you can calculate the coordinates for any pixel in the image because you know the BBOX and the size of the image in pixels (WIDTHxHEIGHT).
When it comes to filters in WFS you must read some parts of that WFS standard version you are going to use, for WFS 1.0.0 
http://portal.opengeospatial.org/files/?artifact_id=7176
and also another stasndard about how the filters must be used
http://portal.opengeospatial.org/files/?artifact_id=1171

A filter uses with http POST could look like
<ogc:Filter>
<ogc:Within>
<ogc:PropertyName>myns:PATH</ogc:PropertyName>
<gml:Box>
<gml:coordinates>50,40 100,60</gml:coordinates>
</gml:Box>
</ogc:Within>
</ogc:Filter>

It is also possible to use filter with http GET but urls tend to come very long. This example, as the previuos one, is from the WFS 1.0.0 standard
FILTER=<Filter><Within><PropertyName>INWATERA_1M/WKB_GEOM<PropertyName>
<gml:Box><gml><coordinates>10,10 20,20</gml:coordinates></gml:Box>
</Within></Filter>


-Jukka Rahkonen-

 
jjwang wrote:

> 
> The data I have is suburb boundaries (polygon).
> I want the server can do this: when I pass a coordinate to 
> the server and it
> could return the info of the suburb who covers this coordinate.
> For getfeatureinfo request, there are two required parameters 
> X and Y. But
> they are not longitude and latitude . So I don't know how to 
> get what I
> want.
> For getfeature request, I think the filter might be able to 
> do this. But I
> couldn't find the documentations teache how to use Spatial 
> Capabilities,
> like Touches,Within,Overlaps,Contains,DWithin.
> 
> Someone help me.
> Thanks
> 
> JJ
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/GetFeatureInfo-or-GetFe
ature-tp6842879p6842879.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 


More information about the mapserver-users mailing list