I came across a problem while using python mapscript's queryByAttribute
function. I have a layer containing the fieldname "STATE" amongst
others. Issuing:

try:
   layer.queryByAttribute(map,"STA","AZ",MS_MULTIPLE)
except:
   print "attribute error"
   pass

By now the mapserver exception is caught for the faulty attribute. If a draw 
function is now issued:

map.draw()

The following error occurs:

<class '_mapscript.MapServerError'>: msDrawMap(): Image handling error. Failed 
to draw layer named 'countries'. msDBFGetItemIndex(): DBASE file error. Item 
'STA' not found.
I reproduced it many times and in many occasions. I tried to
clear any result cache but in vain. Shouldn;t mapserver handle the
situation more logically?

_________________________________________________________________
Windows Live Hotmail now works up to 70% faster.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to