Hi user list ;),

I have the following problem: I want to retrieve data from a postgis database 
and then I want to make a WMS request with a xml file but the filters are just 
ignored or something like that. I've already tried the example population.xml 
(http://trac.mapnik.org/wiki/XMLGettingStarted) but this one isn't working too 
--> the map just stays blank. If I remove the filters in population.xml the map 
is generated but not correctly.

My second problem is if I try to generate the map alternatively with 
"nik2img.py" the filters arent working for my example but for the 
population.xml example they are working. Why? I use the same pgsql queries as 
the equivalent Mapserver example (this one is working) and the name of my 
filter variable ([value]) should be correct too (see pgsql query snippet below):


query:

select the_geom from (select gd_poly_003.the_geom,gd_poly_003.id as id, 
td_dim_geom.name as name, 
gd_poly_003.oid,sum(cal_layer_0_katz5d5495cc2ba6236d214fe0d5e8ad354f.value::float/cal_layer_1_katzb201d59b428fc2b1bff23d3679a2e982.value::float)
 as [b]value[/b] ...

And here's an example how all my filters are declared ( the values range from 0 
to infinity):

<Rule>
 <Filter>[value] &gt; 500 and [value] &lt; 1000</Filter>
      <PolygonSymbolizer>
             <CssParameter name="fill">#ef6548</CssParameter>
      </PolygonSymbolizer>
</Rule>

And this shows how the above code snippet is implemented in Mapserver map file:

CLASS
      NAME "> 500 - 1.000"
      EXPRESSION ([value] >= 500 and [value] < 1000)
      METADATA
      END
      STYLE
        ANGLE 360
        COLOR 239 101 72
        SYMBOL 0
      END
      TEMPLATE "xxx"
    END

Hope you could help me.

Thanks + best regards,

Martin


-- 
Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal geschützt?
Jetzt absichern: https://homebanking.gmx.net/[email protected]
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to