Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: UDIG 1.4.x
-
Fix Version/s: None
-
Component/s: application, framework
-
Labels:None
-
Patch attached:Yes
Description
If the user tries to change the CRS from, let say WGS84, by hitting the CRSChooser button the following Exception occurs (the value of code was '84' and came from the Regedit Matcher from 'WGS84'):
!MESSAGE Error creating CRS object, trying more...
!STACK 0
java.lang.ClassCastException: org.geotools.referencing.cs.DefaultCoordinateSystemAxis cannot be cast to org.opengis.referencing.crs.CoordinateReferen
ceSystem
at net.refractions.udig.ui.CRSChooser.createCRS(CRSChooser.java:483)
at net.refractions.udig.ui.CRSChooser$5.selectionChanged(CRSChooser.java:193)
IMHO its not a bug because the Chooser isn't broken but because of a ClassCastException that is not caught the error is logged with INFO level into the .log file. Because of an internal guessing this error should not be logged.