User Tools

Site Tools


guifi.net:desarrollo_web:instalacion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
guifi.net:desarrollo_web:instalacion [2012/02/12 14:57] joseguifi.net:desarrollo_web:instalacion [2012/02/12 23:52] jose
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 /tmp/last_update
  
 **Añadir al cron:**\\ **Añadir al cron:**\\
   3,13,23,33,43,53 * * * * cd /mnt/raid/www/public/http/guifimaps; php refresh.php > /dev/null 2>&1; cd data; rm -rf dlinks/*; rm -rf dnodes/*; ogr2ogr -f "ESRI Shapefile" dlinks dlinks.gml; ogr2ogr -f "ESRI Shapefile" dnodes dnodes.gml   3,13,23,33,43,53 * * * * cd /mnt/raid/www/public/http/guifimaps; php refresh.php > /dev/null 2>&1; cd data; rm -rf dlinks/*; rm -rf dnodes/*; ogr2ogr -f "ESRI Shapefile" dlinks dlinks.gml; ogr2ogr -f "ESRI Shapefile" dnodes dnodes.gml
  
-<code> +Vamos a /mnt/raid/www/public/http/guifimaps 
-donquixot:/mnt/raid/www/public/http/guifimaps/datacd /mnt/raid/www/public/http/guifimaps; php refresh.php > /dev/null 2>&1; cd data; rm -rf dlinks/*; rm -rf dnodes/*; ogr2ogr -f "ESRI Shapefile" dlinks dlinks.gml; ogr2ogr -f "ESRI Shapefile" dnodes dnodes.gml + 
-FAILURE: +Creamos la carpeta data en dos sitios: 
-Unable to open datasource `dlinks.gml' with the following drivers. +/mnt/raid/www/public/http/guifimaps/data 
-  -> ESRI Shapefile +/mnt/raid/www/public/http/data 
-  -> MapInfo File + 
-  -> UK .NTF +Descargamos los ficheros: 
-  -> SDTS +  wget http://maps.guifi.net/data/dnodes.gml 
-  -> TIGER +  wget http://maps.guifi.net/data/dlinks.gml 
-  -> S57 + 
-  -> DGN +  cd /mnt/raid/www/public/http/guifimaps; php refresh.php > /dev/null 2>&1; cd data; rm -rf dlinks/*; rm -rf dnodes/*; ogr2ogr -f "ESRI Shapefile" dlinks dlinks.gml; ogr2ogr -f "ESRI Shapefile" dnodes dnodes.gml
-  -> 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' with the following drivers. +
-  -> 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 +
-</code>+
  
 Copiamos el fichero binario de mapserver: Copiamos el fichero binario de mapserver:
Line 140: Line 79:
 Descargado también: Descargado también:
   http://maps.guifi.net/guifi_symbols.sym   http://maps.guifi.net/guifi_symbols.sym
 +y le quitamos la linea 16
 +
 He creado el fichero vacio web.html: He creado el fichero vacio web.html:
   /mnt/raid/www/public/http/guifimaps/web.html   /mnt/raid/www/public/http/guifimaps/web.html
guifi.net/desarrollo_web/instalacion.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1