Re: [Geotools-gt2-users] using ExternalGraphicsFactory

2011-05-11 Thread Michael Bedward
I just checked the animation example (current trunk sources) and it doesn't work for me either. I'm sorry about that. It's due to changes made to JMapPane last week to resolve problems rendering data from large and/or slow sources. When I have a chance to fix it I'll let you know. Michael On 12

Re: [Geotools-gt2-users] using ExternalGraphicsFactory

2011-05-11 Thread mounir younes
Thank you guys I will do my best to figure things out :) On Thu, May 12, 2011 at 2:58 AM, Michael Bedward wrote: > On 12 May 2011 08:31, mounir younes wrote: > > FlyingSaucer is not working for me ! the shapefile is displayed, but > there > > is nothing animated and the window just freezes so I

Re: [Geotools-gt2-users] using ExternalGraphicsFactory

2011-05-11 Thread Michael Bedward
On 12 May 2011 08:31, mounir younes wrote: > FlyingSaucer is not working for me ! the shapefile is displayed, but there > is nothing animated and the window just freezes so I cannot close it anymore Ah bummer. I wonder if I broke the example app with the recent changes to JMapPane. I'll check on

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

2011-05-11 Thread Michael Bedward
Hi Nick, > Thanks for the code, it's exactly what I need and I have my program working. > I was just > wondering when I'll be able to get my hands on the ZonalStatistics class > through the geotools > distribution? At the moment I have copied Simone's ZonalStatistics class > source code > verba

Re: [Geotools-gt2-users] using ExternalGraphicsFactory

2011-05-11 Thread Jody Garnett
Okay but it at least has you thinking ( I have never tried that one myself). Does it at least show the approach of separating out content onto different layers? Aside: freezing the UI is a common mistake people make when performing any kind of data access in the UI thread; this is one of those

Re: [Geotools-gt2-users] using ExternalGraphicsFactory

2011-05-11 Thread mounir younes
FlyingSaucer is not working for me ! the shapefile is displayed, but there is nothing animated and the window just freezes so I cannot close it anymore On Mon, May 9, 2011 at 6:42 AM, Jody Garnett wrote: > lol; these are all very common questions :-) let me try and answer... > > On Monday, 9 Ma

Re: [Geotools-gt2-users] get x y and values of every pixel , new user

2011-05-11 Thread Jody Garnett
Have a look at the information on grid coverage (GIS speak for raster). There is a sample operation that you can use to extract the values into your own array. I will point out that this is not the usual way of doing things; normally people set up a chain of operations and the system is smart en

Re: [Geotools-gt2-users] get x y and values of every pixel , new user

2011-05-11 Thread Michael Bedward
Hello, If you have created a GridCoverage2D object from your image you can convert grid positions to world positions as in this example... GridCoverage2D cov = ... GridGeometry2D gg = cov.getGridGeometry(); GridEnvelope2D gridEnv = gg.getGridRange2D(); GridCoordinates2D coord = new GridCoordinat

[Geotools-gt2-users] get x y and values of every pixel , new user

2011-05-11 Thread vashisthg
Hi friends, I am a new user of geotools. I want to get the coordinate values and value(Height, as the image file is a raster) of every pixel, preferably with a for loop or anything. I need to change the x y and z values acc to a criteria which i have already coded. Thanks and Regards Gaurav Vashis

[Geotools-gt2-users] get x y and values of every pixel , new user

2011-05-11 Thread vashisthg
Hi friends, I am a new user of geotools. I want to get the coordinate values and value(Height, as the image file is a raster) of every pixel, preferably with a for loop or anything. I need to change the x y and z values acc to a criteria which i have already coded. Thanks and Regards Gaurav Vashis

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

2011-05-11 Thread Jody Garnett
Hi. I assume you are referring to like using PostGIS? The DataStore does return a list of type names for each table registered in geometry_columns; you can review the FeatureType for each type name mentioned (which contains the information about which "geometry columns" are marked; they are re

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

2011-05-11 Thread Nicolas Malleson
On 10 May 2011, at 23:04, Jody Garnett wrote: > 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/us