Re: [Geotools-gt2-users] Displaying WMS and Shapefile in the Same ContextPane

2010-03-17 Thread Michael Bedward
Hi Tawan, Thanks to some ace detective work by Andrea the problem has been identified: difference in axis definition between the WMS layer and shapefile. See Andrea's explanatory notes and example image here... http://jira.codehaus.org/browse/GEOT-2995 The following example should display a

Re: [Geotools-gt2-users] GeoTiff and JFileChooser

2010-03-17 Thread Simone Giannecchini
Are you disposing the geotiff readers you are using in your code? Besides, is that the whole stacktrace you see or is there some more? It is not so easy to understand what is going on form this code. Ciao, Simone. --- Ing. Simone Giannecchini

Re: [Geotools-gt2-users] GeoTiff and JFileChooser

2010-03-17 Thread Michael Bedward
I've just tried your code snippet with the bogota image and I can't get it to throw an Exception. As Simone says, you need to provide more information for people to know what to check. Michael -- Download Intel#174;

[Geotools-gt2-users] Using of the own ExternalGraphicFactory-implementation

2010-03-17 Thread Christian Dubray
Hello, I started using geotools and now I have a short question of using it: Which possibilities have I to use my own implementation of the ExternalGraphicFactory? Can I find anywhere a example of registering a own factory? Or is there another solution? I want to load an icon dynamically,

[Geotools-gt2-users] Math transform to EPSG:4326 giving odd results

2010-03-17 Thread Bellinski, Dan
Hi all, I have code that does the following: 1. Grabs a feature from a WFS server 2. Converts the geometry to an oracle SDO_GEOMETRY using: a. sdoGeomStruct = geometryConverter.toSDO(geometry, 4326); 3. Stores the sdo_geom in an oracle spatial geometry column

Re: [Geotools-gt2-users] GeoTiff and JFileChooser

2010-03-17 Thread Michael geotools
Are you disposing the geotiff readers you are using in your code? Besides, is that the whole stacktrace you see or is there some more? It is not so easy to understand what is going on form this code. Hi, this bug happens even when im not use geotiff reader, just create. That does not

[Geotools-gt2-users] Displaying WMS and Shapefile in the Same ContextPane

2010-03-17 Thread Tawan Banchuen
This code works for me as well. Thank you very much Andrea and Michael. Tawan -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and

Re: [Geotools-gt2-users] Unable to find function Length

2010-03-17 Thread Michael Bedward
HI Robert, The version of that file in your app's jar should contain a large number of names of the classes that implement filter functions but your file only contains three... org.geotools.filter.CategorizeFunction org.geotools.filter.RecodeFunction org.geotools.filter.InterpolateFunction This

Re: [Geotools-gt2-users] can we crop a grid using a irregular polygon rather than a bounding box?

2010-03-17 Thread Michael Bedward
Hi Jin, can we crop a grid using a irregular polygon rather than a bounding box? If you want to keep the grid as a grid then you're stuck with a rectangular boundary. A couple of options: 1. create a new grid with values equal to the source grid within the polygon and some no data value

Re: [Geotools-gt2-users] can we crop a grid using a irregular polygon rather than a bounding box?

2010-03-17 Thread Michael Bedward
Hi Jin, Yes, there are various ways in which you could do it, If you need to allow for the possibility of different CRSs between your sampling space (the polygon) and your data space (the grid coverage) then the GridCoverage2D.evalute method is your friend. Michael