[Mapserver-users] ArcView created layer not working in mapscript

Murat Isik muratisik at megatek.com.tr
Thu Dec 18 06:44:41 EST 2003


Thank you:)

Simple but hard to figure out for a newbei....

Have a nice day....

----- Original Message -----
From: "Till Adams" <adams at terrestris.de>
To: "Murat Isik" <muratisik at megatek.com.tr>
Sent: Thursday, December 18, 2003 1:41 PM
Subject: Re: [Mapserver-users] ArcView created layer not working in
mapscript


> Dear Murat,
>
> give him a
> CLASSITEM [attribute]
>
> Murat Isik schrieb:
> > Hello,
> > I am trying to make my own tiny, amatuer layer in ArcView 3.x and
> > display it in mapscript but I am failing, I will be very glad if anyone
> > can help...
> >
> > This alyer of mine is just a single point at a certain coordinate, with
> > a single label. I had learned how to make point layers from this list
> > before but when it comes to adding label, I am stuck.
> >
> > What I do in ArcView 3.x is:
> >
> > 1. Export data into a textfile
> > 2. Choose Table->Add and select your Textfile
> > 3. Choose View->Add Event Theme and select txt-table, the X- and
> > the Y-field.
> > 4. Choose Theme->Convert to shapefile
> >
> > My text file is:
> >
> > "X","Y","NAME"
> > 29.0708,40.9678,HELLO
> >
> > So it is supposed to print thi point at the X and Y and also label it
> > with HELLO
> >
> > The shapefile I create works in Arcview itself but not under
> > php/mapscript with this layer definition in the mapfile:
> >
> > LAYER
> >   NAME mylayer
> >   TYPE point
> >   STATUS ON
> >   DATA mylayer
> >   LABELCACHE ON
> >   LABELITEM 'NAME'
> >   CLASS
> >    NAME 'NAME'
> >    SYMBOL 'circle'
> >    SIZE 5
> >    COLOR 64 0 64
> >     LABEL
> >       TYPE truetype
> > #      FORCE true
> >       FONT arial
> >       COLOR 64 0 64
> >       ANGLE AUTO
> >       POSITION AUTO
> >       MINSIZE 2
> >       SIZE 6
> >    END
> >   END
> > END
> > It gives an error about the NAME column.
> >
> > Any ideas on creating a simple, labelled point layer?
> >
> > Have a nice day.
> >
> > Murat Isik
>
>
> --
>
> NEU +++ NEU +++ NEU +++ NEU
>
>     AveiN! ist Open Source
> Lizensiert unter der GNU GPL
>
> -----
>
> Dipl. Geogr. Till Adams
> terrestris, Paulsen&Adams GbR
> Siemensstr. 8 * 53121 Bonn
> Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
> info at terrestris.de * www.terrestris.de
>




More information about the mapserver-users mailing list