[Geotools-gt2-users] Question about FeatureCollection close(Iterator) method

2006-03-03 Thread Sean McGowan
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(

[Geotools-gt2-users] Problem removing last layer using Legend

2006-02-18 Thread Sean McGowan
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

[Geotools-gt2-users] GMLDataStore Memory Leak

2006-02-09 Thread Sean McGowan
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

[Geotools-gt2-users] Multiple Legends per Map

2006-02-03 Thread Sean McGowan
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

[Geotools-gt2-users] A Class to hold Feature objects from scratch

2005-11-24 Thread Sean McGowan
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

[Geotools-gt2-users] A method to return surrounding geometries

2005-11-11 Thread Sean McGowan
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

[Geotools-gt2-users] Hi there, a few Geotools questions

2005-11-08 Thread Sean McGowan
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