Hi,
I need help with a weird behaviour of my application.
My problem is when I use a kml file with lines and polygons.

When I create the geometry from the file with that, the display is perfect: 
SimpleFeatureTypeBuilder typeBuilder = new SimpleFeatureTypeBuilder();
typeBuilder.setName("Geometry");
typeBuilder.add("the_geom", geom);

But when I use that:
SimpleFeatureTypeBuilder typeBuilder = new SimpleFeatureTypeBuilder();
typeBuilder.setName("Geometry");
typeBuilder.add("the_geom", geom);
typeBuilder.add("name", String.class);

All the lines become sort of polygons with the extremities joined.
Perhaps I have missed something but I don't understand why adding a name can
break the geometry.

Does anyone have an idea to help a desperate guy?

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Problem-with-a-featureTypeBuilder-tp5008838p5008838.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to