Hi,

I´m having problems to render MultiPolygon features when threre are 2 or 
more Polygons inside a Multipolygon and using a simple PolygonSymbolizer.

I´ve tracked all the execution path and everythings looks ok to me, but 
a detail called my attention.

When i have a GeometryCollection as the geometry of a feature, the 
StreamingRenderer internally creates a LiteShape2 to use in the java 2d 
graphics "fill" method. I noticed that the PathIterator returned by the 
LiteShape2, as  anyone would expect, iterates over all the 
GeometryCollection coordinates, actually concatenating all the 
geometries. (all the polygons in my example)

I think that java 2D graphics don´t know how to fill a geometry like 
that ( a lot of concateneted polygons ).  Another fact that helps me 
think that is that in my example feature source, all the geometries are 
MultiPolygons, but there are some that has only one Polygon inside, and 
all of these renders with no problems.

Has anyone experienced something like this?

I´me using geotools 2.5.x and the last class in the call stack used to 
render the features is the StyledShapePainter.


Thanks in advance,

Francisco Moura
Developer
TECGRAF - PUC-Rio
GIS Development Group

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

Reply via email to