lol - Easy pieter - this is a user list where we all figure it out together.
While Micheal is indeed a nice guy and very helpful (and can point out some of the methods involved) it would be great if you could assemble a working example that we can add to the docs (so Micheal or yourself can refer to it next time someone asks).
>From memory you get to configure if interpolation or nearest neighbour is used using some kind of hints; you can also use an operation to sample more than one pixel in a go if needed.
Although I did not just start with GeoTools; the way in which rasters are used is a bit of a mystery to me (and the docs are not very clear). I would recommend looking at test cases in geotools; and providing the link for any interesting one here on the user list so we can talk about what it is doing and try and figure out what it all means :-)
On Wednesday, 22 June 2011 at 4:43 PM, pieterjlouw wrote:
> Thanx Micheal, that dependency was missing... I got it working and played
> around with it a bit.
> I understand I can return a specific pixel value in the GeoTiff by passing
> lat,lon to DirectPosition2D. If the lat,lon fall inbetween pixels, does it
> use nearest neighbour or does it interpolate between pixels? (Maybe
> something like a distance weighted mean?)
> This is fine for Aster, which I know is near North-Up orientation, but
> typically I would like to return Elevation values at each pixel in the image
> grid, rather moving in a lat,lon grid. This will sort out any potential
> rotation or interpolation isues...
> Is there a way I can return the lat, lon and pixelValues for any specified
> pixel in the geoTiff? (i.e. passing image coordinates to return
> corresponding lat,lon, etc...)
> Please include as much constructor detail if the code exists rather than one
> line of code (I just started with GeoTools so bear with me for a while)
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reading-ASTER-DEM-Data-tp3728702p6503102.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com (http://Nabble.com).
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> Geotools-gt2-users mailing list
> Geotools-gt2-users@... (mailto:Geotools-gt2-users@...)