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

Issue 49 correction #53

Merged
merged 2 commits into from
Sep 4, 2016
Merged

Conversation

fsteggink
Copy link
Collaborator

While loading BGT data yesterday, I noticed that, after an XML file has been assembled using XmlAssembler, every subsequent XML file will only contain one feature. The cause is that somewhere in the ETL chain end_of_document or end_of_stream is set in the packet. Or rather, packet.init is not called, as it is called in my unit tests. I suspect this is due to the use of the ZipFileInput in the real life situation (BGT extract), instead of XmlElementStreamerFileInput in XmlAssemblerTest (test_xml_assembler.py). Before the XML is being processed, the ZIP file has already been entirely "read".

I think my fix is justifiable, although I still consider it as a workaround. When more XML elements are being read, it is obvious that End of Document, or End of Stream has not been reach yet.

A more permanent solution would be the redesign mentioned in issue #51.

@justb4 justb4 merged commit f1fc82b into geopython:master Sep 4, 2016
@jwva
Copy link

jwva commented Sep 4, 2016

OK, great progress; thanks. What's the status of this issue now? In other words, when can we expect a new automatically generated BGT PostGIS dump again on data.nlextract.nl?

@fsteggink fsteggink deleted the issue_49_correction branch September 4, 2016 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants