sgebh wrote:
> Hallo,
> I already posted this problem previously. Anyway, I figured out what might
> be the reason. Still I can't find the solution. I have several polygons and
> want to write them to shapefile. The shapefiles along with the attributes I
> defined are created, but no features in there. There seems to be a problem
> with polygon and multipolygon which I cant figure out. Here is the error
> stack trace and code examples. Please help. Thanks steffen.
>   
Can you switch to MultiPolygons? It looks like that may be either:
- the only thing shapefile supports; or
- some of your data is a multipolygon
> Feature type and collection are defined as:
> CoordinateReferenceSystem crs = CRS.decode("EPSG:4326");
> AttributeType GEOM = AttributeTypeFactory.newAttributeType( "the_geom", 
> Polygon.class, true, null, null, crs);
>   
AttributeType GEOM = AttributeTypeFactory.newAttributeType( "the_geom", 
MultiPolygon.class, true, null, null, crs);


Jody

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to