[Schmitzm-commits] r365 - trunk/src/schmitzm/geotools/gui
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 3 11:54:12 CEST 2009
Author: alfonx
Date: 2009-09-03 11:54:11 +0200 (Thu, 03 Sep 2009)
New Revision: 365
Modified:
trunk/src/schmitzm/geotools/gui/JMapPane.java
Log:
* Replaced WGS84 as the fallback-default, against GeoIMportUtil.getDeafultCRS()
Modified: trunk/src/schmitzm/geotools/gui/JMapPane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/JMapPane.java 2009-09-03 09:12:20 UTC (rev 364)
+++ trunk/src/schmitzm/geotools/gui/JMapPane.java 2009-09-03 09:54:11 UTC (rev 365)
@@ -102,6 +102,7 @@
import schmitzm.geotools.GTUtil;
import schmitzm.geotools.JTSUtil;
import schmitzm.geotools.grid.GridUtil;
+import schmitzm.geotools.io.GeoImportUtil;
import schmitzm.geotools.map.event.FeatureSelectedEvent;
import schmitzm.geotools.map.event.GeneralSelectionEvent;
import schmitzm.geotools.map.event.GridCoverageSelectedEvent;
@@ -400,7 +401,7 @@
isDoubleBuffered != null ? isDoubleBuffered : true,
renderer != null ? renderer : new TransitionShapefileRenderer(),
// renderer != null ? renderer : new StreamingRenderer(),
- context != null ? context : new DefaultMapContext(GTUtil.WGS84));
+ context != null ? context : new DefaultMapContext(GeoImportUtil.getDEFAULT_CRS()));
// Dieser Hint sorgt wohl dafuer, dass die Rasterpixel nicht
// interpoliert werden
@@ -534,9 +535,9 @@
}
} catch (Exception err) {
LOGGER
- .warn("CRS could not be determined from map layer. WGS84 used.");
+ .warn("CRS could not be determined from map layer. "+GeoImportUtil.getDEFAULT_CRS().getName()+" used.");
// err.printStackTrace();
- crs = DefaultGeographicCRS.WGS84;
+ crs = GeoImportUtil.getDEFAULT_CRS();
}
// CRS dem MapContext zuweisen
try {
More information about the Schmitzm-commits
mailing list