MemoryDataStore addFeatures() with FeatureReader overrides exiting Features for same type

Description

Calling addFeatures() twice the second call overrides all exiting features. Since it's called add the expectations of users would be that implementation extends exiting collections for the same SimpleFeatureType.

Environment

None

Activity

Show:
Andrea Aime
February 15, 2017, 11:35 AM

Mass transitioning all resolved issues that have not been updated in the last month to closed state

Frank Gasdorf
November 11, 2015, 9:37 PM
Frank Gasdorf
November 4, 2015, 5:40 PM

addFeatures(SimpleFeatureIterator iterator) has the same problematic behavior

Frank Gasdorf
November 4, 2015, 5:23 PM

addFeatures(FeatureReader reader) doesn't work correctly while others were fine. Adjusted description and tests

Frank Gasdorf
November 4, 2015, 5:07 PM

Added test case patch that shows the behavior. addFeature() is fine whereas addFeatures() methods are not

Fixed

Assignee

Frank Gasdorf

Reporter

Frank Gasdorf

Triage

None

Components

Fix versions

Affects versions

Priority

High