In the info.xml I need such informations :
<envelope crs = "GEOGCS['WGS 84',
DATUM['World Geodetic System 1984',
SPHEROID['WGS 84', 6378137.0, 298.257223563, AUTHORITY['EPSG','7030']],
AUTHORITY['EPSG','6326']],
PRIMEM['Greenwich', 0.0, AUTHORITY['EPSG','8901']],
UNIT['degree', 0.017453292519943295],
AXIS['Geodetic latitude', NORTH],
AXIS['Geodetic longitude', EAST],
AUTHORITY['EPSG','4326']]" srsName = "EPSG:4326" >
<pos>580991.6875 2423886.75</pos>
<pos>585996.25 2428891.25</pos>
</envelope>
In my .tfw file, I've got :
1.3229166666
0.0000000000
0.0000000000
-1.3229166665
580991.6614583330
2428891.3385416698
So I need to calcule the 2423886.75 and the 585996.25 if I say that 580991.6875 is the same as 580991.6614583330 and that 2428891.25 is the same as 2428891.3385416698
That's why I though I need geotools ?
Jérémy
Alexander Petkov <[EMAIL PROTECTED]> a écrit sur 31/01/2006 16:27:26 :
> > - we need to generate the info.xml for each coverages (that's the problem).
> >
> > Indeed, geotools does not support WorldImages (we use 2.1 may be it has
> > changed ?) so how can we read the .tfw file with geotools (telling him taht
> > the coordinates are in ESPG:4326) and get the corresponding bounds the same
> > way geoserver load it when we (manually) create a coverage from the web gui
> > ?
>
> Jeremy:
>
> Are you saying that the .tfw file for the raster already exists before
> creating a coverage? If so, parsing the .tfw file is not difficult in
> java, as the tfw format itself is very simple and consistent. Then the
> parameters can be written to BBOX in an info.xml. It doesn't look like
> geotools is necessary for this task.
>
> Alex
