Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE GEOMTRANSFORM 'labelcenter' #119

Closed
LarsSchy opened this issue Feb 1, 2021 · 2 comments
Closed

STYLE GEOMTRANSFORM 'labelcenter' #119

LarsSchy opened this issue Feb 1, 2021 · 2 comments

Comments

@LarsSchy
Copy link

LarsSchy commented Feb 1, 2021

The STYLE - GEOMTRANSFORM can have the option: 'labelcenter'. Trying to figure out how it works today and what the difference is to the other options.
It is in the documentation: https://mapserver.org/mapfile/label.html

It seems like this option was added in 7.2 MapServer/MapServer@ee04622

@geographika
Copy link
Owner

Interesting!

[labelcenter](See https://mapserver.org/mapfile/label.html#mapfile-label-geomtransform) is allowed in a STYLE but only when the STYLE is part of a LABEL not a CLASS.

It is not an option listed in the STYLE docs.

mappyfile currently reuses the style.json schema for styles in both a CLASS and a LABEL.

The easiest fix would be to add labelcenter as an allowed keyword to style.json, but this show as valid if used in a CLASS.
Does MapServer crash if labelcenter is used in a CLASS STYLE rather than a LABEL STYLE?

@geographika
Copy link
Owner

Fixed with 95877c1

It seems this was missing from the docs when I first added the styyle.json schema. See MapServer/MapServer#6219

It is also missing from the MapServer msautotests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants