mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

582
comptes actifs

#osmnx

1 message1 participant0 message aujourd’hui

1/ I've posted this kind of thing before: a flight of steps that is not tagged as steps in OSM.

But this time is different. This time, I didn't find the steps by randomly walking around Malaga. This time, I had A System.

With the help of the OSMnx package and IGN elevation data, I was able to estimate gradients of street segments in OSM data. The example shows one barrio (Maqueda) that has a flat eastern part, and a western part built on both sides of a ridge.

Suite du fil

6/ If anyone is interested in the technicalities, I got these results using the OSMnx Python package.

The tricky part was working out exactly which digital terrain model files I needed to download from the IGN website. I actually did this for an unrelated reason and nerd-sniped myself into this side quest.

The code is a straightforward adaptation of the very good OSMnx examples (especially example 12). But it's here if anyone wants to try something similar:
codeberg.org/linesinalandscape

Carte résumé du dépôt linesinalandscape/my-osmnx-scripts
Codeberg.orgmy-osmnx-scriptsSome Python scripts I use with OpenStreetMap data and the OSMnx library

I recently moved house, so I didn’t have time to take part in #30DayMapChallenge in November. Now that I’m getting settled, I want to start exploring my new neighbourhood and get back to mapping.

So here is Day 1 - Points showing council maintained trees in Abbey Wood, southeast London. 🌳 🗺️

Made in #python #matplotlib. Basemap data from #OpenStreetMap via #OSMnx (finally updated to v2.0). Tree data for London is available in the London Datastore.

🔗 Code: github.com/Lisa-Ho/30-day-map-

Croissant Distribution🥐 📊

or, where am I most likely to have my next croissant, assuming (something something) independence from my previous croissant. 🥐^k * e^(-🥐) / k!
--
2d kernel density estimation of the location of bakeries (blue) and farms (red) across France.

Locations taken from OpenStreetMap (considered paying attention to the size of the farm, but didn't), with #osmnx & plotted with #matplotlib & #seaborn. font: Borel, by Rosalie Wagner.

#30DayMapChallenge Day 2: Lines

Despite my recent absolute failure with #LazyMaston, here we go again:

Dear toot-pals, where can I find wholesome learning materials on #matplotlib and/or #maps /#cartography / #geodataviz in #Python?

I've been playing with #OpenStreetMaps via #osmnx, which is awesome , but I struggle with simple stuff like adding a bunch of places as markers. Everything looks a bit like the owl drawing meme, either showing something too easy and useless, or something too advanced and also useless or beyond my comprehension. Maybe some other Python tools?
(I know about Marcelo's fabulous PrettyMaps but it is not exactly a viz tool)

For those interested in such things, here is a map of "European" current rail-electrification based on @openstreetmap tagged data

Electrified track is red, all other track in black

Developed in @python using #OSMnx to wrangle the data and visualised in @qgis

Update this is an OLE map

For true connoisseurs of the art please note, this makes a distinction between voltage, frequency, and type (OLE/third-rail/fourth-rail)