From: Martin D. <mar...@te...> - 2004-05-20 13:54:46
|
Andrea Aime a =E9crit : > This would also mean that we need some modification to the way styles > are handled, because every geometry in a group could have a different > style... Maybe, but at a very first look I don't think so... PointArray is at a=20 lower level than Geometries (i.e. a Geometry is made of PointArray), so: - PointArray has no knowledge at all about Styles; this is handled at a higher level (Geometry). We can see PointArray as an array of type float[], nothing else. Except that the real backing store (float[], double[], JTS's CoordinatePoint[], ZIP file, whatever) is abstracted. - Many Geometry (possibily with different styles) share the same PointArray. This is already implemented exactly that way in J2D renderer. This means that if a PointArray load data, all geometries using that PointArray would have the data loaded, no matter which style they use. Maybe I'm missing something... But if I'm understanding right, it seems=20 to me that no changes would be required to the way we handle Style,=20 since the work would be done at a level below that. It would fit with=20 current architecture. |