[Gdal-dev] Method to get a google image by url?
    Frank Warmerdam 
    warmerdam at pobox.com
       
    Wed Nov 14 20:27:40 EST 2007
    
    
  
Joaquim Luis wrote:
> Hi,
> 
> Suppose I want to get this (or any other) google image tile programatically
> 
> http://kh.google.com/kh?v=99&n=404&t=tqssrrqstt
> 
> is there any way to do it with gdal/ogr?
Joaquim,
If you have libcurl support included in your GDAL build you can just do:
   gdalinfo 'http://kh.google.com/kh?v=99&n=404&t=tqssrrqstt'
That is, GDAL has a special "HTTP" driver that will fetch from an url
and access the data from a memory buffer.
If you have DODS support built into your GDAL it will kick in first for
anything prefixed by http:.  I had to do:
   setenv GDAL_SKIP DODS
   gdalinfo 'http://kh.google.com/kh?v=99&n=404&t=tqssrrqstt'
Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org
    
    
More information about the gdal-dev
mailing list