[gdal-dev] GDALOpen not working with URLs

Frank Warmerdam warmerdam at pobox.com
Mon Nov 23 12:19:20 EST 2009


Upendra Dadi wrote:
> Hi,
>   GDALOpen is unable to open URLs, it is giving the following error:
> 
> ERROR 4: `http://pubs.usgs.gov/of/1999/of99-396/data/imagery/utmd00/bathy1.tif' does not exist in the file system,
> and is not recognised as a supported dataset name.
> 
> The following is the code snippet:
> 
>  GDALDriver         *hDriver;
>  GDALDataset	    *hSrcDS;
> 
>  GDALAllRegister();
> 
>  hSrcDS = (GDALDataset *)GDALOpen("http://pubs.usgs.gov/of/1999/of99-396/data/imagery/utmd00/bathy1.tif",GA_ReadOnly );
> 
> 
> If I remember correctly, I was earlier able to read directly from URLs. Am I missing some library here? Please help. thanks.

Upendra,

The http driver depends on GDAL having been built with libcurl.  The
configure option is --with-curl.

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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list