[mapserver-dev] need a help for symbolset in mapserver

Firdaus alikomeini at gmail.com
Thu Mar 31 12:19:08 EDT 2011


Hallo,

 

I'm beginner in mapserver. I'm trying to upload my shapefile which contains
point type. 

I can't display the symbol in the browser. I've followed the instruction in
http://mapserver.org/mapscript/php/by_example.html?highlight=symbol%20set

But, I still don't know how to solve my problem.

 

Please help me to find the solution.

 

The script is written as following below:

 

city.map

=======================================================

MAP                     

  NAME      City                   

  IMAGETYPE      JPEG                      

  EXTENT        95.214 5.82 95.384 5.87 

  STATUS        ON              

  UNITS         DD          

  SIZE          600 500     

  IMAGECOLOR    255 255 255

  SHAPEPATH     "/home/user/public_html/city" 

  SYMBOLSET     "/home/user/public_html/city/symbol/symbol.sym"

  LAYER                                  

    NAME         City              

    DATA         main_city    

    STATUS       ON     

    TYPE         POINT 

    CLASS

      NAME      "city_name"

      STYLE

                SYMBOL "circle" 

                SIZE 20 

                COLOR 251 91 38

                OUTLINECOLOR 0 0 0 

      END

    END

  END 

END 

==========================================================

 

File of symbol.sym contains some scripts, such as:

 

symbol.sym

=================

SYMBOL

   NAME "circle"

   TYPE Ellipse

   POINTS 

     1 1 

   END

   FILLED True

END 

=================

 

The city.map file is linked by a URL address 

 

City.html

========

<img border="1"
src="http://gis.detik.com/cgi-bin/mapserv?map=/home/user/public_html/map/cit
y.map&layers=all&mode=map">

========

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110331/d2dde9ed/attachment.html


More information about the mapserver-dev mailing list