OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 OkMap Forum - English
 Use of the software
 To add an entry in Map Servers Menu

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List

* Forum Code is ON
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert image on imageshack.us
 Insert small zipped file as attachment (< 500 Kb)
Check here to subscribe to this topic.

T O P I C    R E V I E W
jeanmarc93 Posted - 09/01/2022 : 16:03:41
Good morning,
I'd like to add a IGN WMS entry
Here is the function used by MOBAC
String getTileUrl(int Zoom, int X, int Y) {
return Myurl + Mykey + Myfolder + "?Layer=" + Mylayer + "&Style=" + Mystyle + "&Tilematrixset=" + Mytilematrixset + "&Service=" + Myservice + "&Request=" + Myrequest + "&Version=" + Myversion + "&Format=" + Myformat + "&TileMatrix=" + Zoom + "&TileCol=" + X + "&TileRow=" + Y;
. May I have the Code dedicated to France IGN Plan V2 to get an example of Code
. How could I specify the User-Agent in the Code dedicated to this new entry ?
14   L A T E S T    R E P L I E S    (Newest First)
okmap Posted - 22/04/2022 : 10:00:59
Thank you for having shared your code!
jeanmarc93 Posted - 22/04/2022 : 08:36:11

Finally I found the correct code
<name>France IGN TOP 25</name>
<code>map.addLayer(new ol.layer.Tile({source: new ol.source.TileWMS({url: 'https://wxs.ign.fr/[KEY]/geoportail/r/wms', params: {'LAYERS':'GEOGRAPHICALGRIDSYSTEMS.MAPS'}, attributions: '<a href="https://www.ign.fr/" target="_blank"><img src="https://wxs.ign.fr/static/logos/IGN/IGN.gif" title="IGN" alt="IGN"></a>'})}));</code>

where [KEY] is my personal key registered on IGN Geoservices
The IGN TOP25 maps are now displaying.

jeanmarc93 Posted - 13/01/2022 : 11:39:41
Many Thanks
okmap Posted - 13/01/2022 : 09:27:35
This is an example:

This is the code for OkMap:

var resolutions = []; var matrixIds = []; var proj3857 = ol.proj.get('EPSG:3857'); var maxResolution = ol.extent.getWidth(proj3857.getExtent()) / 256; for (var i = 0; i < 18; i++) {matrixIds[i] = i.toString(); resolutions[i] = maxResolution / Math.pow(2, i);} map.addLayer(new ol.layer.Tile({source: new ol.source.WMTS({url: 'https://wxs.ign.fr/<CLES>/geoportail/wmts/', layer: 'GEOGRAPHICALGRIDSYSTEMS.MAPS', matrixSet: 'PM', format: 'image/jpeg', projection: 'EPSG:3857', tileGrid: new ol.tilegrid.WMTS({origin: [-20037508, 20037508], resolutions: resolutions, matrixIds: matrixIds}), style: 'normal', attributions: '<a href="https://www.ign.fr/" target="_blank"><img src="https://wxs.ign.fr/static/logos/IGN/IGN.gif" title="IGN" alt="IGN"></a>'})}));
jeanmarc93 Posted - 12/01/2022 : 11:11:14
okmap Posted - 12/01/2022 : 10:55:56
I've obtained this:

<ExceptionReport xmlns="http://www.opengis.net/ows/1.1">
<Exception exceptionCode="InvalidParameterValue"> TileMatrix Zoom inconnu pour le TileMatrixSet PM </Exception>

this is the correct request:


Which is the layer you want to get?
jeanmarc93 Posted - 12/01/2022 : 10:43:27
I sent you by mail the chain that must replace <CLEF> in the url
It's a private key given by IGN
okmap Posted - 11/01/2022 : 17:57:05
The link returns "Forbidden"
jeanmarc93 Posted - 11/01/2022 : 17:30:23
where CLEF is my personal IGN identifier

Here is a link towards IGN WMTS service and OpenLayers use
okmap Posted - 11/01/2022 : 09:49:07
Please give me the URL to get capabilities.
jeanmarc93 Posted - 10/01/2022 : 18:51:16
I want to use this map as template to create a new entry in MapServers.xml file for France IGN Topographic
What would be the parameters for the key (my IGN identifier) and the User-Agent ?
okmap Posted - 10/01/2022 : 10:16:09
Already exists in OkMap Desktop database.
It's named "France IGN Plan v2".
jeanmarc93 Posted - 10/01/2022 : 09:15:26
Yes, it is
okmap Posted - 09/01/2022 : 18:56:50
Is this the map?

OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07