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
lunes, 20 de diciembre de 2010
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
martes, 1 de junio de 2010
kmlp2gpx.cmd
notepad kmlp2gpx.cmd
@echo off
rem kmlp2gpx.cmd
rem ============
rem Convierte archivo .kml generado por M3 GPS X5 (PAPAGO) a formato .GPX
rem uso kmlp2gpx archivo.kml
@echo on
e:\gps\gpsbabel\gpsbabel.exe -w -r -t -i kml,lines,points,trackdata,labels -f %1 -x transform,trk=wpt,del -o gpx -F "%~1.gpx"
pause
domingo, 18 de abril de 2010
gpx2gpx
Convierte desde linea de comados archivos GPX generado por programas como "TTGPSLogger", "WhereAMI", a archivos GPX compatible con Garmin Masource.
BAJAR (win)
BAJAR (linux)
notepad e:\gps\gpsbabel\gpx2gpx.cmd
@echo off
echo gpx2gpx - Hace compatible archivos gpx con mapsource.
echo Uso: gpx2gpx archivo.gpx
echo on
e:\gps\gpsbabel\gpsbabel.exe -p "" -w -r -t -i gpx -f %1 -o gpx -F "%~1.GPX"
pause
BAJAR (win)
BAJAR (linux)
notepad e:\gps\gpsbabel\gpx2gpx.cmd
@echo off
echo gpx2gpx - Hace compatible archivos gpx con mapsource.
echo Uso: gpx2gpx archivo.gpx
echo on
e:\gps\gpsbabel\gpsbabel.exe -p "" -w -r -t -i gpx -f %1 -o gpx -F "%~1.GPX"
pause
miércoles, 3 de febrero de 2010
osm2gpx
Shell que llama a gpsbabel 1.3.6 para convertir un archivo .osm (por ejemplo, guardado por josm), en .GPX, que es compatible con otros programas, como Google Earth.
Ubuntu Ubuntu 8.04.2 trae gpsbabel 1.3.2, por lo que hay que actualizarlo para que funcione.
#!/bin/bash -x
/usr/bin/gpsbabel -p "" -w -r -t -i osm -f "$1" -o gpx -F "$1.gpx"
windows
osm2gpx.cmd
for %%x in (*.osm) do (
c:\gps\gpsbabel\gpsbabel.exe -p "" -w -r -t -i osm -f "%%x" -o gpx -F "%%~nx.gpx"
)
pause
Suscribirse a:
Entradas (Atom)