Changeset 33978 in osm for applications
- Timestamp:
- 2018-01-07T00:35:51+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/DataSetUpdater.java
r33611 r33978 19 19 import org.openstreetmap.josm.data.osm.Relation; 20 20 import org.openstreetmap.josm.data.osm.Way; 21 import org.openstreetmap.josm.io.Capabilities; 21 22 import org.openstreetmap.josm.io.OsmApi; 22 23 import org.openstreetmap.josm.plugins.opendata.core.OdConstants; … … 48 49 } 49 50 // Split ways exceeding 90% of the API limit (currently 2000 nodes) 50 int max = (int) (0.9 * OsmApi.getOsmApi().getCapabilities().getMaxWayNodes()); 51 Capabilities capabilities = OsmApi.getOsmApi().getCapabilities(); 52 long maxwaynodes = capabilities != null ? capabilities.getMaxWayNodes() : 2000L; 53 int max = (int) (0.9 * maxwaynodes); 51 54 for (Way w : dataSet.getWays().stream() 52 55 .filter(w -> w.getNodesCount() > max)
Note:
See TracChangeset
for help on using the changeset viewer.