On 2021-03-16, Roland Munch (info.rueducoq.fr) wrote:
>
> hello everybody
>
> Does anybody know how to get topomap from the french geoportail through
> a tms or wtms file ?
I'm not sure if this is what you want, but here's a TMS that works for me (IGN
online
map of France):
#v+
<TMS>
<Layer idx="0">
<Title>IGN BRGM France</Title>
<Script><![CDATA[(
function convert(z1,x1,y1)
{ function M(n){return 256*n*(156543.03392804062/(1<<z1))-20037508.342789244}
y=(1<<z1)-1-y1;
bbox=M(x1)+','+M(y)+','+M(x1+1)+','+M(y+1);
return
"http://mapsref.brgm.fr/wxs/refcom-brgm/refign?LAYERS=FONDS_SCAN&FORMAT=image/png&SRS=EPSG:3857&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX="
+ bbox + "&WIDTH=256&HEIGHT=256";
}
)]]></Script>
</Layer>
<Copyright>France IGN BRGM</Copyright>
</TMS>
#v-
Hope that helps.
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users