I suppose you just find the ratio between the current cell size and the cell
size you require, then use that for the scale factor. Or something like that
anyway...

Jon

On 20 May 2010 17:30, Adnila <adn...@web.de> wrote:

>
> hey guys,
>
> @Michael: thanks for the code. It was very helpful. You're the best ;-)
>
> sry, when I caused some confusions. But I meant the cell width with
> resolution. This was not correct, sry. I need to set the cell width fixed.
> The user can chose the cell width in meters and than the new grid coverage
> is calculated and saved into HDF5 file.
>
> any idea how to get the fixed cell width? I think I have to check for the
> "old" cell width and the "new" one and then calculate the difference. This
> sounds not bad... I will go and check.
>
> By the way, is there any way to manipulate a MapContext in a manner that
> just the MapContext can be closed and not my program, too.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Rescale-GridCoverage2D-with-fixed-resolution-tp5008772p5080504.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Geotools-gt2-users mailing list
> Geotools-gt2-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to