Changeset 8439 in josm
- Timestamp:
- 2015-06-01T19:28:56+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/taginfoextract.groovy
r8306 r8439 8 8 * groovy -cp dist/josm-custom.jar scripts/taginfoextract.groovy -t presets 9 9 */ 10 import groovy.json.JsonBuilder 11 10 12 import java.awt.image.BufferedImage 13 import java.nio.file.FileSystems 11 14 import java.nio.file.Files 12 import java.nio.file.FileSystems13 15 import java.nio.file.Path 14 16 15 17 import javax.imageio.ImageIO 16 18 17 import groovy.json.JsonBuilder18 19 import org.openstreetmap.josm.Main 19 20 import org.openstreetmap.josm.data.Version … … 357 358 f = new File("${base_dir}/images/${path}") 358 359 if (f.exists()) { 359 return "https://josm.openstreetmap.de/export/${josm_svn_revision}/josm/trunk/images/${path}" 360 if (path.startsWith("images/styles/standard/")) { 361 path = path.substring("images/styles/standard/".length()) 362 def rev = osm_svn_revision() 363 return "https://trac.openstreetmap.org/export/${rev}/subversion/applications/share/map-icons/classic.small/${path}" 364 } else { 365 return "https://josm.openstreetmap.de/export/${josm_svn_revision}/josm/trunk/images/${path}" 366 } 360 367 } 361 368 assert false, "Cannot find image url for ${path}"
Note:
See TracChangeset
for help on using the changeset viewer.