[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ gpsdrive ] WMS fetching script for gpsdrive
Hi,
I have modified the r.in.onearth script for GRASS GIS by Soeren Gebbert*
to download and register maps for GpsDrive (tested with 2.09).
The script:
http://bambi.otago.ac.nz/hamish/gpsdrive/fetch_onearth.sh
[*] Soeren's site:
http://www-pool.math.tu-berlin.de/~soeren/
USAGE: fetch_onearth.sh center_longitude center_latitude scale
e.g. fetch_onearth.sh 170.5 -45.0 150000
It is currently set up to download LANDSAT-7 visual composite images
(30 meter/pixel minimum resolution [1:85000] [maybe 15m??])
screenshot:
http://bambi.otago.ac.nz/hamish/gpsdrive/fetch_onearth.jpg
by uncommenting some statements at the start of the script you can
have it download other satellite data:
* WMS Global Mosaic, a High Resolution, Global Coverage, Landsat TM 7
mosaic (all spectral bands)
* Radar reflectance images produced by the SRTM mission
* Blue Marble Next Generation, one for each month of the year
* Composite of data produced by the MODIS Rapid Response System, from
data collected yesterday by the MODIS/Terra
* Composite of data produced by the MODIS Rapid Response System, from
data collected yesterday by the MODIS/Aqua
It could be generalized even further to use any WMS server: see the
r.in.wms shell script that comes with GRASS 6.2.0.
This script is hardcoded to talk to NASA's Onearth WMS server:
http://onearth.jpl.nasa.gov
It is a bit of a hack (my fault, not Soeren's), but all seems to work
ok. it could use some checking of input params, etc.
it needs "bc" & it could be rewritten without GDAL tools, but you
should really have those installed already.
"This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License (GPL) for more details."
My hope is that someone (else) will merge the functionalily into
gpsfetchmap.pl. It's pretty simple, the whole thing is really just a
wrapper for composing the wget --post-data string.
enjoy,
Hamish
--
This message was part of the gpsdrive mailinglist
unsubscribing can be done by sending a mail containing a body of:
-quote--
unsubscribe gpsdrive
-unquote--
to majordomo@warbase.selwerd.nl