FW: [mapserver-users] Symbology

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Tue Sep 21 10:20:07 EDT 2010


Apologies for the dup, my original response got embargoed due to the large image included…

From: Fawcett, David (MPCA)
Sent: Tuesday, September 21, 2010 9:13 AM
To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I think that someone else pointed out that the path to your symbol image is relative to the location of your map file.

A quick test would be to drop bike.png in the same folder as your map file.

Looking at your dir tree, I would move your symbol stuff out of the htdocs branch and into the area where your map files are.

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users at lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I added a few things to my sym file and got a few  to work

I can now call circle and get a circle….BUT for some reason the image will not work, maybe an issue with the image?  You have any test images that are known to work?
I have the image like this IMAGE 'bike.png' because the images are in the same folder as the .sym file

Any other thoughts….greatly appreciated….thanks

THIS WORKS
                     CLASS
                           NAME 'Last Week'
                           STYLE
                                  SYMBOL "circle"
                                  COLOR 0 0 0
                                  OUTLINECOLOR 0 0 0
                                  #SIZE 12
                         END  # STYLE
                     END # CLASS
THIS DOES NOT WORK
                     CLASS
                           NAME 'Last Week'
                           STYLE
                                  SYMBOL "bike"
                                  COLOR 0 0 0
                                  OUTLINECOLOR 0 0 0
                                  #SIZE 12
                         END  # STYLE
                     END # CLASS
.SYM FILE

Symbol
Name 'circle'
Type ELLIPSE
FILLED TRUE
Points
1 1
END
END

SYMBOL
    NAME 'circle-dashed'
    TYPE ELLIPSE
    FILLED TRUE
    POINTS 1 1 END
    STYLE 5 5 END
  END

SYMBOL
       NAME 'bike'
       TYPE pixmap
       IMAGE 'bike.png'
END



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100921/19a7c4c9/attachment-0001.html


More information about the mapserver-users mailing list