OpenStreetMap logo OpenStreetMap

Aubanel's Diary

Recent diary entries

Airports worldwide ?

Posted by Aubanel on 22 March 2011 in English.

Just wanted to share a couple of scripts I have written today, that I do use to retreive osm airport data from a IATA code.



#!/bin/bash

https://wiki.openstreetmap.org/wiki/Tag:EXPECTED_ARGS=1
https://wiki.openstreetmap.org/wiki/Tag:E_BADARGS=65

if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: `basename $0` "
exit $E_BADARGS
fi

https://wiki.openstreetmap.org/wiki/Tag:H=0.1
https://wiki.openstreetmap.org/wiki/Tag:BBOX=$(curl 'nominatim.openstreetmap.org/search?q='${https://wiki.openstreetmap.org/wiki/Tag:1}'&format=xml' | xmlstarlet sel -t -m "/searchresults/place" -v "https://www.openstreetmap.org/user/lon - ${H}" -o "," -v "https://www.openstreetmap.org/user/lat - ${H}" -o "," -v "https://www.openstreetmap.org/user/lon+${H}" -o "," -v "https://www.openstreetmap.org/user/lat+${H}" -n | head -n 1)
curl 'http://jxapi.openstreetmap.org/xapi/api/0.6/*\https://wiki.openstreetmap.org/wiki/Key:[https://wiki.openstreetmap.org/wiki/Tag:aeroway\]\[bbox='${BBOX}'\]' -o ${1}.osm


Simple and efficient, I do love open APIs !
Thank you OSM !
(note : you will need curl and xmlstarlet)

Bitmaps or Vectors for POI icons

Posted by Aubanel on 16 October 2008 in English.

When exporting a mapnik map to SVG or PDF, the POI icons are bitmaps and not vectors. As a result they look blurry when printed at 300dpi. Is this because they are drawn as bitmaps or because of some mapnik limitations involving rasterization of the POI icons ?
If it's just because of the lack of a vector icon set I volonter to fix this problem. Just tell me ...

Cadatre + JOSM

Posted by Aubanel on 9 July 2008 in English.

Essayé cette semaine JOSM avec le plugin WMcadastre pour commencer à mapper Saint Estève (66). Il y a encore du boulot, mais auparavant c'était vide... Vraiment très sympa, voilà qui devrait aider à augmenter très rapidement la couverture OSM en France... Merci à ceux qui on fait ce plugin !

Location: Lotissement La Pierre Droite, Saint-Estève, Perpignan, Pyrénées-Orientales, Occitania, Metropolitan France, 66240, France