On 8/9/07, Marcos Sánchez Provencio <[EMAIL PROTECTED]> wrote: > My mistake. I was modifying the layer after adding it to the map, so I > was dealing with the independent copy that never gets drawn. I really > think that this behavior is very confusing, especially to those used to > Python.
This will change starting with mapserver 5 (out soon). No more confusion ;-) Umberto > > Thank you for your interest, anyway. I really appreciate the fast > responses. > > El jue, 09-08-2007 a las 13:50 +0200, Umberto Nicoletti escribió: > > On 8/9/07, Marcos Sánchez Provencio <[EMAIL PROTECTED]> wrote: > > > It seems to be related to the fact that the connection is opened only > > > once. is it possible to force reopening database connections? I am going > > > to try using clone(). > > > > Clone makes a deep copy of the object, so it is not useful in your > > case. Try to put the string in quotes (no double quotes, just two > > single quotes), ie: > > > > self.capa.filteritem=''escala'' > > > > Umberto > > > > > > > > El jue, 09-08-2007 a las 11:21 +0200, Marcos Sánchez Provencio escribió: > > > > Good morning (in Spain). This is my first post to the list. > > > > > > > > I have set up a django app that uses mapscript to serve maps (not using > > > > http://code.djangoproject.com/wiki/GeoDjango whatsoever). > > > > > > > > I have a shp file with several layers of detail (wind predictions, > > > > aggregated in 1x, 4x, 16x, etc.). I wanted to use filteritem and filter > > > > to show only the level of desired detail. > > > > > > > > If I put > > > > FILTERITEM escala > > > > FILTER "16" > > > > in a mapfile, it works as expected. > > > > > > > > but > > > > > > > > self.capa.filteritem='escala' > > > > self.capa.setFilter('16') > > > > does not. > > > > > > > > Any hint why? > > > > >