
My style file are becoming more and more complex. IMHO a (simple) preprocessor would be very helpful. Important features (analogue C preprocessor): - ##include (includes a text file) - ##define (defines a preprocessor var; also as command line option) - ##ifdef (checks if a preprocessor var is defined) - ##else (else for ##ifdef) - ##endif (end of ##ifdef) A simple example (for polygons): ##define BASECAMP ... ##include "indexrules.txt" ... ##ifdef BASECAMP # draw buildings building = * [0x13 resolution 20] ##endif ... Questions: - What do think of this proposal ? - Does anyone already uses an external preprocessor for the style files ? Regards Klaus -- View this message in context: http://gis.638310.n2.nabble.com/Preprocessor-for-style-files-tp7150709p71507... Sent from the Mkgmap Development mailing list archive at Nabble.com.

On Wed, Jan 04, toc-rox wrote:
My style file are becoming more and more complex. IMHO a (simple) preprocessor would be very helpful.
At least on UNIX, there a preprocessor which would solve this problems: cpp But I don't know if there is something similar for windows.
Questions: - What do think of this proposal ?
I would like to see the "include" statement, but not as preporocessor. Wanted to implemented it already, but didn't found the time to learn enough java and understand the mkgmap code.
- Does anyone already uses an external preprocessor for the style files ?
I use a script which uses some standard UNIX commands to workaround the missing "include" statement. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

This looks (very) interesting: http://www.synesys.com/Downloads/ppp.html Concerning the style files it allows something like this: *perl ppp.pl polygons-master polygons -DGPSR* ... #include "indexsearch" ... #ifndef GPSR building = * [0x13 resolution 20] #endif ... Klaus -- View this message in context: http://gis.19327.n5.nabble.com/Preprocessor-for-style-files-tp5324759p551321... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (3)
-
Steve Ratcliffe
-
Thorsten Kukuk
-
toc-rox