geographika / mappyfile

A pure Python MapFile parser for working with MapServer
MIT License
70 stars 20 forks source link

Fail to parse nested functions #199

Open geographika opened 1 year ago

geographika commented 1 year ago

See https://github.com/geographika/mappyfile/blob/b7efdf7b68eb1df099dda1d680bff5b486fff243/tests/test_snippets.py#L1013

If functions are nested/chained e.g. function(function2()) mappyfile fails to parse them correctly.

LAYER
    NAME 'centerline1'
    TYPE LINE
    GEOMTRANSFORM (centerline(densify([shape], 5)))
END