Changeset 34965 in osm for applications/editors/josm
- Timestamp:
- 2019-04-07T07:11:41+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/poly/src/poly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/poly/src/poly/DownloadPolyTask.java
r34298 r34965 43 43 } 44 44 45 /** 46 * Class to download and parse a poly file. 47 */ 45 48 public static class ServerPolyReader extends OsmServerReader { 46 49 private String url; 47 50 51 /** 52 * Create new {@link ServerPolyReader} 53 * @param url 54 */ 48 55 public ServerPolyReader(String url) { 49 56 this.url = url; … … 53 60 public DataSet parseOsm(ProgressMonitor progressMonitor) throws OsmTransferException { 54 61 try { 55 progressMonitor.beginTask(tr("Contacting Server..." , 10));62 progressMonitor.beginTask(tr("Contacting Server...")); 56 63 return new PolyImporter().parseDataSet(url); 57 64 } catch (Exception e) { -
applications/editors/josm/plugins/poly/src/poly/PolyImporter.java
r34860 r34965 93 93 parsingSection = false; 94 94 name = null; 95 } else if ( line.equals("END")) {95 } else if ("END".equals(line)) { 96 96 if (!parsingSection) { 97 97 area = null; … … 238 238 } 239 239 240 /** 241 * Store a coordinate 242 * @param node the coordinate 243 */ 240 244 public void addNode(LatLon node) { 241 245 if (nodes.isEmpty() || !(nodes.get(nodes.size()-1).equals(node) || nodes.get(0).equals(node))) … … 255 259 } 256 260 261 /** 262 * Convert a ring to an OSM way 263 * @param ds the dataset in which the way is stored 264 * @param isMultipolygon true means the way is part of a multipolygon relation 265 */ 257 266 public void constructWay(DataSet ds, boolean isMultipolygon) { 258 267 way = new Way();
Note:
See TracChangeset
for help on using the changeset viewer.