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 19:05] – jose | guifi.net:desarrollo_web:instalacion [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 38: | Line 38: | ||
| En el proyecto guifimaps no hay carpeta data. La creamos primero dentro de la carpeta guifimaps\\ | En el proyecto guifimaps no hay carpeta data. La creamos primero dentro de la carpeta guifimaps\\ | ||
| Instalamos el paquete gdal-bin | Instalamos el paquete gdal-bin | ||
| + | |||
| + | Crear el siguiente fichero para que funcione el comando: | ||
| + | php refresh.php | ||
| + | |||
| + | touch / | ||
| **Añadir al cron:**\\ | **Añadir al cron:**\\ | ||
| 3, | 3, | ||
| - | < | + | Vamos a / |
| - | donquixot:/ | + | |
| - | FAILURE: | + | Creamos la carpeta data en dos sitios: |
| - | Unable to open datasource `dlinks.gml' | + | / |
| - | -> ESRI Shapefile | + | / |
| - | -> MapInfo File | + | |
| - | -> UK .NTF | + | Descargamos los ficheros: |
| - | -> SDTS | + | wget http:// |
| - | -> TIGER | + | wget http:// |
| - | -> S57 | + | |
| - | -> DGN | + | |
| - | -> VRT | + | |
| - | -> REC | + | |
| - | -> Memory | + | |
| - | -> BNA | + | |
| - | -> CSV | + | |
| - | -> GML | + | |
| - | -> GPX | + | |
| - | -> KML | + | |
| - | -> GeoJSON | + | |
| - | -> Interlis 1 | + | |
| - | -> Interlis 2 | + | |
| - | -> GMT | + | |
| - | -> SQLite | + | |
| - | -> DODS | + | |
| - | -> ODBC | + | |
| - | -> PGeo | + | |
| - | -> OGDI | + | |
| - | -> PostgreSQL | + | |
| - | -> MySQL | + | |
| - | -> PCIDSK | + | |
| - | -> XPlane | + | |
| - | -> AVCBin | + | |
| - | -> AVCE00 | + | |
| - | -> DXF | + | |
| - | -> Geoconcept | + | |
| - | -> GeoRSS | + | |
| - | -> GPSTrackMaker | + | |
| - | -> VFK | + | |
| - | FAILURE: | + | |
| - | Unable to open datasource `dnodes.gml' | + | |
| - | -> ESRI Shapefile | + | |
| - | -> MapInfo File | + | |
| - | -> UK .NTF | + | |
| - | -> SDTS | + | |
| - | -> TIGER | + | |
| - | -> S57 | + | |
| - | -> DGN | + | |
| - | -> VRT | + | |
| - | -> REC | + | |
| - | -> Memory | + | |
| - | -> BNA | + | |
| - | -> CSV | + | |
| - | -> GML | + | |
| - | -> GPX | + | |
| - | -> KML | + | |
| - | -> GeoJSON | + | |
| - | -> Interlis 1 | + | |
| - | -> Interlis 2 | + | |
| - | -> GMT | + | |
| - | -> SQLite | + | |
| - | -> DODS | + | |
| - | -> ODBC | + | |
| - | -> PGeo | + | |
| - | -> OGDI | + | |
| - | -> PostgreSQL | + | |
| - | -> MySQL | + | |
| - | -> PCIDSK | + | |
| - | -> XPlane | + | |
| - | -> AVCBin | + | |
| - | -> AVCE00 | + | |
| - | -> DXF | + | |
| - | -> Geoconcept | + | |
| - | -> GeoRSS | + | |
| - | -> GPSTrackMaker | + | |
| - | -> VFK | + | |
| - | </ | + | |
| Copiamos el fichero binario de mapserver: | Copiamos el fichero binario de mapserver: | ||
| Line 124: | Line 63: | ||
| # cp / | # 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.1328987141.txt.gz · Last modified: (external edit)
