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

INTERLIS Import Dataowner / Provider not filled in right #154

Open
sjib opened this issue Aug 2, 2024 · 3 comments
Open

INTERLIS Import Dataowner / Provider not filled in right #154

sjib opened this issue Aug 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sjib
Copy link
Contributor

sjib commented Aug 2, 2024

Describe the bug
A clear and concise description of what the bug is.

When importing the Transferdatensatz of the VSA an additional organisation is created on import and all fields fk_dataprovider / fk_provider are filled in with that new organisation instead of ch080qwzPR000012

To Reproduce
Exact steps to reproduce the behavior:
2. Click on 'INTERLIS Import'
3. Select the xtf file
4. Start import
5. See table of class

Expected behavior
A clear and concise description of what you expected to happen.

If dataowner / provider is in one of the organisation datasets delivered it should not create a new one.

Screenshots / data
If applicable, add screenshots or data to help explain your problem.
20240802_import_mutation_creates_new_datenherr_datenlieferant

Desktop (please complete the following information):

  • QGEP plugin version 1.6.3 manually checked out from github
  • QGEP datamodel version 1.6.2
  • QGEP project file version 2.8.2024 from github
  • QGIS Version 3.34.8
  • Postgres 15
  • OS Windows 10

Additional context
Add any other context about the problem here.

Check that function to figure out what is happening:

def create_or_update_organisation(name):

@sjib sjib added the bug Something isn't working label Aug 2, 2024
@sjib
Copy link
Contributor Author

sjib commented Aug 2, 2024

20240802_import_organisation_with_new_datenherr_lieferant

@sjib
Copy link
Contributor Author

sjib commented Aug 2, 2024

			<DSS_2015_LV95.Siedlungsentwaesserung.Amt TID="ch080qwzAM001217">
				<OBJ_ID>ch080qwzAM001217</OBJ_ID>
				<Metaattribute>
					<SIA405_Base_LV95.Metaattribute>
						<Datenherr>ch080qwzPR000012</Datenherr>
						<Datenlieferant>ch080qwzPR000012</Datenlieferant>
						<Letzte_Aenderung>20140519</Letzte_Aenderung>
					</SIA405_Base_LV95.Metaattribute>
				</Metaattribute>
				<Bemerkung>Amt für Umwelt</Bemerkung>
				<Bezeichnung>AfU</Bezeichnung>
			</DSS_2015_LV95.Siedlungsentwaesserung.Amt>

and ch080qwzPR000012 is also in dataset

			<!-- neu 15.6.2021 für Konvertierung 2020 -->
			<DSS_2015_LV95.Siedlungsentwaesserung.Privat TID="ch080qwzPR000012">
				<OBJ_ID>ch080qwzPR000012</OBJ_ID>
				<Metaattribute>
					<SIA405_Base_LV95.Metaattribute>
						<Datenherr>ch080qwzPR000012</Datenherr>
						<Datenlieferant>ch080qwzPR000012</Datenlieferant>
						<Letzte_Aenderung>20140519</Letzte_Aenderung>
					</SIA405_Base_LV95.Metaattribute>
				</Metaattribute>
				<Bemerkung>Verband Schweizer Abwasser- und Gewässerschutzfachleute (VSA)</Bemerkung>
				<Bezeichnung>VSA</Bezeichnung>
			</DSS_2015_LV95.Siedlungsentwaesserung.Privat>

@sjib
Copy link
Contributor Author

sjib commented Aug 2, 2024

@ponceta Can you check if opengis could check on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant