Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.7-M3, 2.7-RC1
-
Fix Version/s: None
-
Component/s: jp2k plugin, metadata
-
Labels:None
-
Environment:RHEL 5.3, jdk 1.6.0_12
-
Testcase included:yes
Description
I am trying to map from from NAD83 (EPSG:4152) to WGS84 (EPSG:4326) using the ReferencedEnvelope.toBound() API. I am able to do the mapping and get results which seem reasonable unless I have gt-jp2k<version>.jar on my classpath.
Example:
When mapping the following box (North, East, South, West)
(29.938194274, -90.28570556, 29.924352645, -90.30159759)
I get the following result (without gt-jp2k.jar on classpath)
(29.938199672378193, -90.28572067250404, 29.924358038341936, -90.30161270910881)
And WITH gt-jp2k.jar on the classpath I get...
(-89.69840445522946, -150.06687862669452, -89.71429649289404, -150.08100271184813)
As an interesting side note... if I use gt-epsg-hsql-2.7-M3.jar instead of gt-epsg-wkt-2.7-M3.jar I also get..
(-89.69840445522946, -150.06687862669452, -89.71429649289404, -150.08100271184813)
Unit test output is as follows...
POLYGON ((48.543261561072285 -123.47009555832284, 48.55009592117936 -123.46972894676578, 48.54973520267305 -123.45463828850829, 48.54290089070186 -123.4550070827961, 48.543261561072285 -123.47009555832284))
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at baex.gl.geo.crstransform.TransformTest.testReprojection(TransformTest.java:157)