Hey all (and perhaps Jesse in particular),

I'm unsure how to add features to the "TemporaryResource" created by:

IGeoResource newIGR = CatalogPlugin.getDefault().
                                    getLocalCatalog().
                                    createTemporaryResource( myBufferFT );

and the approach I have found so far leaves me confused.

Through a FeatureStore:
-----------------------
Assuming, as stated in the docs and based on experience, that the
newIGR .resolve(FeatureStore.class) method (may) yield a FeatureStore,
then I need to add my feature to that store.

This requires
  (1) creating a FeatureReader
  (2) creating an AttributeReader
but this second step requires knowing what kind of FeatureStore we are
working against which I don't know. This also seems a lot of work
compared to the convenience that got me started on this path.



Question 1: How do I discover/figure out this second step?


Question 2: is there another approach that I am missing? 

Question 3: Would it make sense to provide another convenience method:
  addFeatureToTemporaryResource(IGeoResource,Feature)
or am I lost?

cheers,
adrian


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to