Search code examples
javageolocationcoordinatespoint-in-polygon

Geo coordinates for a polygon over Germany (or any other region)


I am using java. I want to check wether or not some location lies in germany (it is an application for a company, and its trucks aren't allowed to cross borders).

Now I know, that one can only approximate this, but thats okay, since I mainly want to check for typos in longitude and latitude (e.g. 25.123 instead of 52.123).

So far I came across the point in polygon problem, which seems to fit my needs. Is there like a standard for geo-polygons over regions? (**). Or do I have to do it by myself?

(**) This seems like a dumb question. However it would offer transparency to my customer and I wouldn't be to blame if my polygon is 1 meter to small.


Solution

  • You are asking for "standard for geo-polygons over regions". In Germany there is the "Digitales Landschaftsmodell" (DLM) and "Digitales Geländemodell" (DGM).

    There is also a public service where different spatial data can be downloaded.

    So hopefully using offical standards and data will meet the customer's requirements.