Jody, I need to follow up on my earlier question about a SimpleFeature implementation. I'm really looking for the object that I would create to represent a GPX entity like a waypoint as a SimpleFeature. So in some sense I'd actually be trying to implement FeatureFactory.
Maybe it would make sense to create my own implementation of SimpleFeature called GPXSimpleFeature that could support behavior unique to GPX entities? Please share with me your thoughts. Landon On Tue, May 20, 2008 at 3:14 PM, Jody Garnett <[EMAIL PROTECTED]> wrote: > Sunburned Surveyor wrote: >> >> Does GeoTools provide a default implementation of the SimpleFeature >> interface? If not, how about an abstract class? >> > > It does, if you grab a FeatureFactory using CommonFactoryFinder you should > be okay ... >> >> Or should I just use SimpleFeatureBuilder and not worry about the >> implementation of SimpleFeature that is returned? >> > > Correct. Here is the example: > - http://docs.codehaus.org/display/GEOTDOC/05+How+to+Write+a+Shapefile > > It looks like I need to update this example for GeoTools-2.5-M2... >> >> Thanks for the info. >> > > For the general idea of using Factories etc consider the following page: > - http://docs.codehaus.org/display/GEOTDOC/How+to+Create+Something > > Jody > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
