Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#2873 closed defect (duplicate)

raster query broken on SDE raster

Reported by: bartvde Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL Support Version: unspecified
Severity: normal Keywords:
Cc: jmckenna

Description

Currently WMS GetFeatureInfo, which results in a raster query, does not work for SDE raster layers accessed through GDAL. Errors you get are something like:

/data/geopakhuis/SDE:geodatabase.ad.rws.nl,5151,SDE,RWS_LEZEN,R: Image handling error. Unable to open
 file AAA14 for layer `/data/geopakhuis/SDE:geodatabase.ad.rws.nl,5151,SDE,RWS_LEZEN,RWS_LEZEN,HOOGTE
.AHN_100,RASTER' does not exist in the file system,
and is not recognised as a supported dataset name.
 ... fatal error.
msRasterQueryByRect()

I've tested the following fix for maprasterquery.c but the disadvantage is that with new GDAL database drivers things will need to be expanded again:

        if (strstr(filename, "SDE:") == NULL) {
          hDS = GDALOpen(
            msBuildPath3( szPath, map->mappath, map->shapepath, filename ),
            GA_ReadOnly );
        } else {
          hDS = GDALOpen(filename, GA_ReadOnly);
        }

TIA

Change History (7)

comment:1 by warmerdam, 15 years ago

Status: newassigned

The proper fix will presumably be to use the same path building logic as in the drawing code. I'll dig into this as time permits.

comment:2 by jmckenna, 15 years ago

Cc: jmckenna added

comment:3 by bartvde, 15 years ago

Another issue is that Mapserver outputs the database password in the error message ....

comment:4 by bartvde, 14 years ago

Frank, any news on this?

comment:5 by warmerdam, 14 years ago

I am not aware of any progress on this.

comment:6 by warmerdam, 14 years ago

Resolution: duplicate
Status: assignedclosed

I believe the fix for #3253 also fixes this for SDE. Any chance you could test with trunk, and make notes on if it works in #3253?

comment:7 by warmerdam, 14 years ago

I have forked the password encryption aspect as #3416.

Note: See TracTickets for help on using tickets.