cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
gallardet
Level III

Connection error while attempting to connect to WMS server

In JMP 9.0.1 I get this message when I try to embed a map from a WMS server:

"Connection error while attempting to connect to WMS server"

Is there a solution?

Thanks

8 REPLIES 8

Re: Connection error while attempting to connect to WMS server

Either the URL is incorrect or perhaps authentication is required for your chosen service. What are you using for URL and Layer?

gallardet
Level III

Re: Connection error while attempting to connect to WMS server

Dear Mark the connection URL is: https://geoserveis.icgc.cat/icc_mapesbase/wms/service?

The name of the layer is: orto25m

Re: Connection error while attempting to connect to WMS server

I got the same error message as you did. I went to the service site and found this URL, https://geoserveis.icgc.cat/icc_mapesbase/wms/service?, which looks the same as your URL, but I do not get the same error any more. I used the same layer code as you did. I now get a new error, "Unknown image type while attempting to retrieve maps from WMS server."

 

I am no expert in these map services. It should work with a valid URL and layer code. Perhaps you can ask this service for technical support.

Craige_Hales
Super User

Re: Connection error while attempting to connect to WMS server

Something like this:

Graph Builder(
	Size( 1593, 909 ),
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Scale( "Geodesic" ), Format( "Fixed Dec", 12, 3 ),
			Min( 1.31223015389874 ), Max( 1.40750524670734 ), Inc( 0.01 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"weight",
			ScaleBox,
			{Scale( "Geodesic" ), Format( "Fixed Dec", 12, 3 ),
			Min( 41.6982769662546 ), Max( 41.7501872243177 ), Inc( 0.002 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Background Map(
				Images(
					"Web Map Service",
					"https://geoserveis.icgc.cat/icc_fonstopografic/wms/service?",
					"mtc25msg"
				),
				Boundaries( "World" )
			)}
		)
	)
)

Information around here: https://www.icgc.cat/es/Administracion-y-empresa/Servicios/Servicios-en-linea-Geoservicios/WMS-y-tes...

 

Note this server seems to be for a tiny area on the face of the earth, if you are not looking in the right place, you get nothing.

Capture.PNG

Yes, I used big class height and weight for longitude and latitude.

Craige
gallardet
Level III

Re: Connection error while attempting to connect to WMS server

Benvolgut Craige,
I don't know where in the world you live but I know very well where I live. A tiny area, a small triangle in the northwestern Mediterranean, a country with almost eight million inhabitants, half a million less than Switzerland. With Constitutions since 1283 and which were abolished by military victory of Philip V of Castile in 1714. Catalonia is trying to regain its independence by democratic means, but neither Spain nor its government is willing to do so. They prefer the rulings of the right-wing supreme court against the Catalan leaders. Dare you say that Switzerland is a tiny area.
The "Institut Cartogràfic i Geològic de Catalunya" has a public WMS where you can get different layers of the map of Catalonia. With JMP 14 on Windows it connects and downloads the layer, with JMP 9 on Mac it does not.
I attach screenshots made with JMP 14 to verify it.

Translated with www.DeepL.com/Translator (free version)

Set background map.png

Captura de pantalla 2021-04-01 a les 18.08.36.png

gallardet
Level III

Re: Connection error while attempting to connect to WMS server

Thanks

Craige_Hales
Super User

Re: Connection error while attempting to connect to WMS server

Sorry, that was thoughtless on my part. I'm glad more recent versions of JMP work for you!

Craige
gallardet
Level III

Re: Connection error while attempting to connect to WMS server

I appreciate your reply and your interest in helping me.

 

Thanks,

 

Manel