Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add option to label placement to use clipped geometeries #52

Closed
artemp opened this Issue · 4 comments

2 participants

@artemp
Owner

Enhance the label placement techniques so that you can optionally choose/configure a clipped geometry instead of the entire layer when finding label position. It would most likely be useful to be able to designate an arbitrary boundary so that the entire layer could be used, a boundary larger than the current map zoomed envelope, or the current map zoomed envelope could be used.

@artemp
Owner

[jkemp101] May be useful to add another option that keeps labels from breaking across the defined boundary. This would allow tiles to be rendered using this option with out parts of labels being generated.

@artemp
Owner

[springmeyer] This would be really cool. I wonder what functionality already exists in the feature query stuff though?

You can achieve this by doing sub-selects on your postgis geometries (if using postgis) in the mapfile or python syntax and then have your labels be associated this this sub-selected data as a new layer.

@artemp
Owner

[springmeyer] see also #25 which also captures this idea.

@springmeyer
Owner

text symbolizer in >= mapnik 2.2 supports 'clip' parameter

@springmeyer springmeyer closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.