migurski / Dymo

Map label placer with simulated annealing.
148 stars 17 forks source link

Export text justification as attribute #9

Closed nvkelso closed 12 years ago

nvkelso commented 12 years ago

Values: Left, right, center

Useful for Mapnik2 and other apps like QGIS, Adobe Illustrator and ArcMap that have finer grain control of text labels.

As measured from the townspot.

If the Left edge of the bbox is to the Right of the townspot, the justification is "LEFT". If the Right edge of the bbox is to the Left of the townspot, the justification is "RIGHT".

If the average of the Right edge and Left edges of the bbox is near the longitude (1/5th the bbox width?) of the townspot, the justification is "CENTER".

Above and below (top an bottom of bbox) don't matter.

nvkelso commented 12 years ago

Fixed when #8 was closed.