Hello,

I create my model DefaultModel with a DefaultFeatureCollection and in my
layer I have a CollectionDatastore.
But when I want get my model in the layer with this code :
"layer.getfeatureSource().getFeatures()"
The return is a DataFeatureResults but I want my model DefaultModel.
How can I found my model?
Can I create a method getFeatures in the CollectionDatastore? I don't think
because a collectionDataStore is composed with several FeatureSource,
doesn't it?


In CollectionDataStore, a test if the featureCollection has a schema should
be done before the test with the size of the collection. I don't know if
it's good to think that? Because is it possible to create a empty
collection, add to the layer then add feature in the collection? Today I
d'ont work for me. I had add the test in CollectionDataStore to that work.

Thanks,
Didier CREST

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-get-the-collection-in-a-layer-tp5139673p5139673.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to