#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 , 15 years ago
Status: | new → assigned |
---|
comment:2 by , 15 years ago
Cc: | added |
---|
comment:3 by , 15 years ago
Another issue is that Mapserver outputs the database password in the error message ....
comment:6 by , 14 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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.