User:Simone

From OpenStreetMap Wiki
Jump to navigation Jump to search

Contact Info

Simone Cortesi


Simone Cortesi

I served Board Member for the OpenStreetMap Foundation. I was elected during the 2009 election.

You can contact me if you need to talk about OpenStreetMap.

  • mail: simone (at) osmfoundation (dot) org
  • skype: simone.cortesi
  • Google Talk: simone (at) cortesi (dot) com
  • Jabber: simone (at) jabber (dot) at
  • IRC (@irc.oftc.net): Simone (or Simone1)
  • location: near Pavia, Italy
  • phone: by request


About GPS and me

My fascination for GPS technologies goes back to 1994 when I first heard about the constellation of satellites orbiting Earth reading the italian edition of Scientific American, I was really amazed by the idea of a "beam" coming from outer space which would let me know my own position on planet Earth. What fascinates me is the ability to convert something real as my physical presence in a given place, to a number pair representing that location.

Then, again, came in the idea of being able to "tag" objects in real world, like Neal Stephenson in its article on WIRED.

Then in 1998 I finally bought a Garmin e-map (now discontinued, which is the predecessor of eTrex Legend CX), a unit that I still own and use for wardriving. Then I did buy a Tom Tom 300 which I use with NMEAlogger, a couple of MTK I-blue 747, and a bluetooth mouse.

About OSM and me

I've been involved in OpenStreetMap since early 2005, and participated within the project since its inception. Apart from mapping my own town, I've been helping other OpenStreetMappers in the online mailing lists, IRC and forums since then.

I first heard about openstreetmap reading an NTK newsletter back in 2005. Contributed not that much to it, done some work on the comunity.

In 2008 I was one of the speakers at the annual State Of The Map conference, presenting the italian efforts in mapping our Country. My slides are available on Slideshare

I did stand for election as board member at this year OSMF elections, but was not succesfull. Still, I've granted the Foundation my will to help out on various matters and thus I'm part of the OpenStreetMap Foundation Management Team, and now I'm dealing with Local Chapters

In july 2009 presented again in Amsterdam for The State of the Map, again talking about Italy.

Data

Italian Borders

I'm the prime guilty for the import of the italian internal borders between municipalities, provinces, regions, and country, Bulk_import.pl was my friend. Additionally I convinced the public sector of these administrations to license the data to openstreetmap.

Friuli Venezia Giulia

Data were granted at the end of december 2008, still being imported.

Veneto

On 2009.01.23 the OSM community has been granted derivation right for the Regional Technical Map, imorteda data will bear this tag:

source=Regione_del_Veneto_LR28_16.7.1976_Formazione_CTR_auth_39164-5700-1100_23.01.2009

Lombardy

Data were granted in april 2009, still being imported.

Todo list

Here is my todo list for data requests in Italy:

* google transit cities if they gave data to them, why not OSM?
* Puglia, try to find out what's wrong with them.
* CAI
* AGEA
* catasto
* Compagnia generale riprese aeree - BLOM
* microsoft
* http://www.dati.piemonte.it/cms/ - piemonte

Risorse per i mappatori

Da tenere e ricontrollare

* http://wiki.openstreetmap.org/index.php/Osmdiff
* http://wrp.geothings.net/
* http://johnmckerrell.com/map/
* http://wiki.openstreetmap.org/index.php/Party_render
* http://code.google.com/p/codeswarm/
* http://wmaz.math.uni-wuppertal.de/olbricht/osm/
* http://redmine.yellowbkpk.com/projects/list_files/geo
* http://betaplace.emaitie.de/webapps.relation-analyzer/
* data consistency checks
* http://crschmidt.net/blog/354/polyshp2osm/ (poly2osm)
* lunghezza dati OSM
* unmapped places
* quadtile
* georeference video
* education sarah
* vandalism script
* parser
* import differenziale francese - postgres
* rendering nordic ski - [3]
* foldable map
* osm query through forms
* openjump osm sqlitespatial
* kosova slicer
* [4]
* http://openviewproject.org/
* http://www.diy-streetview.org/
* http://3liz.fr/public/osmtransport/index.php?country=Italy&location=Milano
* http://poitools.openstreetmap.de/map/#lon=9.18878632;lat=45.46585473;zoom=15;layer=Mapnik;overlays[restaurants]=1;overlays[fast%20food]=1;overlays[cafes]=1;overlays[pubs]=1;overlays[bars]=1;overlays[bakerys]=1;overlays[museums]=1;overlays[libraries]=1;overlays[wikipedia%20articles]=1;overlays[websites]=1
* http://matt.dev.openstreetmap.org/dupe_nodes/
* easy map builder - gpx - styles
* http://docs.google.com/present/edit?id=0AYQovvVR7xyxZGc2NnAzc3dfMTk3Z3doMmJkYzk&hl=en
* http://www.geotribu.net/node/260
* http://www.slideshare.net/ivansanchezortega/openstreetmap-en-zzzincodp#54
* geoform to address google improper use
* hack gamin nuvi gpx tracks

