Hi there,
In the FeatureCollection Javadocs, there is some sample code on using the
close(Iterator) method:
Iterator iterator = collection.iterator();
try {
for( Iterator i=collection.iterator(); i.hasNext();){
Feature feature = (Feature) i.hasNext();
System.out.println(
Hi there,
I'm getting an exception when I try removing the last layer from a map using
the Legend. It's saying there are no children left. When I traced through
the calls the problem seems to be in the contextChanged() method of the
Legend class. It calls setSelectedLayer(). Why would it do
Hi there,
Does anybody know how I can stop the memory leak in GMLDataStore? From
reading a previous answer, a possible solution is to close the fcbuffer
thread in GMLDataStore. Does anybody know where in the code I can do this?
I'm not very experienced with Java threads ;-)
Thanks,
Sean
Hi there,
I have a question regarding the Legend class. I have a legend in my app for
the map to display the list of layers. However, in my application I produce
new layers. I would like to add these to a separate Legend. It seems I can
only have one Legend per map. Is there any way around
Hey,
Does anybody know of a class that can hold Feature objects where the
features are added from scratch. By this I mean that the container is empty
to begin with. I considered the FeatureCollection but I need something that
I can create an instance of and start from empty.
Sean
Does anybody know a method in Geotools that can return an arrray of
geometries that touch a given geometry? I know the Geometry method
g1.touch(g2) can determine if two given geometries touch. What I want is a
method to return all touching geometries. I had a look through the JTS API
but
for going about this?
I'd really appreciate the help.
Thanks,
Sean McGowan
---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv