[OSGeo-Discuss] OpenLayers WMS OSM is LonLat in water?

Andrea Aime andrea.aime at geo-solutions.it
Wed Oct 10 11:44:22 PDT 2012

On Wed, Oct 10, 2012 at 8:26 PM, izzybitsie <izzybitsie at gmail.com> wrote:

> Hi,
> could someone let me know how I could find out if a chosen LonLat is in
> water?  I looked at the GetFeatureInfo example, but it only applies to
> Tasmania map.  I have not been able to  find a worldwide map to use
> GetFeatureInfo assuming this is the right way to go.

Among the OGC services, I guess using a WFS GetFeature with a query of
type "point intersection" against a layer that has precise shorelines, and
only the hits as opposed to the records, would be better.

You could load data from Natural Earth, or if that is not precise enough,
the global high resolution shoreline dataset.

By the name of the layer I assume you're using GeoServer.
A request that would get you the result you want might be (mind, not
tested, and using some GeoServer
specific extensions for easier filtering):

POINT(lat, lon))

Mind, since the above is using WFS 1.1 the coordinates will have to be
entered in lat/lon order, whilst the_geom is the name of the geometry
attribute for shapefiles in GeoServer, if you are loading into a database
check what is the actual geometry column name there)


Our support, Your Success! Visit http://opensdi.geo-solutions.it for more

Ing. Andrea Aime
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/discuss/attachments/20121010/78421283/attachment-0002.html>

More information about the Discuss mailing list