-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change of structure, would you guys be interested to evaluate #22
Comments
Hi Milo,
would this also be supported by the yaml files ? cheers, |
Hello Thomas,
Regarding the reusage of declarations (as in your default_font) example, I Op 15 jul. 2013 17:14 schreef "Thomas Bonfort" [email protected]
|
Milo, |
Milo, cheers, |
No, I am currently just using my syntax to update two styles that I created, but since last week I am enjoying a small vacation. I will get back in touch later. |
Hope you had a nice vacation ;) I went another way and split out the styles as Python modules to be reimported with Each style file has a dictionary called after the style, which is used to update the current style, and any other bits required. Regards, |
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
The text was updated successfully, but these errors were encountered: