AW: [Mapserver-users] Raster layer and Projection

frauke.trurnit at gmx.de frauke.trurnit at gmx.de
Wed Dec 11 05:24:47 EST 2002


Jan,
I've changed the LAYER-STATUS to DEFAULT but nothing happens.
Frauke

NAME "Raster-Stuttgart"
STATUS ON
EXTENT 509900 5410000 520000 5400000
UNITS METERS
#EXTENT 9.1351 48.8274 9.2707 48.7373
#UNITS dd
SIZE 500 500
SHAPEPATH "/www/projects/raster/data/raster/"			
IMAGECOLOR 230 230 230
IMAGETYPE GIF

PROJECTION
   "init=epsg:32632"
   #proj=UTM
   #ellps=WGS84
   #datum=WGS84
   #zone=32
   #north
   #no_defs
END

WEB
  TEMPLATE "./raster.html"
  IMAGEPATH "/usr/local/httpd/htdocs/ms_temp/"	
  IMAGEURL "http://172.23.71.157/ms_temp/"	
END
...
LAYER
  NAME "Stuttgart-Mairs"			
  DATA "stgt_d7517_70pdi.tif"			
  TYPE Raster
  STATUS DEFAULT
  PROJECTION
    "init=epsg:32632"
    #proj=UTM
    #ellps=WGS84
    #datum=WGS84
    #zone=32
    #north
    #no_defs
  END
END #layer
END #mapfile

-----Ursprüngliche Nachricht-----
Von: Jan Hartmann [mailto:jhart at frw.uva.nl]
Gesendet: 10 December 2002 19:07
An: f.tr at dds.ptv.de
Betreff: Re: [Mapserver-users] Raster layer and Projection


Frauke,

Please please please set "STATUS DEFAULT". This is a "rite de passage" 
every MapServer user has to go through. Is there any kind-hearted person 
who can explain why we need STATUS DEFAULT in addition to STATUS OFF and 
STATUS ON? If you want to set layers on via the URL, you can just as 
well use STATUS OFF in the MapFile.

Jan Hartmann

frauke.trurnit at gmx.de wrote:
> Hello list,
> 
> I've some problems with rasterlayer. I hava a 8bit-tif and a tfw world
file
> in the same directory. In the Browser however no map appears. What's wrong
> with the mapfile?
> 
> In addition an error message appears in the Browser, if I use the
> projection indicated down.
> Error message:
> msProcessProjection(): Projection library error. unknown projection id
> 
> 
> The world file looks like that:  
     this worldfile is correct- 6 digits before the decimal point is o.k.
> 1.00000000000000000
> 0.0
> 0.0
> -1.00000000000000000
> 509854.76027950307          
> 5408094.4232678544
> 
> My mapfile:
> NAME "Raster-Stuttgart"
> STATUS ON
> EXTENT 9.1351 48.8274 9.2707 48.7373
> UNITS dd
> SIZE 500 500
> SHAPEPATH "/www/projects/raster/data/raster/"			
> 
> IMAGECOLOR 230 230 230
> IMAGETYPE GIF
> 
> #PROJECTION
> #   proj=UTM
> #   ellps=WGS84
> #   datum=WGS84
> #   zone=32
> #   north
> #   no_defs
> #END
> 
> WEB
>   TEMPLATE "./raster.html"
>   IMAGEPATH "/usr/local/httpd/htdocs/ms_temp/"	
>   IMAGEURL "http://172.23.71.157/ms_temp/"	
> END
>  
> #LAYER
DEFINITIONEN---------------------------------------------------------
> LAYER
>   NAME "Stuttgart"			
>   DATA "stgt_d7517_unk.tif"			
>   TYPE Raster
>   STATUS ON
> END 
> 
> END #mapfile
> 
> Frauke Trurnit
> 

Jan Hartmann
Department of Geography
University of Amsterdam
jhart at frw.uva.nl

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!




More information about the mapserver-users mailing list