Finding City Boundaries in OSM | Python + OpenStreet Maps + Overpass

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 24

  • @maxmiranda6298
    @maxmiranda6298 2 ปีที่แล้ว +1

    Literally exactly what i'm trying to do THANK YOU

  • @urbansafarivideo
    @urbansafarivideo 2 หลายเดือนก่อน

    Hi thank you for your video, I had much trouble of filtering out the streets of a city, the city boundary always set to hole district both called Gifhorn , Germany, with QGIS I was able to figure out an other way by using postcode boundaries this is working fine for this city.

  • @abdolkarimmehrparvar6583
    @abdolkarimmehrparvar6583 หลายเดือนก่อน

    Thanks was very helpful

  • @mohdfaridyaakob5097
    @mohdfaridyaakob5097 2 ปีที่แล้ว +1

    Thank you!!! 🙏

  • @JITHINSAJEEVAN
    @JITHINSAJEEVAN 2 ปีที่แล้ว +1

    Thanks for the video. How can I convert the output to geojson?

    • @michaelfore6814
      @michaelfore6814  2 ปีที่แล้ว

      Are you using the web interface or another source to access the info

  • @allaboutdata2050
    @allaboutdata2050 ปีที่แล้ว +1

    Hi, Can i use the same process to get the mall/shopping center boudries ? the data that i have contains mall name, lat, long for mall and the housenumber, street address, city and state.
    I am not sure at first how can i get the mall using the parameters and then get the boundary for the mall.

    • @michaelfore6814
      @michaelfore6814  ปีที่แล้ว

      find an example of a mall then, instead of 'type'='relation', you can put foo=bar, where bar is one of the attributes you found manually.

  • @ashwinravinair7827
    @ashwinravinair7827 ปีที่แล้ว +1

    Thank you so so so much for this tutorial, any way I can drop all the other features and just highlight the streets of the city? Will be greatly appreciated if you can help me with that. Thanks again

    • @michaelfore6814
      @michaelfore6814  ปีที่แล้ว

      find an example of "street" then, instead of 'type'='relation', you can put foo=bar, where bar is one of the attributes you found manually.

  • @riki4644
    @riki4644 ปีที่แล้ว

    thanks

  • @kartografiktasarim
    @kartografiktasarim ปีที่แล้ว

    Thank you

  • @mikoozil1956
    @mikoozil1956 5 หลายเดือนก่อน

    Thanks for this video. How can I find boundaries of areas less than municipality?it isn't possible with this script.

  • @hafizmuhammadshahzad869
    @hafizmuhammadshahzad869 9 หลายเดือนก่อน

    can you provide python code also in description?

  • @hrushitembe6550
    @hrushitembe6550 ปีที่แล้ว

    How to increase shape of polygon any city KM wise

  • @Kumari891
    @Kumari891 ปีที่แล้ว

    how to make a boundary for the buildings only?

    • @michaelfore6814
      @michaelfore6814  ปีที่แล้ว +1

      Locate a building as an example, and find the metadata that signifies it. So in the video, where I put "type"="relation", you can put foo=bar, where foo and bar are what you found on the initial building.

    • @Kumari891
      @Kumari891 ปีที่แล้ว

      @@michaelfore6814 thank you for replying even though you uploaded the video for a long time

    • @Kumari891
      @Kumari891 11 หลายเดือนก่อน

      @@michaelfore6814 , I am writing query to extract railway but I can only extract a part of the railway. not all. here is the query. can you help me, please?
      (
      node["landuse"="railway"](48.3284585,7.7442607,48.4748442,7.938292);
      way["landuse"="railway"](48.3284585,7.7442607,48.4748442,7.938292);
      relation["landuse"="railway"](48.3284585,7.7442607,48.4748442,7.938292);
      );
      out geom;

  • @evangelosvourvoulias5253
    @evangelosvourvoulias5253 2 ปีที่แล้ว

    Hello my friend. Awesome video . I have a problem. When i enter the code after the filtered line it returns just [ ] and ii doesnt seem to understand the data i am trying to input. Do you know any solution for that?

  • @sethrogers3102
    @sethrogers3102 2 ปีที่แล้ว

    Thanks for the video does not appear to work for London (UK) or Riyadh KSA. Perhaps post your code in the comments. Thanks for the video helpful.
    [out:json][timeout:25];
    area["name"="london"];
    (
    relation["type"="boundary"]["name"="london"];
    );
    // print results
    out body;

    • @michaelfore6814
      @michaelfore6814  2 ปีที่แล้ว

      Ah, I didn't mention is was most for US states.
      The same process should be able to work for those places too. Different countries will vary how the tags are reported.

    • @michaelfore6814
      @michaelfore6814  2 ปีที่แล้ว

      Try and capitalized the L in london
      [out:json][timeout:25];
      area["name"="London"];
      (
      relation["type"="boundary"]["name"="London"];
      );
      // print results
      /*added by auto repair*/
      (._;>;);
      /*end of auto repair*/
      out body;