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)
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?
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.
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?
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.
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.
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.
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
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.
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 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
@@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!
@@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.
@@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
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 ?
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)
Very helpful, good work, keep doing what you are doing...
Glad it was helpful! Will do!
Thanks for the intro to turf.js 👍
Welcome
cool, thank sir
You're welcome
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?
I think you need to write the required condition. There is not a quick way.
Hi, can you tell me how i can get the proper or all the coordinates of a specific state or country
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.
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?
Hello, I am one of your students on Udemy, i have another question....on bounding box for polygons. can you please help..
Hi Bello, Thank you for keeping interest on my course. I just answered your question. Have a nice day.
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.
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.
Is turfjs similar to leaflet?
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.
How Irregular Polygon Area on tooltip and save in geojson using leaflet js
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
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.
Can you check this video on interaction? ruclips.net/video/PC8CCrrxdyI/видео.html
what do we need to develop like a umap
What do you mean umap?
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.
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.
@@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
@@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!
@@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.
@@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
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 ?
Sorry I don't have data, but if it is administrative data, search it on diva GIS (www.diva-gis.org/gdata)