[Gdal-dev] Method to get a google image by url?

Zhonghai Wang zhonghaiw at gmail.com
Thu Nov 15 03:11:37 EST 2007


Hi there,

that's a very good point for me. Several days ago I've tried to access
tiled indexed raster images via a http link in MapServer, but I did
NOT get it run, is there any KEYWORD in MapServer to switch this
functionality on? like the GDAL_SKIP DODS command?

Best Regards

Zhonghai

On Nov 15, 2007 2:27 AM, Frank Warmerdam <warmerdam at pobox.com> wrote:
> 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
>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>



More information about the gdal-dev mailing list