Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Historique parcelle : mapping des codes / valeurs de filiation #192

Closed
MaelREBOUX opened this issue Jun 2, 2016 · 4 comments
Closed

Historique parcelle : mapping des codes / valeurs de filiation #192

MaelREBOUX opened this issue Jun 2, 2016 · 4 comments
Assignees
Milestone

Comments

@MaelREBOUX
Copy link
Member

L'attribut parcelledetails.type_filiation contient des codes.

Le document de référence N_BAT12.pdf de la DGFiP indique p 4 :

  • D pour division
  • R pour réunion
  • T pour transfert

Je propose donc :

  1. la création d'une table prop_type_filiation pour stocker ces correspondances
  2. la modification des requêtes {modele}Parcelle.sql pour que la vue parcelledetails contiennent la valeur et pas le code

Pas urgent : mettre en enhancement.

@MaelREBOUX MaelREBOUX changed the title Historique parcelle : mapping des code / valeurs de filiation Historique parcelle : mapping des codes / valeurs de filiation Jun 2, 2016
@MaelREBOUX
Copy link
Member Author

à coupler avec #189

@MaelREBOUX
Copy link
Member Author

PR --> 3liz/QgisCadastrePlugin#160

@MaelREBOUX
Copy link
Member Author

En mode crade :

CREATE TABLE qgis3_master.filiation
(
  filiation text NOT NULL,
  filiation_lib text,
  CONSTRAINT filiation_pkey PRIMARY KEY (filiation)
);

ALTER TABLE qgis3_master.filiation OWNER TO qgis;


INSERT INTO qgis3_master.filiation VALUES ('D','Division');
INSERT INTO qgis3_master.filiation VALUES ('R','Réunion');
INSERT INTO qgis3_master.filiation VALUES ('T','Transfert');

pierrejego pushed a commit that referenced this issue Nov 27, 2018
link to #192 and #189

After reading
https://www.postgresql.org/docs/9.6/datatype-character.html I have put
column as text. I wil probably do the same in other properties table
pierrejego pushed a commit that referenced this issue Nov 27, 2018
pierrejego pushed a commit that referenced this issue Nov 27, 2018
Add join between key and value in SQL statement.

This fixe #189 and fixe #192
@pierrejego
Copy link
Member

Modifications effectuées dans cadastrapp, ajout de la table + jointure sur les requêtes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants