Changeset 7936 in josm


Ignore:
Timestamp:
2015-01-08T14:31:14+01:00 (10 years ago)
Author:
bastiK
Message:

add support for projection EPSG:25828 to EPSG:25838 (ETRS89 / UTM) - in order to support Geoportal Berlin WMS

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/projection/epsg

    r6975 r7936  
    5959# HD72 / EOV (Hungary)
    6060<23700> +proj=somerc +lat_0=47.14439372222222 +lon_0=19.04857177777778 +k_0=0.99993 +x_0=650000 +y_0=200000 +ellps=GRS67 +towgs84=52.17,-71.82,-14.9 +units=m +bounds=16.1200,45.7800,22.9100,48.6000  <>
     61# ETRS89 / UTM zone 28N
     62<25828> +proj=tmerc +lon_0=-15 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=-20,-5,-10,85 <>
     63# ETRS89 / UTM zone 29N
     64<25829> +proj=tmerc +lon_0=-9 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=-14,-5,-4,85  <>
     65# ETRS89 / UTM zone 30N
     66<25830> +proj=tmerc +lon_0=-3 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=-8,-5,2,85  <>
     67# ETRS89 / UTM zone 31N
     68<25831> +proj=tmerc +lon_0=3 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=-2,-5,8,85  <>
     69# ETRS89 / UTM zone 32N
     70<25832> +proj=tmerc +lon_0=9 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=4,-5,14,85  <>
     71# ETRS89 / UTM zone 33N
     72<25833> +proj=tmerc +lon_0=15 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=10,-5,20,85  <>
     73# ETRS89 / UTM zone 34N
     74<25834> +proj=tmerc +lon_0=21 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=16,-5,26,85  <>
     75# ETRS89 / UTM zone 35N
     76<25835> +proj=tmerc +lon_0=27 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=22,-5,32,85  <>
     77# ETRS89 / UTM zone 36N
     78<25836> +proj=tmerc +lon_0=33 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=28,-5,38,85  <>
     79# ETRS89 / UTM zone 37N
     80<25837> +proj=tmerc +lon_0=39 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=34,-5,44,85  <>
     81# ETRS89 / UTM zone 38N
     82<25838> +proj=tmerc +lon_0=45 +k_0=0.9996 +x_0=500000 +ellps=GRS80 +datum=GRS80 +bounds=40,-5,50,85  <>
    6183# Lambert 4 Zones France (Nord)
    6284<27561> +proj=lcc +lat_0=49.5 +lat_1=48d35'54.682" +lat_2=50d23'45.282" +lon_0=2d20'14.025" +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 +nadgrids=ntf_r93_b.gsb +bounds=-4.416666666666665,46.65,9.18,51.300000000000004  <>
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r7248 r7936  
    2020import org.openstreetmap.josm.data.coor.LatLon;
    2121import org.openstreetmap.josm.data.projection.datum.Datum;
     22import org.openstreetmap.josm.data.projection.datum.GRS80Datum;
    2223import org.openstreetmap.josm.data.projection.datum.NTV2GridShiftFileWrapper;
    2324import org.openstreetmap.josm.data.projection.datum.WGS84Datum;
     
    8182
    8283        datums.put("WGS84", WGS84Datum.INSTANCE);
     84        datums.put("GRS80", GRS80Datum.INSTANCE);
    8385
    8486        nadgrids.put("BETA2007.gsb", NTV2GridShiftFileWrapper.BETA2007);
     
    123125    }
    124126
     127    /**
     128     * Get the projection definition string for the given id.
     129     * @param id the id
     130     * @return the string that can be processed by #{link CustomProjection}.
     131     * Null, if the id isn't supported.
     132     */
    125133    public static String getInit(String id) {
    126         return inits.get(id.toUpperCase()).b;
     134        Pair<String, String> r = inits.get(id.toUpperCase());
     135        if (r == null) return null;
     136        return r.b;
    127137    }
    128138
  • trunk/taginfoextract.groovy

    r7625 r7936  
    8787            f = new File("${base_dir}/images/${path}")
    8888            if (f.exists()) {
    89                 return "https://josm.openstreetmap.de/export/${josm_svn_revision}/josm/trunk/images/${path}"
     89                return "http://josm.openstreetmap.de/export/${josm_svn_revision}/josm/trunk/images/${path}"
    9090            }
    9191            assert false, "Cannot find image url for ${path}"
     
    199199        def cli = new CliBuilder(usage:'taginfoextract.groovy [options] [inputfile]',
    200200            header:"Options:",
    201             footer:"[inputfile]  the file to process (optional, default is 'resource://styles/standard/elemstyles.mapcss')")
    202         cli.o(args:1, argName: "file", "output file, - prints to stdout (default: -)")
    203         cli._(longOpt:'svnrev', args:1, argName:"revision", "corresponding revision of the repository http://svn.openstreetmap.org/ (optional, current revision is fetched from the web if not given)")
     201            footer:"[inputfile]           the file to process (optional, default is 'resource://styles/standard/elemstyles.mapcss')")
     202        cli.o(args:1, argName: "file", "output file (json), - prints to stdout (default: -)")
     203        cli._(longOpt:'svnrev', args:1, argName:"revision", "corresponding revision of the repository http://svn.openstreetmap.org/ (optional, current revision is read from the local checkout or from the web if not given, see --svnweb)")
    204204        cli._(longOpt:'imgdir', args:1, argName:"directory", "directory to put the generated images in (default: ./taginfo-img)")
    205205        cli._(longOpt:'svnweb', 'fetch revision of the repository http://svn.openstreetmap.org/ from web and not from the local repository')
Note: See TracChangeset for help on using the changeset viewer.