Change to SimpleFeature - STEMLab/geotools GitHub Wiki
-
Motivation: We are tired of working with flat features.
-
Contact: Jody Garnett, Justin Deoliveira, Gabriel RoldΓ‘n
-
Tagline: Expected refactoring, performed during the FOSS4G code sprint
We are tired of working with flat features:
- The GeoAPI project finally has a feature interface available that meets our needs
- org.opengis.feature.simple.SimpleFeature matches our current expectations - we can do a search and replace in order to switch over
- All code should be changed over to Use SimpleFeatureBuilder before this work proceeds
This proposal was part of the FOSS4G code sprint; it was mostly approved as part
of the code sprint workplan.
There is a lot of ink split on this topic. If I gave you links you would only get confused.
If you would like to be confused:
-
| :white_check_mark: | :no_entry: | :warning: | :negative_squared_cross_mark: |
------------|--------------------|------------|-------------------------|-------------------------------| no progress | done | impeded | lack mandate/funds/time | volunteer needed |
We want to prevent a repeat of what happened with Filter, this plan breaks early and breaks often - and then relaxes things for client code right before we ship.
-
β Make org.geotools.feature.FeatureImpl implement SimpleFeature
-
β Move org.geotools.feature.Feature to legacy and deprecate
-
β Add any methods needed to DefaultFeature
-
β Change imports and API as required in geotools modules
-
β Test like mad
-
β Confirm uDig and GeoServer are happy and can build
-
β Confirm uDig and GeoServer are just using SimpleFeature
-
β Update documentation where needed (most of the documentation was created w/ this in mind)
- β Feature Model Guide Code Example Page used during code sprint
-
β Release milestone release 2.5-M2)
-
β Revise based on experience (change to getDescriptor() and getId() )
-
β Release 2.5-RC0
org.geotools.feature.Feature
public interface Feature {
}
org.geotools.feature.Feature
import org.opengis.feature.simple.SimpleFeature;
/**
*
* @deprecated Use simple feature
*/
public interface Feature implements SimpleFeature {
}
Website:
- Update Upgrade to 2.5 instructions