[Geoserver-devel] How to implement an identify...

Hello to all,

I am inexperienced in Geoserver.

I would like to know which the format of the requisition that I should build
to implement a function identify.

In other words, I would like to inform a latitude and a longitude and to
obtain the referring information to the polygon that is located in this
point (latitude and longitude).

Is this an Filter for GetFeature? Do you have a sample?

Thanks

Best Regards

Claudiney Calixto

I'll try to get you a real sample soon, since I'm not at my computer so
I can't test it out. But check out the Filter specification (go to
http://opengis.org and then click on the right on implementation
specifications), and it should have examples. I think overlaps (or
maybe it's intersects, I forget. Not Disjoint should also do it) is
the filter you want, it should be defined something like:

<Filter>
<Overlaps>
<PropertyName>the_geom</PropertyName>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>73.45, 42.23</gml:coordinates>
</gml:Point>
</Overlaps>
</Filter>

The propertyName should be the name of the geometry in your featureType
(do a DescribeFeatureType to get it). And be sure to define the gml
namespace in your request. Hope this helps, I'll try to get a real
example soon, and I'll add it to the demo requests of geoserver, more
spatial requests would be helpful there.

best regards,

Chris

Quoting Claudiney Calixto <ccalixto@anonymised.com>:

Hello to all,

I am inexperienced in Geoserver.

I would like to know which the format of the requisition that I
should build
to implement a function identify.

In other words, I would like to inform a latitude and a longitude and
to
obtain the referring information to the polygon that is located in
this
point (latitude and longitude).

Is this an Filter for GetFeature? Do you have a sample?

Thanks

Best Regards

Claudiney Calixto

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle
10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/