Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.00, 3.01, 3.02
-
Fix Version/s: 3.02
-
Component/s: Referencing
-
Labels:
Description
If I call CRS.toSRS(crs), I only get identifier code without authority code. My patched version which adds authority (end of method):
if (name != null) { Iterator<? extends Identifier> i= name.getAuthority().getIdentifiers().iterator(); if(i.hasNext()) return i.next().getCode() + ":" + name.toString(); else return name.toString(); }

Actually the bug was a little bit deeper since NamedIdentifier.toString() was supposed to return the fully-qualified name in the first place (use NamedIdentifier.getCode() if only the non-qualified part is wanted). This fix implied a few minor changes in the test suite.