Changeset 7936 in josm for trunk/src/org
- Timestamp:
- 2015-01-08T14:31:14+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Projections.java
r7248 r7936 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 21 import org.openstreetmap.josm.data.projection.datum.Datum; 22 import org.openstreetmap.josm.data.projection.datum.GRS80Datum; 22 23 import org.openstreetmap.josm.data.projection.datum.NTV2GridShiftFileWrapper; 23 24 import org.openstreetmap.josm.data.projection.datum.WGS84Datum; … … 81 82 82 83 datums.put("WGS84", WGS84Datum.INSTANCE); 84 datums.put("GRS80", GRS80Datum.INSTANCE); 83 85 84 86 nadgrids.put("BETA2007.gsb", NTV2GridShiftFileWrapper.BETA2007); … … 123 125 } 124 126 127 /** 128 * Get the projection definition string for the given id. 129 * @param id the id 130 * @return the string that can be processed by #{link CustomProjection}. 131 * Null, if the id isn't supported. 132 */ 125 133 public static String getInit(String id) { 126 return inits.get(id.toUpperCase()).b; 134 Pair<String, String> r = inits.get(id.toUpperCase()); 135 if (r == null) return null; 136 return r.b; 127 137 } 128 138
Note:
See TracChangeset
for help on using the changeset viewer.