http://osmembrane.de/ http://wiki.openstreetmap.org/wiki/OSM2World


Heatmap

* http://wiki.openstreetmap.org/wiki/Tah-heatmap
* http://tile.openstreetmap.org/tilecounter3.pl
* http://tile.openstreetmap.org/plot2.txt

Stili

* http://wiki.openstreetmap.org/wiki/Mapnik_Example
* http://wiki.openstreetmap.org/wiki/Cascadenik
* http://teczno.com/cascadenik-openstreetmap-II/
* http://developmentseed.org/blog/2010/mar/23/speeding-openstreetmap-based-map-development-osm-bright-template
* http://wiki.openstreetmap.org/wiki/User:Planemad/neutralmap
android

http://gpslogger.codeplex.com/ http://code.google.com/p/osmtracker-android/

comandi

per selezionare nodi senza tag in JOSM type:node untagged -child


comandi ogr2ogr

$ ogr2ogr -f csv /dev/stdout liechtenstein-latest.osm.pbf points | head

osm_id,place,all_tags 26860698,,"""name""=>""Mittagspitze"",""tourism""=>""camp_site""" 26863444,,"""name""=>""Kuhgrat"",""natural""=>""peak""" 32011241,suburb,"""name""=>""Oberplanken"",""place""=>""suburb""" 32020993,,"""railway""=>""level_crossing""" 49872384,,"""highway""=>""crossing""" 49872651,,"""information""=>""guidepost"",""name""=>""Schloss Vaduz"",""tourism""=>""information""" 49939577,,"""highway""=>""crossing""" 49939622,,"""highway""=>""crossing""" 50049362,,"""highway""=>""crossing""" 50069907,,"""amenity""=>""parking""" (...)

[0] http://www.gdal.org/ogr_utilities.html

[1]

[points]

  1. common attributes

osm_id=yes

  1. keys to report as OGR fields

attributes=place

  1. keys that, alone, are not significant enough to report a node as a OGR point

unsignificant=created_by,converted_by,source,time,ele,attribution

  1. keys that should NOT be reported in the "other_tags" field

ignore=created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME

  1. uncomment to avoid creation of "other_tags" field
  2. other_tags=no
  1. uncomment to create "all_tags" field. "all_tags" and "other_tags" are exclusive

all_tags=yes

comandi osmarender/osmosis

Di seguito i comandi per la mia macchina UBUNTU utili se si desidera estrarre una porzione di dati osm ad una qualunque data:

Prima si usa osmosis per estrarre dal file planet il poligono o il rettangolo richiesto:

rettangolo

bin/osmosis --read-xml file=planet.osm.bz2 --bounding-box top="45.2235" bottom="45.1472" left="9.1172" right="9.2628" --write-xml file=data.osm

poligono

bin/osmosis --read-xml file=planet-080130.osm.bz2 --bounding-polygon file=points-italy.txt --write-xml file=italy-20080130.osm

Scaricare qui il poligono corrispondente all'Italia.

per renderizzare una mappa a partire dal dato ricavato al punto precedente

xalan -in osm-map-features-z17.xml -out mappa.svg

(io uso xalan, ma xsltproc e xmlstarlet sono equivalenti)

Si converte poi in formato PNG usando inkscape

inkscape -D -e mappa.png mappa.svg

merge

