Changeset 14582 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java
r12551 r14582 4 4 import java.awt.Color; 5 5 import java.awt.Graphics2D; 6 import java.awt.Point; 6 7 import java.awt.image.BufferedImage; 7 import java.awt.Point;8 8 import java.io.File; 9 9 import java.io.FileInputStream; … … 42 42 private static DataSet dsRestriction; 43 43 private static DataSet dsMultipolygon; 44 private static DataSet dsOverpass; 44 45 private static DataSet dsCity; 45 46 … … 79 80 StyledMapRenderer.PREFERENCE_TEXT_ANTIALIASING.put("gasp"); 80 81 81 try ( 82 InputStream fisR = new FileInputStream("data_nodist/restriction.osm"); 83 InputStream fisM = new FileInputStream("data_nodist/multipolygon.osm"); 84 InputStream fisC = Compression.getUncompressedFileInputStream(new File("data_nodist/neubrandenburg.osm.bz2")); 85 ) { 82 try (InputStream fisR = new FileInputStream("data_nodist/restriction.osm"); 83 InputStream fisM = new FileInputStream("data_nodist/multipolygon.osm"); 84 InputStream fisC = Compression.getUncompressedFileInputStream(new File("data_nodist/neubrandenburg.osm.bz2")); 85 InputStream fisO = Compression.getUncompressedFileInputStream(new File("data_nodist/overpass-download.osm.bz2"));) { 86 86 dsRestriction = OsmReader.parseDataSet(fisR, NullProgressMonitor.INSTANCE); 87 87 dsMultipolygon = OsmReader.parseDataSet(fisM, NullProgressMonitor.INSTANCE); 88 88 dsCity = OsmReader.parseDataSet(fisC, NullProgressMonitor.INSTANCE); 89 dsOverpass = OsmReader.parseDataSet(fisO, NullProgressMonitor.INSTANCE); 89 90 } 90 91 } … … 130 131 131 132 @Test 133 /** 134 * Complex polygon (Lake Ontario) with small download area. 135 */ 136 public void testOverpassDownload() throws Exception { 137 test(20, dsOverpass, new Bounds(43.4510496, -76.536684, 43.4643202, -76.4954853)); 138 } 139 140 @Test 132 141 public void testCity() throws Exception { 133 142 test(50, dsCity, new Bounds(53.51, 13.20, 53.59, 13.34));
Note:
See TracChangeset
for help on using the changeset viewer.