[Mapserver-users] Raster files problem

Omry Yadan omry at telmap.com
Mon Oct 13 06:24:25 PDT 2003


Great!
After changing to this, it worked.
Thanks!

I had to remove the MINSCALE and MAXSCALE.
How to interpret the values in those parameters?


MAP
	NAME Sample
	SIZE 600 600
	EXTENT 660000 7680000 810000 7790000 

	PROJECTION
	 "init=epsg:28354"
	END

	LAYER
		NAME "layer_1"
		DATA "c:\projects\ecw\sf5504.ecw"
		TYPE RASTER
		STATUS DEFAULT
	END
	

END # Map File


-----Original Message-----
From: Jan Hartmann [mailto:jhart at frw.uva.nl] 
Sent: á 13 àå÷èåáø 2003 14:24
To: Omry Yadan
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Raster files problem

Omry,

You have to set STATUS DEFAULT to get a visible map. With STATUS ON, you 
have to specify the layer explicitly in the URL 
(.../mapserv?map=...&layer=...)

MapServer ignores non-existing raster files when it is compiled with the 
--enable-ignore-missing-data flag (the default). I always compile with 
--disable-ignore-missing-date for development, and only ignore missing 
data for production.

Not seeing anything without an error is generally caused by:

- wrong extent
- status on instead of default
- incorrect raster file name

HTH

Jan

Omry Yadan wrote:
> I am trying to show an ECW raster file, and I am unable to get anything.
> I do not get an error, but the image I get is empty.
> A weird thing is, that even when I deliberately fuck up the file name, I
> don't get an error.
> It seems like the data is totally ignored...
> And idea?
> 
> This is my map file:
> 
> MAP
> 	NAME Sample
> 	STATUS ON
> 	SIZE 600 600
> 	EXTENT 660000 7680000 810000 7790000 
> 
> 
> 	PROJECTION
> 	 "init=epsg:28354"
> 	END
> 
> 	LAYER
> 		NAME "layer_1"
> 		DATA "c:\projects\ecw\sf5504.ecw"
> 		TYPE RASTER
> 		MINSCALE 1
> 		MAXSCALE 25000
> 		STATUS ON
> 	END
> 	
> 
> END # Map File
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 




More information about the MapServer-users mailing list