[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ gpsdrive ] WMS fetching script for gpsdrive
- To: gpsdrive@warbase.selwerd.nl
- Subject: Re: [ gpsdrive ] WMS fetching script for gpsdrive
- From: "Ryan J. Earley" <ryan.j.earley@gmail.com>
- Date: Fri, 3 Nov 2006 22:00:46 -0500
- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bGGp+tJeiPQgc3dNcZD5QAqUXCI0alXKbkh41XntIjCaFvJ9xpueS4bcva+s8mtGKhPJkfBm/WWHw8ZWhFRqUHdlPIjEDk/C2CHaA0JMThmycEhrp5oBSCS/hRxKpP5gLPV3tRRb6pa0jOJPgYKbm3SRJzD8ryqFrWLDYYt1bQI=
- In-Reply-To: <20061104002352.37571dc2.hamish_nospam@yahoo.com>
- List-Archive: <http://warbase.selwerd.nl/~dirk-jan/gpsdrive/archive/>
- List-Owner: <mailto:owner-gpsdrive@warbase.selwerd.nl> (Dirk-Jan Faber)
- List-Subscribe: <mailto:majordomo@warbase.selwerd.nl?body=subscribe%20gpsdrive>
- List-Unsubscribe: <mailto:majordomo@warbase.selwerd.nl?body=unsubscribe%20gpsdrive>
- References: <20061104002352.37571dc2.hamish_nospam@yahoo.com>
- Reply-To: gpsdrive@warbase.selwerd.nl
- Sender: owner-gpsdrive@warbase.selwerd.nl
Hi all,
Hamish: thank you for a great script!
I had been searching for a quick, easy way to get topo maps for the US
into GpsDrive without having to use GRASS or gdal to reproject each
image. I have modified Hamish's fetch_onearth.sh script to work with
data from http://www.terraservice.net/ .
It will download USGS Topographic maps and Digital Ortho-Quadrangle
images for nearly all of the US in EPSG:4326 (LAT/LON wgs84).
Also, I modified Hamish's script to install the maps into
subdirectories in the .gpsdrive directory. This is to facilitate
switching between different types of maps of the same scale in
GpsDrive.
USAGE: ./fetch_terraservice.sh center_longitude center_latitude
scale (drg OR doq)
'drg' returns a topo map
'doq' gets a B&W aerial photo.
DOQ images can be downloaded with resolution as high as 1 meter per pixel*
*(although using a scale of 1:2817, which should be ~1mpp, causes the
mapserver to give an error that pixelsize is less than 1...this
probably deserves further investigation. the workaround is a default
low resolution of 1:3750)
TOPO max resolution is 2 m per pixel (1:5636)
You can get the script from:
http://turbidity.rutgers.edu/~ryan/gpsdrive_stuff/fetch_terraservice.sh
or view it:
http://turbidity.rutgers.edu/~ryan/gpsdrive_stuff/fetch_terraservice.sh.txt
the maps look alright in GpsDrive (2.10pre3~062006 on OSX), but
further testing would be appreciated.
I did it as rough hack, but it does appear to work, so I thought I'd
share it with the group. Sorry for the sparse comments.
Hope someone finds it useful!
--ryan
On 11/3/06, Hamish <hamish_nospam@yahoo.com> wrote:
> 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
>
--
Ryan J. Earley
Rutgers University Geophysics
<rearley@rci.rutgers.edu>
732-445-2125
http://turbidity.rutgers.edu
--
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