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@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-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users@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



_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to