Trouble with displaying projected shapefile

Ethan Alpert ealpert at DIGITALGLOBE.COM
Tue Jun 21 10:45:47 PDT 2005


Do you pass the layer name in the URL (&layers=world_eca)? The status of
your layer is ON this means it's only displayed if requested. Change it
to DEFAULT if you want it displayed regardless of whether you ask for
it. The only other thing I notice is that you pass Decimal Degrees
Extents but say the UNITS are METERS in your mapfile. I'm sure this is
being interpreted wrong. Do a shpdump on the shapfile and use the "File
Bounds" listed as your extents.
 
-e

	-----Original Message-----
	From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hoeven, Maarten van
der
	Sent: Tuesday, June 21, 2005 5:50 AM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] Trouble with displaying projected
shapefile
	
	

	Dear list, 

	I have a shape file, world_eca, projected in "north pole
stereographic". Below are the projection specifications. 

	I added the shape file in the map, but I do not manage to
display it in mapserver. Is there something obvious I am doing wrong?

	An "echo $gpoMap->getProjection()" reveals "+proj=stere
+lat_ts=90 +lat_0=90 +lon_0=0 +k_0=1 +x_0=0 +y_0=0" 

	Regards, 
	Maarten van der Hoeven 

	--- projection specs --- 
	PROJCS["North_Pole_Stereographic", 
	GEOGCS["GCS_WGS_1984", 
	DATUM["D_WGS_1984", 
	SPHEROID["WGS_1984",6378137.0,298.257223563]], 
	PRIMEM["Greenwich",0.0], 
	UNIT["Degree",0.0174532925199433]], 
	PROJECTION["Stereographic"], 
	PARAMETER["False_Easting",0.0], 
	PARAMETER["False_Northing",0.0], 
	PARAMETER["Central_Meridian",0.0], 
	PARAMETER["Scale_Factor",1.0], 
	PARAMETER["Latitude_Of_Origin",90.0], 
	UNIT["Meter",1.0]] 

	--- map file --- 
	# 
	# Start of map file 
	# 
	NAME ECAD 
	STATUS ON 
	SIZE 400 300 
	SYMBOLSET ../etc/symbols.sym 
	EXTENT -90 0 90 90 
	UNITS meters 
	SHAPEPATH "../data" 
	IMAGECOLOR 255 255 255 
	FONTSET ../etc/fonts.txt 

	PROJECTION 
	    "+proj=stere" 
	    "+lat_ts=90" 
	    "+lat_0=90" 
	    "+lon_0=0" 
	    "+k_0=1" 
	    "+x_0=0" 
	    "+y_0=0" 
	END 

	QUERYMAP 
	  STATUS ON 
	  STYLE SELECTED 
	  COLOR 255 0 0 
	END 

	WEB 
	  MINSCALE 2000 
	  MAXSCALE 50000000 
	  IMAGEPATH "/webdata/ecad/htdocs/tmp/" 
	  IMAGEURL "/tmp/" 
	  LOG /tmp/gmap.log 
	END 

	REFERENCE 
	   IMAGE images/keymap.png 
	   EXTENT -2200000 -712631 3072800 3840000 
	   STATUS ON 
	  COLOR -1 -1 -1 
	  OUTLINECOLOR 255 0 0 
	  SIZE 120 90      
	END 

	LEGEND 
	  KEYSIZE 18 12 
	  LABEL 
	    TYPE BITMAP 
	    SIZE MEDIUM 
	    COLOR 0 0 89 
	  END 
	  STATUS ON 
	END 

	SCALEBAR 
	  IMAGECOLOR 255 255 255 
	  LABEL 
	    COLOR 0 0 0 
	    SIZE SMALL 
	  END 
	  SIZE 350 5 
	  COLOR 255 255 255 
	  BACKGROUNDCOLOR 255 0 0 
	  OUTLINECOLOR 0 0 0 
	  UNITS kilometers 
	  INTERVALS 10 
	  STATUS ON 
	END 

	LAYER 
	  NAME world_eca 
	PROJECTION 
	    "+proj=stere" 
	    "+lat_ts=90" 
	    "+lat_0=90" 
	    "+lon_0=0" 
	    "+k_0=1" 
	    "+x_0=0" 
	    "+y_0=0" 
	END 
	  TYPE POLYGON 
	  STATUS ON 
	  DATA world_eca 
	  CLASS 
	    STYLE 
	        OUTLINECOLOR 100 100 100 
	        COLOR 191 209 255 
	    END 
	 END 
	END 
	END # Map File 





	Drs. Maarten van der Hoeven 
	ECA&D Project 
	PO Box 201 
	3730 AE De Bilt 
	The Netherlands 
	Phone: +31-30-2206 402 
	Fax: +31-30-2204 614 
	Email: hoevenvd at knmi.nl (personal) 
	Email: eca at knmi.nl (project) 
	Website: http://eca.knmi.nl <http://eca.knmi.nl>  



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050621/ee296cc3/attachment.htm>


More information about the MapServer-users mailing list