|
From: Jong L. <jon...@ya...> - 2006-10-13 18:16:29
|
Thank you Martin,
I success to redefine the raster (GridCoverage) based on your method. Than=
k you again.
- Jong
----- Original Message ----
From: Martin Desruisseaux <mar...@ge...>
To: JONGSUNG LEE <jon...@ya...>
Cc: geo...@li...
Sent: Saturday, October 7, 2006 7:28:00 PM
Subject: Re: [Geotools-gt2-users] how to define the projection for raster f=
ile
JONGSUNG LEE a =C3=A9crit :
> And, how about raster data (GridCoverage)? Can I define the projection fo=
r the raster data after loading into GridCoverage? then, How?
The CoordinateReferenceSystem usually need to be specified at GridCoverage2=
D=20
creation time. However you may create a GridCoverage2D with a dummy CRS, an=
d=20
recreate again a GridCoverage2D later with all information inferred from th=
e=20
first GridCoverage2D except the CRS. Example (approximative):
GridCoverage2D gc =3D ...
CoordinateReferenceSystem crs =3D ...
gc =3D coverageFactory.create(gc.getName(), gc.getRenderedImage(), crs,=20
gc.getGridGeometry().getGridToCoordinateSystem(), gc.getSampleDimensions(),=
=20
null, null);
Martin
|