Ignore:
Timestamp:
2018-07-27T11:54:47+02:00 (7 years ago)
Author:
nzara
Message:

Bug fix: get from Coordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/ProjectionInfo.java

    r34398 r34435  
    2626    }
    2727
    28     public static Projection getProjectionByCode(String code) {
    29                 return new SingleProjectionChoice(code.toString(), code.toString(), code).getProjection() ;
     28        public static Projection getProjectionByCode(String code) {
     29                try {
     30                        ProjectionChoice pc = new SingleProjectionChoice(code.toString(), code.toString(), code);
     31                        Projection p = pc.getProjection();
     32                        return p;
     33                } catch (Exception e) {
     34                        throw new IllegalArgumentException();
     35                }
    3036
    3137//        Projection p = allCodes.get(code);
Note: See TracChangeset for help on using the changeset viewer.