[Geomoose-users] direct connect to SID files

Mark Volz MarkVolz at co.lyon.mn.us
Mon Jul 27 17:21:30 EDT 2009


Matt,

Here is an example of how to directly connect to a local raster.  It is
reprojecting a sid on the fly.
 
###Begin file 
MAP
	NAME 'TestSid'
	STATUS ON
	IMAGETYPE JPEG
	TRANSPARENT TRUE
	Projection  #Of the Map
        	"proj=lcc"
   	    	'lat_1=44.25'
		'lat_2=44.58333333333334'
	    	'lat_0=44.19555555555555'
	    	'lon_0=-95.85000000000001'
	    	'x_0=152400.3048006096'
	    	'y_0=30480.06096012192'
	    	'a=6378559.758'
	    	'b=6357173.65471281'
     		"units=ft"
        	"no_defs"
   	END #projection
  	LAYER
    	      NAME 'FSA 2006 SID'
    	      DATA 'naip_1-1_2n_s_mn083_2006_1.sid'
    	      STATUS DEFAULT
    	      TYPE RASTER
    		PROJECTION #UTM-15N (projection of the data)
     	  		"init=epsg:26915"
     		END #projection
  	END #LAYER
 END ## end Map
###End File

However there are a couple issues with this:
1) I don't think mapserver is compiled to work with JP2000 files.
2) Mapserver is not very fast at displaying large rasters.  You might want to
consider using zoom scales, or perhaps have someone assist you with building
tiles.


Mark Volz
GIS Specialist
Lyon County, MN
>From: Matthew D. Syvertson <msyvertson at co.richland.nd.us>
>To: geomoose-users at lists.sourceforge.net
>Sent: Monday, July 27, 2009 3:39:49 PM
>Subject: [Geomoose-users] Problem with Rasters
>
>
>Hello to all,
>I hope someone has a sample map file that can help me out.  I currently have
WMS layers that serve as my background imagery, but I need to switch to file
based rasters, because I am having a few issues.  BUT, I cannot get mine to
work.  Here are the specific potential problems:
>-      MR SID format
>-      Very large
>-      Different projection from the main map
>If you have a map file that has helped you to serve up a rasterwith these
constraints, I would appreciate a chance to view the .map file.  If you don?t
have a sample, but have pointers for me I wouldappreciatethis help as well.
>I know this seems to be a mapserver issue, but I have tried the
documentation at that site also with no help?
>Matt Syvertson
>Richland County GIS Coordinator
>418 2nd Ave N
>Wahpeton, ND 58075
>msyvertson at co.richland.nd.us
>Voice: 701-642-7860  Fax: 701-642-7746




More information about the Geomoose-users mailing list