I think you need to be sure to make a second shapefile DataStore for each case.
A shapefile can only be used for a single layer of content.
Jody
On 11/06/2010, at 9:02 PM, Tomas Cea wrote:
> Hi folks!
>
> At first, I had a MapContext with only one layer. So, I followed "CSV 2 SHP
> Lab" (http://docs.geotools.org/latest/userguide/examples/csv2shp.html) and I
> wrote a shapefile perfectly.
>
> Now, I have a MapContext with two layers. I'm trying with the same mechanism
> and calling "featureStore.addFeatures(collection)" twice (one for each
> layer), so I write the shapefile. However, when I show the new shapefile I
> only can see the first layer without the second layer features.
>
> I'm not sure if I have to add more logic to my method or it's an style
> problem....Anyway, I'm sure that someone had this trouble in the past.
>
> Thanks in advanced.
> --
> Tomás
> ------------------------------------------------------------------------------
> 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
------------------------------------------------------------------------------
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