Skip to content

'Ignore placement' counterpart to allow_overlap="yes" #564

Closed

Description

@artemp

For certain solutions/tricks, I find it would be helpful to have a 'forward going' counterpart to allow_overlap="yes" on a symbolizer.

allow_overlap="yes" allows the involved symbolizer to ignore previous placements.

What I'm thinking of is telling mapnik that the involved symbolizer placement is not interesting to any subsequent symbolizers, and may be overpainted, and thus its placement shouldn't be recorded into the global placement list.

<PointSymbolizer ... allow_overlap="yes" ignore_placement="yes" />

This would direct this symbolizer to both ignore past placements, and allow any future symbolizers to overpaint it.

The only way to emulate the workings of this currently is to use clear_label_cache, but that's the broadsword approach instead of the surgical scalpel approach to this. :)

Activity

  1. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [springmeyer] see r2287 and r2288, which adds support to PointSymbolizer. The others look much tougher. Can you test this out - think about the naming a bit more, and let me know if its worth trying to add to ShieldSymbolizer/TextSymbolizer/MarkerSymbolizer?

  2. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [Ldp] I was thinking mainly about PointSymbolizer, as a way to add elements to the map which can or could not be done with other symbolizers and which should be ignored in the collision detection like Line/Polygon are.

    E.g. the OSM turning circles, which currently uses the clear-cache hack to clear the placement list.

    I do not have a current use case for Shield/Text/MarkerSymbolizer.

  3. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor
  4. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [Ldp] The patch also adds allow_overlap/opacity/ignore_placement to the 'vanilla' PointSymbolizer (ie. the one without a backing image file).

  5. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [springmeyer] yes, that is a bug in trunk, nice spot. I fixed in r2637 (but pickling is not really active in trunk and is mostly disabled atm).

    re: patch for 0.7.2 - thanks! Do you want this officially backported or just offering the patch in case others want to try?

  6. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [Ldp] I'd like to see it officially added to 0.7.2, but in the meantime, am offering it to others to try.

  7. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [springmeyer] going to skip backporting, to keep focus. closing.

  8. artemp commented on Oct 11, 2011

    @artemp
    MemberAuthor

    [numenor] I have a use case for a feature like this applying to text symbolizers (and can think of other for shield symbolizers as well ...), for which I use clearing of cache in the moment: rendering really large partially transparent text (e.g. as city labels in high zoom levels) should not hinder placement of other features on top of it. Will it be possible to extend the patch to other symbolizers?

  9. springmeyer commented on Sep 6, 2014

    @springmeyer
    Member

    tracking over at #1535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions