[Python] queryByAttributes()

Yves Jacolin yjacolin at FREE.FR
Tue Feb 13 07:17:38 PST 2007


Hi,

I am trying to create a map using a python script. I got a problem with the 
getByAttributes() method :
myLayer.queryByAttributes(mapobject,"ville","ville=Paris",1)

The "Paris" string is viewed as a column name, and I can't change this, I 
tried to used double and simple quote (" and '), tired to escape quote (\" 
and \'), but all this failed !

Thanks,

Y.
PS : I am a newby to python and use mapscript 4.10.0
-- 
Yves Jacolin
---
http://yjacolin.gloobe.org



More information about the MapServer-users mailing list