Changeset 9106 in josm


Ignore:
Timestamp:
2015-12-13T01:12:02+01:00 (9 years ago)
Author:
bastiK
Message:

do not throw an error when datum is missing, return NullDatum instead of CentricDatum
(to match the proj.4 implementation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r9105 r9106  
    391391            return parseToWGS84(towgs84, ellps);
    392392
    393         if (parameters.containsKey(Param.no_defs.key))
    394             throw new ProjectionConfigurationException(tr("Datum required (+datum=*, +towgs84=* or +nadgrids=*)"));
    395         return new CentricDatum(null, null, ellps);
     393        return new NullDatum(null, ellps);
    396394    }
    397395
Note: See TracChangeset for help on using the changeset viewer.