Hi Christopher,
(inline)

On 24 March 2010 15:50, Christopher Stevens <[email protected]> wrote:
> Dane, thanks for feedback. After setting tilecache aside and going through
> the getting started guide at http://trac.mapnik.org/wiki/XMLGettingStarted
> step by step, I was was able to produce a great population map with colors,
> text, etc. For my PC, I had to tweak the shapefile names from
> "TM_WORLD_BORDERS_SIMPL_0.3" to "TM_WORLD_BORDERS_SIMPL-0_3" (note missing
> '.', and "-" instead of "_") to make it work with the example XML, but it
> works!

Great, glad it works.


>
> Back to my original issue, here's some troublesome sample XML (simplified,
> and for all zoom levels I think but still having the same issue):
>
> <Map bgcolor="#00264c" srs="+proj=latlong +datum=WGS84">
>     <Style name="point style 7">
>         <Rule>
>             <Filter>[zoom] &gt;= 0</Filter>
>             <PointSymbolizer file="./images/sys10-3px.png" height="3"
> type="png" width="3" />
>         </Rule>
>     </Style>
>     <Layer name="layer 8" srs="+proj=latlong +datum=WGS84" status="on">
>         <StyleName>point style 7</StyleName>
>         <Datasource>
>             <Parameter name="type">shape</Parameter>
>             <Parameter name="file">./solarSystemsLayer</Parameter>
>         </Datasource>
>     </Layer>
> </Map>
>
> As is, I get a blank blue image. If I remove the following line, I get my
> dots on an image:
> <Filter>[zoom] &gt;= 0</Filter>
>
> This is when viewing through tilecache. Is there an argument I can pass in a
> python script to test out zoom levels? Does zoom level specific data need to
> be in the shapefile itself (guessing no)? Am I using wrongly formatted code?
>

Zoom data need to come from somewhere, so yes, you need a "zoom"
attribute in your shapefile.
In mapnik2 we're planing to provide some internal renderer state as
properties (for using in expressions), but still [zoom] is something
specific to your use-case, mapnik doesn't know about it.

Regards,
Artem

> Chris
>
> On Mon, Mar 22, 2010 at 7:15 PM, Dane Springmeyer <[email protected]>
> wrote:
>>
>> Chris. Thoughts below inline.
>>
>> --- \o/ ---
>> Sent from my phone
>>
>> On Mar 22, 2010, at 7:08 AM, Christopher Stevens <[email protected]>
>> wrote:
>>
>>> Howdy,
>>> I have mapnik set up in Windows XP, and have had great success creating
>>> and delivering tiles using tilecache...until I add filters.
>>
>> For what kind of datasource and what do your filters look like?  It's
>> always good to paste some XML so we can do something more than guess.
>>
>>> Lines in my XML containing filters are ignored with no visible errors
>>> that I see.
>>
>> Just means they are not matching. Note that shapefile field names are case
>> sensitive.
>>
>>>
>>> With the world population mapnik example, this is the same case. I see
>>> all-red filled countries, with no labels.
>>
>> Didn't you have this working at some point? Have you made any changes to
>> it? Are you sure you are using the right shapefile? It is the one from
>> thematiccmapping blog that actually has the right attributes to work with
>> that demo.
>>
>>> Initial searching suggests I may be missing some libraries (I don't have
>>> libcurl installed yet for Python 2.5). Could I trouble someone to confirm
>>> this, and could I be missing additional libraries/packages?
>>
>> Highly unlikely you are missing anything.  Just check you shapefile and
>> xml syntax.
>>
>>> Thanks much in advance.
>>>
>>> Chris
>>> _______________________________________________
>>> Mapnik-users mailing list
>>> [email protected]
>>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
>
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
>
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to