openstreetmap (en encuentro de cartografía ciudadana)
DESCRIPTION
TRANSCRIPT
OpenStreetMap
Iván Sánchez Ortega<[email protected]> OpenStreetMap España
OpenStreetMap es...
GRANDE
OpenStreetMap es...
OpenStreetMap es...● 5 años● 393228695 puntos● 150000+ usuarios● 400+ profesionales
1/4: El porqué de OSM
Platón
http://en.wikipedia.org/wiki/Plato
Mundo de las ideas
Alegoría de la caverna
(vídeo)
http://platosallegory.com
Platón
Mapas
Platón
Mapas web
“Están sacando losmapas del cajón”
“Puedo ver mapas gratis”
“Puedo usar mapas gratis”
“Puedo hacer aplicaciones con sus
mapas”
http://www.flickr.com/photos/paulthewineguy/2329382156/
“A pessimist is an optimist with experience.”
-- François Roland Truffaut
“Está sin actualizar”
“Está incorrecto”
“El estilo es feo y no lo puedo cambiar”
“La API no medeja hacer X”
http://www.flickr.com/photos/paulthewineguy/2329382156/
Licencia
Puedo hacer aplicaciones con sus mapas...
... bajo sus condiciones
Puedo hacer aplicaciones con sus mapas...
● Sólo sin ánimo de lucro● Sólo si nos dices quién eres● Sólo si pongo publicidad en tu web● Sólo si lo programas en X lenguaje● Sólo si sopla viento de levante y es jueves
Conclusión:
¡Queremos datos!
¡Queremos todos los datos para hacer lo que
sea!
(para que quede claro)
¡Queremos todos los
datos para hacer lo que
sea!
No lo digo sólo yo...
Schuyler Erie
http://www.vimeo.com/1841244
http://www.vimeo.com/1841244
http://www.vimeo.com/1841244
http://www.vimeo.com/1841244
http://www.vimeo.com/1841244
Tim-Berners Lee
http://en.wikipedia.org/wiki/Tim-Berners_Lee
http://www.ted.com/index.php/talks/tim_berners_lee_on_the_next_web.html
http://www.ted.com/index.php/talks/tim_berners_lee_on_the_next_web.html
http://www.ted.com/index.php/talks/tim_berners_lee_on_the_next_web.html
http://www.ted.com/index.php/talks/tim_berners_lee_on_the_next_web.html
v
=
=
=
→
→
→
{{taxobox|name = Pleurodema borellii|status = LC|status_system = IUCN3.1|regnum = [[Animalia]]|phylum = [[Chordata]]|classis = [[Amphibia]]}}'''''Pleurodema borellii''''' is a species of [[frog]] in the [[Leptodactylidae]] family.
<node id="206358572" lat="37.3905641" lon="-5.9882308" timestamp="2009-02-20T17:16:48+00:00"/><way id="22744006" visible="true" timestamp="2008-10-31T13:50:26+00:00"> <nd ref="206358593"/> <nd ref="206358594"/> <nd ref="206358595"/> <nd ref="206358596"/> <tag k="highway" v="residential"/>
static intread_fw (struct usb_dev_handle *dev, char *filename, long off){
int fd, len, req, llen, res, ret = -1;
unsigned char data[4], rdata[1024], *ptr;
v<
2/4: La tecnología de OSM
PostgreSQL
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
API 0.6Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosis
Potlatch JOSMScripts de
importación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
tiles
ETCÉTERA
ETCÉTERA
servidortanhgo
MySQLclientes
tiles@home
PostgreSQL
Planet dump,Planet diffs
API 0.6
osmosis
Potlatch JOSM Scripts deimportación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
ETCÉTERA
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
PostgreSQL
Planet dump,Planet diffs
API 0.6
osmosis
Potlatch JOSM Scripts deimportación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
ETCÉTERA
PostgreSQL
Planet dump,Planet diffs
API 0.6
osmosis
Potlatch JOSM Scripts deimportación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
ETCÉTERA
NodosWays
Relaciones
<node id='30894545' lat='41.9797918' lon='2.8201551'><tag k='place' v='town' /> <tag k='name' v='Girona' /> <tag k='name:es' v='Gerona' /> <tag k='is_in' v='Geronès, Girona, Catalonia, Spain, EU' /> <tag k='population' v='92186' /> <tag k='source:population' v='BOE REAL DECRETO 1683/2007, de 14 de diciembre' /></node>
NodoPar de coordenadas, y etiquetas
<way id='23151177'> <nd ref='250101455' /> <nd ref='250101457' />.... <nd ref='250671038' /> <nd ref='250671042' /> <tag k='created_by' v='JOSM' /> <tag k='highway' v='road' /> <tag k='name' v='Carrer de Industria' /></way>
WayConjunto ordenado de nodos, y etiquetas
<relation id='48044'> <member type='way' ref='1216' role='' /> [...] <member type='way' ref='3047850' role='' /> <member type='way' ref='3047851' role='' /> <tag k='ref' v='E 15' /> <tag k='route' v='road' /> <tag k='type' v='route' /> <tag k='int_ref' v='E 15' /></relation>
RelaciónConjunto de otros nodos, ways y/o relaciones con roles, y
etiquetas
<tag k='highway' v='residential' /><tag k='junction' v='roundabout' /><tag k='barrier' v='bollard' /><tag k='oneway' v='yes' /><tag k='landuse' v='military' /><tag k='place' v='town' /><tag k='name' v='Carrer de Industria' /><tag k='population' v='92186' /><tag k='ref' v='E 15' />
EtiquetaPar clave-valor arbitrario
(Aunque la mayoría se usa por consenso)
API● Descargar un nodo (por ID)● Descargar un way (por ID)● Descargar una relación (por ID)● Descargar todos los datos de un área● Subir nuevos elementos (nodo/way/rel)● Abrir/cerrar changesets● (etc)
PostgreSQL
Planet dump,Planet diffs
API 0.6
osmosis
Potlatch JOSM Scripts deimportación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
ETCÉTERA
PostgreSQL
Planet dump,Planet diffs
API 0.6
osmosis
Potlatch JOSM Scripts deimportación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
ETCÉTERA
Mapping Parties
Mapping Parties=
Frikis + GPS + cerveza
FRIKIS
GPS CERVEZA
(vídeo mapping party)
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
planet.osm.bz26.3 GB
Planet dump: .osm.bz2(cada miércoles)
Planet diffs: .osmc.gz(cada día/hora/minuto)
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
256 px
256 p
x
(z=0, x=0, y=0)
(z=1, x=0, y=0) (z=1, x=1, y=0)
(z=1, x=0, y=1) (z=1, x=1, y=1)
http://tile.openstreetmap.org/12/2047/1362.png
zoom x y
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosistiles
ETCÉTERA servidortanhgo
MySQLclientes
tiles@home
PostgreSQL
Planet dump,Planet diffs
PostGIS
OpenLayers
Hoja deestilos deMapnik
API 0.6Mapnik +mod_tile mod_tile
cache
osm2pgsql
osmosis
Potlatch JOSMScripts de
importación
GeodatostrazasGPX
ServiciosWMS
Foto aéreaYahoo!
tiles
ETCÉTERA
ETCÉTERA
servidortanhgo
MySQLclientes
tiles@home
3/4: Cosas que se hacen
con OSM
TopOSM
Trafficman (Android)
trackmyjourney
GpsMID
X-Plane
OSMlive
MapAnalyst
OpenStreetBugs
CENSURADO
Layar
4/4: Lugares interesantes
(This slide intentionally left blank)
West Bank Mappers
(Vídeo ITOworld “a year of edits”)
¿?