Skip to content

Missing Style Definition for Layer MapServer 6.0 #9

Description

@jlarouche

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions