[mapserver-users] I am trying to return Lat, longs. The x, y coords r...

jacob rodel jacobrodel at hotmail.com
Mon Nov 17 11:20:28 PST 2008


I am trying to return Lat,longs.  The x,y coords return a value but the lat,longs return nothing.


Detailed information for the area you clicked on the map...


UTM Zone 15 Coordinates

X:
[mapx]


Y:
[mapy]


Lat:
[maplat]


Lon:
[maplon]






My .map file
MAP
	NAME 'states'
	SIZE 800 650
	STATUS ON
#	EXTENT 189783.560000 4816309.330000 761653.524114 5472346.500000
	UNITS METERS
	FONTSET '../fonts/fontset.list'
	SYMBOLSET '../symbols/symbol.sym'
	TRANSPARENT TRUE

	PROJECTION
		"init=epsg:26915"
	END

	QUERYMAP
		STATUS ON
		STYLE SELECTED
	END

	WEB
		QUERYFORMAT "text/xml"			
		INCLUDE "../temp_directory.map"
	END

	LEGEND
		STATUS ON
	END

	LAYER
		NAME 'States'
		DATA './state.shp'
		STATUS DEFAULT
		TYPE POLYGON
		PROJECTION
		"init=epsg:26915"
		END
		CLASS
			NAME 'states'
			STYLE
			     COLOR 255 255 255
			     OUTLINECOLOR 0 0 0
			     WIDTH 1
			END
		END
		HEADER 'imagemap_header.xml'
		TEMPLATE 'imagemap_record.xml'
		FOOTER 'imagemap_footer.xml'
	END

END ## end Map


Can ayone tell what I am doing wrong?

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/


More information about the MapServer-users mailing list