[mapserver-users] mapfile correction

Daniel Morissette morissette at dmsolutions.ca
Mon Sep 2 13:27:03 EDT 2002


Did you try setting STATUS DEFAULT in your layers and removing the
MINSCALE/MAXSCALE settings?

Also, did you check that your IMAGEPATH directory exists and is writable
by the web user, and is accessible at the specified IMAGEURL via the web
server?

Daniel


Stefan Stern wrote:
> 
> Hi all,
> 
> I want to display a shapefile, but I don't receive an image output in
> mapserver.
> 
> The template file turns up in the browser and there are no error
> messages in the apache logfile.
> Filepath and mapextent are correct too.
> 
> Is there an error in my mapfile?:
> #####################################
> NAME Test
> 
> #complete extend
> EXTENT 264539.5 191653.5 269773.5 199848.5
> 
> SIZE 400 400
> SHAPEPATH "data"
> 
> WEB
>        TEMPLATE "28aug.html"
>        IMAGEPATH "/home/userdirk/public_html/tmp/"
>        IMAGEURL "/~userdirk/tmp/"
>        MAXSCALE 50000
>        MINSCALE 4000
> END
> 
> SYMBOL # define symbols
>   NAME "circle"
>   TYPE ELLIPSE
>   POINTS 2 2 END
>   FILLED TRUE
> END
> 
> LAYER # start of the gps layer object
>   NAME "gps"
>   DATA gps
>   STATUS ON
>   TYPE POINT
> 
>   CLASS # gps points class
>     NAME "Gps"
>     COLOR 128 255 164
>     SYMBOL 'circle'
>     SIZE 6
>   END # end of gpsp class object
> 
> END # GPS Layer End
> 
> LAYER # Shaded Relief Raster
>   NAME "casi"
>   DATA "raster/valley.tif"
>   STATUS OFF
>   TYPE RASTER
>   #OFFSITE 0
> END
> 
> END # end of map file
> ##################################
> 
> Thank's and Regards,
> Stefan



More information about the mapserver-users mailing list