[mapserver-users] Mapscript QueryByAttributes & Rendering problem.

asd asd voas_acc at hotmail.com
Fri Nov 14 07:51:34 EST 2008



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081114/4048546b/attachment.html


More information about the mapserver-users mailing list