Changeset 8470 in josm for trunk/src/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2015-06-06T04:32:00+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r8384 r8470 504 504 * 505 505 * @param img Used only when overlapping is used, when not used, used raw from imageData 506 * @param imageData 507 * @param projection 508 * @param pixelPerDegree 509 * @param east 510 * @param north 511 * @throws IOException 506 * @param imageData input stream to raw image data 507 * @param projection current projection 508 * @param pixelPerDegree number of pixels per degree 509 * @param east easting 510 * @param north northing 511 * @throws IOException if any I/O error occurs 512 512 */ 513 public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree, double east, double north) throws IOException { 513 public synchronized void saveToCache(BufferedImage img, InputStream imageData, Projection projection, double pixelPerDegree, double east, double north) 514 throws IOException { 514 515 ProjectionEntries projectionEntries = getProjectionEntries(projection); 515 516 CacheEntry entry = findEntry(projectionEntries, pixelPerDegree, east, north); … … 523 524 mimeType = URLConnection.guessContentTypeFromStream(imageData); 524 525 } 525 entry = new CacheEntry(pixelPerDegree, east, north, tileSize,generateFileName(projectionEntries, pixelPerDegree, projection, east, north, mimeType)); 526 entry = new CacheEntry(pixelPerDegree, east, north, 527 tileSize,generateFileName(projectionEntries, pixelPerDegree, projection, east, north, mimeType)); 526 528 entry.lastUsed = System.currentTimeMillis(); 527 529 entry.lastModified = entry.lastUsed;
Note:
See TracChangeset
for help on using the changeset viewer.