Maxar-Corp / ossim-geotools

OSSIM GeoTools Integration
MIT License
1 stars 3 forks source link

GeoPkgWriter #157

Closed gpotts closed 9 years ago

gpotts commented 9 years ago

The geopackage export is not working the way I thought. Trying to export a layer to a geopackage and there are holes. But not on the WMS though.

gpotts commented 9 years ago

This bug is becoming bigger than I thought. I found the culprit but at this point I can't see if it's a data-integration problem or our plugin problem. I am going to try to refactor the iterator plugin and see if that helps.

The problem is this. I have a TileIterator step that extracts tiles out of a database and passes it onto the next step. Connected is the GeoPackage writer that outputs the tile to a geopackage. It appears rows are being duplicated but looking at the output of the iterator it is clear they are not being duplicated. Not sure why they are duplicated for this causes a UNIQUE error in the geopackage writer.

gpotts commented 9 years ago

Looking through the kettle code most of the steps that are record generators do it in a way that it generates a row at a time and then returns so that Kettle internals can do their thing for the next execution. I have a couple Kettle steps that will need to be refactored and will probably take about 2 days to complete. I hope this will work for the bug. If not then we will have to go a different route for the geopackage output

gpotts commented 9 years ago

Need to do some more testing but I think I have it running better now. Did my own allocation of the result buffer and put that on the result queue in kettle. Will probably check it in tomorrow and hopefully integrate the cutting after the image ope step is completed

gpotts commented 9 years ago

I am going to go ahead and close this out. Things seem to be running much nicer with this flow now. If problems arise I'll raise a new issue