1

I have written a PostGIS query on a database with OSM data of the state of Baden-Württemberg.

SELECT * 
FROM public.planet_osm_polygon 
WHERE boundary = 'administrative' 
  AND admin_level = '8';

So it turns out that not all cities/towns have an admin_level tag of 8. Is there any way we can further constrain the query to filter out only the towns/cities?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.