Ignore:
Timestamp:
2014-08-08T01:24:51+02:00 (10 years ago)
Author:
donvip
Message:

[josm_opendata] fix warnings

Location:
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/AbstractMapInfoReader.java

    r30575 r30576  
    55import java.io.File;
    66import java.io.IOException;
    7 import java.io.InputStreamReader;
    87import java.nio.charset.Charset;
    98import java.nio.charset.IllegalCharsetNameException;
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/MifReader.java

    r30575 r30576  
    7171
    7272    // CoordSys clause
    73     private MifProjection proj;
    74     private MifDatum datum;
    7573    private String units;
    7674    private Double originLon;
     
    7876    private Double stdP1;
    7977    private Double stdP2;
    80     private Double azimuth;
    8178    private Double scaleFactor;
    8279    private Double falseEasting;
    8380    private Double falseNorthing;
    84     private Double range;
    8581    private Double minx;
    8682    private Double miny;
     
    119115
    120116    private void parseCoordSysSyntax1(String[] words) {
    121         proj = MifProjection.forCode(Integer.parseInt(words[3]));
    122         datum = MifDatum.forCode(Integer.parseInt(words[4]));
     117        MifProjection proj = MifProjection.forCode(Integer.parseInt(words[3]));
     118        MifDatum datum = MifDatum.forCode(Integer.parseInt(words[4]));
    123119
    124120        // Custom datum: TODO: use custom decalage values
     
    193189        // Azimuth
    194190        if (proj == Hotine_Oblique_Mercator) {
    195             azimuth = Double.parseDouble(words[8+offset]);
     191            Double.parseDouble(words[8+offset]);
    196192            // TODO: what's proj4 parameter ?
    197193        }
     
    251247        case Azimuthal_Equidistant_polar_aspect_only:
    252248        case Lambert_Azimuthal_Equal_Area_polar_aspect_only:
    253             range = Double.parseDouble(words[8+offset]);
     249            Double.parseDouble(words[8+offset]);
    254250            // TODO: what's proj4 parameter ?
    255251        }
Note: See TracChangeset for help on using the changeset viewer.