Hi list!
EFeature is now comitted to
unsupported/efeature<http://svn.osgeo.org/geotools/trunk/modules/unsupported/efeature/>.
It
is not yet included in the build (unsupported/pom.xml), I'll wait a bit
before I do that.
Initial testing i promising. EFeatureReader reads 10000 EFeatures from an
XMI file averaging out at about 300 ms (0.03 ms/read), which I think is a
good overall result. I've implemented several optimizations which
significantly reduce the overhead of mapping EMF data to FeatureType and
Feature instances. EFeature supports extension of EMF models, which allows
EMF GenModels to generates first class EFeature objects (static structure),
and dynamic mapping of any EObject instance. The latter only requires that
EObjects have at least one changeable string attribute (ID) and one
changeable attribute containing a single JTS Geometry.
Next step is to complete testing the spatial filter capabilities
(EFeatureQuery/EFeatureFilter), and add support for writing EMF Object. I'm
looking into better serialization methods of large EMF resource files
(XML/XML/binary) than the standard way. Default behavior of EMF resources is
to load everything into memory. For example, 20000 objects with six
attributes each, amount to about 6MB/5MB in XMI/binary formats (average
numbers). I'm really not that worried however. EFeature is not intended to
be used on resources with large number of objects.
I'm also want to write a small tutorial to show how EFeature
1. adds spatial support to EMF models (required re-generation)
2. reads spatial data from any existing EMF model (requires no
re-generation) containing JTS geometries.
*How to build EFeature (battle proved)*
1. cd into unsupported/efeature
2. mvn clean install
*and in Eclipse*
1. mvn eclipse:clean
2. mvn eclipse:eclipse
This should download the artifact
org.eclipse.emf.query:1.2.100-v200903190031! recently deployed to the osgeo
repos. The remaining artifacts is most likely already download by some other
gt module.
*How to test EFeature*
1. Locate JUnit test suite EFeatureAllTests and run it.
Any feedback is appreciated, especially on coding standards, project
structure and organization and so on.
Cheers,
Kenneth
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel