#1 Wed 14 July 2010 13:27
- faithful_girl
- Juste Inscrit !
- Date d'inscription: 14 Jul 2010
- Messages: 2
afficher une couche
je veux afficher deux couche dans mon projet sous cartoweb3 mais il me s'affiche une selement
voici le fichier .map
Code:
MAP
NAME "myFirstProject"
EXTENT -47926 1627797 1312928 2675600
IMAGETYPE PNG
IMAGECOLOR 255 255 255
STATUS ON
UNITS METERS
FONTSET "fonts.txt"
SYMBOLSET "symbols.txt"
SHAPEPATH "data"
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
TRANSPARENT OFF
END
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
FORMATOPTION "INTERLACE=OFF"
FORMATOPTION "QUALITY=80"
END
REFERENCE
IMAGE images/keymap_france.png
EXTENT -168827.05 1620431 1414509.05 2677441
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 200 0 0
SIZE 224 150
END
SCALEBAR
POSTLABELCACHE TRUE
STYLE 0
UNITS kilometers
SIZE 350 3
TRANSPARENT TRUE
COLOR 77 77 88
IMAGECOLOR 242 255 195
BACKGROUNDCOLOR 222 222 222
LABEL
TYPE BITMAP
SIZE SMALL
COLOR 0 0 0
POSITION UR
BUFFER 10
END
END
LEGEND
KEYSIZE 20 15
END
##########
# LAYERS #
##########
# add your layers definitions here
LAYER
NAME "region"
TYPE POLYGON
DATA "reg_france"
TEMPLATE "ttt"
CLASS
NAME "region"
STYLE
COLOR 240 240 240
OUTLINECOLOR 255 165 96
END
END
METADATA
"id_attribute_string" "CODE"
END
END
LAYER
NAME "Scan"
DATA "france.tif"
TYPE RASTER
STATUS ON
END
##############
# END LAYERS #
##############
ENDet voila le fichier laiyer.ini
Code:
; whether to generate class icons automatically autoClassLegend = true ; layers layers.root.className = LayerGroup layers.root.children = region,Scan layers.root.rendering = block layers.region.className = Layer layers.region.label = Régions layers.region.msLayer = region layers.Scan.className = Layer layers.Scan.label = Scane layers.Scan.msLayer = Scan
est ce qu 'il ya une erreur dans les code ou bien il me manque de modifier autre fichier
Merci d'avance
Hors ligne
#2 Tue 27 July 2010 09:11
Re: afficher une couche
bonjour,
À vérifier :
1. la projection est elle la même pour toutes les couches ?
2. peut être vider le cache avec l'option --clean du script
Y.
Yves Jacolin, bénévole de l'association GeoRezo.net, agit au nom et pour le compte de l'association - Partageons ce qui nous départage !! - GeoRezo vous aide ? Aidez GeoRezo !
Hors ligne


