[mapserver-users] Mapfile displaying in red

Brent Fraser bfraser at geoanalytic.com
Wed Jul 15 09:59:39 EDT 2009


Paul,

   Read the Mapserver documentation on tile indexing 
(http://mapserver.org/input/raster.html#rasters-and-tile-indexing).

Best Regards,
Brent Fraser


Paul Curran wrote:
> Hi
>  
> When i load my map file which can be seen below i can view the outline 
> of map but the actual map displays as red. I am viewing the map via the 
> mapserver.exe 
> (e.g.http://localhost/cgi-bin/mapserv.exe?mode=map&map=c:/ms4w/apps/openlayers-2.5/data/test.map&layer='map' 
> <http://localhost/cgi-bin/mapserv.exe?mode=map&map=c:/ms4w/apps/openlayers-2.5/data/test.map&layer='map'>)
>  
> Here is my map file, Can anyone spot were i am going wrong? any help 
> greatly appreciated.
>  
> The uk.shp file i am attempting to load consists of .tiff images amd was 
> put together using FWTools
>  
> MAP
> NAME test
>   # Map image size
>   SIZE 400 600
>   IMAGECOLOR 249 245 186
>     IMAGETYPE PNG24
>   OUTPUTFORMAT
>     NAME PNG24
>     DRIVER 'GD/PNG'
>     MIMETYPE 'image/PNG'
>     #IMAGEMODE PC256
>     EXTENSION 'png'
>   END
>   EXTENT -888385.321101 -31000.000000 1548385.321101 1271000.000000
>   
>   WEB
>  IMAGEPATH "\ms4w\tmp\ms_tmp\"
>     IMAGEURL "\ms_tmp\"
>     METADATA
>      WMS_SRS "EPSG:4326 EPSG:900913"
>  END
>   END
>   LAYER
>     NAME 'map'
>     DATA 'C:\ms4w\apps\openlayers-2.5\data\map.shp'
>     TYPE polygon
>     STATUS DEFAULT
>     TRANSPARENCY 100
>     PROJECTION
>     'proj=longlat'
>     'ellps=WGS84'
>     'datum=WGS84'
>     'no_defs'
>     ''
>     END
>     CLASS
>        NAME 'map'
>        STYLE
>          COLOR 255 0 0
>        END
>        LABEL
>    TYPE bitmap
>     END
>     END
>   END
> END
>  
> 
> ------------------------------------------------------------------------
> Upgrade to Internet Explorer 8 Optimised for MSN. Download Now 
> <http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list