From: Aleksandar Milanovic <amilanovic@ga...> - 2002-08-06 17:55:35
I am resending this to this "devel" list:
What's the state of coordinate transformations in Geotools? I checked the
SeaGIS project site to discover that it had been moved to geotools 2. Do you
support BNG - EPSG:4326 transformations?
From: Martin Desruisseaux <martin.desruisseaux@te...> - 2002-08-06 19:55:51
Aleksandar Milanovic wrote:
> What's the state of coordinate transformations in Geotools? I checked the
> SeaGIS project site to discover that it had been moved to geotools 2. Do you
> support BNG - EPSG:4326 transformations?
The CTS module is in a workable state. It should work for a fair amount
of cases (but not all). A factory backed by the EPSG database is
available recently. It is possible to test it from the commande line.
java org.geotools.cs.CoordinateSystemEPSGFactory 4326
Gives the following output:
<=== EPSG 4326 ===>
GEOGCS["WGS 84", DATUM["World Geodetic System 1984", GEOCENTRIC,
SPHEROID["WGS 84", 6378137.0, 298.257223563]], PRIMEM["
Greenwich", 0.0], UNIT["DMS",4.84813681109536E-6], AXIS["Geodetic
latitude",NORTH], AXIS["Geodetic longitude",EAST]]
Do not paid to much attention to the number inside UNIT["DMS", ...]. The
problem is that we can't convert degree/minute/second to radians using a
single scale factor, but I had to put a number anyway. I fully agree
that "degree/minute/second" is not a convenient unit, but this is what
ESPG uses, so I had no choice...
Appart for the number in the UNIT["DMS",...] part, other informations
should be accurate. If they are not, please send us an email since it
would be a bug.
Transformation with other coordinate systems shoud work too.