queryByAttributes and SDE

Juan Antonio Fernandez Prada juanantonio.fernandez at UCA.ES
Wed Sep 14 04:40:03 EDT 2005


Hello, list.

I'm trying to make a QueryByAttributes with PHP. With the following code,
it works fine. The problem is that I've got my shapes in the same folder
of my Map file. But I need to do the same with shapes in a SDE server.
When I make the necessary changes in the map file to do this, it doesn't
work. It shows this error message: "[MapServer Error]: msSDELayerNextShape
(): SE_stream_fetch(): Underlying DBMS error. (-51)". After a lot of
tries, I haven't got any idea about do it.

Can anybody help me? or does anybody do anything like this? Help me please.

Thanks a lot and best regards.

Juan Antonio Fernández Prada.
Laboratorio de Astronomía, Geodesia y Cartografía.
Universidad de Cádiz.
e-mail: juanantonio.fernandez at uca.es


$oMap =ms_newMapObj("../data/campuspr.map"
$oLayer = $oMap->getLayerbyName("FCC_P0");
if ($oLayer->queryByAttrites('C_SIT','/'00.180'/',MS_SINGLE)==MS_SUCCESS)
{
  $image = $oMap->drawQuery();
  $image_url=$image->saveWebImage();
  echo "<div id=\"error\"><img src=\"".$image_url."\"></div>";
}



More information about the mapserver-users mailing list