Hi Jay,

Nice map of BC!


On Oct 30, 2008, at 4:04 PM, Jay Douillard wrote:

So my command line output seems to be behaving correctly, but the wms isn't responding right. See the two example png files, wms and python(command line) both using the same xml style file.


As far as WMS, I assume you are using this patch http://trac.mapnik.org/ticket/129 to get the WMS server reading XML? If so, there is likely improvement needed in the patch to register aggregate styles in the correct order.

Or have you come up with a different solution?

In the wms version the labels are under the polygons, even though the style is called later in my xml. The command line version is just fine....any ideas where I could be going wrong?


In general a work around could be to do this (register your styles to a different instance of the same layer):

<Layer name="edi" srs="+proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126 +x_0=1000000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs ">
    <StyleName>edi</StyleName>
    <Datasource>
      <Parameter name="type">shape</Parameter>
      <Parameter name="file">/home/sysadmin/map/bc_edi</Parameter>
    </Datasource>
  </Layer>

<Layer name="edit_labels" srs="+proj=aea +lat_1=50 +lat_2=58.5 +lat_0=45 +lon_0=-126 +x_0=1000000 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs ">
    <StyleName>labels</StyleName>
    <Datasource>
      <Parameter name="type">shape</Parameter>
      <Parameter name="file">/home/sysadmin/map/bc_edi</Parameter>
    </Datasource>
  </Layer>


The other difference is that when I change the BG color in the xml it doesn't effect the WMS but it changes in the command line (notice the blue background)...

I'll wait to comment on this until I understand more how you are loading your XML into the WMS. Can you paste a code snippet?

Cheers,

Dane


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to