[Geomoose-users] LEGEND SYMBOLOGY

Bob Basques Bob.Basques at ci.stpaul.mn.us
Fri Nov 9 16:25:17 EST 2007


Jim,
 
I would try to get something like this working first:
 
    LAYER # Feedlot Layer
        NAME Feedlots
        DATA feedlots
        STATUS DEFAULT
        TYPE POINT
        MAXSCALE 100000
        MINSCALE 1000      
        CLASS
           NAME "Feedlots"
          ## EXPRESSION ('[animalunit]' < 49)
           STYLE
              COLOR 000 000 000
              SIZE 15
              SYMBOL SQUAR
          END
       END
    END
 
Then add in the Expression by uncommenting,
 
>From the stuff you sent, first off those two lines at the top need to
look like this instead of how they are now.
 
NAME "Feedlots"
DATA "feedlots"
 
Now, you have the NAME value in the LAYER and the CLASSs, you only need
one or the other, I would suggest in the CLASS.
 
The next thing, is the CLASSITEM Value, generally this needs to be
Capitalized like so:
 
CLASSITEM "ANIMALUNIT"   #I assume this is the Column name from the
Data file you are using, is it a SHP file?
 
Now you may be doing too much here at once, I would just get the map to
build with this, then go on to the EXPRESSIONS.
 
The first one would go something like this though:
 
EXPRESSION ('[animalunit]' < 49)  BTW, you don't need the CLASITEM for
this.
 
You can get more info about all of this at this link:
http://mapserver.gis.umn.edu/docs/reference/mapfile 
 
Generally, start out with the general Display aspects first, then get
the filtering by expressions to work afterwards.
 
bobb
 
 
 
 


>>> "Jim Dahl" <jim.dahl at mail.co.douglas.mn.us> wrote:
Greetings, I thought I attached them earlier, but maybe exceeded the
file size requirement.  So here take a pick.  the PLS map is a bit more
involved in that I want to symbolize on two different fields.
 
jim


-----Original Message-----
From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] 
Sent: Friday, November 09, 2007 2:46 PM
To: geomoose-users at lists.sourceforge.net; Jim Dahl
Subject: RE: [Geomoose-users] LEGEND SYMBOLOGY

Jim,
 
How did your meeting go?
 
Also, can you add the MAPFILE you are using here, so we can look at it,
for the layer you want to have a legend for?
 
bobb
 


>>> "Jim Dahl" <jim.dahl at mail.co.douglas.mn.us> wrote:
I will have to call the quest for symbology off till the workshop on
the 16th.  I still cannot make it work.  I would be happy to write up a
summary of how to put all of the pieces together so they can be found in
one easy spot.  "How to symbolize the legend.'  
 
I have Named the Class.
The legend is ON.
 
The odd part is - it appears too easy.
 
jim
 


-----Original Message-----
From: Bob Basques [mailto:Bob.Basques at ci.stpaul.mn.us] 
Sent: Friday, November 09, 2007 10:13 AM
To: Jim Klassen; geomoose-users at lists.sourceforge.net; Jim Dahl; Dan
Little
Subject: Re: [Geomoose-users] LEGEND SYMBOLOGY

All,
 
I think someone already noted this, but . . .
 
You need to have a value for the NAME parameter inside the LAYER
definition for a Legend graphic to be generated.  If the NAME parameter
is not present or set to a value, there will be no legend graphic
created for that layer.
 
bobb
 


>>> "Jim Klassen" <Jim.Klassen at ci.stpaul.mn.us> wrote:

If I remember correctly, there are two types of legends that mapserver
is capable of producing: HTML and Bitmap. I think (unless this has
changed recently) that GeoMOOSE is expecting an Bitmap legend. 

This is the legend section used at the city: 

  LEGEND 
    STATUS ON 
    KEYSIZE 20 12 
    LABEL 
      TYPE BITMAP 
      COLOR 0 0 0 
      SIZE MEDIUM 
    END 
  END 



>>> On Thu, Nov 8, 2007 at  1:30 PM, "Jim Dahl"
<jim.dahl at mail.co.douglas.mn.us> wrote:

I have the classes all defined to show up in the map thematically, and
the only thing that seems to make sense is the status on in the mapfile.
 It is ON.  For clarity, the statedemo comes with only the County
Boundaries in the legend, and I cannot see where it tells mapserver how
to turn on the legend other than status ON.  I used the county map file
as a template and the new layer show the symbology in the legend so it
must be in the map file, but where? 



Thanks, 



jim 




-----Original Message-----
From: Dan Little [mailto:danlittle at yahoo.com] 
Sent: Thursday, November 08, 2007 1:21 PM
To: Jim Dahl; geomoose-users at lists.sourceforge.net 
Subject: Re: [Geomoose-users] LEGEND SYMBOLOGY



That's all Mapserver Mapfiles...

See if any of this documentation helps...


http://mapserver.gis.umn.edu/docs/reference/mapfile/legend 




http://mapserver.gis.umn.edu/docs/reference/mapfile/class 



The SYMBOL and NAME from the class are used to generate the legend
images.


----- Original Message ----
From: Jim Dahl <jim.dahl at mail.co.douglas.mn.us>
To: geomoose-users at lists.sourceforge.net 
Sent: Thursday, November 8, 2007 12:57:12 PM
Subject: [Geomoose-users] LEGEND SYMBOLOGY


What seems like an easy question has taken a lot of time for me to try
figure out.  I want to know what file to edit to add the symbology in my
classes in the mapfile to the legend in the GeoMoose display.  Any
takers? 


Jim Dahl, GISP
GIS Coordinator
Douglas County Public Works
509 3rd Ave W
PO Box 398
Alexandria MN 56308 
V 320-762-2933
   320-763-6001
F 320-763-7955 





__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20071109/1984acff/attachment.html


More information about the Geomoose-users mailing list