[OpenLayers-Users] On SHP files, projections and SRS

Scott Knutti sknutti at sanz.com
Fri Jul 21 11:39:53 CDT 2006


Marcos,

You might try changing the layer you specify from 12c_linea to DGIS.

Scott

GET /cgi-bin/DGIS/mapserv.exe?MAP=DGIS_12c.map&LAYERS=*DGIS*&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,25.200000000000003,-64.8,140.4&WIDTH=256&HEIGHT=256
HTTP/1.1



Marcos Cobeña wrote:
> Hi all,
>
> Finally, ArcView 3.2 has allowed me to change projection used in my
> SHP files, turning it into 4326.
>
> I've made some changes to my MAP file, as you can see here:
>
> "
> # DGIS_12c.map
> #
> MAP
> 	NAME DGIS
> 	STATUS ON
> 	SIZE 800 475
> 	# "Huelva, Spain " lat=37.258335, lon=-6.9508333
> 	#
> 	EXTENT -180 90 -90 180 # -7.9508333 36.258335 -5.9508333 38.258335 #
> 36.258335 -7.9508333 38.258335 -5.9508333 # -180 -90 180 90 #
> 187889.12817030 4092316.51133811 197493.65136571 4099997.10096501 #
> -180 -90 180 90
> 	UNITS DD
> 	SHAPEPATH "Data"
> 	IMAGECOLOR 255 255 255
> 	IMAGETYPE PNG
> 	CONFIG "PROJ_LIB" "C:\Archivos de programa\Apache Software
> Foundation\Apache2.2\cgi-bin\DGIS\Data\Proj" # "C:\Documents and
> Settings\Marcos\Escritorio\Temporal\Sistema de Información Geográfica
> de Doñana (DGIS)\ms4w_2.0\ms4w\proj\nad"
> 	
> 	WEB
> 		METADATA
> 			"wms_title" "Sistema de Información Geográfica de Doñana (DGIS)"
> 			# http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
> 			#
> 			"wms_onlineresource"
> "http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&"
> 			"wms_srs" "EPSG:4269 EPSG:4326" # "EPSG:4326"
> 		END
> 	END
> 	
> 	PROJECTION
> 		"init=EPSG:4326"
> 	END
> 	
> 	LAYER
> 		NAME "12c_linea"
> 		TYPE LINE
> 		STATUS ON
> 		DATA Data/12c/12c_linea
> 		CLASS
> 			NAME "12c_linea"
> 			COLOR 0 0 0
> 		END
> 		METADATA
> 			"wms_title" "12c_linea"
> 			# "wms_srs" "EPSG:4326 EPSG:4030"
> 			"wms_format" "image/png"
> 		END
> 	END
> 	
> 	[...]
> END
> "
>
> , creating a WMS server.
>
> By OpenLayers, query mades are similar to this one:
>
> "
> GET /cgi-bin/DGIS/mapserv.exe?MAP=DGIS_12c.map&LAYERS=12c_linea&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-180,25.200000000000003,-64.8,140.4&WIDTH=256&HEIGHT=256
> HTTP/1.1
> "
>
> , but I still keep without seeing any shape painted. :'-( SRS seems to
> be fine, extent too, ... Where am I getting wrong?
>
> Really thanks in advance.
>
> Regards,
>
>   


More information about the Users mailing list