Re: [Geotools-gt2-users] SLD newbie looking for a head start

2008-06-17 Thread Michael Bedward
Hi Steve, No need to apologize - there is no chance that you are less organised or more frequently late than me. Thanks very much for the info - great news about it running with 1.5. I'm doing a checkout of your code as I type and I'll try it out shortly. By the way, there is a certificate warn

Re: [Geotools-gt2-users] Raster Processing in GeoTools Inquiry

2008-06-17 Thread Michael Bedward
>> What I have not seen in the API, any example code or user guides I have >> looked at is >> straightforward a way to query the values of one or a group of cells in a >> grid, and to >> perform simple map algebra on one or more grid layers based on the cell >> values. In >> other words, simple

Re: [Geotools-gt2-users] HELP! Using Netbeans with GeoTools

2008-06-17 Thread Michael Bedward
I've got geotools / maven cooking with Netbeans 6. Firstly, I'd recommend that you update your Netbeans from 5 to 6. There are quite a lot of bug fixes and some useful new features including a local and remote maven repository browser and better support for subversion, and smart editing of the ma

Re: [Geotools-gt2-users] HELP! Using Netbeans with GeoTools

2008-06-17 Thread Jody Garnett
That is very old; it seems that netbeans users have not contributed documentation recently ... I would follow the instructions for eclipse...where they say: mvn eclipse:eclipse use "mvn netbeans:netbeans" and hope for the best. - http://docs.codehaus.org/display/GEOT/2.5.8+Maven+Eclipse+Plugin+Go

[Geotools-gt2-users] HELP! Using Netbeans with GeoTools

2008-06-17 Thread fx5900
Hi i am following this link http://docs.codehaus.org/display/GEOT/Using+NetBeans+with+Geotools http://docs.codehaus.org/display/GEOT/Using+NetBeans+with+Geotools which describes how to use netbeans with geotools. I have the mavenide plugin and have downloaded the svn file onto my C drive and my c

Re: [Geotools-gt2-users] Raster Processing in GeoTools Inquiry

2008-06-17 Thread Jody Garnett
Hi Dan: Dan D'Alimonte wrote: > Hi; > > I have just began looking at GeoTools as a possible way to enhance a > landscape modelling framework that we are working on. Currently we are > using matrices to hold raster data (which is usually not imagery), with > limited spatial referencing. By usin

Re: [Geotools-gt2-users] SLD newbie looking for a head start

2008-06-17 Thread Stefan A. Krüger
Hi Michael Sorry for answering so late.. Yes.. i think you can build the AtlasStyler with 1.5.. (In my build.xml i use source and target = 1.5 and it seems to work) i have release all code as LGPL and moved it to a public SVN last weekend. I will probably send a "bigger" announcement onto this

[Geotools-gt2-users] Raster Processing in GeoTools Inquiry

2008-06-17 Thread Dan D'Alimonte
Hi; I have just began looking at GeoTools as a possible way to enhance a landscape modelling framework that we are working on. Currently we are using matrices to hold raster data (which is usually not imagery), with limited spatial referencing. By using GeoTools we are hoping to make it more

[Geotools-gt2-users] [Fwd: Re: Problems with reprojection MemoryDataStore]

2008-06-17 Thread LepiMarbois
--- Begin Message --- Jody, thanks for response. >>Is this the same as EPSG:4326? or DefaultGeogrpahicCRS.WGS84? yes in order to get this DataStore reprojected , i made a special treatment for this layer as follow: FeatureSource fs = getFeatureSource(); String storeTypeName

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread [EMAIL PROTECTED]
Michael, I allready had a look at JAI (ROIShape etc.). I got stucked, thus I ended up trying something else. Well I think I have to review the ROIShape-stuff and dig a little bit deeper. By the way > 2. How can this be done for a "sub-grid" defined by the polygon's > bounding box? Do I ha

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread Michael Bedward
No worries :) I think you can use one of JAI's iterator factory classes to create an iterator that only looks within a mask area. And you can create a mask with the ROIShape class from your polygon. I'm definitely not a JAI expert but I think if you have a look at the JAI docs you should find wh

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread System . out . println
Sorry for the unprecise question. My underlying question is which pixels of a grid are "inside" a polygon (ROI). Therefor I want to derive points from the pixels and afterwards check which points the polygon contains. The latter can easily be done by JTS: polygon.contains(Point). But I nee

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread Michael Bedward
> in screen coords oops, I meant window coords Michael - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/ind

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread Michael Bedward
> "Rectangle pixelBounds" is the bounding box of the polygon? yes - Martin's code is assuming that you've got a rectangle expressed in screen coords - is that what you're starting with ? (sorry - it's a bit ambiguous in your query) > What is "CRS" in the third line - the CRS of the grid coverage?

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread Martin Desruisseaux
[EMAIL PROTECTED] a écrit : > Thanks Martin, > > but...unfortunately...I...erm...don't get it... > > What exacly is your code doing? It converts a Rectangle from pixel coordinates (in coverage image) to geographic coordinates (in coverage CRS). I though that this is what you wanted to do...

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread [EMAIL PROTECTED]
Thanks Martin, but...unfortunately...I...erm...don't get it... What exacly is your code doing? "Rectangle pixelBounds" is the bounding box of the polygon? What is "CRS" in the third line - the CRS of the grid coverage? The transform-method is undefined for org.opengis.referencing.crs.Coordin

Re: [Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread Martin Desruisseaux
[EMAIL PROTECTED] a écrit : > given a GridCoverage2D and a rectangle (derived from the bouning box > of a polygon), what is the best way to get the world/geographic > coordinates of the pixels the rectangle contains? MathTransform tr = GridCoverage2D.getGridGeometry().getGridToCRS(); Rectangle

[Geotools-gt2-users] Get world coordinates of a grid coverage

2008-06-17 Thread [EMAIL PROTECTED]
Hi list, given a GridCoverage2D and a rectangle (derived from the bouning box of a polygon), what is the best way to get the world/geographic coordinates of the pixels the rectangle contains? I think about a two step process: 1. Crop the grid to the rectangle. 2. Calculate the world coordina