Open urskaufmann opened 1 year ago
See https://github.com/QGEP/qgepqwat2ili/issues/36 for more background and considerations
Needs adaption here:
datenherr=getattr(row.fk_dataowner__REL, "name", "unknown"), # TODO : is unknown ok ?
datenlieferant=getattr(row.fk_provider__REL, "name", "unknown"), # TODO : is unknown ok ?
Suggested Change Options: a) Change "name" to "identifier" as there is no column "name" in qgep datamodel in class organisation to get the identifier in case there is no fk_ set b) It should only set 'unknown' if there is no fkprovider set. Just add 'unknown' if there is no fk set (becaus if NULL then we get an error in the INTERLIS file) and else leave the foreignkey value
With identifier instead of name:
datenherr=getattr(row.fk_dataowner__REL, "identifier", "unknown"), # TODO : is unknown ok ?
datenlieferant=getattr(row.fk_provider__REL, "identifier", "unknown"), # TODO : is unknown ok ?
With obj_id instead of name:
datenherr=getattr(row.fk_dataowner__REL, "obj_id", "unknown"), # TODO : is unknown ok ?
datenlieferant=getattr(row.fk_provider__REL, "obj_id", "unknown"), # TODO : is unknown ok ?
Please vote with thumb which of the two option should be implemented.
Should be correct now with obj:
@urskaufmann Please check and confirm, then this can be closed.
Describe the bug Datenherr and Datenlieferant are exported always as unknown, also when there are values in this fields.
This is not a bug (it's documentated in the code), but the correct values are not implemented.