# europe.conf - (c) 2002 Jerome Alet # (c) 2002 C@LL - Conseil Internet & Logiciels Libres # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. # # $Id: europe.conf,v 1.5 2002/04/14 12:16:48 jalet Exp $ # # Sample configuration file for pdfmap # # Each line is composed from nine fields separated with ':' # Some fields are optional. # Empty lines or lines beginning with a '#' are ignored. # # Each line has the following form : # # # Nature : Shape : Thickness : RGBout : RGBin : Magnify : MinimalSize : MaximalSize : Description # # # Nature : # Can be any string, which represents an object nature # in the data input file. A mandatory 'DEFAULT' entry # must be present to represent objects with an unknown # nature. This field is case sensitive. # Examples of natures : House, Rock, Tree, City, etc... # # Shape : # The shape in which all objects of nature 'Nature' will # be represented on the map. # Valid shapes are : Circle, Square, Rectangle, Ellipse, # Triangle, Star, Cross, Diamond, Image, # more to come... # # Thickness : # Defines the width of the pen when drawing shapes. Unused # when the Shape is an Image. You can consider it similar # to the Shape's contour width. # Default value is 0.01, which is very thin. # # RGBout, RGBin : # Each one is a triplet of real values between 0 and 1 # of the form : r, g, b which represent respectively # the part of Red, Green, Blue which made the color. # 0, 0, 0 is Black, while 1, 1, 1 is White. # RGBout is the color of the outside of the shape. # RGBin is the color of the inside of the shape. If # RGBin is omitted the the shape will not be filled # and will only be visible from its contour in RGBout # color. # For Image shapes, the RGBout field contains the name # of an image file in almost any graphic format which # will be used to draw objects of this nature. The image # filename can also be an URL to a remote image in any # protocol supported by the Python Standard Library. # NB: in this case you must enclose this field between # double quotes. The RGBout can also contain a directory # name in which case image files contained in this # directory will be used at random to represent these # objects. # For Image shapes, the RGBin may be used to specify # a color to mask (render transparent) in the image, # in the same format as for other type of Shapes. # It can also contain "auto" which tells PDFMap to # try to detected the transparent color automatically. # If this field is empty, then auto is assumed. # # Magnify : # An optional magnifying factor applied to # each object's dimensions (both length and width). # Using a value between 0 and 1 is allowed to specify # a reducing factor to both dimensions. If omitted # then a default value of 1 is used, meaning no # magnification will be done : objects will be # represented at their real dimensions on the map, # in the current scale. # # MinimalSize : # An optional minimal size of the shape in square units # (e.g. square meters) under which no object is drawn. # The default value is 0, meaning that all objects are drawn. # WARNING : The test is done *after* the application of the # magnifying factor. # # MaximalSize : # An optional maximal size of the shape in square units # (e.g. square meters) above which no object is drawn. # The default value is sys.maxint, meaning that most regular # objects are drawn. # WARNING : The test is done *after* the application of the # magnifying factor. # # Description : # Optional free text to be displayed in the legend for # the current nature. If omitted then the nature is used # in the legend. Example : School or University # # Each city will be represented by a little yellow star, # downloaded from my homepage City:Image::"http://cortex.unice.fr/~jerome/star.gif"::::: # # Each capitol will be represented by a red and blue square, # with a pen thickness of 1. A Magnifying factor of 1.5 will # be applied to both of each capitol's dimension. Capitol:Square:1:0,0,1:1,0,0:1.5::: # # Two generous companies, represented by their own logos. INTEVATION:Image::intevation.small.png:::::Intevation GmbH # This one will have the white color rendered transparent. LOGIBALL:Image::logiball.small.png:1.0,1.0,1.0::::Logiball GmbH # # Me. Again white will be rendered as transparent. C@LL:Image::calllogo.png:1,1,1::::Conseil Internet & Logiciels Libres # # J'ai deux amours, mon pays et Paris... # This one doesn't need a transparent color because # the image is already transparent. PARIS:Image::eiffel.gif:::::Paris, French Capitol # # a DEFAULT entry must be present DEFAULT:Diamond::0,1,0:0,1,0::::Unknown