Changeset 36092 in osm for applications/editors/josm/plugins
- Timestamp:
- 2023-05-30T22:06:15+02:00 (18 months ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/common/FeatFormulaErr2.java
r28000 r36092 25 25 * Title: FeatFormulaErr2 (Formula Evaluation Shared Feature) common record part 26 26 * <P> 27 * This record part specifies Formula Evaluation & Error Ignoring data27 * This record part specifies Formula Evaluation & Error Ignoring data 28 28 * for a sheet, stored as part of a Shared Feature. It can be found in 29 29 * records such as {@link FeatRecord}. -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/formula/LessThanPtg.java
r28000 r36092 19 19 20 20 /** 21 * Less than operator PTG " <". The SID is taken from the21 * Less than operator PTG "<". The SID is taken from the 22 22 * Openoffice.orgs Documentation of the Excel File Format, 23 23 * Table 3.5.7 -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFDataFormat.java
r30737 r36092 40 40 * with a prefix "[$-xxx]" (where xxx is a 1-7 digit hexadecimal number). 41 41 * See the Microsoft article 42 * <a href="http://office.microsoft.com/assistance/hfws.aspx?AssetID=HA010346351033& CTT=6&Origin=EC010272491033">42 * <a href="http://office.microsoft.com/assistance/hfws.aspx?AssetID=HA010346351033&CTT=6&Origin=EC010272491033"> 43 43 * Creating international number formats 44 44 * </a> for more details on these codes. -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFRow.java
r34072 r36092 95 95 * 96 96 * @return HSSFCell a high level representation of the created cell. 97 * @throws IllegalArgumentException if columnIndex <0 or greater than 255,97 * @throws IllegalArgumentException if columnIndex < 0 or greater than 255, 98 98 * the maximum number of columns supported by the Excel binary format (.xls) 99 99 */ … … 113 113 * 114 114 * @return HSSFCell a high level representation of the created cell. 115 * @throws IllegalArgumentException if columnIndex <0 or greater than 255,115 * @throws IllegalArgumentException if columnIndex < 0 or greater than 255, 116 116 * the maximum number of columns supported by the Excel binary format (.xls) 117 117 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
r30737 r36092 299 299 /** 300 300 * Get the HSSFSheet object at the given index. 301 * @param index of the sheet number (0-based physical & logical)301 * @param index of the sheet number (0-based physical & logical) 302 302 * @return HSSFSheet at the provided index 303 303 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java
r28000 r36092 167 167 * @return the nth component; 168 168 * 169 * @exception ArrayIndexOutOfBoundsException if n < 0 or n >=169 * @exception ArrayIndexOutOfBoundsException if n < 0 or n >= 170 170 * length() 171 171 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/poifs/property/DirectoryProperty.java
r30737 r36092 116 116 * @param o2 second object to compare, better be a Property 117 117 * 118 * @return negative value if o1 <o2,118 * @return negative value if o1 < o2, 119 119 * zero if o1 == o2, 120 * positive value if o1 >o2.120 * positive value if o1 > o2. 121 121 */ 122 122 public int compare(Property o1, Property o2) -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/formula/Formula.java
r28000 r36092 144 144 * The return value is usually not the same as the location of the cell containing this formula. 145 145 * 146 * @return the firstRow & firstColumn of an array formula or shared formula that this formula146 * @return the firstRow & firstColumn of an array formula or shared formula that this formula 147 147 * belongs to. <code>null</code> if this formula is not part of an array or shared formula. 148 148 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Row.java
r34072 r36092 31 31 * @param column - the column number this cell represents 32 32 * @return Cell a high level representation of the created cell. 33 * @throws IllegalArgumentException if columnIndex <0 or greater than the maximum number of supported columns33 * @throws IllegalArgumentException if columnIndex < 0 or greater than the maximum number of supported columns 34 34 * (255 for *.xls, 1048576 for *.xlsx) 35 35 */ … … 44 44 * @param column - the column number this cell represents 45 45 * @return Cell a high level representation of the created cell. 46 * @throws IllegalArgumentException if columnIndex <0 or greate than a maximum number of supported columns46 * @throws IllegalArgumentException if columnIndex < 0 or greate than a maximum number of supported columns 47 47 * (255 for *.xls, 1048576 for *.xlsx) 48 48 */ … … 53 53 * 54 54 * @param rowNum the row number (0-based) 55 * @throws IllegalArgumentException if rowNum <055 * @throws IllegalArgumentException if rowNum < 0 56 56 */ 57 57 void setRowNum(int rowNum); … … 78 78 * 79 79 * @return the cell at the given (0 based) index 80 * @throws IllegalArgumentException if cellnum <0 or the specified MissingCellPolicy is invalid80 * @throws IllegalArgumentException if cellnum < 0 or the specified MissingCellPolicy is invalid 81 81 * @see Row#RETURN_NULL_AND_BLANK 82 82 * @see Row#RETURN_BLANK_AS_NULL -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Workbook.java
r28000 r36092 31 31 * Get the Sheet object at the given index. 32 32 * 33 * @param index of the sheet number (0-based physical & logical)33 * @param index of the sheet number (0-based physical & logical) 34 34 * @return Sheet at the provided index 35 35 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/util/IntList.java
r28000 r36092 185 185 * 186 186 * @exception IndexOutOfBoundsException if the index is out of 187 * range (index < 0 || index >= size()).187 * range (index < 0 || index >= size()). 188 188 */ 189 189 -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/be/BelgianDataSetHandler.java
r36072 r36092 35 35 36 36 protected class InternalCsvHandler extends DefaultCsvHandler { 37 /*@Override38 public List<Projection> getSpreadSheetProjections() {39 if (singleProjection != null) {40 return Arrays.asList(new Projection[]{singleProjection});41 } else {42 return Arrays.asList(projections);43 }44 }*/45 46 37 @Override 47 38 public LatLon getCoor(EastNorth en, String[] fields) { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/fr/FrenchDataSetHandler.java
r36072 r36092 48 48 49 49 protected class InternalCsvHandler extends DefaultCsvHandler { 50 /*@Override51 public List<Projection> getSpreadSheetProjections() {52 if (singleProjection != null) {53 return Arrays.asList(new Projection[]{singleProjection});54 } else {55 return Arrays.asList(projections);56 }57 }*/58 59 50 @Override 60 51 public LatLon getCoor(EastNorth en, String[] fields) { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/CandidateChooser.java
r36072 r36092 67 67 } 68 68 69 /*public List<File> getSelectedFiles() {70 List<File> result = new ArrayList<File>();71 for (JCheckBox cbox : checkBoxes.keySet()) {72 if (cbox.isSelected()) {73 result.add(checkBoxes.get(cbox));74 }75 }76 return result;77 }*/78 79 69 public File getSelectedFile() { 80 70 return (File) fileCombo.getSelectedItem(); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/MifReader.java
r36072 r36092 68 68 69 69 private Projection josmProj; 70 private DataSet d s;70 private DataSet dataSet; 71 71 private Relation region; 72 72 private Way polygon; … … 381 381 382 382 private void parseData(String[] words) { 383 if (d s== null) {384 d s= new DataSet();383 if (dataSet == null) { 384 dataSet = new DataSet(); 385 385 } 386 386 } … … 392 392 private void parseLine(String[] words) throws IOException { 393 393 Way line = new Way(); 394 d s.addPrimitive(line);394 dataSet.addPrimitive(line); 395 395 readAttributes(line); 396 396 line.addNode(createNode(words[1], words[2])); … … 401 401 Way previousPolyline = polyline; 402 402 polyline = new Way(); 403 d s.addPrimitive(polyline);403 dataSet.addPrimitive(polyline); 404 404 if (initial) { 405 405 readAttributes(polyline); … … 431 431 region = new Relation(); 432 432 region.put("type", "multipolygon"); 433 d s.addPrimitive(region);433 dataSet.addPrimitive(region); 434 434 readAttributes(region); 435 435 } else { … … 488 488 initializeReaders(in, file, cs, 1); 489 489 parseHeader(); 490 return d s;490 return dataSet; 491 491 } finally { 492 492 if (midReader != null) { … … 520 520 } else if (words[0].equalsIgnoreCase("Data")) { 521 521 parseData(words); 522 } else if (d s!= null) {522 } else if (dataSet != null) { 523 523 if (state == State.START_POLYGON) { 524 524 numpts = Integer.parseInt(words[0]); 525 525 polygon = new Way(); 526 d s.addPrimitive(polygon);526 dataSet.addPrimitive(polygon); 527 527 if (region != null) { 528 528 region.addMember(new RelationMember("outer", polygon)); … … 629 629 private Node createNode(String x, String y) { 630 630 Node node = new Node(josmProj.eastNorth2latlon(new EastNorth(Double.parseDouble(x), Double.parseDouble(y)))); 631 d s.addPrimitive(node);631 dataSet.addPrimitive(node); 632 632 return node; 633 633 } -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabFiles.java
r36072 r36092 111 111 for (Entry<ShpFileType, URL> entry : entries) { 112 112 if (!exists(entry.getKey())) { 113 url = findExistingFile(entry.get Key(), entry.getValue());113 url = findExistingFile(entry.getValue()); 114 114 if (url != null) { 115 115 toUpdate.put(entry.getKey(), url); … … 121 121 } 122 122 123 private URL findExistingFile( ShpFileType shpFileType,URL value) {123 private URL findExistingFile(URL value) { 124 124 final File file = URLs.urlToFile(value); 125 125 File directory = file.getParentFile(); -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/licenses/License.java
r36072 r36092 14 14 public abstract class License { 15 15 16 public static final ODbL ODbL= new ODbL();17 public static final LOOL LOOL= new LOOL();16 public static final ODbL odbl = new ODbL(); 17 public static final LOOL lool = new LOOL(); 18 18 19 19 private final Map<String, URL> urls = new HashMap<>();
Note:
See TracChangeset
for help on using the changeset viewer.