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

Missing Style Definition for Layer MapServer 6.0 #9

Closed
jlarouche opened this issue Aug 9, 2012 · 4 comments
Closed

Missing Style Definition for Layer MapServer 6.0 #9

jlarouche opened this issue Aug 9, 2012 · 4 comments

Comments

@jlarouche
Copy link

Hello,

There is a problem with the places.map CLASS definition when using Basemaps with Mapserver 6.0. There's no STYLE in the CLASS and so Mapserver returns the "msAddLabel error: missing style definition for layer".

This problem doesn't seem to be present when using MapServer 6.2.
The easy fix is (instead of linking a big patch that adds almost nothing :p)

mv places.map places.map.old
sed '/\bCLASS\b/ a\
STYLE END' places.map.old > places.map
rm places.map.old

It only adds STYLE END after each CLASS statement.

CLASS
STYLE END
....
END

I don't know if you want to keep support for MapServer 6.0 and I don't know if this fix would break with MapServer 6.2.

@apeyroux
Copy link

Thank you very much, I have the same problem. Solved with your patch!

@tbonfort
Copy link
Member

Sorry for the late response, was not being notified on new issues... This issue is related to the deprecation of annotation layers in 6.2, which was what was used for the 6.0 version of this mapfile.
I prefer not to commit that change, as 6.2 is the target version for the mapfiles. Instead of using your change, can you check that the mapfiles work if you set the layer type to ANNOTATION ? If so, I'll create a 6-0 branch where this can be committed.

@jlarouche
Copy link
Author

It works well with the ANNOTATION type

Thank you

@sgrossberndt
Copy link
Collaborator

Can be closed.

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

5 participants