[Schmitzm-commits] r1917 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Wed Mar 28 12:19:43 CEST 2012
Author: keeb
Date: 2012-03-28 12:19:43 +0200 (Wed, 28 Mar 2012)
New Revision: 1917
Modified:
trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/JMapEditorPane.java
Log:
changing use of deprecated method createFeature() to new method createFeatureInstance()
Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/JMapEditorPane.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/JMapEditorPane.java 2012-03-28 10:15:08 UTC (rev 1916)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/gui/JMapEditorPane.java 2012-03-28 10:19:43 UTC (rev 1917)
@@ -872,7 +872,7 @@
LineString lineString = createGeometryFromPoints(LineString.class,
coord);
try {
- return FeatureUtil.createFeature(segmLineFeatureType, lineString);
+ return FeatureUtil.createFeatureInstance(segmLineFeatureType, null, null, lineString);
} catch (Exception e) {
throw new RuntimeException(e);
}
@@ -893,7 +893,7 @@
MultiPoint multiPoint = createGeometryFromPoints(MultiPoint.class,
coord);
try {
- return FeatureUtil.createFeature(segmPointFeatureType, multiPoint);
+ return FeatureUtil.createFeatureInstance(segmPointFeatureType, null, null, multiPoint);
} catch (Exception e) {
throw new RuntimeException(e);
}
@@ -924,7 +924,7 @@
attr[i] = FeatureUtil.getNextAutoValue(aType);
}
// create new feature
- feature = FeatureUtil.createFeature(editorFeatureType, attr);
+ feature = FeatureUtil.createFeatureInstance(editorFeatureType, null, null, attr);
}
feature.setDefaultGeometry(createGeometryFromPoints(
getGeometryType(editorMode), coord));
More information about the Schmitzm-commits
mailing list