First map succeed {Scanned}
Siki Zoltan
siki at AGT.BME.HU
Mon Jun 6 06:56:44 PDT 2005
Hi Bino,
Here is an example to display text labels in mapserver.
I use truetype font so i set up FONSET in the map file too.
I hope it helps you
Bye
Zoltan
ps. always cc your mail to the list, another list member can have the same
problem.
LAYER
NAME "parcel_id"
DATA "maps/parcels"
STATUS ON
TYPE ANNOTATION
LABELITEM "TXT"
LABELMAXSCALE 2001
SYMBOLSCALE 1000
CLASS
LABEL
COLOR 0 0 0
SHADOWCOLOR 255 255 255
SHADOWSIZE 1 1
SIZE 7
POSITION CC
ANGLE AUTO
FONT hrsz_font
TYPE TRUETYPE
END
END
END
On Mon, 6 Jun 2005, bino_oetomo wrote:
> Hi Zoltan
> Since i'm a damnstupid newbie ,
> Kindly please give me exact examples of it ?
>
> Here is my map file
>
> ---Start---
> MAP
> IMAGETYPE PNG
> EXTENT 110.999930 -10.000030 115.000030 -6.000000
> SIZE 600 600
> SHAPEPATH "d:\ms4w\shp"
> IMAGECOLOR 255 255 255
>
> WEB
> TEMPLATE '/ms4w/apache/htdocs/bino.html'
> IMAGEPATH '/ms4w/tmp/ms_tmp/'
> IMAGEURL '/ms_tmp/'
> END
> # PROJECTION
> # "proj=laea"
> # "ellps=clrk66"
> # "lat_0=45"
> # "lon_0=-100"
> #
> # Alternatively, you can specify an EPSG code.
> # "init=epsg:2163"
> #
> # END
>
> # Start of LAYER DEFINITIONS ---------------------------------------------
> LAYER # States polygon layer begins here
> NAME lay-1
> DATA polygon.shp
> STATUS DEFAULT
> TYPE POLYGON
>
> # PROJECTION
> # "init=epsg:4269"
> # END
>
> CLASS
> COLOR 232 232 232
> #OUTLINECOLOR 32 32 32
> END
> END # States polygon layer ends here
>
> LAYER # States polygon layer begins here
> NAME lay-2
> DATA line.shp
> STATUS DEFAULT
> TYPE LINE
> # PROJECTION
> # "init=epsg:4269"
> # END
>
> CLASS
> COLOR 255 0 0
> #OUTLINECOLOR 32 32 32
> END
> END # States LINE layer ends here
> LAYER # States polygon layer begins here
> NAME lay-3
> DATA poi.shp
> STATUS DEFAULT
> TYPE POINT
> # PROJECTION
> # "init=epsg:4269"
> # END
>
> CLASS
> COLOR 0 0 255
>
> #OUTLINECOLOR 32 32 32
> END
> END # States LINE layer ends here
> # End of LAYER DEFINITIONS -------------------------------
> END # end of map file/object
>
> ---End----
>
> I really appreciate your help
>
> regards
> -bino-
>
>
> ----- Original Message -----
> From: "Siki Zoltan" <siki at agt.bme.hu>
> To: "bino_oetomo" <bino at INDOAKSES-ONLINE.COM>
> Cc: <MAPSERVER-USERS at LISTS.UMN.EDU>
> Sent: Monday, June 06, 2005 5:48 PM
> Subject: Re: [UMN_MAPSERVER-USERS] First map succeed {Scanned}
>
>
> > Hi Bino,
> >
> > Shape files consist of graphic (poin, line, polygon) and attributes.
> > You can define labels (attribute value to display on your map as a text)
> > in your map file. Check TYPE ANNOTATION in the map file reference.
> >
> > Bye
> > Zoltan
> >
> > On Mon, 6 Jun 2005, bino_oetomo wrote:
> >
> > > Thanks to all support
> > >
> > > I just succed displaying my first map.
> > > well .. it's not beautify yet .. but it's there.
> > >
> > > Ok .. another problem
> > > My *.shp file is generated from exported garmin *.img file (using
> mapedit)
> > >
> > > I called that shp file back using mapedit .. and it's looked OK ..
> > >
> > > MS4W problem : Why I all the "label" (streets and points name)disapeared
> ?
> > >
> > > Regards
> > > -bino-
> > >
> >
> >
>
More information about the MapServer-users
mailing list