[Mapserver-users] TEXT expression and MAPMYGIS

Alan Steremberg alans at wunderground.com
Fri Sep 12 11:40:54 EDT 2003


Now it just puts a comma on the map..

,

I wonder if there is an expression handling problem in the mapmygis layer,
or does it happen somehwere else?  I will play with it some more.

Alan

----------------------------
 Alan Steremberg
 415-543-5021 x 103
 http://www.wunderground.com

On Fri, 12 Sep 2003 woodbri at swoodbridge.com wrote:

> Alan,
>
> Try TEXT ([f_ID],[f_NEIGHBORHOOD]) instead of
>       TEXT "([f_ID],[f_NEIGHBORHOOD])" so the string is evaluated.
>
> -Steve
>
> On 12 Sep 2003 at 1:49, Alan Steremberg wrote:
>
> >
> > Hi,
> >
> > I built a simple database with points, and a bunch of fields that will
> > eventually have weather data. (If you go to:
> > http://www.wunderground.com/US/CA/San_Francisco.html  scroll to the
> > bottom and click on the MSN map, you will see what I am trying to
> > build)
> >
> > I would like to pull two fields out of the database, like:
> >
> > f_ID and f_NEIGHBORHOOD
> >
> > If i put it in the LABELITEM as above, it works and I get lots of
> > weather stations.  If i try to create the expression below, it just
> > prints the text ([f_ID],[f_NEIGHBORHOOD]) on the map without
> > evaluating it.  The other thing I don't understand is that it has to
> > be TYPE ANNOTATION not TYPE POINT.  what am I doing wrong?
> >
> >
> > LAYER
> >     CONNECTIONTYPE mygis
> >     NAME "pws"
> >     CONNECTION "g7:wui:Phishy:geodata:num"
> >     DATA "geometry from pws feature, pws_num geometry"
> >     STATUS DEFAULT
> >     #TYPE POINT
> >     TYPE ANNOTATION
> >     LABELITEM "f_NEIGHBORHOOD"
> >     #LABELITEM "f_ID"
> >     LABELCACHE TRUE
> >     CLASS
> >         NAME "Weather Station"
> >     #   TEXT "([f_ID],[f_NEIGHBORHOOD])"
> >         #TEXT "(A,B)"
> >         SYMBOL "marker"
> >         COLOR 0 0 0
> >         LABEL
> >             TYPE TRUETYPE
> >             FONT "verdana-bold"
> >             SIZE 8
> >             #POSITION UC
> >             POSITION AUTO
> >             OFFSET 0 10
> >             BUFFER 2
> >             COLOR 200 0 0
> >             OUTLINECOLOR 230 230 230
> >             FORCE TRUE
> >         END
> >     END
> > END
> >
> > Thanks!
> > Alan
> > ----------------------------
> >  Alan Steremberg
> >  415-543-5021 x 103
> >  http://www.wunderground.com
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
>



More information about the mapserver-users mailing list