From: Nhan Vo <nhanvo@sm...> - 2012-06-12 13:56:19
I'm a beginner user of geotools, and I'm trying to export data in KML
format. I have features that are grouped together, and naturally would
like to put them in a Folder element but am having difficulty to do that. Since
when reading from KML I can access such structures as an attribute, as
Collection placemarks = (Collection) f.getAttribute("Feature");
I was imagining that I should do it in the exact opposite way when
writing, i.e. by attaching a FeatureCollection or Collection<Feature> as
a property of the parent feature, but it seems to just get ignored.
Could someone please give me a hint on how to do this? Thanks a lot!