User Tools

Site Tools


en:api:rest:internal

Documentation about some of the rest interfaces used in the geoadmin api (not public)

Here is the documentation about some of the REST functions available to users:

rasterizer

This webservice can generate a PNG image for a given extent, with a list of layers and a set of geoJSON geometries rendered on top:

https://fme.geoportail.lu/fmedatastreaming/cfue/rasterizer.fmw

Parameters:

  • buffer: buffer in meters
  • layers: comma-separated list of layers
  • token: auth-token
  • geometry: to be transmitted as a geojson document inside the POST. The document can contain sereral geometries

Example using curl:

curl -H "Content-Type: application/json" -X POST -d '{"name":"data","type":"FeatureCollection","features":[{"id":399744,"fk":"035D00472004913","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4913","geometry":{"type":"Polygon","coordinates":[[[78822.9539999999,76300.6610000003],[78806.6821999997,76292.3497000001],[78785.62669999989,76281.77759999971],[78765.9868999999,76272.13179999961],[78747.7180000004,76263.3110000007],[78773.4560000002,76210.6199999992],[78777.79490000011,76210.4290999994],[78782.9369999999,76210.4415000007],[78787.8119999999,76210.7229999993],[78791.1150000002,76211.0859999992],[78794.3990000002,76211.5739999991],[78796.85610000041,76212.0395],[78799.70789999979,76212.6630000006],[78801.6667999998,76213.1491999999],[78802.9121000003,76213.4925999995],[78804.70160000029,76214.0327000003],[78806.63949999961,76214.6634],[78809.0124000004,76215.5066999998],[78810.8181999996,76216.20370000039],[78812.5300000003,76216.9000000004],[78814.3981999997,76217.7283999994],[78817.3380000005,76219.12399999979],[78820.6495000003,76220.88179999961],[78826.56419999989,76224.1941],[78835.1900000004,76229.2542000003],[78838.6451000003,76231.3211000003],[78839.869,76232.1699999999],[78842.1716999998,76234.16029999961],[78844.10670000041,76236.2147000004],[78845.523,76238.0519999992],[78846.5970000001,76239.73000000039],[78847.5310000004,76241.4729999993],[78848.301,76243.26600000079],[78848.9139999999,76245.1180000007],[78849.3650000002,76247.0170000009],[78849.5319999997,76248.15100000051],[78822.9539999999,76300.6610000003]]]}},{"id":193513,"fk":"035D00472004908","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4908","geometry":{"type":"Polygon","coordinates":[[[78514.51950000039,76112.5680999998],[78520.2205999997,76117.1285999995],[78524.54019999971,76120.59400000049],[78530.3890000004,76125.3649000004],[78536.3713999996,76130.0842000004],[78544.6793,76136.4188999999],[78552.2517999997,76141.9757000003],[78558.26960000019,76146.2894000001],[78563.4429000001,76149.8918999992],[78570.57340000011,76154.6954999995],[78572.85599999971,76156.2091000006],[78570.57600000041,76162.0759999994],[78562.716,76182.3001000006],[78548.26180000049,76176.6133999992],[78523.2869999995,76166.9561000001],[78504.3839999996,76159.8231000006],[78485.432,76152.82010000011],[78484.2259999998,76152.3840999994],[78494.79700000031,76124.04900000061],[78496.4249,76122.8522999995],[78504.2910000002,76116.5519999992],[78507.7610999998,76112.7515999991],[78510.3843,76109.2542000003],[78514.51950000039,76112.5680999998]]]}},{"id":429440,"fk":"035D00472004912","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4912","geometry":{"type":"Polygon","coordinates":[[[78747.7180000004,76263.3110000007],[78729.6712999996,76254.7195999995],[78703.3167000003,76242.48509999919],[78690.4687000001,76236.6333000008],[78679.6812000005,76231.7592999991],[78667.27400000021,76226.2290000003],[78664.1409999998,76224.8640000001],[78673.06699999979,76205.0549999997],[78707.7120000003,76220.6659999993],[78710.7460000003,76213.93099999991],[78714.1661999999,76213.9174000006],[78718.2939999998,76213.79839999971],[78721.94139999991,76213.63240000051],[78726.7858999996,76213.3487999998],[78731.6298000002,76213.0452999994],[78737.8339,76212.65670000021],[78743.68589999991,76212.29010000081],[78749.4797999999,76211.9411999993],[78758.12310000039,76211.4274000004],[78765.5017999997,76211.02820000051],[78773.4560000002,76210.6199999992],[78747.7180000004,76263.3110000007]]]}},{"id":173742,"fk":"035D00472004910","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4910","geometry":{"type":"Polygon","coordinates":[[[78584.6721999999,76167.8082999997],[78603.0060999999,76175.26359999929],[78616.10740000011,76180.6389000006],[78636.4795000004,76189.29429999931],[78652.2324000001,76195.9872999992],[78656.0070000002,76197.5910999999],[78656.1469999999,76197.6501000002],[78647.63999999971,76217.6741000004],[78618.8849999998,76205.3544999994],[78600.51049999989,76197.6577000003],[78579.0269999998,76188.8681000006],[78562.716,76182.3001000006],[78570.57600000041,76162.0759999994],[78584.6721999999,76167.8082999997]]]}},{"id":429265,"fk":"035D00472004911","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4911","geometry":{"type":"Polygon","coordinates":[[[78664.1409999998,76224.8640000001],[78647.63999999971,76217.6740000006],[78656.1469999999,76197.6500000004],[78672.9000000004,76204.98200000079],[78673.06699999979,76205.0549999997],[78664.1409999998,76224.8640000001]]]}}]}' "https://fme.geoportail.lu/fmedatastreaming/cfue/rasterizer.fmw?token=xxx&buffer=100&layers=ortho_2013" > test.png

