Hi,
I'm working with uDig 1.1.1 and I got some troubles to find
documentation and code exemples for earlier geotools versions so...
My questions are :
A- Is there a way to udpate udig 1.1.1 (stable) with Geotools 2.5 ?
Actually, I'm facing some difficulties with Geotools 2.2 with filters
as most of the documentation is based on 2.5 version especially with
the use of Filter class.
To update uDig to GeoTools 2.5 I thought to :
- remove all the gt*.zip files from udig-sdk files from
udig-sdk\plugins\net.refractions.udig.libs.source_1.1.0\src\net.refractions.udig.libs_1.1.0\lib
- then to import Geotools library in my Eclipse project.
B- Can this process work or will I have an unstable uDig ?
C- If I have to forget about the idea upgrading geotools, can someone
explain me how to adapt this 2.5 code to 2.2 compliant one :
FilterFactory ff = CommonFactoryFinder.getFilterFactory(
GeoTools.getDefaultHints() );
Filter filter = ff.id( Collections.singleton( ff.featureId("fred")));
in order to apply filter to :
store.modifyFeatures( attributeType, new Integer(24), filter );
I guess I have to create filter like:
Filterfactory ff = FilterFactoryFinder.createFilterFactory();
but then what about creating the Filter ?
Once again, I would appreciate so much if someone could help me.
Thanks.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel