[Mapserver-users] Max image size

Swaminathan, Gayathri gayathri at ou.edu
Fri Sep 26 17:02:00 EDT 2003


Hi:

I am trying to project the USGS urban orthos at
http://gisdata.usgs.net/mapservices.asp?CategoryName=Orthoimagery using
mapserver version 4.

My map projection is in America Albers Equal Area Conic

And the WMS layer request is in WGS 84. 

The initial hurdle of the map image getting squished was overcome with the
help of Brian's advice to do REASPECT=false at the end of the request
string.

But there is a white band that still appears after zooming in over a certain
scale. 

We are not sure if this is a WGS84->Albers problem or else.

Has anyone else come across this problem? We really love albers projection
for the map. 

Thanks,
Gayathri


The map file looks like below:

#
# Start of map file
#
MAP
NAME OKSTATE40
STATUS ON
SIZE 500 400
EXTENT -633771.227805 1060738.573036 152927.340425 1689379.870746 
#EXTENT -665000 -707000 163000 -227000
UNITS METERS
#EXTENT -102 33 -94 37
#UNITS DD
SHAPEPATH "../data"
FONTSET fonts.list
#IMAGECOLOR 255 255 255
IMAGECOLOR 206 208 214
INTERLACE ON
SYMBOLSET "symbolset.list"

OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB
   EXTENSION "png"
 END



PROJECTION # ALBERS OK -all drg's and doqq's on geo site are OK ALBERS
	proj=aea
	lat_1=29.500000000 #SP1
	lat_2=45.500000000 #SP2
	lat_0=23.000000000 #REF LAT
	lon_0=-96.000000000 #CENTRAL MERIDIAN
	x_0=0.000 #FALSE EAST
	y_0=0.000 # FALSE NORTH
	datum=NAD83
	ellps=GRS80
	no_defs
END

WEB
	EMPTY
"http://129.15.172.20/geomap/OKSTATE40/mapOKSTATE40norecords.htm"

...... And so on....

### OKC 2002 Ortho USGS-WMS ###
LAYER
	NAME Urban133
	GROUP Imagery
	TYPE RASTER
	STATUS ON
	MAXSCALE 500000
	OFFSITE 255 255 255
	CONNECTIONTYPE WMS
	CONNECTION
"http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urba
n&REASPECT=true&REQUEST=map"
	#MINSCALE 500
	PROJECTION
		"init=epsg:4326" #WGS 84
	END
	TRANSPARENCY 20
	METADATA
		"NoID" "T"
		"wms_name" "UA_ORTHO_302_01"
		"wms_server_version" "1.0.0"
		"wms_format" "png"
		"wms_title" "USGS Urban Color Ortho 2002"
		"wms_group_title" "Imagery"
		"wms_style" ""
		"wms_extent" "-123.12987 45.241726 -122.3584 45.75648"
	END

END



More information about the mapserver-users mailing list