Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix issue causing always full layer export of abstract geometry types #258
In org.locationtech.udig.catalog.ui.export.CatalogExportWizard when the type of layer is of the abstract type Geometry a selection during the action of a feature export (right click on a layer and selection of Export->Other->Layer To Shapefile) is ignored causing all layers features to be exported.
Signed-off-by: Nikolaos Pringouris firstname.lastname@example.org
Is it about exporting only selected features and selection is ignored? Or do you mean the selection within the layers view is ignored and all layers are listed in export dialog? Can you provide a dataset with abstract Geometry type to reproduce the issue. That would help to understand the problem
In line 173 FeatureCollection is created using the following fragment of code
Then in line 212,213 a new collection is created ignoring the previous one (why?)
this causes all layer features to be always exported agnostic of whether a selection query exists or not for the given layer. This applies to any geometry type polygon, point, line etc.