Page 1 of 1

[done] Trouble adding this custom map source

Posted: Wed Jan 05, 2022 9:42 pm
by Aliamba
Hi. I found some usefull map overlay here: https://vgo.portailcartographique.gouv.qc.ca

I am trying to add this one but i get this error: [SSLHandshakeException]

This is how it looks:

Code: Select all

<source id="QC_COURONNE">
	<name>Terres Couronne</name>
	<preview-location>-3.86,50.53,14</preview-location>
	<zoom-levels z="3,5,7,8,9,10,11,12,13,14,15,16,17">
		<projection-code>EPSG:3857</projection-code>
		<bbox-crs-code>EPSG:3857</bbox-crs-code>
		<server><![CDATA[https://servicescarto.mern.gouv.qc.ca/pes/services/Territoire/PATP_prov_WMS/MapServer/WmsServer?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=Affectations surfaciques,Affectations ponctuels&FORMAT=image/png&WIDTH=256&HEIGHT=256&BBOX={$bbox}&CRS=EPSG:3857&STYLES=,&TRANSPARENT=TRUE]]></server>
	</zoom-levels>
</source>
If someone could help me get this to work.
I took the template from this post so maybe i am doing something wrong.

Thanks.

Re: Trouble adding this custom map source

Posted: Sat Jan 08, 2022 4:55 pm
by Psyberia-Support
Hi,
It seems there is a problem establishing a secure (SSL) connection.
Here is an version (insecure) working fine:

Code: Select all

<source id="QC_COURONNE" layer="true">
	<name>Terres Couronne</name>
	<preview-location>-3.86,50.53,14</preview-location>
	<zoom-levels z="7,8,9,10,11,12,13,14,15,16,17" insecure="true">
		<projection-code>EPSG:3857</projection-code>
		<bbox-crs-code>EPSG:3857</bbox-crs-code>
		<server><![CDATA[https://servicescarto.mern.gouv.qc.ca/pes/services/Territoire/PATP_prov_WMS/MapServer/WmsServer?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&LAYERS=Affectations surfaciques,Affectations ponctuels&FORMAT=image/png&WIDTH=256&HEIGHT=256&BBOX={$bbox}&CRS=EPSG:3857&STYLES=,&TRANSPARENT=TRUE]]></server>
	</zoom-levels>
</source>

Re: Trouble adding this custom map source

Posted: Sat Jan 08, 2022 7:02 pm
by Aliamba
Thanks a lot for the support you give!