[Geomoose-users] Pink layer error

Brent Fraser bfraser at geoanalytic.com
Wed Jan 20 14:40:46 EST 2010


Franz,

  The messages from mapserver indicate your
/home/myghanas/other/search/maps/demo/countydata/ghana.map has:

 - an OUTPUTFORMAT of agg, but mapserver doesn't agg compiled in
 - the parsing error below.  The line number is including any "INCLUDE"
files your map file uses

Check all the .map files you are using.

Brent Fraser

>
> 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/
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established
> companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>
>






More information about the Geomoose-users mailing list