[Geotools-gt2-users] how to get the data of "geometry_columns" table

2011-05-10 Thread LeeHyung Joo - Kevin
Hi all. I wonder how to get the data of "geometry_columns" table by Geotools. Cause' I know how to express by the sql syntax: "select * from geometry_columns;" But the thing what I want to do is using "Geotools".. As you know.. not simply way for novice. "ds.getTypeName()" is the way to

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Jody Garnett
gt-coverage contains the idea; the implementation for different formats is handled as a plugins; so gt-geotiff contribtues the geotiff format. gt-arcgrid contribtues the arcgrid format. Details here: - http://docs.geotools.org/latest/userguide/welcome/geotools.html -- Jody Garnett On Wednesda

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Andrea Aime
On Tue, May 10, 2011 at 4:04 PM, Nicolas Malleson wrote: > I assume that the arcgrid module is part of gt-coverage? Or do I need to add > an additional module? It's in gt-coverage Cheers Andrea -- --- Ing. Andrea Aime GeoSolutions S.A.S. Tec

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Nicolas Malleson
On 10 May 2011, at 13:52, Andrea Aime wrote: > On Tue, May 10, 2011 at 11:54 AM, Nicolas Malleson > wrote: >> Can I just check, if you do "GridFormatFinder.getAvailableFormats()" do you >> also get an empty list? > > If I run that code from within the arcgrid module I get this: > > [org.geoto

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Andrea Aime
On Tue, May 10, 2011 at 11:54 AM, Nicolas Malleson wrote: > Can I just check, if you do "GridFormatFinder.getAvailableFormats()" do you > also get an empty list? If I run that code from within the arcgrid module I get this: [org.geotools.gce.arcgrid.ArcGridFormatFactory@1386000] If instead I r

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Nicolas Malleson
Hi Simone, On 10 May 2011, at 10:23, Simone Giannecchini wrote: > -1- makre sure this points to a fil that actually exists: File ascFile > = new File("data/leeds_dtm/raster.asc.gz"); Don't worry, I checked that first :-) > -2- make sure to provie a valid prj if your data is not in wgs84 The da

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Simone Giannecchini
Ciao Nick, two things: -1- makre sure this points to a fil that actually exists: File ascFile = new File("data/leeds_dtm/raster.asc.gz"); -2- make sure to provie a valid prj if your data is not in wgs84 Regards, Simone Giannecchini --- Ing. Simo

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Nicolas Malleson
Hi Simone, That's what I was doing originally (only tried zipping it because it was in Jody's example) but the behaviour was the same. Kind regards, Nick On 10 May 2011, at 09:56, Simone Giannecchini wrote: > I would unzip the file before using it. > Performances would be horrible anyway. > >

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Simone Giannecchini
I would unzip the file before using it. Performances would be horrible anyway. Regards, Simone Giannecchini --- Ing. Simone Giannecchini GeoSolutions S.A.S. Founder Via Poggio alle Viti 1187 55054  Massarosa (LU) Italy phone: +39 0584 962313 fa

Re: [Geotools-gt2-users] Point- and Polygonlayer

2011-05-10 Thread Jody Garnett
This is an example of a spatial join; something we don't have native support for in the shapefile format; but you can accomplish using a couple of loops as indicated in the user guide here: - http://docs.geotools.org/latest/userguide/library/main/collection.html#join -- Jody Garnett On Tuesday

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Nicolas Malleson
Thanks for all the help with the zonal statistics, I was amazed to wake up this morning with 5 replies! I'll have a look at the jai tools that Michael and Simone have recommended this afternoon, but in the meantime I'd just like to ask about the behaviour of the GridFormatFinder (the behaviour o

[Geotools-gt2-users] Point- and Polygonlayer

2011-05-10 Thread ballibum
Hello List, i hope someone can help me. I have got a pointlayer and a polygonlayer with more than one polygon (both in shape). The Pointlayer has only an id and the coordinates, the polygonlayer has got an id, the coordinates and a extra attribute. Now, i want to look which point is in which polyg

Re: [Geotools-gt2-users] Calculating zonal statistics for a grid coverage

2011-05-10 Thread Simone Giannecchini
Ciao A tutti, aside from what jody just said for reading an asci grid, I just committed these days the zonalstats operation wrapper from jai-tools inside geotools. This means that you should be able to get the relevant jars for reading the ascigrid, and then computing statistics using the zonal st