http://wiki.openstreetmap.org/wiki/Relation:boundary
Departamento:
Relacion:
type=boundary
admin_level=5
name=depto
is_in:state=provincia
admin_centre=nodo
outer nodos
outer nodos
ejemplo:
http://www.openstreetmap.org/browse/relation/1561865/
jueves, 28 de abril de 2011
viernes, 18 de marzo de 2011
highlight de archivos .tpl en midnight commander
Para ver con colorcitos la sintaxis de los archivos .tpl que usa Smarty / PHP
mcedit /usr/share/mc/syntax
agregar |tpl a la linea donde busca htm|html
mcedit /usr/share/mc/syntax
agregar |tpl a la linea donde busca htm|html
miércoles, 5 de enero de 2011
nuvi tracklog feature
nutrak
http://www.anpo.republika.pl/download.html#nutrak
Convierte online el archivo gps.bin a gpx o kml:
http://www.gpsvisualizer.com/convert?convert_output=gpx
http://www.anpo.republika.pl/download.html#nutrak
Convierte online el archivo gps.bin a gpx o kml:
http://www.gpsvisualizer.com/convert?convert_output=gpx
lunes, 20 de diciembre de 2010
tags de openstreetmap
Algunos tags utiles que no figuran todavia en josm.
amenity=casino (Casino)
amenity=ice_cream (Heladeria)
amenity=swimming_pool (Piscina/Pileta)
amenity=taxi (Agencia de Remis)
landuse=farmland (Se usa para un terreno cultivado,-el cultivo en si-)
landuse=farmyard (terreno donde estan las construcciones necesarias para el cultivo -un granero, la casa del granjero, silos)
landuse=greenhouse_horticulture (Para terrenos de cultivo en Invernadero -como los cultivos de flores-)
landuse=orchard (zona de arboles)
leisure=stadium;owner=* (Estadio)
shop=estate_agent (Inmobiliaria)
shop=fincial (Tarjeta de Crédito)
shop=insurance (Empresa de seguros)
shop=travel_agency (Agencia de viajes)
(Santeria?)
www.openstreetmap.org
amenity=casino (Casino)
amenity=ice_cream (Heladeria)
amenity=swimming_pool (Piscina/Pileta)
amenity=taxi (Agencia de Remis)
landuse=farmland (Se usa para un terreno cultivado,-el cultivo en si-)
landuse=farmyard (terreno donde estan las construcciones necesarias para el cultivo -un granero, la casa del granjero, silos)
landuse=greenhouse_horticulture (Para terrenos de cultivo en Invernadero -como los cultivos de flores-)
landuse=orchard (zona de arboles)
leisure=stadium;owner=* (Estadio)
shop=estate_agent (Inmobiliaria)
shop=fincial (Tarjeta de Crédito)
shop=insurance (Empresa de seguros)
shop=travel_agency (Agencia de viajes)
(Santeria?)
www.openstreetmap.org
viernes, 17 de diciembre de 2010
mcx2gpx
Convierte informacion de calibracion de imagen de un archivo mcx en un mosaico.gpx.
demo:
http://dev.gervan.com.ar/gps/mcx2gpx/mcx2gpx.php
download
php source:
// mcx2gpx
// 2010 Fabian Gervan.
$action=$_GET['action'];
if (!$action) {
echo "MCX2GPX<br>";
echo '<form method=post action="mcx2gpx.php?action=convert">
<textarea name=data cols=90 rows=25>paste here .mcx content</textarea><input type=submit>';
die;
}
if ($action=='convert') {
f_put_contents('1.mcx',$_POST['data']);
}
$gestor = fopen("1.mcx", "r");
if ($gestor) {
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon1=substr($buffer,31,10);
$lat1=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon2=substr($buffer,31,10);
$lat2=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon3=substr($buffer,31,10);
$lat3=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon4=substr($buffer,31,10);
$lat4=substr($buffer,55,10);
fclose($gestor);
header("Content-Type: application/octet-stream; ");
header("Content-Disposition: attachment; filename=\"fagcode".date("Y-m-d_Hi").".gpx\"");
header("Content-Transfer-Encoding: binary");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<gpx
version=\"1.0\"
creator=\"GPSBabel - http://www.gpsbabel.org\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns=\"http://www.topografix.com/GPX/1/0\"
xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">
<time>2010-09-12T21:10:35Z</time>
<trk>
<trkseg>
<trkpt lat=\"$lat1\" lon=\"$lon1\">
</trkpt>
<trkpt lat=\"$lat2\" lon=\"$lon2\">
</trkpt>
<trkpt lat=\"$lat4\" lon=\"$lon4\">
</trkpt>
<trkpt lat=\"$lat3\" lon=\"$lon3\">
</trkpt>
<trkpt lat=\"$lat1\" lon=\"$lon1\">
</trkpt>
</trkseg>
</trk>
</gpx>";
}
die;
function f_put_contents($filename, $data) {
$f = @fopen($filename, 'w');
if (!$f) {
return false;
} else {
$bytes = fwrite($f, $data);
fclose($f);
return $bytes;
}
}
demo:
http://dev.gervan.com.ar/gps/mcx2gpx/mcx2gpx.php
download
php source:
// mcx2gpx
// 2010 Fabian Gervan.
$action=$_GET['action'];
if (!$action) {
echo "MCX2GPX<br>";
echo '<form method=post action="mcx2gpx.php?action=convert">
<textarea name=data cols=90 rows=25>paste here .mcx content</textarea><input type=submit>';
die;
}
if ($action=='convert') {
f_put_contents('1.mcx',$_POST['data']);
}
$gestor = fopen("1.mcx", "r");
if ($gestor) {
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon1=substr($buffer,31,10);
$lat1=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon2=substr($buffer,31,10);
$lat2=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon3=substr($buffer,31,10);
$lat3=substr($buffer,55,10);
$buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096); $buffer = fgets($gestor, 4096);
$lon4=substr($buffer,31,10);
$lat4=substr($buffer,55,10);
fclose($gestor);
header("Content-Type: application/octet-stream; ");
header("Content-Disposition: attachment; filename=\"fagcode".date("Y-m-d_Hi").".gpx\"");
header("Content-Transfer-Encoding: binary");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<gpx
version=\"1.0\"
creator=\"GPSBabel - http://www.gpsbabel.org\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns=\"http://www.topografix.com/GPX/1/0\"
xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd\">
<time>2010-09-12T21:10:35Z</time>
<trk>
<trkseg>
<trkpt lat=\"$lat1\" lon=\"$lon1\">
</trkpt>
<trkpt lat=\"$lat2\" lon=\"$lon2\">
</trkpt>
<trkpt lat=\"$lat4\" lon=\"$lon4\">
</trkpt>
<trkpt lat=\"$lat3\" lon=\"$lon3\">
</trkpt>
<trkpt lat=\"$lat1\" lon=\"$lon1\">
</trkpt>
</trkseg>
</trk>
</gpx>";
}
die;
function f_put_contents($filename, $data) {
$f = @fopen($filename, 'w');
if (!$f) {
return false;
} else {
$bytes = fwrite($f, $data);
fclose($f);
return $bytes;
}
}
viernes, 10 de diciembre de 2010
Transferir Waypoints de un mobile XT a windows
Muchos compran gps "chinos" sin saber lo limitado que es el mobile XT que traen. No se compara en rendimiento ni a un nuvi200. Una pregunta que se hace a menudo es como transfiero los "favoritos" a windows.
Para transferir waypoints al windows, hay que tener instalado previamente el "active sync", es gratis y se baja de microsoft. Para Seven no hace falta.
Saludos.
Para transferir waypoints al windows, hay que tener instalado previamente el "active sync", es gratis y se baja de microsoft. Para Seven no hace falta.
Saludos.
martes, 9 de noviembre de 2010
Montar manualmente memorias usb en Debian / Ubuntu
sudo su -
fdisk -l
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS
mkdir /media/sdb1
mount /dev/sdb1 /media/sdb1
fdisk -l
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/sdb1 1 38913 312568641 7 HPFS/NTFS
mkdir /media/sdb1
mount /dev/sdb1 /media/sdb1
Suscribirse a:
Entradas (Atom)