Changeset 9532 in josm for trunk/scripts


Ignore:
Timestamp:
2016-01-18T22:48:40+01:00 (9 years ago)
Author:
bastiK
Message:

see #12186 - add Oblique Mercator projection
(imports pieces of code from the Geotools project)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r9413 r9532  
    4242    private static int noJosm = 0;
    4343    private static int noProj4 = 0;
     44    private static int noOmercNoBounds = 0;
    4445
    4546    /**
     
    9394            System.out.println("   in particular: " + baseProjectionMap);
    9495            System.out.println(String.format(" * requires data file for datum conversion: %d entries", noDatumgrid));
     96            if (noOmercNoBounds > 0) {
     97                System.out.println(String.format(" * projection is Oblique Mercator (requires bounds), but no bounds specified: %d entries", noOmercNoBounds));
     98            }
    9599            System.out.println();
    96100            System.out.println(String.format("written %d entries from %s", noJosm, JOSM_EPSG_FILE));
     
    164168            noDatumgrid++;
    165169        }
     170       
     171        if (result && "omerc".equals(proj) && !parameters.containsKey(CustomProjection.Param.bounds.key)) {
     172            result = false;
     173            noOmercNoBounds++;
     174        }
    166175
    167176        return result;
Note: See TracChangeset for help on using the changeset viewer.