Shape layer is not shown. Please help

Baris YILMAZ baris_999 at YAHOO.COM
Thu Mar 2 10:21:48 EST 2006


I did the changes you told me and now it works. Thank you all who helped on the matter. Best regards

Baris

Travis Kirstine GIS Tech <tkirstine at jdbarnes.com> wrote:     Firstly, you should define a symbols.sym file that will  be used to draw your map symbols (points, lines, polygons)
 It is  declared in the map object just liike SHAPEPATH.  By default mapserver will  only draw points as one pixel if there is no
 symbol  defined
  
  
 SYMBOLSET your path to the symbol.sym  file    e.g.  /var/www/html/map_symbols/symbols.sym
  
  open the symbol.sym file with a text  editor and add the following 
  
 SYMBOL
    NAME 'circle'
    TYPE  ELLIPSE
    FILLED TRUE
    POINTS
       1 1
     END
 END
  

 Save  the file and close,  Add the following to your Brunnen CLASS in the  mapfile
  
  
     CLASS  
        NAME  "Brunnen"
         COLOR 255 0  0
         OUTLINECOLOR  0 255 0
         SYMBOL  'circle'
         SIZE 12
     END
  
 Travis
  
 

  
    -----Original Message-----
From: UMN MapServer Users List    [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Baris    YILMAZ
Sent: Wednesday, March 01, 2006 9:46 AM
To:    MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Shape    layer is not shown. Please help


Hi,

I have a map    file, which has two layers, one a raster layer, and the other a shapefile. But    the raster layer is shown whereas the layer Brunnen (shapefile) is not shown.    Can anyone help? I checked the path of the shape file and it is ok.. Can    anyone help me please? Is there anything missing in the layer definitions of    the layer "Brunnen"? My shapefile contains just cross symbols. 

Thank    you.
Baris


Below my mapfile;

MAP
  EXTENT    3439438.15784499212000 5501464.74457754190000 3440160.4830    5511464.6416
  IMAGECOLOR 240 240 240
  IMAGETYPE    png
  SHAPEPATH "C:/ms4w/apps/Data/KartenSHP/GWMshp/"
  SIZE    500 400
  STATUS ON
  UNITS METERS
  NAME "Hessischer    Ried"

  OUTPUTFORMAT
    NAME    "png"
    MIMETYPE "image/png"
    DRIVER    "GD/PNG"
    EXTENSION "png"
    IMAGEMODE    "PC256"
    TRANSPARENT FALSE
  END

     PROJECTION
    "proj=lcc"
       "lat_1=32"
    "lat_2=44"
       "lat_0=38"
    "lon_0=-100"
       "x_0=0"
    "y_0=0"
       "ellps=GRS80"
    "datum=NAD83"
  END
     LEGEND
      IMAGECOLOR 255 255    255
    KEYSIZE 20 10
    KEYSPACING 5    5
    LABEL
      SIZE    MEDIUM
      TYPE    BITMAP
      BUFFER    0
      COLOR 0 0    0
      FORCE    FALSE
      MINDISTANCE    -1
      MINFEATURESIZE    -1
      OFFSET 0    0
      PARTIALS TRUE
       END
    POSITION LL
    STATUS    EMBED
    TEMPLATE    "C:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/legend_template.html"
     END

  QUERYMAP
      COLOR 255 255    0
    SIZE -1 -1
    STATUS    OFF
    STYLE HILITE
  END

     SCALEBAR
      COLOR 0 0 0
       IMAGECOLOR 255 255 255
    INTERVALS 4
       LABEL
      SIZE    MEDIUM
      TYPE    BITMAP
      BUFFER    0
      COLOR 0 0    0
      FORCE    FALSE
      MINDISTANCE    -1
      MINFEATURESIZE    -1
      OFFSET 0    0
      PARTIALS TRUE
       END
    POSITION LL
    SIZE 200    3
    STATUS OFF
    STYLE    0
    UNITS MILES
  END

     WEB
    IMAGEPATH    "C:/ms4w/tmp/ms_tmp/"
    IMAGEURL    "/ms_tmp/"
         METADATA
      END
       QUERYFORMAT text/html
  END

  LAYER
       DATA    "C:\ms4w\apps\Data\KartenSHP\Karten\TK25\60xx\6015SI_96.tif"
         METADATA
      END
    NAME    "Ried"
    SIZEUNITS METERS
    STATUS    ON
    TOLERANCEUNITS PIXELS
    TYPE    RASTER
    UNITS METERS
  END

     LAYER
    NAME "Brunnen"
    STATUS    DEFAULT
     DATA "Brunnen"
    TYPE    POINT
    UNITS METERS
    SIZEUNITS    PIXELS
    TOLERANCEUNITS PIXELS
        METADATA
    END
       PROJECTION
              "proj=lcc"
             "lat_1=32"
           "lat_2=44"
           "lat_0=38"
           "lon_0=-100"
           "x_0=0"
        "y_0=0"
           "ellps=GRS80"
           "datum=NAD83"
    END
    CLASS    
        NAME "Brunnen"
       END
 END


END

      

---------------------------------
   Yahoo! Mail
Bring photos to life! New    PhotoMail makes sharing a breeze. 

		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060302/8abd3768/attachment.html


More information about the mapserver-users mailing list