Changeset 18801 in josm for trunk/scripts/BuildProjectionDefinitions.java
- Timestamp:
- 2023-08-09T15:30:01+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/scripts/BuildProjectionDefinitions.java ¶
r16344 r18801 93 93 if (list.isEmpty()) 94 94 throw new AssertionError("EPSG file seems corrupted"); 95 Pattern badDmsPattern = Pattern.compile("(\\d+(?:\\.\\d+)?d\\d+(?:\\.\\d+)?')( N|S|E|W)");95 Pattern badDmsPattern = Pattern.compile("(\\d+(?:\\.\\d+)?d\\d+(?:\\.\\d+)?')([NSEW])"); 96 96 for (ProjectionDefinition pd : list) { 97 97 // DMS notation without second causes problems with cs2cs, add 0" … … 145 145 146 146 if (printStats) { 147 System.out.print ln(String.format("loaded %d entries from %s", epsgJosm.size(), JOSM_EPSG_FILE));148 System.out.print ln(String.format("loaded %d entries from %s", epsgProj4.size(), PROJ4_EPSG_FILE));149 System.out.print ln(String.format("loaded %d entries from %s", esriProj4.size(), PROJ4_ESRI_FILE));147 System.out.printf("loaded %d entries from %s%n", epsgJosm.size(), JOSM_EPSG_FILE); 148 System.out.printf("loaded %d entries from %s%n", epsgProj4.size(), PROJ4_EPSG_FILE); 149 System.out.printf("loaded %d entries from %s%n", esriProj4.size(), PROJ4_ESRI_FILE); 150 150 System.out.println(); 151 151 System.out.println("some entries from proj.4 have not been included:"); 152 System.out.print ln(String.format(" * already in the maintained JOSM list: %d entries", noInJosm));152 System.out.printf(" * already in the maintained JOSM list: %d entries%n", noInJosm); 153 153 if (noInProj4 > 0) { 154 System.out.print ln(String.format(" * ESRI already in the standard EPSG list: %d entries", noInProj4));155 } 156 System.out.print ln(String.format(" * deprecated: %d entries", noDeprecated));157 System.out.print ln(String.format(" * using +proj=geocent, which is 3D (X,Y,Z) and not useful in JOSM: %d entries", noGeocent));154 System.out.printf(" * ESRI already in the standard EPSG list: %d entries%n", noInProj4); 155 } 156 System.out.printf(" * deprecated: %d entries%n", noDeprecated); 157 System.out.printf(" * using +proj=geocent, which is 3D (X,Y,Z) and not useful in JOSM: %d entries%n", noGeocent); 158 158 if (noEllipsoid > 0) { 159 System.out.print ln(String.format(" * unsupported ellipsoids: %d entries", noEllipsoid));159 System.out.printf(" * unsupported ellipsoids: %d entries%n", noEllipsoid); 160 160 System.out.println(" in particular: " + ellipsoidMap); 161 161 } 162 162 if (noBaseProjection > 0) { 163 System.out.print ln(String.format(" * unsupported base projection: %d entries", noBaseProjection));163 System.out.printf(" * unsupported base projection: %d entries%n", noBaseProjection); 164 164 System.out.println(" in particular: " + baseProjectionMap); 165 165 } 166 166 if (noDatumgrid > 0) { 167 System.out.print ln(String.format(" * requires data file for vertical datum conversion: %d entries", noDatumgrid));167 System.out.printf(" * requires data file for vertical datum conversion: %d entries%n", noDatumgrid); 168 168 System.out.println(" in particular: " + datumgridMap); 169 169 } 170 170 if (noNadgrid > 0) { 171 System.out.print ln(String.format(" * requires data file for datum conversion: %d entries", noNadgrid));171 System.out.printf(" * requires data file for datum conversion: %d entries%n", noNadgrid); 172 172 System.out.println(" in particular: " + nadgridMap); 173 173 } 174 174 if (noOmercNoBounds > 0) { 175 System.out.print ln(String.format(176 " * projection is Oblique Mercator (requires bounds), but no bounds specified: %d entries", noOmercNoBounds ));175 System.out.printf( 176 " * projection is Oblique Mercator (requires bounds), but no bounds specified: %d entries%n", noOmercNoBounds); 177 177 } 178 178 if (noEquatorStereo > 0) { 179 System.out.print ln(String.format(" * projection is Equatorial Stereographic (see #15970): %d entries", noEquatorStereo));179 System.out.printf(" * projection is Equatorial Stereographic (see #15970): %d entries%n", noEquatorStereo); 180 180 } 181 181 System.out.println(); 182 System.out.print ln(String.format("written %d entries from %s", noJosm, JOSM_EPSG_FILE));183 System.out.print ln(String.format("written %d entries from %s", noProj4, PROJ4_EPSG_FILE));184 System.out.print ln(String.format("written %d entries from %s", noEsri, PROJ4_ESRI_FILE));182 System.out.printf("written %d entries from %s%n", noJosm, JOSM_EPSG_FILE); 183 System.out.printf("written %d entries from %s%n", noProj4, PROJ4_EPSG_FILE); 184 System.out.printf("written %d entries from %s%n", noEsri, PROJ4_ESRI_FILE); 185 185 } 186 186 }
Note:
See TracChangeset
for help on using the changeset viewer.