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

LABEL -> FONT and LABEL->POSITION gives errors in validate when attributes are used #118

Closed
LarsSchy opened this issue Jan 28, 2021 · 2 comments

Comments

@LarsSchy
Copy link

LarsSchy commented Jan 28, 2021

I have a mapfile with LABEL - FONT and LABEL - POSITION as attributes.
These gives errors when I run mappyfile validate on the mapfile.
I have made an example with some real data that I am using.
I managed to patch the schema for the font case. But was not successful with the position case.
Mapserver version 7.2.2 on debian. Mappyfile version: 0.9.1

I have made a full example with everything except the font files here:
https://gist.github.com/LarsSchy/27916c896d35a524a123b69e4dbdcb54

The script above creates data in a geojson file with two features.

My result image looks like this when I run shp2img:

text_test2

@LarsSchy LarsSchy changed the title LABEL -> FONT and LABEL->POSITION gives errors in validate LABEL -> FONT and LABEL->POSITION gives errors in validate when attributes are used Jan 28, 2021
@geographika
Copy link
Owner

Hi @LarsSchy!

Thanks for reporting this. The validation didn't allow for attributes in LABEL POSITION, and there was a clash in LABEL FONT in the JSON rules. Both should be fixed in master now.

You should be able to test with master using:

pip install git+git://github.com/geographika/mappyfile@master -U

@LarsSchy
Copy link
Author

Many thanks Seth for the very quick response and fix. It works perfect now!

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