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

Some comments related to mapserver labelling #100

Open
pvgenuchten opened this issue Feb 18, 2022 · 1 comment
Open

Some comments related to mapserver labelling #100

pvgenuchten opened this issue Feb 18, 2022 · 1 comment
Assignees

Comments

@pvgenuchten
Copy link
Contributor

Labels (or other use of fonts) require a fontset element to be defined on the mapfile, a fontset is a key path file having references to the fonts used.

Consider that the font needs to be available on the server (e.g. mscore fonts)

Currently when you combine labels and style in a single layer, only the geometry is drawn.
Seems a mapserver layer can only have a single class which applies, 2 options:

  • repeat the label definition in each of the classes
  • throw a warning to the user, indicating to split the layer into a label and geometry layer

Syntax for labels is (currently bridge adds label within style)

CLASS
    LABEL
      OFFSET 0.0 0.0
      TEXT "[soil_cla_1]"
      SIZE 12.607142857142854
      FONT "DeJaVu"
      TYPE truetype
      COLOR "#323232"
    END
  END
@GeoSander
Copy link
Member

Thanks for the recommendations @pvgenuchten. In general, the QGIS Bridge -> MapServer workflow leaves a lot to be desired.

@GeoSander GeoSander transferred this issue from GeoCat/qgis-bridge-plugin Sep 16, 2024
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