Many thanks Dane and Marcin.

I'll have to try to find a workaround for my two-sided line style.

Regards,
Warren

-----Original Message-----
From: Dane Springmeyer [mailto:[email protected]] 
Sent: 23 April 2009 18:44
To: Warren Vick
Cc: [email protected]
Subject: Re: [Mapnik-users] Includes and two-sided line style

Hi Warren,

On Apr 23, 2009, at 7:18 AM, Warren Vick wrote:

> Two Mapnik questions for the group...
>
> 1) I have a common set of styles that I want to use across several
> projects but only want to have one copy of them. Is there an include
> directive I can put in my Mapnik XML to bring in the common map  
> styles?
>

XML Entities:

http://trac.mapnik.org/wiki/ManagingLargeXmlFiles

> 2) Is there a way/trick of drawing a line with two sides in different
> colours. Including extra (parallel) polyline in the data is not an
> option.
>

No. There are a variety of tickets on trac requesting variants on the  
idea of line offsets, but not relating to coloring sides of lines  
differently.

If PostGIS/GEOS even supports single sided buffers
(http://trac.osgeo.org/geos/ticket/215 
) you might be able to do this dynamically by drawing a line twice,  
once as a single-side buffered polygon and again as a normal line on  
top, essentially 'casing' the line only on one side.

Dane



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

Reply via email to