[Geomoose-users] Pink layer error

FRANZ OKYERE franzzoa at hotmail.com
Wed Jan 20 14:27:23 EST 2010


Dear friends, 

I am greatful for your help in building my geomoose application. Please follow this link to get to it http://www.myghanasearch.com/search/mview.html But  there is an error with one of my layers I just can't fathom. It works fine when I am offline. The error says;

MapServer MessageloadSymbol(): Unable to access file. Parsing error near 
(C:\ms4w\apps\geomoose2\maps\symbols\Q2.png):(line 267)  Apparently there is no line 267.

and here is my mapfile. Thanks very much. Franz Okyere. GIS Specialist

# Map file created from QGIS project file C:/Users/Franzy/Documents/GIS Data/LinxMb.qgs
# Edit this file to customize for your map interface
# (Created with PyQgis MapServer Export plugin)
MAP
  NAME ghana 
  # Map image size
  SIZE 800 650  
  UNITS meters
  TRANSPARENT FALSE
  FONTSET "../../fonts/fontset.list"
  SYMBOLSET "../../symbols/symbol.sym"
  EXTENT 44122.792792 523627.732277 1391863.961749 1236515.357466
  PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 150 150 255
  IMAGEQUALITY 95
  IMAGETYPE gif
  OUTPUTFORMAT
    NAME gif
    DRIVER 'GD/GIF'
    MIMETYPE 'image/gif'
    #IMAGEMODE PC256
    EXTENSION 'gif'
  END
  # Legend

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
    # Set IMAGEPATH to the path where MapServer should
    # write its output.
    IMAGEPATH '/tmp/'

    # Set IMAGEURL to the url that points to IMAGEPATH
    # as defined in your web server configuration
    IMAGEURL '/tmp/'

    # WMS server settings
    METADATA
      'wms_title'           ''
      'wms_onlineresource'  'http://my.host.com/cgi-bin/mapserv?map=wms.map&'
      'wms_srs'             'EPSG:4326'
    END

    #Scale range at which web interface will operate
    # Template and header/footer settings
    # Only the template parameter is required to display a map. See MapServer documentation
  END

   LAYER
    NAME 'ghanaregions'
    TYPE POLYGON
    DATA './ghanaregions'
    METADATA
      'wms_title' 'ghanaregions'
    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    'proj=longlat'
    'ellps=WGS84'
    'datum=WGS84'
    'no_defs'
    END

            CLASS

              NAME 'Parcels'
              STYLE
              WIDTH 5
                COLOR 255 255 255  
                OUTLINECOLOR 255 0 0
            END

            END
  END


    LAYER # City Boundary Polygon Layer
        NAME city_labels
        DATA './ghanaregions'
        STATUS ON
        MAXSCALEDENOM 1559055
        MINSCALEDENOM 90708
        TYPE annotation
        LABELITEM 'NAME'
        LABELCACHE ON
         CLASS
           COLOR -1 -1 -1
           LABEL
        TYPE TRUETYPE
        FONT vera_sans
        MAXSIZE 10
        SIZE 8
        MINSIZE 8
        #ANTIALIAS TRUE
        COLOR 0 0 0
        OUTLINECOLOR 255 255 128
        BUFFER 2
           END
         END
  END # City Boundary Polygon Layer


END


#Note there are 111 lines of code in the mapfile
 		 	   		  
_________________________________________________________________
Send us your Hotmail stories and be featured in our newsletter
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100120/119e96e8/attachment.html


More information about the Geomoose-users mailing list