Development #15431
Connecteur OpenGIS / GeoServer / Web Map Service (WMS)
0%
Description
De manière très spécifique d'abord pour fonctionner avec data.grandlyon.com, de manière plus large sur des usages qui viendraient plus tard.
→
<?xml version="1.0" encoding="UTF-8"?> <msGMLOutput xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <cad_cadastre.cadparcelle_layer> <gml:name>Parcelle cadastrale (Plan cadastral informatisé du Grand Lyon)</gml:name> <cad_cadastre.cadparcelle_feature> <gml:boundedBy> <gml:Box srsName="EPSG:4171"> <gml:coordinates>4.784140,45.796890 4.784834,45.797365</gml:coordinates> </gml:Box> </gml:boundedBy> <identifiant>69040BD309</identifiant> <codedgi>040000BD0309</codedgi> <numero>309</numero> <surfacecadastrale>2406</surfacecadastrale> <natureproprietaire>Particulier</natureproprietaire> <indice>Parcelle figurée au plan</indice> <arpentage>Arpentée</arpentage> <gid>75404</gid> </cad_cadastre.cadparcelle_feature> </cad_cadastre.cadparcelle_layer> </msGMLOutput>
J'aimerais donc un connecteur où je puisse renseigner le endpoint (https://download.data.grandlyon.com/wms/grandlyon) et le layer qui m'intéresse (cad_cadastre.cadparcelle).
Ensuite, un endpoint (genre get_feature_info), qui prend lat/lon (BBOX=45.7241,4.7841,45.7974,4.9206, nécessité de faire du point reçu un rectangle, détail, on passe dedans i=0, j=0, donc c'est le coin supérieur gauche qui sera pris en compte) et qui retourne l'affaire transformée autant que faire se peut en json, genre :
{ "cad_cadastre.cadparcelle_layer" : { "cad_cadastre.cadparcelle_feature" : { "indice" : "Parcelle figurée au plan", "surfacecadastrale" : "2406", "natureproprietaire" : "Particulier", "arpentage" : "Arpentée", "identifiant" : "69040BD309", "numero" : "309", "codedgi" : "040000BD0309", "gid" : "75404" } } }
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 7 ans
Pour une idée la résolution utile :
Carte : https://download.data.grandlyon.com/wms/grandlyon?LAYERS=cad_cadastre.cadparcelle&FORMAT=image/png&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetMap&STYLES=&CRS=EPSG:4171&BBOX=45.7631,4.9141,45.7674,4.9206&WIDTH=600&HEIGHT=600
Info sur le pixel 0 0 : https://download.data.grandlyon.com/wms/grandlyon?LAYERS=cad_cadastre.cadparcelle&QUERY_LAYERS=cad_cadastre.cadparcelle&INFO_FORMAT=application/vnd.ogc.gml&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetFeatureInfo&STYLES=&CRS=EPSG:4171&BBOX=45.7631,4.9141,45.7674,4.9206&I=0&J=0&HEIGHT=100&WIDTH=100
Mis à jour par Frédéric Péters il y a environ 7 ans
- Fichier 0001-add-basic-opengis-connector-15431.patch 0001-add-basic-opengis-connector-15431.patch ajouté
- Statut changé de Nouveau à En cours
- Patch proposed changé de Non à Oui
Voilà minimalement; le seul truc notable c'est que j'ajoute l'application en mettant "passerelle.apps.opengis" dans INSTALLED_APPS, plutôt que juste "opengis" comme les autres.
Mis à jour par Frédéric Péters il y a environ 7 ans
- Statut changé de En cours à Résolu (à déployer)
commit b0144b5646569ca81a38271c78e304132a57d560 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Mar 15 15:48:49 2017 +0100 add basic opengis connector (#15431)
Mis à jour par Benjamin Dauvergne il y a plus de 5 ans
- Statut changé de Résolu (à déployer) à Fermé
add basic opengis connector (#15431)