Skip to content

Change of structure, would you guys be interested to evaluate #22

Open
@milovanderlinden

Description

@milovanderlinden

Hi all,

I have been working with basemaps to generate a particular style that we wanted for the Netherlands. It is a style derived from the "Basisregistratie topografie".

At first I started working from generate_style.py, but the large structure and the big amount of overrides made searching and replacing harder and harder.

So I drank some beer, put my feet on the table and tought; "Wouldn't it be better to use separate style files?"

So I moved all the dicts from generate_style.py to yaml files with a default directory for defaults and a style directory for all the custom styles.

Then I implemented the yaml reading in pyMapFile.py, pretty soon I had everything working.

I also enhanced the -g flag; it now creates/replaces all the .msinc file in one run. I did this because I discovered that running with the -l switch was way slower then generate_style.py

In the process I also added some variables I required, such as ANGLE on a couple of labels, OUTLINE on a couple of labels and I added cycleways and grass to the process as they where missing.

I would like to ask you guys if you would be interested in evaluating my effort. If you think it ain't what you want, let me know. I will isolate my fork.

The branch I am working on is https://github.com/opengeogroep/basemaps/tree/openbasiskaart-6-2 feel free to give it a spin.

If you have any comments or questions, do ask!

Cheers!

Milo

qgis-screenshot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions