Thanks to both of you...

In other way...Can I add different geometry type in the same layer of a
MapContext??

On Mon, Jun 14, 2010 at 11:16 AM, Jody Garnett <[email protected]>wrote:

> Fred is correct.
>
> Please create two shapefiles :-)
>
> This is a limitation of the shapefile format.
>
> Jody
>
> On 14/06/2010, at 6:35 PM, Tomas Cea wrote:
>
> thanks for your answer Jody!
>
> Anyway, I have the same problem yet:
>
> For instance, I have two layers, first one with points and second one with
> lines. How can I save these into a shapefile? Can I do it?
>
> Thx
>
> On Fri, Jun 11, 2010 at 1:42 PM, Jody Garnett <[email protected]>wrote:
>
>> 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
>>
>>
>>
>
>
> --
> Tomás
>
>
>


-- 
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

Reply via email to