Changeset 6104 in josm for trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
- Timestamp:
- 2013-08-03T00:12:29+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r5889 r6104 160 160 parts = new String[0]; 161 161 } 162 for (int i = 0; i < parts.length; i++) { 163 String part = parts[i]; 162 for (String part : parts) { 164 163 if (part.isEmpty() || part.charAt(0) != '+') 165 164 throw new ProjectionConfigurationException(tr("Parameter must begin with a ''+'' character (found ''{0}'')", part)); … … 288 287 throw new ProjectionConfigurationException(tr("Unexpected number of arguments for parameter ''towgs84'' (must be 3 or 7)")); 289 288 List<Double> towgs84Param = new ArrayList<Double>(); 290 for ( int i = 0; i < numStr.length; i++) {289 for (String str : numStr) { 291 290 try { 292 towgs84Param.add(Double.parseDouble( numStr[i]));291 towgs84Param.add(Double.parseDouble(str)); 293 292 } catch (NumberFormatException e) { 294 throw new ProjectionConfigurationException(tr("Unable to parse value of parameter ''towgs84'' (''{0}'')", numStr[i]));293 throw new ProjectionConfigurationException(tr("Unable to parse value of parameter ''towgs84'' (''{0}'')", str)); 295 294 } 296 295 } 297 296 boolean isCentric = true; 298 for ( int i = 0; i<towgs84Param.size(); i++) {299 if ( towgs84Param.get(i)!= 0.0) {297 for (Double param : towgs84Param) { 298 if (param != 0.0) { 300 299 isCentric = false; 301 300 break;
Note:
See TracChangeset
for help on using the changeset viewer.