Not sure how to answer you guys ... because it really depends on what you want 
to do :-) Sounds like you have figured out creating a multi-polygon;  you will 
need to create a feature out of that (possibly prompting your user for 
additional attributes?).

To add the feature:

if( source instanceof FeatureStore ){
   FeatureStore store = (FeatureStore) featureSource;
   store.addFeatures( DataUtilities. collection( feature ) );
}

There is probably a better example in the user guide?

Jody

On 10/04/2010, at 1:03 AM, David Abdurachmanov wrote:

> Hello,
> 
> Let's say did draw a few houses in rectangle area, now I would like to place 
> them on the map, find a location there I could put it. When I find this 
> collation how should I draw those houses on the map? Should I create a 
> MultiPolygon and add it to the features of the layer? Would be good to create 
> the whole new layer for this. 
> 
> If I do get the FeatureSource from the layer and I would add to it new 
> feature, would I see it on the map?
> 
> David 
> 
> Hotmail: Free, trusted and rich email service. Get it now. 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev_______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to