Skip to content

Commit

Permalink
[josm_importimageplugin] code cleanup
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openstreetmap.org/applications/editors/josm/plugins@31751 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
  • Loading branch information
don-vip committed Nov 16, 2015
1 parent ecb24e8 commit 6908ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ public class ImportImagePlugin extends Plugin{
static final String PLUGINPROPERTIES_FILENAME = "pluginProperties.properties";
static final String LOGGING_PROPERTIES_FILEPATH = Main.pref.getPluginsDirectory().getAbsolutePath() + "/ImportImagePlugin/log4j.properties/";


public Properties getPluginProps() {
return pluginProps;
}


/**
* constructor
*
Expand All @@ -61,12 +59,7 @@ public Properties getPluginProps() {
public ImportImagePlugin(PluginInformation info){
super(info);

// switch to x=lon and y=lat for EPSG:4326 as JOSM does
// (formally incorrect, but reasonable)
System.setProperty("org.geotools.referencing.forceXY", "true");

try {

// First create custom ClassLoader to load resources from the main JAR
pluginClassLoader = createPluginClassLoader();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public static enum POSTFIXES_WORLDFILE {
public static GridCoverage2D reprojectCoverage(GridCoverage2D coverage,
CoordinateReferenceSystem targetCrs) throws NoSuchAuthorityCodeException, FactoryException {

// TODO: add category for NO_DATA values in coverage (transparency in
// image)
// TODO: add category for NO_DATA values in coverage (transparency in image)

GridCoverage2D destination = null;

Expand Down Expand Up @@ -111,8 +110,7 @@ public static GridCoverage2D createGridFromFile(File file, CoordinateReferenceSy
fileNameWithoutExt = file.getAbsolutePath().substring(0, dotPos);

/*------- switch for file type -----------*/
if (extension.equalsIgnoreCase(".tif")
|| extension.equalsIgnoreCase(".tiff"))
if (extension.equalsIgnoreCase(".tif") || extension.equalsIgnoreCase(".tiff"))
{

// try to read GeoTIFF:
Expand Down

0 comments on commit 6908ea8

Please sign in to comment.