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

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

Merged
merged 2 commits into from
Sep 19, 2019

Conversation

nprigour
Copy link
Contributor

@nprigour nprigour commented Mar 8, 2017

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 [email protected]

@nprigour
Copy link
Contributor Author

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

@fgdrf
Copy link
Contributor

fgdrf commented May 15, 2018

@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 <[email protected]>
@fgdrf fgdrf added this to the 2.1.0 milestone Sep 18, 2019
@fgdrf
Copy link
Contributor

fgdrf commented Sep 18, 2019

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

NumberAdaptableFactory

Signed-off-by: Nikolaos Pringouris <[email protected]>
@nprigour
Copy link
Contributor Author

nprigour commented Sep 19, 2019

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
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 <[email protected]>
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