Why not ask your question on the new OpenStreetMap Community Forum?


I already know Nominatim which gives me address and some (much) more information for a specific location. That's fine but way too much for what I plan to do (and it would cause way too much traffic on Nominatim comparing to what I really need).

So my question: is there a possibility to find out if a given position is located in water or outside? Means can I do a simple check if that position specifies a place on land or sea?


asked 16 Apr '13, 12:00

Satz%20Klauer's gravatar image

Satz Klauer
accept rate: 0%

Just to clarify, would the middle of a lake count as "land" or "sea"? What about an island in the middle of the lake?

(16 Apr '13, 12:08) SomeoneElse ♦

An island in the middle of a lake would be land.

(16 Apr '13, 12:12) Satz Klauer

There is no ready-made API for this. You have to load the oceans and other water areas into a PostGIS database and write a few lines of glue script (PHP or similar) for that. Rivers could be a little complicated since they are often mapped as linear features; you will want to extend them to areas when populating your database.

permanent link

answered 16 Apr '13, 12:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 16 Apr '13, 12:00

question was seen: 3,158 times

last updated: 16 Apr '13, 12:49

powered by OSQA