This documentation concerns the old version of our API (called v2). This version of the API will be discontinued end of 2017. Please switch your webpages to the new version of the API, described under the following link: https://apiv3.geoportail.lu/proj/1.0/build/apidoc/

Welcome to the ACT's GeoAPI Documentation

The GeoAPI is a web delivered service platform delivering both data and functionality, enabling geographical information to be viewed on a map. Just as with the geoportail.lu web service, the GeoAPI enables the integration in external web pages of the geoportail functionality. Although the options for data processing are limited compared with “real” office GIS software, some targeted queries and analyses are possible. A web GIS makes access to geographical information truly independent of platform, installation and location. The services presented here are available via web map services (WMS) and application programming interfaces (APIs).

This section is geared towards developers interested in using the API on their webpages.

Important Note: For access to the GeoAPI on your own servers, you will need to request access to the ACT, specifying the server address you wish to grant access too.

Index of Content

Quick Code Example

Please find below a complete self contained example implementation of the API:

  <title>Exemple d'utilisation</title>
<link rel="stylesheet" type="text/css" href="//api.geoportail.lu/build/latest/ext-all.css" />
<link rel="stylesheet" type="text/css" href="//api.geoportail.lu/build/latest/xtheme-gray.css" />
<link rel="stylesheet" type="text/css" href="//api.geoportail.lu/build/latest/api.css" />
<link rel="stylesheet" type="text/css" href="//api.geoportail.lu/build/latest/MapFishApi_api.css" />
<link rel="stylesheet" type="text/css" href="//api.geoportail.lu/build/latest/geoadmin.css" />
<script type="text/javascript" src="//api.geoportail.lu/build/latest/ext-base.js"></script>
<script type="text/javascript" src="//api.geoportail.lu/build/latest/ext-all.js"></script>
<script type="text/javascript" src="//api.geoportail.lu/build/latest/geoadmin.js"></script>
<script type="text/javascript" src="//api.geoportail.lu/api.js"></script>
   <div id='map' style="width:600px;height:400px"/>
   <script type="text/javascript">   
    lux = new OpenLayers.Projection("EPSG:2169"); // the luxembourg coordinate reference system 
    wgs = new OpenLayers.Projection("EPSG:4326"); // the WGS84 coordinate reference system, as used widely
    lonLat = new OpenLayers.LonLat(6.12459923192738, 49.6188206257115 ).transform( wgs, lux );
    geo = new geoadmin.API({lang: 'fr'});
     div: 'map',
     easting: lonLat.lon,
     northing: lonLat.lat,
     zoom: 8,
     bgLayer: 'pixelmaps'
en/api.txt · Last modified: 2017/03/17 08:44 by Patrick Weber
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0