GeoCat / bridge-style

Cartography library making style format conversions as easy as using Python.
MIT License
49 stars 15 forks source link

Some comments related to mapserver labelling #100

Open pvgenuchten opened 2 years ago

pvgenuchten commented 2 years ago

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:

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 commented 2 years ago

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