Changeset 18712 in osm


Ignore:
Timestamp:
2009-11-20T09:19:03+01:00 (15 years ago)
Author:
stoecker
Message:

added some new URLs

Location:
applications/editors/josm/plugins/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/sources.cfg

    r17557 r18712  
    55true;Landsat;http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&styles=&format=image/jpeg&
    66true;Open Aerial Map;http://openaerialmap.org/wms/?VERSION=1.0&request=GetMap&layers=world&styles=&format=image/jpeg&
    7 # fails with division by zero error
    8 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?
    107#
    118# different forms for web access
     
    1916# only for Germany
    2017false;Streets NRW Geofabrik.de;http://tools.geofabrik.de/osmi/view/strassennrw/josmwms?
     18#
     19#
     20# only for North America
    2121# Terraserver USCG - High resolution maps
    2222false;Terraserver Topo;http://terraservice.net/ogcmap.ashx?version=1.1.1&request=GetMap&Layers=drg&styles=&format=image/jpeg&
    2323false;Terraserver Urban;http://terraservice.net/ogcmap.ashx?version=1.1.1&request=GetMap&Layers=urbanarea&styles=&format=image/jpeg&
     24#
     25#
    2426# only for Czech Republic
    2527false;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&
    2628false;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
     33false;NPE Maps;http://nick.dev.openstreetmap.org/openpaths/freemap.php?layers=npe&
     34false;NPE Maps (Tim);http://dev.openstreetmap.org/~timsc/wms2/map.php?
     35false;7th Series (OS7);http://ooc.openstreetmap.org/wms/map.php?source=os7&
     36#
     37#
     38# only for Japan
     39false;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
     40false;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
     41false;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
     42false;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
    2743#
    2844#
     
    3854# {width} is requested display width
    3955# {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  
    3434
    3535public class WMSGrabber extends Grabber {
    36         public static boolean isUrlWithPatterns(String url) {
    37                 return url != null && url.contains("{") && url.contains("}");
    38         }
     36    public static boolean isUrlWithPatterns(String url) {
     37        return url != null && url.contains("{") && url.contains("}");
     38    }
    3939       
    4040    protected String baseURL;
     
    102102            str = str.replaceAll("\\{proj\\}", myProj)
    103103            .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))
    104108            .replaceAll("\\{width\\}", String.valueOf(wi))
    105109            .replaceAll("\\{height\\}", String.valueOf(ht));
Note: See TracChangeset for help on using the changeset viewer.