Projet

Général

Profil

Development #15431

Connecteur OpenGIS / GeoServer / Web Map Service (WMS)

Ajouté par Frédéric Péters il y a environ 7 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
14 mars 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

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.

Ex: 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.7241,4.7841,45.7974,4.9206&I=0&J=0&HEIGHT=100&WIDTH=100

<?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

Révision b0144b56 (diff)
Ajouté par Frédéric Péters il y a environ 7 ans

add basic opengis connector (#15431)

Historique

#3

Mis à jour par Frédéric Péters il y a environ 7 ans

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.

#4

Mis à jour par Thomas Noël il y a environ 7 ans

Ack

#5

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)
#6

Mis à jour par Benjamin Dauvergne il y a plus de 5 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF