GetFeatureInfo Error - 'SE_stream_fetch_row(): Shape or row not found'

John Fletcher jfletcher at LATITUDEGEO.COM
Fri Nov 19 16:13:08 EST 2004


Mapserver 4.4.0 beta1
Windows 2K
SDE 8.3
 
I'm having difficulty with a GetFeatureInfo request to an SDE dataset.
GetMap requests are fine, but I get an exception with the GetFeatureInfo
request:
 
msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Shape or row not
found. (-22)

It seemed to be related to Bug 536
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=536) since my Row ID
column is named OBJECTID, but the report seems to suggest that it has
been resolved.  Has anybody experienced problems of this sort, and have
they been resolved?  It's possible that I've misconfigured something...
I'll be using a WFS for queries eventually, but I'd like to get this
working in the meantime.

Thanks very much for any help.

John

For those interested, and in case it's relevant, my configuration is
pasted below.  If you don't need to see the configuration there's no
need to continue reading.

GetFeatureInfo request url:
**************************
http://server/cgi-bin/mapserv.exe?map=C:/path/to/map.map&VERSION=1.1.1&R
EQUEST=GetFeatureInfo&LAYERS=AIR_FLIGHT_LINES&STYLES=&SRS=EPSG%3A42102&B
BOX=1161743.9011625813,410390.02947845805,1197542.6407875319,434059.0612
244898&WIDTH=667&HEIGHT=441&FORMAT=image/png&QUERY_LAYERS=AIR_FLIGHT_LIN
ES&INFO_FORMAT=text/plain&FEATURE_COUNT=25&X=358&Y=103

Replace 'server' with my server name and 'C:/path/to/map.map' with the
actual path to my mapfile.

Mapfile layer definition:
************************
  LAYER  
    NAME 'AIR_FLIGHT_LINES'
    CONNECTIONTYPE sde
    CONNECTION 'sde.server.address,port:5151,sde,user,pass'
    DATA 'SCHEMA_NAME.TABLE_NAME,GEOMETRY'
    CLASS
      STYLE
        COLOR 105 135 191
      END
    END
    TYPE line
    MAXSCALE 500000
    PROJECTION
      #BC Albers
      "proj=aea"
      "ellps=GRS80"
      "lon_0=-126"
      "lat_0=45"
      "lat_1=50"
      "lat_2=58.5"
      "x_0=1000000"
    END #projection
    STATUS on
    METADATA
      wms_title 'AIR_FLIGHT_LINES'
    END #metadata
    PROCESSING 'CLOSE_CONNECTION=DEFER'
    DUMP true
    TEMPLATE 'set to make layer wms queryable'
    TOLERANCE 6
    TOLERANCEUNITS pixels
  END

Replace values in the connection string appropriately, and replace
SCHEMA_NAME.TABLE_NAME with the fully qualified SDE data source name.
Everything else is as the actual mapfile reads.

Full Mapserver Error Message:
****************************
GetFeatureInfo results:

Layer 'AIR_FLIGHT_LINES'
Content-type: application/vnd.ogc.se_xml

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException>
msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Shape or row not
found. (-22)
</ServiceException>
</ServiceExceptionReport>



More information about the mapserver-users mailing list