Reprojection RasterData Problem

H éctor Paniagua Absentar+mapserver at GMAIL.COM
Mon Nov 26 07:49:18 PST 2007


Hello.

I have some problems when I try to reproject a raster layer from
EPSG:23030(UTM zone 30N, ED50) to EPSG:4258 (Lat/Long, ETRS89) beacuse I
find a litte difference (about 150 meters) respect to the others data with
EPSG:4258 initial projection, but when I reproject the raster layer to
EPSG:4230 (Lat/Long, ED50) works fine and I don´t see any diference respect
to other layers. Have you ever had this problem ? How did you fix it?

Any ideas would be greatly appreciated.

Thanks!

Héctor Paniagua.

MapFile:

MAP	
	NAME					"DMA-DUERO 09 ORTOFOTO"
	IMAGECOLOR			     255 255 255

	EXTENT					56057.1 463637.28 623342 4784640
	SIZE					  500 500
	IMAGECOLOR			     255 255 255
	IMAGETYPE			      JPEG
	UNITS					 METERS
	DEBUG					ON 
	SHAPEPATH			     "/var/mapserver/data"
	QUERYMAP
		COLOR				120 0 120
		STATUS			       ON
		STYLE				 hilite
	END
        
	...

	PROJECTION
		"init=epsg:23030"
	END
	
	...
	
	LAYER	
		NAME				 "ortofoto"
		METADATA	
			wms_title		 "ortofoto"
			wms_srs			"EPSG:23030 EPSG:4230 EPSG:25830 EPSG:4258"
			wms_group_title	      "ortofoto"
			wfs_title		  "ortofoto"
			wfs_srs			 "EPSG:23030 EPSG:4230 EPSG:25830 EPSG:4258"
			gml_include_items     "all"
		END
		TYPE				  RASTER
		TILEINDEX			"./shapes/ortofoto/ortofoto.shp"
		TILEITEM			 "location"
		GROUP				 "ORTOFOTO"
		DUMP				 TRUE
		DEBUG				 ON
		STATUS				OFF
		MINSCALE		       5000
		MAXSCALE		      20000
	END

	...
	
END

EPSG:4230:
http://www.mirame.chduero.es/cgi-bin/mapserv?REQUEST=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:4230&BBOX=-6.15011,41.20324,-6.10329,41.24034&WIDTH=958&HEIGHT=759&LAYERS=ortofoto&STYLES=default&FORMAT=image/jpeg&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE&map=/var/mapserver/maps/dmaduero09ortofoto.map

EPSG:4258:
http://www.mirame.chduero.es/cgi-bin/mapserv?REQUEST=GetMap&VERSION=1.1.0&SERVICE=WMS&SRS=EPSG:4258&BBOX=-6.15011,41.20324,-6.10329,41.24034&WIDTH=958&HEIGHT=759&LAYERS=ortofoto&STYLES=default&FORMAT=image/jpeg&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE&map=/var/mapserver/maps/dmaduero09ortofoto.map



More information about the MapServer-users mailing list