From: Rueben S. <r_j...@ya...> - 2004-12-28 03:59:34
|
To Martin, The wkt parser (and writer) is having issues with the units of the scale factor parameter. The scale factor is given a unit of Unit.ONE. In Parser::parseProjection(), the SI.RADIAN.isCompatible(expected) test is returning true, and the scale factor is converted to radians based on the angular units of the crs. According to the javax.units javadoc RADIAN.isCompatible(Unit.ONE) is true. Do you have any good idea to fix this? My hack on my local copy is to add a check for !expected.equals(Unit.ONE), but I am not sure if this is the correct way to use the units code. Rueben |