From: <jer...@in...> - 2006-01-31 15:50:09
|
In the info.xml I need such informations : <envelope crs =3D "GEOGCS['WGS 84',=20 DATUM['World Geodetic System 1984',=20 SPHEROID['WGS 84', 6378137.0, 298.257223563,=20 AUTHORITY['EPSG','7030']],=20 AUTHORITY['EPSG','6326']],=20 PRIMEM['Greenwich', 0.0, AUTHORITY['EPSG','8901']],=20 UNIT['degree', 0.017453292519943295],=20 AXIS['Geodetic latitude', NORTH],=20 AXIS['Geodetic longitude', EAST],=20 AUTHORITY['EPSG','4326']]" srsName =3D "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=20 580991.6875 is the same as 580991.6614583330 and that 2428891.25 is the=20 same as 2428891.3385416698 That's why I though I need geotools ? J=E9r=E9my Alexander Petkov <gre...@gm...> a =E9crit sur 31/01/2006 16:27:26 : > > - we need to generate the info.xml for each coverages (that's the=20 problem). > > > > Indeed, geotools does not support WorldImages (we use 2.1 may be it=20 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=20 web gui > > ? >=20 > Jeremy: >=20 > 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. >=20 > Alex |