entur/tiamat

Async export with topographicPlaceExportMode=ALL produces duplicates in netex

mhicauber opened this issue · 2 comments

Using async export with topographicPlaceExportMode=ALL, I get a netex file with :

  • All counties at the top of the file,
  • Then all municipalities

But, when a municipality refers to a county as a parent topographic place, the county is included a second time in the netex file, just before the first municipality refering to it.

I'll try to fix it if I get some time.

It could be related to the usage of ParentTreeTopographicPlaceFetchingIterator in StreamingPublicationDelivery

It should probably not use the parent fetching iterator for export mode ALL.

I managed to reproduce it using an integration test. Will try to submit a fix soon.