guifi.net:desarrollo_web:instalacion
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| guifi.net:desarrollo_web:instalacion [2012/02/11 18:48] – jose | guifi.net:desarrollo_web:instalacion [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| Copiar los mapas:\\ | Copiar los mapas:\\ | ||
| - | En el proyecto guifimaps no hay carpeta data. La creamos primero | + | En el proyecto guifimaps no hay carpeta data. La creamos primero |
| + | Instalamos el paquete gdal-bin | ||
| - | Añadir al cron: | + | Crear el siguiente fichero para que funcione el comando: |
| - | 3, | + | php refresh.php |
| + | touch / | ||
| + | |||
| + | **Añadir al cron:**\\ | ||
| + | 3, | ||
| + | |||
| + | Vamos a / | ||
| + | |||
| + | Creamos la carpeta data en dos sitios: | ||
| + | / | ||
| + | / | ||
| + | |||
| + | Descargamos los ficheros: | ||
| + | wget http:// | ||
| + | wget http:// | ||
| + | |||
| + | cd / | ||
| + | |||
| + | Copiamos el fichero binario de mapserver: | ||
| + | |||
| + | # cp / | ||
| + | |||
| + | Añadimos al virtualhost: | ||
| + | ScriptAlias /cgi-bin/ "/ | ||
| + | |||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | El usuario administrador será " | ||
| + | |||
| + | |||
| + | ====== Modificación opciones mapa ====== | ||
| + | Para que funcione, he descargado GMap.map de producción de: | ||
| + | http:// | ||
| + | Descargado también: | ||
| + | http:// | ||
| + | y le quitamos la linea 16 | ||
| + | |||
| + | He creado el fichero vacio web.html: | ||
| + | / | ||
| + | He tenido que crear la carpeta: | ||
| + | /tmp/ms_tmp | ||
| + | |||
| + | |||
| + | |||
| + | En ca/ | ||
| + | |||
| + | URL for WMS service: \\ | ||
| + | http:// | ||
| + | |||
| + | URL for maps module: \\ | ||
| + | http:// | ||
| + | |||
| + | Cambiar por las locales | ||
| + | |||
| + | |||
| + | ====== Google maps key ====== | ||
| + | http:// | ||
| + | |||
| + | ABQIAAAAc_9onakTMYFPkm8AOLxVtxRB-teqlm_auOpyOeRPFLJzLncjFhRxnAPMceDQc12XIBzD6KSVU0QFPg | ||
| + | |||
| + | Se cambia aquí | ||
| + | http:// | ||
| + | |||
| + | ====== Para que se vean las capas ====== | ||
| + | Si abrimos la página de maps con firebug, veremos que hace llamadas a urls del tipo: | ||
| + | http:// | ||
| + | Si las lanzamos individualmente veremos que da el error: | ||
| + | |||
| + | < | ||
| + | <?xml version=' | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | msWMSDispatch(): | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Puede ser por la versión de mapserv. En el fichero GMap.map en el apartado WEB METADATA tenemos que añadir la linea: | ||
| + | OWS_ENABLE_REQUEST " | ||
| + | Quedará mas o menos así: | ||
| + | |||
| + | < | ||
| + | WEB | ||
| + | TEMPLATE " | ||
| + | IMAGEPATH "/ | ||
| + | IMAGEURL "/ | ||
| + | # | ||
| + | METADATA | ||
| + | OWS_ENABLE_REQUEST " | ||
| + | WMS_TITLE "Nodes GUIFI.NET" | ||
| + | WMS_ABSTRACT " | ||
| + | WMS_FEATURE_INFO_MIME_TYPE | ||
| + | WMS_ONLINERESOURCE " | ||
| + | WMS_SRS " | ||
| + | END | ||
| + | # | ||
| + | END | ||
| + | </ | ||
guifi.net/desarrollo_web/instalacion.1328986136.txt.gz · Last modified: (external edit)
