poniendo a drupal en el mapa
DESCRIPTION
Drupal Camp Spain 2012 ----------------------------------------------------------------------------------------------------------------------------- Poniendo a Drupal en el mapa o poniendo el mapa en Drupal... ¿Es Drupal un GeoCMS? ¿Podría llegar a serlo con los módulos actuales? Pero ¿qué es un GeoCMS? Mostrar un pequeño mapa en nuestra web con Drupal no es tan complicado. Incluso podemos ir más allá y geoposicionar alguno de nuestros nodos, mostrarlos en el mapa e interactuar con ellos. ¿Pero esto escala? ¿y si la información geográfica contenida en el nodo está formada por polígonos o líneas con cientos de puntos? Intentaremos dar respuesta a estas preguntas y veremos qué opciones nos ofrece Drupal para el mundo de los Sistemas de Información Geográfica (GIS), cuánto camino tiene recorrido para llegar a ser un GeoCMS y cuánto le queda por recorrer. Analizaremos la distribución Cartaro, aún en fase de desarrollo, que pretende aprovechar las ventajas de esta integración de forma sencilla para cualquier usuario.TRANSCRIPT
![Page 1: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/1.jpg)
Poniendo a Drupal en el mapa
... o poniendo el mapa en Drupal.
Pablo López@plopesc
Eduardo Riesco@azuledu
![Page 2: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/2.jpg)
![Page 3: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/3.jpg)
Salida
![Page 4: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/4.jpg)
![Page 5: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/5.jpg)
![Page 6: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/6.jpg)
![Page 7: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/7.jpg)
![Page 8: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/8.jpg)
![Page 9: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/9.jpg)
![Page 10: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/10.jpg)
By DevelopmentSeed
![Page 11: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/11.jpg)
Sobre todo...
Experiencia de usuario
● Velocidad
● Estética
● Interactividad
![Page 12: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/12.jpg)
Actores
● Clientes de mapas
● Servidores de mapas
● Almacenes (Datastores)
![Page 13: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/13.jpg)
Mapa embebido
![Page 14: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/14.jpg)
Mapa embebido
<iframe width="425" scrolling="no" height="350" frameborder="0" src="http://maps.google.es/maps?f=q&hl=es&geocode=&q=Escuela+Universitaria+de+Inform%C3%A1tica+-+UPM+%4040.3897,-3.62790&ie=UTF8&
ll=40.404739,-3.61948&
spn=0.064195,0.11673&z=13&iwloc=addr&om=1&
output=embed&
s=AARTsJoFRdmAOmL4LgxoTQpVmHXAbR9PRg"
marginwidth="0" marginheight="0"
title="Google Maps muestra la situación de la Escuela Universitaria de Informática">
![Page 15: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/15.jpg)
Location + GMap
Almacén: LocationCliente: GmapServidor: Views
● Puntos● Google Maps● Almacenamiento: x,y
![Page 16: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/16.jpg)
GeoField + OpenLayers
Almacén: GeoFieldCliente: OpenLayersServidor: Views
● Geometrías● Almacenamiento: WKT
![Page 17: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/17.jpg)
http://drupal.org/node/1807358 by @dasjo
![Page 18: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/18.jpg)
Actores
● Clientes de mapas
● Servidores de mapas
● Almacenes (Datastores)
![Page 19: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/19.jpg)
Clientes
Acceso a datos geográficos.
● Renderiza● Aplica estilo
Tipos:● HTML (mapa embebido)● Dedicado (JavaScript)
○ OpenLayers○ Leaflet○ Google Maps
![Page 20: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/20.jpg)
Servidores de mapas
Ofrece datos geográficos
● Renderiza● Aplica estilo● Servicios Web OGC
![Page 21: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/21.jpg)
Almacenamiento
La información geográfica contiene tanto una componente temática como una espacial.
Problema: manejo de datos:● Almacenamiento● Operaciones (consultas espaciales)
![Page 22: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/22.jpg)
Almacenamiento: Ficheros
Formatos estándar:● GML, KML, ShapeFile, MBTiles, etc.
Drupal: Se importan a bbdd (feeds)
![Page 23: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/23.jpg)
Almacenamiento: Bases de datos relacionales
● Tipos de datos: ○ Los de la bbdd (tuplas,WKT)
● Operaciones: ○ SQL no espacial○ Implementadas en la aplicación
![Page 24: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/24.jpg)
Almacenamiento: Bases de datos espaciales
Permiten definir nuevos tipos de objetos y operaciones.
● Almacenamiento: WKB● Consultas espaciales● Índices espaciales
Ej: PostGIS, Oracle Spatial, etc.
![Page 25: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/25.jpg)
http://drupal.org/node/1807358 by @dasjo
![Page 26: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/26.jpg)
Las demos en directo nunca funcionan...
Demo
![Page 27: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/27.jpg)
PostGIS + OpenLayers
Almacén: PostGISCliente: OpenLayersServidor: Views
● Geometrías● Almacenamiento: WKB
![Page 28: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/28.jpg)
PostGIS + OpenLayers + GeoServer
Almacén: PostGISCliente: OpenLayersServidor: Geoserver
● Geometrías● Almacenamiento: WKB● Consultas espaciales● Caché
![Page 29: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/29.jpg)
PostGIS + OpenLayers + GeoServer
![Page 30: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/30.jpg)
A ver si ahora no se rompe...
Demo
![Page 31: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/31.jpg)
Almacén Cliente ServidorLocation GMap Views
GeoField OpenLayers Views
PostGIS OpenLayers GeoServer
Resumiendo
![Page 32: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/32.jpg)
PostGIS + GeoServer + OpenLayers + Drupal
=Cartaro
![Page 33: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/33.jpg)
Cartaro
● Profile Drupal● Desarrollado por geOps● Hosting● Módulos PostGIS y GeoServer● OpenLayers Editor
![Page 34: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/34.jpg)
No lo cuento, lo hago.
Demo
![Page 35: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/35.jpg)
Conclusiones
● GeoDrupal?
● Moscas y cañones○ Escalado○ Almacenamiento○ Renderizado
● Cartaro
![Page 36: Poniendo a drupal en el mapa](https://reader034.vdocuments.pub/reader034/viewer/2022052507/5585b1fcd8b42a695a8b4588/html5/thumbnails/36.jpg)
By Justin Miller
Keep on mapping!