Beispiel einer Map-Datei für die Übersichtskarte in der Druckausgabe
Aus kvwmap
- --Markus Hentschel 14:33, 11. Mai 2006 (CEST)
MAP IMAGECOLOR 255 255 255 INTERLACE TRUE SIZE 200 200 EXTENT 4300000 5800000 4700000 6100000 # Anpassen! STATUS ON TRANSPARENT TRUE NAME "ref_kvwmap" SYMBOLSET "/www/kvwmap/kvwmap_dev/symbols/symbole.sym" # Pfad anpassen! SHAPEPATH "/www/kvwmap/var/data/" # Pfad anpassen! FONTSET "/srv/www/htdocs/kvwmap/fonts/fonts.txt" # Pfad anpassen! OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE END OUTPUTFORMAT NAME "jpeg_print" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE FORMATOPTION "QUALITY=100" END PROJECTION "init=epsg:2398" # EPSG anpassen! END WEB IMAGEPATH "/www/kvwmap/tmp/" # Pfad anpassen! IMAGEURL "/tmp/" END LAYER # zeichnet die Flurgrenzen CONNECTION "user=****** password=****** dbname=******" # Anpassen! CONNECTIONTYPE POSTGIS DATA "the_geom from (select o.the_geom,o.objnr AS oid FROM alkobj_e_fla AS o,alknflur AS fl WHERE o.folie='002' AND o.objnr=fl.objnr) as foo using unique oid using srid=2398" # SRID anpassen! METADATA "wms_name" "Fluren" "ows_srs" "2398" # EPSG anpassen! "ows_title" "Fluren" END NAME "Fluren" PROJECTION "init=epsg:2398" # EPSG anpassen! END STATUS ON TYPE LINE MINSCALE 100 CLASS STYLE COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 SIZE 3 SYMBOL 'punkt' END END END LAYER # zeichnet die Beschriftung: Gemarkung + Flurnummer CONNECTION "user=****** password=****** dbname=******" CONNECTIONTYPE POSTGIS DATA "the_geom from (select o.the_geom,o.objnr AS oid,o.objart,fl.flur,g.gemkgname FROM alkobj_e_fla AS o,alknflur AS fl,alb_v_gemarkungen AS g WHERE o.folie='002' AND o.objnr=fl.objnr AND fl.gemkgschl=g.gemkgschl) as foo using unique oid using srid=2398" # SRID anpassen! METADATA "wms_name" "Bezeichnung" "ows_srs" "2398" # EPSG anpassen! "ows_title" "Bezeichnung" END NAME "Bezeichnung" PROJECTION "init=epsg:2398" # EPSG anpassen! END STATUS ON TYPE ANNOTATION MINSCALE 100 LABELMINSCALE 100 LABELMAXSCALE 6000 SYMBOLSCALE 2000 CLASS TEXT ([gemkgname], Flur [flur]) LABEL COLOR 0 0 0 OUTLINECOLOR -1 -1 -1 FONT arial TYPE TRUETYPE MINSIZE 12 MAXSIZE 16 SIZE 14 PARTIALS TRUE END END END END