Author |
Topic  |
|
jeanmarc93
France
26 Posts |
Posted - 02/03/2022 : 15:33:12
|
Hello, Is there any log file where the info and error messages are stored ? Regards, Jean-Marc |
|
okmap
Italy
2509 Posts |
Posted - 02/03/2022 : 16:10:47
|
No, it's saved in the clipboard at error moment. |
 |
|
 |
jeanmarc93
France
26 Posts |
Posted - 02/03/2022 : 17:58:19
|
How to know if a request (getting a map) sent a map server is correct/successful ? |
 |
|
okmap
Italy
2509 Posts |
Posted - 03/03/2022 : 09:14:33
|
If the request of a web map is wrong you should obtain a java error or a blank page. |
 |
|
 |
jeanmarc93
France
26 Posts |
Posted - 03/03/2022 : 10:56:14
|
I get a blank page. Any idea how to test a new map server added in MapsServers.xml file ? Regards |
 |
|
okmap
Italy
2509 Posts |
Posted - 03/03/2022 : 11:26:35
|
Can you post the code you have added? |
 |
|
 |
jeanmarc93
France
26 Posts |
Posted - 03/03/2022 : 15:35:05
|
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>
|
 |
|
okmap
Italy
2509 Posts |
Posted - 03/03/2022 : 15:49:56
|
I think the string "liv1dor5ri7zxah74jadp5x2" it's only an example. You should register yourself and obtain a valid code. |
 |
|
 |
jeanmarc93
France
26 Posts |
Posted - 03/03/2022 : 17:05:38
|
No, it's a valid key. I registered it on 2022-02-14. |
 |
|
okmap
Italy
2509 Posts |
Posted - 03/03/2022 : 17:39:42
|
I'm sorry, but I did a lot of testing but couldn't get it to work. |
 |
|
jeanmarc93
France
26 Posts |
|
jeanmarc93
France
26 Posts |
Posted - 03/03/2022 : 18:15:24
|
I just sent a mail to IGN Geoservices to get an advice. |
 |
|
|
Topic  |
|