[maplab-users] Problem in my file .map
Nahum Castro
ncastrog at guanajuato.gob.mx
Wed Jan 10 10:43:13 EST 2007
Adriano Hantequeste Gomes escribió:
You need to create a style for every class you want to draw, on this
style choose a color for your map, etc.
like this.
CLASS
NAME "municipios_"
LABEL
TYPE TRUETYPE
FONT "fritqat"
SIZE 7
POSITION UC
COLOR 0 13 215
OUTLINECOLOR 255 230 194
ANTIALIAS TRUE
PARTIALS FALSE
FORCE TRUE
END
STYLE
SYMBOL 7
OUTLINECOLOR 208 208 208
SIZE 2
ANTIALIAS TRUE
END
END
Also read this for more options
http://mapserver.gis.umn.edu/docs/reference/mapfile/class.
Saludos.
> Hi List,
>
> I create this file, but when view in browse not show nothing. What's
> the problem?
>
> This file is (geo.map) in D:\ms4w\apps
>
>
> MAP
> NAME "Geo"
> STATUS ON
> EXTENT 103790 7629832 552541 8039185
> SIZE 800 600
> SHAPEPATH "D:/ms4w/apps/geo/data"
> SYMBOLSET "D:/ms4w/apps/geo/etc/symbols.sym"
> FONTSET "D:/ms4w/apps/geo/etc/fonts.txt"
> IMAGETYPE PNG
> IMAGECOLOR 255 255 255
> UNITS METERS
> WEB
> IMAGEPATH "D:/ms4w/tmp/ms_tmp/"
> IMAGEURL "/ms_tmp/"
> END
>
> REFERENCE
> STATUS ON
> IMAGE "images/es.png"
> SIZE 200 207
> EXTENT 103790 7629832 552541 8039185
> COLOR -1 -1 -1
> OUTLINECOLOR 255 0 0
> MINBOXSIZE 3
> MAXBOXSIZE 0
> MARKER 0
> MARKERSIZE 0
> END
>
> QUERYMAP
> STATUS OFF
> SIZE -1 -1
> COLOR 255 0 0
> STYLE HILITE
> END
>
> LEGEND
> STATUS ON
> IMAGECOLOR 255 255 255
> POSITION LL
> KEYSIZE 18 12
> KEYSPACING 5 5
> TEMPLATE
> "D:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html"
> LABEL
> TYPE TRUETYPE
> FONT "vera-italic"
> SIZE 9
> OFFSET 0 0
> BUFFER 0
> MINDISTANCE -1
> MINFEATURESIZE -1
> COLOR 0 0 0
> PARTIALS TRUE
> FORCE FALSE
> END
> END
>
> SCALEBAR
> STATUS ON
> COLOR 255 255 255
> OUTLINECOLOR 0 0 0
> BACKGROUNDCOLOR 0 0 0
> IMAGECOLOR 255 255 255
> UNITS KILOMETERS
> INTERVALS 5
> SIZE 150 5
> STYLE 0
> POSITION LL
> LABEL
> TYPE TRUETYPE
> FONT "vera-italic"
> SIZE 9
> OFFSET 0 0
> BUFFER 0
> MINDISTANCE -1
> MINFEATURESIZE -1
> COLOR 0 0 0
> PARTIALS TRUE
> FORCE FALSE
> END
> END
>
> OUTPUTFORMAT
> NAME "png"
> MIMETYPE "image/png"
> DRIVER "GD/PNG"
> EXTENSION "png"
> IMAGEMODE PC256
> TRANSPARENT FALSE
> END
>
> LAYER
> NAME "Bairros"
> STATUS ON
> DATA "bairros"
> TYPE POLYGON
> UNITS METERS
> SIZEUNITS PIXELS
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> METADATA
> "DESCRIPTION" "Bairros"
> END
> CLASS
> NAME "Bairros"
> END
> END
>
> LAYER
> NAME "Municipios"
> STATUS ON
> DATA "municipios"
> TYPE POLYGON
> UNITS METERS
> SIZEUNITS PIXELS
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> METADATA
> "DESCRIPTION" "Municipios"
> END
> CLASS
> NAME "Municipios"
> END
> END
>
> LAYER
> NAME "Brasil"
> STATUS ON
> DATA "brasil"
> TYPE POLYGON
> UNITS METERS
> SIZEUNITS PIXELS
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> METADATA
> "DESCRIPTION" "Brasil"
> END
> CLASS
> NAME "Brasil"
> END
> END
>
> LAYER
> NAME "Oceano"
> STATUS ON
> DATA "oceano"
> TYPE POLYGON
> UNITS METERS
> SIZEUNITS PIXELS
> TOLERANCE 0
> TOLERANCEUNITS PIXELS
> METADATA
> "DESCRIPTION" "Oceano"
> END
> CLASS
> NAME "Oceano"
> END
> END
>
> END
>
>
>
--
Nahum Castro González
Coordinador de desarrollo del portal del SEIP/MAPAS
Dirección de Geografía
Dirección General de Información para la Planeación
Unidad de Planeación e Inversión Estratégica
Gobierno del Estado de Guanajuato
http://mapas.guanajuato.gob.mx
http://seip.guanajuato.gob.mx
"Violence is the last refuge of the incompetent."
Isaac Asimov
More information about the Maplab-users
mailing list