[mapserver-users] Projection problems

basvmrs bas at cipix.nl
Fri Jan 7 02:26:01 PST 2011


Hi,

I've created a map server in which I try to output data that was entered
using Google Maps V2 (drawing polygons). I used openlayers to display the
results over a Bing layer.

There seems to be a problem in the projection, which is best described using
an image and a link:

http://bir.cipixtest.nl/resources/gis/demo.html Demo 
http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png 

Notice how the areas seem to 'shift' when zooming in.

My mapfile looks like this:


#
# Start of map file
#
MAP
	NAME BIR
	STATUS ON
	SIZE 600 600
	EXTENT 4.4 51.85 4.6 51.95
	UNITS METERS

	IMAGETYPE PNG

	PROJECTION
		"init=epsg:900913"
	END

	TRANSPARENT ON

	LAYER
		NAME bedrijventerreinen
		TYPE POLYGON
		STATUS DEFAULT
		CONNECTIONTYPE OGR
		CONNECTION "MySQL:bir,host=XXXXX,user=XXXXX,password=XXXXXXX,port=3306"
		DATA "SELECT * from gis_object"
		DUMP TRUE
		CLASS
			NAME 'Bedrijventerreinen'
			STYLE
				OUTLINECOLOR 0 0 0
				COLOR 200 200 200
			END
		END
		TEMPLATE "object.html"

		METADATA
			gml_include_items "all"
			WMS_TITLE "Bedrijventerreinen"
			WMS_ABSTRACT "Bedrijventerreinen in de Regio Rotterdam; de gebieden zijn
een benadering en er kunnen geen rechten aan worden ontleend."
			WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326"
		END
	END

END # Map File

I don't have a clue why this is happening. I hope that someone can explain
to me why this is happening and how to fix it.

Kind regards,
Bas
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list