osmosis --rx in1.osm --sort --rx in2.osm --sort --m --wx out.osm

merkaartor extract

In Merkaartor you can draw a way around the area of interest and save it. Then use the tool "osm2poly" from SVN (requires the way to be tagged with polygon_id=1 and polygon_filename=mypoly.poly or so), which will then generate a polygon file that can be used with the Osmosis --bp task.

If you cannot open the country OSM in any editor then you could still open your favourite editor and load a WMS (landsat) background and draw the area on top of that, save as .osm and proceed as above.

---Frederik

MTK- GPS-babel

mtkbabel -s 115200 -l off -f gpsdata -t -w

copia dal dispositivo

mtkbabel -d7 -E

elimina il contenuto del dispositivo

gpsbabel -i gpx -f inputfile -x discard,hdop=4 -x position,distance=5m -x simplify,crosstrack,error=0.001k -x duplicate,location -o gpx -F outputfile

filtro per GPX

GIS

ogr2ogr -f "ESRI Shapefile" -s_srs "EPSG:3395" -t_srs "EPSG:4326" wgs84_shp com2001_s.shp

Opzione che ho provato ad usare per passare dai dati ISTAT a WGS84.

shp2text --gpx # # nome_file

genera GPX



overpass API

bus stops whose line's ref=3

<!--
This shows the whole cycleway and cycleroute network.
-->
<osm-script output="json">
  <!-- get cycle route relations -->

<query type="relation">
      <bbox-query {{bbox}}/>
    <has-kv k="route" v="bus"/>
    <has-kv k="ref" v="3"/>
    <has-kv k="from" v="Montebolone"/>
  
  </query>
<recurse type="relation-node" into="stops"/>
<query type="node">
  <around from="stops" radius="100"/>
  <has-kv k="bus" v="yes"/>
</query>
<print/>

</osm-script>

Statistics

Users on a given area

download an area using WGET and a link you can build here: http://harrywood.co.uk/maps/uixapi/xapi.html then

perl -nle 'print $1 if /user="(.*?)"/' map.osm | sort | uniq -c | sort -n -r

BB

milano

45.5048
9.1196 9.2645
45.4251

Europe -13.5,21,65.4,50.8


Italy

47.2
6.45 18.85
36.3

[bbox=6.45,36.3,18.85,47.2]

Pavia [9.0877533,45.1561377,9.2425919,45.2337999]

Sicilia (border test)

36.979
14.162 15.293
36.628

Tile Informationfreeway

Pavia xy 4304 2940 13
Vernavola xy 17218 11760 15

SHP to OSM + Upload

shp-to-osm

simone@blackmagic:~/Desktop$ java -cp shp-to-osm-0.7.3-jar-with-dependencies.jar Main --shapefile civici_wgs84_OK.shp --osmfile civici --rulesfile rules.txt --outputFormat osm

bulk upload

Uploading files using a wrapper around bulk_import: http://svn.openstreetmap.org/applications/utils/import/bulk_upload_06

 #!/bin/sh
 for i in `ls ed*.osm`
 do
	echo "Uploading OSM file $i ..."
	/usr/bin/python /home/simone/svn.openstreetmap.org/applications/utils/import/bulk_upload_06/bulk_upload.py -i $i -u simone@cortesi.com -p XXX -c "CTRN FVG buildings upload: Regione_Friuli-Venezia-Giulia_17620_2.100_17576 $i"
 done

Badges

OSM Logo This user submits data to OpenStreetMap under the name
simone.

Subversion Logo Simone commits code to OpenStreetMap SVN under the name simone.
Babel user information
it-N Questo utente può contribuire con un livello madrelingua in italiano.
en-4 This user has near native speaker knowledge of English.
de-2 Dieser Benutzer beherrscht Deutsch auf fortgeschrittenem Niveau.
fr-2 Cet utilisateur dispose de connaissances intermédiaires en français.
es-1 Este usuario tiene un conocimiento básico del español.
pt-1 Este utilizador tem um nível básico de português.
Users by language

Public-images-osm logo.svg
I support OSM by being a
member of the
OpenStreetMap Foundation
Do you?

I support the license
upgrade to ODbL v 1.0

ODbL-Supporter.png