SDE Rasters
Farber, Saul (ENV)
Saul.Farber at STATE.MA.US
Tue Mar 22 13:38:40 PST 2005
Hello all,
So I'm working my way through using SDE as a datasource, and so far have
had much luck.
Vector features are drawing just fine, but I can't seem to get Rasters
to produce anything meaningful.
First off, I'm not totally sure how these rasters were loaded, but I
seem to have two types of SDE raster layers.
Type "A" layers have the following column structure:
Column Type
NAME SE_STRING
IMAGE SE_RASTER
I can't find anything spatial about these layers (no FOOTPRINT, no
SHAPE, no nothing) so I'm laying them aside for now...
Type "B" layers, however, look more promising. They have the following
structure:
Column Type
OID SE_INT32
FOOTPRINT SE_SHAPE
RASTER SE_RASTER
Aha! These look great. So I setup my mapfile as so:
LAYER
TYPE RASTER
NAME rastertest
CONNECTIONTYPE SDE
CONNECTION "localhost,port:5151,xxxx,xxxx,xxxx"
DATA "IMG_ELEV5K_I,FOOTPRINT,SDE.DEFAULT"
STATUS ON
DEBUG ON
PROCESSING "BANDS=4,5,6,7"
#PROCESSING "BANDS=1,2,3,4"
PROCESSING "RASTERCOLUMN=RASTER"
END
But I'm disheartened to see a blank image drawn. I've tried with both
BANDS= instructions.
Debugging is on, and compiled-in, but the debug log is pretty empty. It
contains:
[Tue Mar 22 16:24:19 2005].768734 msDrawMap(): Drawing Label Cache,
0.000s
[Tue Mar 22 16:24:19 2005].769215 msDrawMap() total time: 0.007s
Tue Mar 22 16:24:19 2005,25129,146.243.227.89,test,3,33861.260000
757273.583750 330835.130000 980003.986250,-1.000000 -1.000000,rastertest
,normal execution
And that's it.
I know this is not much to go on, but while I'm not anything remotely
close to an expert in C. However, I can make changes and recompile the
code just fine.
Any suggestions on where to look? Where to put more debugging in? It
would appear that the code isn't even getting far enough along to reach
the SDE layer draws, due to the lack of debug output from those
sections.
Thanks much.
--saul
GIS Web Services
MassGIS - Executive Office of Environmental Affairs
251 Causeway Street
5th Floor
Boston, MA 02114
617-626-1145
More information about the MapServer-users
mailing list