drillthrough

This webservice makes a drillthrough for a predefined set of layers and sends back intersections:

https://fme.geoportail.lu/fmedatastreaming/cfue/poc.fmw

Parameters:

  • buffer: buffer in meters
  • token: auth-token
  • geometry: to be transmitted as a geojson document inside the POST. The document can contain sereral geometries

Example using curl:

curl -H "Content-Type: application/json" -X POST -d '{"name":"data","type":"FeatureCollection","features":[{"id":399744,"fk":"035D00472004913","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4913","geometry":{"type":"Polygon","coordinates":[[[78822.9539999999,76300.6610000003],[78806.6821999997,76292.3497000001],[78785.62669999989,76281.77759999971],[78765.9868999999,76272.13179999961],[78747.7180000004,76263.3110000007],[78773.4560000002,76210.6199999992],[78777.79490000011,76210.4290999994],[78782.9369999999,76210.4415000007],[78787.8119999999,76210.7229999993],[78791.1150000002,76211.0859999992],[78794.3990000002,76211.5739999991],[78796.85610000041,76212.0395],[78799.70789999979,76212.6630000006],[78801.6667999998,76213.1491999999],[78802.9121000003,76213.4925999995],[78804.70160000029,76214.0327000003],[78806.63949999961,76214.6634],[78809.0124000004,76215.5066999998],[78810.8181999996,76216.20370000039],[78812.5300000003,76216.9000000004],[78814.3981999997,76217.7283999994],[78817.3380000005,76219.12399999979],[78820.6495000003,76220.88179999961],[78826.56419999989,76224.1941],[78835.1900000004,76229.2542000003],[78838.6451000003,76231.3211000003],[78839.869,76232.1699999999],[78842.1716999998,76234.16029999961],[78844.10670000041,76236.2147000004],[78845.523,76238.0519999992],[78846.5970000001,76239.73000000039],[78847.5310000004,76241.4729999993],[78848.301,76243.26600000079],[78848.9139999999,76245.1180000007],[78849.3650000002,76247.0170000009],[78849.5319999997,76248.15100000051],[78822.9539999999,76300.6610000003]]]}},{"id":193513,"fk":"035D00472004908","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4908","geometry":{"type":"Polygon","coordinates":[[[78514.51950000039,76112.5680999998],[78520.2205999997,76117.1285999995],[78524.54019999971,76120.59400000049],[78530.3890000004,76125.3649000004],[78536.3713999996,76130.0842000004],[78544.6793,76136.4188999999],[78552.2517999997,76141.9757000003],[78558.26960000019,76146.2894000001],[78563.4429000001,76149.8918999992],[78570.57340000011,76154.6954999995],[78572.85599999971,76156.2091000006],[78570.57600000041,76162.0759999994],[78562.716,76182.3001000006],[78548.26180000049,76176.6133999992],[78523.2869999995,76166.9561000001],[78504.3839999996,76159.8231000006],[78485.432,76152.82010000011],[78484.2259999998,76152.3840999994],[78494.79700000031,76124.04900000061],[78496.4249,76122.8522999995],[78504.2910000002,76116.5519999992],[78507.7610999998,76112.7515999991],[78510.3843,76109.2542000003],[78514.51950000039,76112.5680999998]]]}},{"id":429440,"fk":"035D00472004912","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4912","geometry":{"type":"Polygon","coordinates":[[[78747.7180000004,76263.3110000007],[78729.6712999996,76254.7195999995],[78703.3167000003,76242.48509999919],[78690.4687000001,76236.6333000008],[78679.6812000005,76231.7592999991],[78667.27400000021,76226.2290000003],[78664.1409999998,76224.8640000001],[78673.06699999979,76205.0549999997],[78707.7120000003,76220.6659999993],[78710.7460000003,76213.93099999991],[78714.1661999999,76213.9174000006],[78718.2939999998,76213.79839999971],[78721.94139999991,76213.63240000051],[78726.7858999996,76213.3487999998],[78731.6298000002,76213.0452999994],[78737.8339,76212.65670000021],[78743.68589999991,76212.29010000081],[78749.4797999999,76211.9411999993],[78758.12310000039,76211.4274000004],[78765.5017999997,76211.02820000051],[78773.4560000002,76210.6199999992],[78747.7180000004,76263.3110000007]]]}},{"id":173742,"fk":"035D00472004910","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4910","geometry":{"type":"Polygon","coordinates":[[[78584.6721999999,76167.8082999997],[78603.0060999999,76175.26359999929],[78616.10740000011,76180.6389000006],[78636.4795000004,76189.29429999931],[78652.2324000001,76195.9872999992],[78656.0070000002,76197.5910999999],[78656.1469999999,76197.6501000002],[78647.63999999971,76217.6741000004],[78618.8849999998,76205.3544999994],[78600.51049999989,76197.6577000003],[78579.0269999998,76188.8681000006],[78562.716,76182.3001000006],[78570.57600000041,76162.0759999994],[78584.6721999999,76167.8082999997]]]}},{"id":429265,"fk":"035D00472004911","type":"Feature","parcelLabel":"Eich, Neudorf(D), 472 / 4911","geometry":{"type":"Polygon","coordinates":[[[78664.1409999998,76224.8640000001],[78647.63999999971,76217.6740000006],[78656.1469999999,76197.6500000004],[78672.9000000004,76204.98200000079],[78673.06699999979,76205.0549999997],[78664.1409999998,76224.8640000001]]]}}]}' "https://fme.geoportail.lu/fmedatastreaming/cfue/poc.fmw?token=xxx&buffer=100" > test.geojson  

locationsearch

Location search can be done using the following URL:

http://api.geoportail.lu/locationsearch

Parameters:

  • query: Query string
  • subtype: Comma separated list of types.
    • Possible values:
    • Localite
    • hydro
    • Adresse
    • lieu_dit
    • hydro_km
    • Commune
    • FLIK
    • Parcelle
  • dc: random number (optional) to prevent caching
  • cb: callback function name. If specified return JSONP rahter than JSON
Full example: 
http://api.geoportail.lu/locationsearch?query=54%20did&subtype=Adresse

Attention, a valid referer URL has to sent to be able to use the service
en/api/rest/internal.txt · Last modified: 2015/03/11 12:52 (external edit)