These are public posts tagged with #turfjs. You can interact with them if you have an account anywhere in the fediverse.
This uses #TurfJs polygon length function to calculate its circumference. The underlying sorting of the coordinates uses polar coordinates, since that is how they are being randomly generated. By first sorting over the degrees and the distances.
For most instances this is a pretty good estimate, though in some case a self-intersecting polygon can be created, which hints that there is a more optimized polygon.
Further this problem is a typical 'travelling salesman problem' which can be solved via various algorithms.
Though before considering such optimization issues, there is the main question if the randomly generated POI is even accessible to the public.
In the case one is a pedestrian, one could use #overpass to gather information if any #OpenStreetMap highways exist in the proximity to the POI and then find the one that is the closest and permissive to pedestrians. Then move the POI to that location.
This example only works if there is enough #OSM data at the location.
Toying around with the idea of creating a random POI generator which can be used as a #StarCourse or an optimization challenge to navigate throughout the POIs.
This tool is required for the #SagaOfTheRuckers navigator challenge.
Tools: #TurfJs #Leaflet #OpenStreetMap #WebDev
Toying around with the idea of creating a random POI generator which can be used as a #StarCourse or an optimization challenge to navigate throughout the POIs.
This tool is required for the #SagaOfTheRuckers navigator challenge.
Tools: #TurfJs #Leaflet #OpenStreetMap #WebDev
For those who use the Turf.js JavaScript library for GIS/mapping work. Turf 7.2.0 has been released, which fixes a lot of edge case bugs by replacing their `polygon-clippling` dependency with `polyclip-ts`.
A modular geospatial engine written in JavaScript and…
GitHubI was helping an #UrbanPlanning friend with some spatial analysis with #QGIS but the project seemed to be running out of her 8GB memory.
I advised a #FrameworkLaptop with more memory. She got the DIY option, which lead her to consider her OS choice, which lead her try #Linux (#Ubuntu), which is what she installed after testing it.
Now we'll get back on track using #QGIS / #Docker / #Valhalla / #TurfJS to explore some spatial analysis ideas.
I've now published a write-up and the source code for how I calculated a connectivity rank which could be used to help prioritize how a bike network is built out based how segments would improve connections with the existing network.
https://mark.stosberg.com/bike-network-connectivity-rank/?ref=mastodon
Thanks to all the open source mapping projects that helped make this possible, including #qgis #valhalla #josm and #turfjs. And yes, I used JavaScript for this.
Feedback, improvements welcome!
Currently waiting on my old laptop to merge 3,476 isochrone polygons into a single MultiPolygon, that it doesn't crash part way through.
#turfjs does crash in cases like this, so I'm using `polyclip-ts`.
Another project I'd like to get to is submitting a pull request to the Turf.js project to switch to using polyclip-ts internally, so it doens't crash either. Discussion about this spread across a few issues. One of them is here:
https://github.com/Turfjs/turf/issues/2409#issuecomment-1662873720
1,500 polygons left to merge...
Using turf 6.5.0 I get an odd error in a very specific…
github.com Downgrading @turf/boolean-intersects to 6.5.0 appears to resolve the issue. Perhaps if I have time I can circle back later and see about a patch to fix that regression.
https://github.com/Turfjs/turf/issues/2585#issuecomment-2207850688
The problem occurs in v7 alpha versions, in version…
github.com@samfirke @spatialThinkLab I can't confirm. I can't videos from the 2023 conference at least.
Besides the source code I linked above, I also have a blog post about sidewalk priority mapping:
https://mark.stosberg.com/how-to-create-a-heatmap-sidewalk-location-priority/
Your city has an incomplete sidewalk network. The budget…
mark.stosberg.comv3.0 of my "Walk Potential" software has been released. This an #UrbanPlanning #mapping tool used in planning to quantify the number of "interesting" places nearby to walk. Useful metric for demand to fix sidewalk network gaps.
Release notes: https://gitlab.com/markstos/walk-potential/-/releases/v3.0.0
Docs: https://gitlab.com/markstos/walk-potential/-/blob/main/README.md
First reply with a boundary polygon for their city wins free Walk Potential analysis for that city.
#gis #BloomingtonIN #OpenStreetMap #OpenTripPlanner #TurfJS
Example Walk Potential Heatmap:
And here's the list!
General use tools:
Web scraping tools
1. #p-queue
2. #cheerio
3. #puppeteer
Geospatial tools
1. #mapshaper
2. #turfjs
3. #qgis
Website tools
1. #sveltekit
Tools that are also companies
1. @observablehq
2. #Github actions
3. #netlify
先輩に捧げる全国の飛び地リストを作る(市区町村編) by amay077 https://qiita.com/amay077/items/2c4d2234b7f8b0e11f4b #Qiita #JavaScript #geo #map #TypeScript #Turfjs
先輩が「飛び地を訪れる」のが趣味[^1] とのことなので、全国の飛び地を調べてみました。 「飛び地のまとめサイト」なんかも既にありますが、せっかく国土地理院さんが協力されているので、ここでは国土地理院が提供する地図データを使って飛び地...
qiita.com