rundel / carto-parser

12 stars 7 forks source link

missing parsing of mss within mml #5

Closed springmeyer closed 13 years ago

springmeyer commented 13 years ago

running ./example test.mml gives the below xml output. Looks perfect except that the 'style' is missing.

<?xml version="1.0" encoding="utf-8"?>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs">
    <Layer name="world" srs="+proj=latlong +ellps=WGS84 +datum=WGS84 +no_defs">
        <Datasource>
            <Parameter name="file">./data/world_borders</Parameter>
            <Parameter name="type">shape</Parameter>
        </Datasource>
    </Layer>
</Map>
rundel commented 13 years ago

This is coming, but for now I'm finding it easier to treat the mml and mss separately as it makes it easier to debug. Once both are closer to working it will be straight forward to call the mss parser from when processing the mml's ast.

springmeyer commented 13 years ago

okay, cool, thanks for the details. closing since this is not an unintended bug.