3

I am looking for a query to show all roads and buildings in the province Flemisch Brabant in Belgium.

Can anyone help me?

  • I'm assuming that you are asking about how to do this with Overpass since you used that tag. Do you have a partially-working query, or what have you tried so far? – Erica Aug 23 '14 at 16:38
1

By using overpass turbo's wizard and the search string highway or building in "Flemish Brabant" this query has been created (I increased the timeout a little):

<osm-script output="xml" timeout="250">
  <!-- fetch area “Flemish Brabant” to search in -->
  <id-query {{nominatimArea:Flemish Brabant}} into="area"/>
  <!-- gather results -->
  <union>
    <!-- query part for: “highway” -->
    <query type="node">
      <has-kv k="highway"/>
      <area-query from="area"/>
    </query>
    <query type="way">
      <has-kv k="highway"/>
      <area-query from="area"/>
    </query>
    <query type="relation">
      <has-kv k="highway"/>
      <area-query from="area"/>
    </query>
    <!-- query part for: “building” -->
    <query type="way">
      <has-kv k="building"/>
      <area-query from="area"/>
    </query>
    <query type="relation">
      <has-kv k="building"/>
      <area-query from="area"/>
    </query>
  </union>
  <!-- print results -->
  <print mode="meta"/><!-- fixed by auto repair -->
  <recurse type="down"/>
  <print mode="meta" order="quadtile"/><!-- fixed by auto repair -->
</osm-script>

The data is about 270 MB large so better don't try to run and visualize the query in your browser, it won't be able to handle it. Instead use the export button to download the raw data directly or to convert it into a query suitable for Overpass API.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.