Advance spatial analysis in leaflet | turf | tekson

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024

Комментарии • 34

  • @geodev
    @geodev  3 года назад +1

    Timestamps:
    0:00 Turfjs introduction and setup with leaflet
    03:19 Adding GeoJSON data to the map
    04:48 Leafletjs layer control
    07:36 Measure area/distance
    12:48 Calculate center of a polygon
    16:26 Calculate BBOX of the polygon
    20:28 Creating feature/geometry/GeoJSON (point, line, polygon)
    32:43 Buffer area calculation
    38:14 Clip/difference/union
    42:49 Point within the polygon check
    43:25 Unit conversion (to Mercator, to WGS84)

  • @mzmarkib
    @mzmarkib 2 года назад +1

    Very helpful, good work, keep doing what you are doing...

    • @geodev
      @geodev  2 года назад

      Glad it was helpful! Will do!

  • @zachb.6179
    @zachb.6179 2 года назад

    Thanks for the intro to turf.js 👍

  • @dev_rupi
    @dev_rupi 3 года назад +1

    cool, thank sir

    • @geodev
      @geodev  3 года назад

      You're welcome

  • @GAURAVKUMAR-bc9vd
    @GAURAVKUMAR-bc9vd 2 года назад +3

    Hello Sir, Thank you so much for your helpful content. I am big fan of your videos. Can you please help me to figure out one thing?
    I want to highlight multipolygons which are intersect the route between two cities, how should I go for it?

    • @geodev
      @geodev  2 года назад

      I think you need to write the required condition. There is not a quick way.

  • @tunetales33
    @tunetales33 3 месяца назад +1

    Hi, can you tell me how i can get the proper or all the coordinates of a specific state or country

    • @geodev
      @geodev  3 месяца назад

      Hi, I normally get it from google search. Most of the time it will be accurate. Another way is, simply use the google map and click on the required position, it will give you the coordinate.

  • @emreaktas8169
    @emreaktas8169 2 года назад

    Leaflet.FileLayer loads files (GeoJSON, GPX, KML) into the map using the HTML5 FileReader API (i.e. locally without a server). Leaflet.FileLayer can you make a video about this process?

  • @bellosegun
    @bellosegun 3 года назад

    Hello, I am one of your students on Udemy, i have another question....on bounding box for polygons. can you please help..

    • @geodev
      @geodev  3 года назад +1

      Hi Bello, Thank you for keeping interest on my course. I just answered your question. Have a nice day.

  • @gisknowledge4849
    @gisknowledge4849 3 года назад

    hello sir, thankyou for your beautiful content. It helps us a lot.
    Its a request to give some solution how to implement intersection on geojson data.
    I'm trying intersection but only done on polygons, I want to implement it on geojson data, kindly give some solution.

    • @geodev
      @geodev  3 года назад +1

      I am glad that it helped you.
      Yes you are right, the intersection can be done in polygons. For check the intersection on geojson data, you need to apply your condition inside `forEachFeatures` loop.

  • @deepakparajuli5131
    @deepakparajuli5131 3 года назад +1

    Is turfjs similar to leaflet?

    • @geodev
      @geodev  3 года назад +1

      Actually, turfjs is the different library. This library is widely used to do the advance Geospatial analysis with features (that means vector data in form of GeoJSON). The mapping library leaflet/openlayer/mapbox are only used to visualize the result from turfjs.

  • @GIS-Engineer
    @GIS-Engineer Год назад

    How Irregular Polygon Area on tooltip and save in geojson using leaflet js

    • @geodev
      @geodev  Год назад

      You can easily save it to geojson by using toGeoJSON method from leaflet. If you want to know more, please watch this video: ruclips.net/video/vK_-OI3pjXk/видео.html

  • @praweshlamsal9899
    @praweshlamsal9899 3 года назад

    Hello sir i have landed on turf js while i was searching for some solution while drawing on leaflet. While drawing on leaflet i want to join two polygons in a way both polygons should have same border on one side. I have multiple list of polygons geo coordinates does tangent here in turf js helps. I need a guidance would be helpful.

    • @geodev
      @geodev  3 года назад

      Can you check this video on interaction? ruclips.net/video/PC8CCrrxdyI/видео.html

  • @starthere8382
    @starthere8382 2 года назад

    what do we need to develop like a umap

    • @geodev
      @geodev  2 года назад

      What do you mean umap?

  • @jasmeetsinghvirdi77
    @jasmeetsinghvirdi77 3 года назад +1

    Hi,
    Can we get the coordinates of the buffer if I am providing array of coordinates?
    Like a linestring and it should create buffer polygon around it and return buffer coordinates
    Can I use in JavaScript without any dependency?
    Thanks.

    • @geodev
      @geodev  3 года назад +1

      Yes it is possible with the turfJS. Actually the turf will provide you a buffered geojson and you may need to filter the coordinate from result.

    • @jasmeetsinghvirdi77
      @jasmeetsinghvirdi77 3 года назад +1

      @@geodev
      That's very kind and helpful.
      Actually I am a go developer & not much familiar with js.
      If you some references in more granule way or some sample code, it will be very helpful.
      Thanks

    • @geodev
      @geodev  3 года назад +1

      @@jasmeetsinghvirdi77 Oh I see! You can find the reference on the turf office website here: turfjs.org/docs/#buffer
      You can console.log() to see the output in the console and filter the required data. It is only about filtering nothing more!

    • @jasmeetsinghvirdi77
      @jasmeetsinghvirdi77 3 года назад +1

      @@geodev okay thanks.
      I will look into it.
      Just wanted to reconfirm that it will provide the vertices of the buffer (polygon buffer)from the linestring?
      Love from India. You are doing good thing.

    • @geodev
      @geodev  3 года назад +1

      @@jasmeetsinghvirdi77 Yes it will. The same buffer function can be used for point, line, polygon all type of geometry. And it always return the polygon

  • @honorekouame1911
    @honorekouame1911 2 года назад

    Hello, thanks for this Wonderful job, please i used data of Népal-districts. js country to build the map, i want to file of Ivory Coast, can you help me to get it ?

    • @geodev
      @geodev  2 года назад

      Sorry I don't have data, but if it is administrative data, search it on diva GIS (www.diva-gis.org/gdata)