projection questions

Fawcett, David David.Fawcett at STATE.MN.US
Mon Jul 17 13:27:30 PDT 2006


Albert, 
 
I am pretty sure that this has been pointed out before.  MapServer does
not use the ESRI .prj files.  
 
You simply need to define projection blocks in your mapfile for both
your output projection and for the input projection of each data layer.
To do this of course, you will need to know what projection your data is
in.  
 
David.

	-----Original Message-----
	From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Albert Anderson
	Sent: Monday, July 17, 2006 3:18 PM
	To: MAPSERVER-USERS at LISTS.UMN.EDU
	Subject: [UMN_MAPSERVER-USERS] projection questions
	
	
	Hi,
	
	 Can you put a projection file in a map. Then put regular shp
files the layers?  How can you do that?  I am using mapserver 4 on a
lunix machine.  I put a projection file in my map file but I only have
one of them.  The rest are regular shp files. I cant seem to get the
layers show up with my projection file.
	Thanks,
	Albert
	
	#This is Richland County Map Server
	NAME "Richland"
	SIZE 309 417
	UNITS meters
	IMAGECOLOR 255 255 255
	IMAGETYPE JPEG
	PROJECTION 
	"init=epsg:26914"
	END
	SHAPEPATH "/home/mapdata/"
	EXTENT 626173.309834 5085113.091715 694065.960556 5176735.212592
	#EXTENT -97.228391 45.907505 -96.628389 46.717217
	#################################### 
	# Symbol for drawing fat lines
	#
	SYMBOL
	     NAME "BigLine"
	     TYPE ELLIPSE
	     POINTS 1 1 END
	END
	
	##################################### 
	# Symbol for drawing dashed lines
	#
	SYMBOL
	     NAME "DashedLine"
	     TYPE ELLIPSE
	     POINTS 1 1 END
	     STYLE 10 10 END   
	END
	
	##################################### 
	# Symbol for drawing spots
	#
	SYMBOL
	     NAME "Circle"
	     FILLED true
	     TYPE ellipse
	     POINTS 1 1 END
	END
	
	##################################### 
	# Web object
	#
	WEB
	  TEMPLATE '/var/www/htdocs/gismapserver_test_project_mod.html'
	  IMAGEPATH '/var/www/htdocs/tmp/'
	  IMAGEURL '/tmp/'
	END
	
	##################################### 
	# Reference map
	#
	REFERENCE
	     IMAGE "/home/mapdata/richland.gif"
	     SIZE 136 152
	     EXTENT -97.228391 45.907505 -96.628389 46.717217
	     STATUS ON
	     COLOR -1 -1 -1
	     OUTLINECOLOR 0 0 0
	END
	
	#####################################  
	# Scalebar
	#
	SCALEBAR
	     LABEL
	          COLOR 0 0 0 
	          ANTIALIAS true
	          SIZE small
	     END
	     POSITION lr
	     INTERVALS 5
	     STATUS off
	     SIZE 144 5
	     STYLE 0
	     UNITS miles
	     BACKGROUNDCOLOR 0 255 0
	     IMAGECOLOR 255 255 255
	     COLOR 128 128 128     
	     OUTLINECOLOR 0 0 255
	     TRANSPARENT off
	END
	##################################### 
	LAYER
	    NAME "richland"
	    STATUS default
	    TYPE polygon
	    DATA "RICH_bndy"
	    PROJECTION "init=epsg:26914"
	    END
	    CLASS
	      STYLE
	            COLOR 238 220 130
	      END
	   END
	END
	##################################### 
	LAYER
	    NAME "boundary"
	    STATUS default
	    TYPE line
	    DATA "RC_boundary_05"
	    CLASS
	      STYLE
	            COLOR 0 0 0
	      END
	   END
	END
	##################################### 
	LAYER
	    NAME "roads"
	    STATUS default
	    TYPE line
	    DATA "roads_shp"
	    PROJECTION "init=epsg:4326"
	    END
	    CLASS
	      STYLE
	            COLOR 255 0 0
	      END
	   END
	END
	##################################### 
	LAYER
	    NAME "sections"
	    STATUS default
	    TYPE line
	    DATA "RC_sections_05"
	    CLASS
	      STYLE
	            COLOR 255 130 171
	      END
	   END
	END
	##################################### 
	LAYER
	    NAME "parecles"
	    STATUS default
	    TYPE line
	    DATA "RC_parcels_05"
	    CLASS
	      STYLE
	            COLOR 0 0 0
	      END
	   END
	END
	END
	
	

	
________________________________

	See the all-new, redesigned Yahoo.com. Check it out.
<http://us.rd.yahoo.com/evt=40762/*http://www.yahoo.com/preview>  

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


More information about the MapServer-users mailing list