[Openstreetmap] Using cURL to grab Landsat images
Nick Whitelegg
nick at hogweed.org
Fri Apr 29 20:58:27 BST 2005
Hello everyone,
Further to my questions on Landsat data earlier in the week, I've found it's
actually very easy (well, much easier than I thought) to grab the data. You
can make a request to the onearth server which will return a given square of
variable resolution (defined by north, south, east, and west bounds, and
pixel width and height) in JPEG format.
Using the cURL library it's easy to incorporate this into your own programs.
I've uploaded a couple of examples (in C) to
http://www.free-map.org/uk/downloads/
The files are lsg.c (a small demo application which grabs a JPEG and writes to
standard output) and grab_landsat.c (a function which grabs the data and
stores it in memory in a character array).
Nick
More information about the talk
mailing list