Makes sense, it was the answer I was afraid of. =)

In a perfect world, the "spacing" parameter would work for polygons as  
well as lines, perhaps arranging labels in a honeycomb pattern?

I'm not willing to fake it with points, because they'd make the label  
spacing resolution dependent. Not all that desirable.

-mike.

On Oct 15, 2008, at 12:16 PM, Dane Springmeyer wrote:

> Hi Michal,
>
> Good question - I don't know, but I doubt it.
>
> Seems like the LINE_PLACEMENT mode inherently repeats whereas the  
> POINT_PLACEMENT (when used with polygon geometries) simply places a  
> single label at the shape's centroid.
>
> I think some kind of third mode, like SPARSE_PLACEMENT, or something  
> that automatically scatters labels _within_ a shape would be very  
> cool. I've also needed this feature and as a work around ended up  
> just manually plotting points and rendering them with the  
> PointDatasource feature (from lwu's not-yet-committed patch). This  
> would not scale well of course.
>
> Short of adding this feature to mapnik, you could try labeling a  
> dynamically generated PostGIS point layer that represents a bunch of  
> randomly spaced points within the original polygon, but that are a  
> minimum distance apart.
>
> Dane
>
>
> On Oct 14, 2008, at 11:23 PM, Michal Migurski wrote:
>
>> Hi,
>>
>> Anyone know if / how it's possible to place text in a polygon and  
>> have
>> it repeat?
>>
>> I'm thinking in particular of things like very large parks / open
>> spaces, where a single label in the center of the area is difficult  
>> to
>> spot.
>>
>> I see that TextSymbolizer has a spacing parameter, but it's my
>> understanding that this applies only to line placement.
>>
>> -mike.
>>
>> ----------------------------------------------------------------
>> michal migurski- [EMAIL PROTECTED]
>>                 415.558.1610
>>
>>
>>
>> _______________________________________________
>> Mapnik-users mailing list
>> [email protected]
>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
>

----------------------------------------------------------------
michal migurski- [EMAIL PROTECTED]
                  415.558.1610



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

Reply via email to