Changeset 18712 in osm
- Timestamp:
- 2009-11-20T09:19:03+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/sources.cfg
r17557 r18712 5 5 true;Landsat;http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&styles=&format=image/jpeg& 6 6 true;Open Aerial Map;http://openaerialmap.org/wms/?VERSION=1.0&request=GetMap&layers=world&styles=&format=image/jpeg& 7 # fails with division by zero error8 false;NPE Maps;http://nick.dev.openstreetmap.org/openpaths/freemap.php?layers=npe&9 false;NPE Maps (Tim);http://dev.openstreetmap.org/~timsc/wms2/map.php?10 7 # 11 8 # different forms for web access … … 19 16 # only for Germany 20 17 false;Streets NRW Geofabrik.de;http://tools.geofabrik.de/osmi/view/strassennrw/josmwms? 18 # 19 # 20 # only for North America 21 21 # Terraserver USCG - High resolution maps 22 22 false;Terraserver Topo;http://terraservice.net/ogcmap.ashx?version=1.1.1&request=GetMap&Layers=drg&styles=&format=image/jpeg& 23 23 false;Terraserver Urban;http://terraservice.net/ogcmap.ashx?version=1.1.1&request=GetMap&Layers=urbanarea&styles=&format=image/jpeg& 24 # 25 # 24 26 # only for Czech Republic 25 27 false;Czech CUZK:KM;http://wms.cuzk.cz/wms.asp?service=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=kn,def_budovy,prehledky&FORMAT=image/png&TRANSPARENT=TRUE& 26 28 false;Czech UHUL:ORTOFOTO;http://geoportal2.uhul.cz/cgi-bin/oprl.asp?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=Ortofoto_cb&STYLES=default&FORMAT=image/jpeg&TRANSPARENT=TRUE& 29 # 30 # 31 # only for GB 32 # fails with division by zero error 33 false;NPE Maps;http://nick.dev.openstreetmap.org/openpaths/freemap.php?layers=npe& 34 false;NPE Maps (Tim);http://dev.openstreetmap.org/~timsc/wms2/map.php? 35 false;7th Series (OS7);http://ooc.openstreetmap.org/wms/map.php?source=os7& 36 # 37 # 38 # only for Japan 39 false;MLIT Japan (ORTHO);http://orthophoto.mlit.go.jp:8888/wms/service/wmsRasterTileMap?VERSION=1.3.0&REQUEST=GetMap&LAYERS=ORTHO&STYLES=Default&CRS=EPSG:4612&BBOX={s},{w},{n},{e}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png&BGCOLOR=OxFFFFFF 40 false;MLIT Japan (ORTHO01);http://orthophoto.mlit.go.jp:8888/wms/service/wmsRasterTileMap?VERSION=1.3.0&REQUEST=GetMap&LAYERS=ORTHO01&STYLES=Default&CRS=EPSG:4612&BBOX={s},{w},{n},{e}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png&BGCOLOR=OxFFFFFF 41 false;MLIT Japan (ORTHO02);http://orthophoto.mlit.go.jp:8888/wms/service/wmsRasterTileMap?VERSION=1.3.0&REQUEST=GetMap&LAYERS=ORTHO02&STYLES=Default&CRS=EPSG:4612&BBOX={s},{w},{n},{e}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png&BGCOLOR=OxFFFFFF 42 false;MLIT Japan (ORTHO03);http://orthophoto.mlit.go.jp:8888/wms/service/wmsRasterTileMap?VERSION=1.3.0&REQUEST=GetMap&LAYERS=ORTHO03&STYLES=Default&CRS=EPSG:4612&BBOX={s},{w},{n},{e}&WIDTH={width}&HEIGHT={height}&FORMAT=image/png&BGCOLOR=OxFFFFFF 27 43 # 28 44 # … … 38 54 # {width} is requested display width 39 55 # {height} is requested display height 56 # {w},{s},{n},{e} are replaced by corresponding coordinates -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
r17561 r18712 34 34 35 35 public class WMSGrabber extends Grabber { 36 37 returnurl != null && url.contains("{") && url.contains("}");38 36 public static boolean isUrlWithPatterns(String url) { 37 return url != null && url.contains("{") && url.contains("}"); 38 } 39 39 40 40 protected String baseURL; … … 102 102 str = str.replaceAll("\\{proj\\}", myProj) 103 103 .replaceAll("\\{bbox\\}", bbox) 104 .replaceAll("\\{w\\}", latLonFormat.format(w)) 105 .replaceAll("\\{s\\}", latLonFormat.format(s)) 106 .replaceAll("\\{e\\}", latLonFormat.format(e)) 107 .replaceAll("\\{n\\}", latLonFormat.format(n)) 104 108 .replaceAll("\\{width\\}", String.valueOf(wi)) 105 109 .replaceAll("\\{height\\}", String.valueOf(ht));
Note:
See TracChangeset
for help on using the changeset viewer.