Opened 15 years ago

Closed 9 years ago

#2696 closed defect (worksforme)

GDALOpen(): DODS blocks remote URL image access

Reported by: sullivak Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.5.3
Severity: normal Keywords: dods http
Cc:

Description

Without DODS, a call like this:

    GDALAllRegister();
    GDALDatasetH hDataset = GDALOpen( "http://somesite.org/img.jpg", GA_ReadOnly );

works the same as opening a local jpeg (or whatever format).

With DODS, the GDALOpen() call fails with:

ERROR 1: An error occurred while creating a virtual connection to the DAP server: Error while reading the URL: http://somesite.org/img.jpg.ver. The OPeNDAP server returned the following message: Not Found: The data source or server could not be found.

Often this means that the OPeNDAP server is missing or needs attention; Please contact the server administrator.

A workaround is to just deregister dods, e.g.

    GDALAllRegister();
    GDALDeregisterDriver(GDALGetDriverByName("dods"));
    hDataset = GDALOpen( "http://somesite.org/img.jpg", GA_ReadOnly );

or compile without it. However this will obviously not work if both OPeNDAP and regular image-on-a-server access is required.

Change History (2)

comment:1 by warmerdam, 15 years ago

Component: defaultGDAL_Raster
Keywords: dods http added

Sullivak,

This is a known problem and I'm not sure how we can fix it. Really the DODS and HTTP drivers do not have enough information to segregate which of them should be used. I'd also mention that you can define GDAL_SKIP=DODS or GDAL_SKIP=HTTP to skip one or the other of the drivers.

comment:2 by Kyle Shannon, 9 years ago

Resolution: worksforme
Status: newclosed

Appears fixed in trunk, and very stale. Tested with:

gdalinfo http://download.osgeo.org/gdal/data/jpeg/bw_sample.jpg
Note: See TracTickets for help on using tickets.