[Schmitzm-commits] r112 - in trunk: dist src/schmitzm/geotools/gui src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 13 11:18:55 CEST 2009


Author: mojays
Date: 2009-05-13 11:18:53 +0200 (Wed, 13 May 2009)
New Revision: 112

Modified:
   trunk/dist/schmitzm-src.zip
   trunk/dist/schmitzm.jar
   trunk/src/schmitzm/geotools/gui/SelectableFeatureTablePane.java
   trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
Log:
StyledFeatureCollectionTableModel
- bug fixed in FeatureSource -> FeatureCollection conversion (using getSchema() instead of getFeatureType()!)

Modified: trunk/dist/schmitzm-src.zip
===================================================================
(Binary files differ)

Modified: trunk/dist/schmitzm.jar
===================================================================
(Binary files differ)

Modified: trunk/src/schmitzm/geotools/gui/SelectableFeatureTablePane.java
===================================================================
--- trunk/src/schmitzm/geotools/gui/SelectableFeatureTablePane.java	2009-05-12 23:33:14 UTC (rev 111)
+++ trunk/src/schmitzm/geotools/gui/SelectableFeatureTablePane.java	2009-05-13 09:18:53 UTC (rev 112)
@@ -164,7 +164,6 @@
 		if (statusLabel == null){
 			statusLabel = new JLabel();
 		}
-		
 		// TODO Cache totalAnz and localizedGeometryTypeName. Do not recalc all the time!  
 		
 		int selectedAnz = getSelectedFeatures().size();

Modified: trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
===================================================================
--- trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java	2009-05-12 23:33:14 UTC (rev 111)
+++ trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java	2009-05-13 09:18:53 UTC (rev 112)
@@ -160,7 +160,7 @@
         setFeatureSource(null, null, null);
       else {
         FeatureCollection fc = map.getGeoObject();
-        String fcName = fc.getFeatureType().getTypeName();
+        String fcName = fc.getSchema().getTypeName();
         FeatureSource fs = new MemoryDataStore(fc).getFeatureSource(fcName);
         setFeatureSource(fs, map.getAttributeMetaDataMap(), filter);
       }



More information about the Schmitzm-commits mailing list