OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 OkMap Forum - English
 Use of the software
 Log file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jeanmarc93

France
26 Posts

Posted - 02/03/2022 :  15:33:12  Show Profile  Reply with Quote
Hello,
Is there any log file where the info and error messages are stored ?
Regards,
Jean-Marc

okmap

Italy
2572 Posts

Posted - 02/03/2022 :  16:10:47  Show Profile  Visit okmap's Homepage  Reply with Quote
No, it's saved in the clipboard at error moment.
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 02/03/2022 :  17:58:19  Show Profile  Reply with Quote
How to know if a request (getting a map) sent a map server is correct/successful ?
Go to Top of Page

okmap

Italy
2572 Posts

Posted - 03/03/2022 :  09:14:33  Show Profile  Visit okmap's Homepage  Reply with Quote
If the request of a web map is wrong you should obtain a java error or a blank page.
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 03/03/2022 :  10:56:14  Show Profile  Reply with Quote
I get a blank page. Any idea how to test a new map server added in MapsServers.xml file ?
Regards
Go to Top of Page

okmap

Italy
2572 Posts

Posted - 03/03/2022 :  11:26:35  Show Profile  Visit okmap's Homepage  Reply with Quote
Can you post the code you have added?
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 03/03/2022 :  15:35:05  Show Profile  Reply with Quote
Here it is
<mapsServer>
<name>France IGN Topographic</name>
<code>map.addLayer(new ol.layer.Tile({source: new ol.source.WMTS({url: 'https://wxs.ign.fr/liv1dor5ri7zxah74jadp5x2/geoportail/wmts', {'LAYERS': 'GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR'}, attributions: '<a href="https://www.ign.fr/" target="_blank";img src="https://ign.fr/static/logos/IGN/IGN.gif" title="IGN"style: 'normal', matrixSet: 'PM', format: 'image/jpeg', style: 'normal', alt="IGN";/a>'})}));</code>
<baseLayer>true</baseLayer>
<covered>France</covered>
<minZoom>4</minZoom>
<maxZoom>18</maxZoom>
<active>true</active>
<canSaved>true</canSaved>
<custom>false</custom>
<default>false</default>
</mapsServer>
<mapsServer>

And here is one of the results of the request
https://wxs.ign.fr/liv1dor5ri7zxah74jadp5x2/geoportail/wmts?SERVICE=WMTS&REQUEST=GetCapabilities
according to the IGN documentation related to OpenLayers
https://geoservices.ign.fr/documentation/services/utilisation-web/extension-pour-openlayers
<Layer>
<ows:Title>Carte topographique (IGN Scan25)</ows:Title>
<ows:Abstract>La carte topographique représente avec précision le relief, symbolisé par des courbes de niveaux, ainsi que les détails du terrain : routes, sentiers, constructions, bois, arbre isolé, rivière, source... </br>En France, la carte topographique de base est réalisée par l'IGN. Le SCAN 25 Touristique comprend les pictogrammes du thème tourisme de la carte de base.</ows:Abstract>
<ows:Keywords>
<ows:Keyword>Cartes</ows:Keyword>
</ows:Keywords>
<ows:WGS84BoundingBox>
<ows:LowerCorner>-178.206 -46.5029</ows:LowerCorner>
<ows:UpperCorner>77.6492 51.1751</ows:UpperCorner>
</ows:WGS84BoundingBox>
<ows:Identifier>GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN25TOUR</ows:Identifier>
<Style isDefault="true">
<ows:Title>Légende générique</ows:Title>
<ows:Abstract>Fichier de légende générique – pour la compatibilité avec certains systèmes</ows:Abstract>
<ows:Keywords>
<ows:Keyword>Défaut</ows:Keyword>
</ows:Keywords>
<ows:Identifier>normal</ows:Identifier>
<LegendURL format="image/jpeg" height="200" maxScaleDenominator="100000000" minScaleDenominator="200" width="200" xlink:href="https://wxs.ign.fr/static/legends/LEGEND.jpg"/>
</Style>
<Format>image/jpeg</Format>
<InfoFormat>text/plain</InfoFormat>
<InfoFormat>text/html</InfoFormat>
<InfoFormat>text/xml</InfoFormat>
<InfoFormat>application/xml</InfoFormat>
<InfoFormat>application/json</InfoFormat>
<TileMatrixSetLink>
<TileMatrixSet>PM</TileMatrixSet>
<TileMatrixSetLimits>
<TileMatrixLimits>
<TileMatrix>6</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>64</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>64</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>7</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>128</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>128</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>8</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>256</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>256</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>9</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>512</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>512</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>10</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>1024</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>1024</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>11</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>2048</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>2048</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>12</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>4096</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>4096</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>13</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>8192</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>8192</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>14</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>16384</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>16384</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>15</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>32768</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>32768</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>16</TileMatrix>
<MinTileRow>0</MinTileRow>
<MaxTileRow>65536</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>65536</MaxTileCol>
</TileMatrixLimits>
</TileMatrixSetLimits>
</TileMatrixSetLink>
</Layer>

Go to Top of Page

okmap

Italy
2572 Posts

Posted - 03/03/2022 :  15:49:56  Show Profile  Visit okmap's Homepage  Reply with Quote
I think the string "liv1dor5ri7zxah74jadp5x2" it's only an example.
You should register yourself and obtain a valid code.
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 03/03/2022 :  17:05:38  Show Profile  Reply with Quote
No, it's a valid key.
I registered it on 2022-02-14.
Go to Top of Page

okmap

Italy
2572 Posts

Posted - 03/03/2022 :  17:39:42  Show Profile  Visit okmap's Homepage  Reply with Quote
I'm sorry, but I did a lot of testing but couldn't get it to work.
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 03/03/2022 :  18:08:39  Show Profile  Reply with Quote
But the following request with the same key is working
https://wxs.ign.fr/liv1dor5ri7zxah74jadp5x2/geoportail/wmts?SERVICE=WMTS&REQUEST=GetCapabilities

I just checked it one minute ago.
Go to Top of Page

jeanmarc93

France
26 Posts

Posted - 03/03/2022 :  18:15:24  Show Profile  Reply with Quote
I just sent a mail to IGN Geoservices to get an advice.
Go to Top of Page

Nehavilash

India
7 Posts

Posted - 12/12/2023 :  14:02:15  Show Profile  Visit Nehavilash's Homepage  Reply with Quote
Yes, systems and applications store info and error messages in log files. The location and name of these log files can vary depending on the specific system or application you are using. You can find them in a logs directory within the applications installation folder or in a system-wide log directory.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07