Changeset 9567 in josm


Ignore:
Timestamp:
2016-01-22T20:59:38+01:00 (8 years ago)
Author:
bastiK
Message:

epsg script: list missing projections only for entries that are not excluded already for another reason (see #12186)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r9532 r9567  
    143143        }
    144144
    145         // exclude entries where we don't support the base projection
    146         Proj bp = Projections.getBaseProjection(proj);
    147         if (!"utm".equals(proj) && bp == null) {
    148             result = false;
    149             noBaseProjection++;
    150             if (!"geocent".equals(proj)) {
    151                 if (!baseProjectionMap.containsKey(proj)) {
    152                     baseProjectionMap.put(proj, 0);
    153                 }
    154                 baseProjectionMap.put(proj, baseProjectionMap.get(proj)+1);
    155             }
    156         }
    157 
    158145        // no support for NAD27 datum, as it requires a conversion database
    159146        String datum = parameters.get(CustomProjection.Param.datum.key);
     
    169156        }
    170157       
     158        // exclude entries where we don't support the base projection
     159        Proj bp = Projections.getBaseProjection(proj);
     160        if (result && !"utm".equals(proj) && bp == null) {
     161            result = false;
     162            noBaseProjection++;
     163            if (!"geocent".equals(proj)) {
     164                if (!baseProjectionMap.containsKey(proj)) {
     165                    baseProjectionMap.put(proj, 0);
     166                }
     167                baseProjectionMap.put(proj, baseProjectionMap.get(proj)+1);
     168            }
     169        }
     170
    171171        if (result && "omerc".equals(proj) && !parameters.containsKey(CustomProjection.Param.bounds.key)) {
    172172            result = false;
Note: See TracChangeset for help on using the changeset viewer.