Layer informations

Basic principles

This web service provides metadatas of the mapping layers available. These informations are required in order to use Web Map Tiles Service (WMTS).

Layerinfo example

{
        "url":"https://api.geoconcept.com/EU/GCW/geoconcept-web/api/lbs/layer/json",
        "type":"GET",
        "params": {
                "name": {
                        "sample":"STANDARD"
                }
        }
}

Parameters / properties

Input

parameter description optional default

map

Map file name

yes *

tab

Tab name

yes *

name

Layer name

yes *

(*) At least one of the three parameters map, tab and name must be assigned a value.

Output

parameter type min/max description

ratios

string

0/1

Ratios for each map scale (12 or 24 scales)

extent

string

0/1

Map bounding box

precision

string

0/1

Map precision (ie: 0.01)

projection

string

0/1

Map projection (EPSG code such as EPSG:3857)

tab

string

0/1

Tab name

name

string

0/1

Layer name

version

string

0/1

Layer version

format

string

0/1

Picture format (png, jpg)

map

string

0/1

Map file name

tileWidth

string

0/1

Tile width

tileHeight

string

0/1

Tile height

metadataUrl

string

0/1

Metadata url

legendUrl

string

0/1

Legend url

Possible returns

Case of an layerInfo that has been found (status is OK) 

{
   "message":"Layer informations",
   "status":"OK",
   "result":{
      "extent":{
         "minX":-2003750660,
         "minY":-2003750660,
         "maxX":2003750660,
         "maxY":2003750660
      },
      "precision":0.01,
      "projection":"EPSG:3857",
      "tab":"STANDARD",
      "name":"STANDARD",
      "version":"210225001",
      "format":"png",
      "map":"EURO/HE-ENT-M20-EURO_cua",
      "tileWidth":256,
      "tileHeight":256,
      "isWebmap":false,
      "ratios":[
         0.13396648497664457,
         -0.13396648497664457,
         0.06698324248832228,
         -0.06698324248832228,
         0.03349162124416114,
         -0.03349162124416114,
         0.01674581062208057,
         -0.01674581062208057,
         0.008372905311040285,
         -0.008372905311040285,
         0.004186452655520143,
         -0.004186452655520143,
         0.0020932263277600714,
         -0.0020932263277600714,
         0.0010466131638800357,
         -0.0010466131638800357,
         0.0005233065819400178,
         -0.0005233065819400178,
         0.0002616532909700089,
         -0.0002616532909700089,
         0.00013082664548500446,
         -0.00013082664548500446,
         0.00006541332274250223,
         -0.00006541332274250223,
         0.000032706661371251115,
         -0.000032706661371251115,
         0.000016353330685625558,
         -0.000016353330685625558,
         0.000008176665342812779,
         -0.000008176665342812779,
         0.000004088332671406389,
         -0.000004088332671406389,
         0.0000020441663357031947,
         -0.0000020441663357031947,
         0.0000010220831678515973,
         -0.0000010220831678515973,
         5.110415839257987e-7,
         -5.110415839257987e-7,
         2.5552079196289934e-7,
         -2.5552079196289934e-7,
         1.2776039598144967e-7,
         -1.2776039598144967e-7,
         6.388019799072483e-8,
         -6.388019799072483e-8
      ]
   }
}

Case of a wrong or empty parameter (status is ERROR) 

{
   "message":"Layer  doesn't exist",
   "status":"ERROR",
   "result":{
      "extent":null,
      "precision":0.0,
      "projection":null,
      "tab":null,
      "name":null,
      "version":null,
      "format":null,
      "map":null,
      "tileWidth":0,
      "tileHeight":0,
      "metadataUrl":null,
      "legendUrl":null
   }
}

FAQ

1. What are the layerName availables?

1.

What are the layerName availables?

  • STANDARD Global basemap - Plain - World
  • ORDER1 The highest administrative level in which a country can be subdivided - Transparency - World (availability may vary following country)
  • ORDER2 An intermediate administrative level of a country and is a sub-division of an Order-1 Area - Transparency - World (availability may vary following country)
  • ORDER8 The lowest level of the country’s administrative hierarchy that is present country-wide - Transparency - World (availability may vary following country)
  • POSTAL_BOUNDARIES Postal areas - Transparency - World (availability may vary following country)
  • MAINROADS Main road network - Transparency - Europe, North America
  • CHARGING_STATIONS Charging stations for electric vehicles - Transparency - France