GeoCat / bridge-style

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

column name not picked up when generating mapserver class filter #74

Open pvgenuchten opened 11 months ago

pvgenuchten commented 11 months ago

this is what was generated from a shapefile with a styling in classes

  CLASS
    NAME "1. Maize mixed farming system"
    EXPRESSION (None = "1. Maize mixed farming system")
    STYLE
      OPACITY 100.0
      COLOR "#cfcbe4"
      OUTLINECOLOR "#6e6e6e"
      OUTLINEWIDTH 1.0
    END
    STYLE
      WIDTH 1.0
      OPACITY 0.0
      COLOR "#6e6e6e"
      LINECAP "round"
      LINEJOIN "round"
    END
  END

• The attribute name is not picked up in the expression (should be [LEV1_DESC] = 1. Maize... ).

• the second style block gives the error ''getSymbol(): Symbol definition error. Parsing error near (round):(line 115)'' line 115 refers to LINECAP "round"

image

from the docs, maybe there should not be quotes around round

GeoSander commented 11 months ago

Hi @pvgenuchten, seems like an easy fix then?