Skip to content

Improvements related to bulk feature copy or move between layers - #218

Merged
fgdrf merged 2 commits into
locationtech:masterfrom
nprigour:CopyMoveFeaturesImprovements
Sep 19, 2019
Merged

fgdrf merged 2 commits into
locationtech:masterfrom
nprigour:CopyMoveFeaturesImprovements

Conversation

@nprigour

@nprigour nprigour commented Mar 8, 2017

Copy link
Copy Markdown
Contributor

Enhancements include:

  1. allow move of features between layers even when there is no strict featureType match (i.e. reordered attribute fields exist).
  2. copy of an attribute field between 2 layers even if the target attribute type does not strictly match the source attribute type based on the existence of proper adapters.
    Included example shp files to test the behavior via the UI.
    test_shp_files.zip

Signed-off-by: Nikolaos Pringouris nprigour@gmail.com

@nprigour

Copy link
Copy Markdown
Contributor Author

Hi @fgdrf ,
What is the status of this PR? Is there a reason prohibiting its acceptance?

@fgdrf

fgdrf commented May 15, 2018

Copy link
Copy Markdown
Contributor

@nprigour Actually it's still not merged yet because of lack of time to review it. ;)

Let's finish #279 first, because we will have some follow-up tasks regarding IP-Review (additional picky back CQ's and for GT itself, I guess 14.1 was approved with some exceptions).

Anybody else to review and comment this changeset now?

exist. Consider existence of adapters during feature copy between layers   

Signed-off-by: Nikolaos Pringouris <nprigour@gmail.com>
@fgdrf fgdrf added this to the 2.1.0 milestone Sep 18, 2019
@fgdrf

fgdrf commented Sep 18, 2019

Copy link
Copy Markdown
Contributor

@nprigour Can we go through the comments to get it onto master?

NumberAdaptableFactory

Signed-off-by: Nikolaos Pringouris <nprigour@gmail.com>
@nprigour
nprigour force-pushed the CopyMoveFeaturesImprovements branch from 564dacd to a8ba878 Compare September 19, 2019 10:18
@nprigour

nprigour commented Sep 19, 2019 •

Copy link
Copy Markdown
Contributor Author

Ok @fgdrf I addressed all of your comments providing some basic unit testing related to the examplary AdaptableFactory that transforms between various types of numbers.

IMHO the feature provided by this PR is one of the most powerful enhancement in udig SDK since it enables a potential developer to copy and move feature between layers even with completely different types providing their names are the same and that it has defined an appropriate implementation of IAdapterFactory.

@fgdrf
fgdrf merged commit 31e3471 into locationtech:master Sep 19, 2019
@nprigour

Copy link
Copy Markdown
Contributor Author

Just as a reminder that upgrading to geotools 22.x will affect this enhancement due to geotools/geotools#2525. Probably this differentiation of behavior will be detected by the added DataUtilities#compare unit test so we will go through it then.

@nprigour nprigour mentioned this pull request Dec 3, 2019
fgdrf pushed a commit to fgdrf/udig-platform that referenced this pull request Dec 23, 2019
…ationtech#218)

* Enables to copy of features between layers with reordered attribute fields

Considers existence of adapters during feature copy between layers

Signed-off-by: Nikolaos Pringouris <nprigour@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants