[Schmitzm-commits] r410 - branches/1.0-gt2-2.6/src/schmitzm/geotools/feature
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Sep 21 18:44:31 CEST 2009
Author: alfonx
Date: 2009-09-21 18:44:30 +0200 (Mon, 21 Sep 2009)
New Revision: 410
Modified:
branches/1.0-gt2-2.6/src/schmitzm/geotools/feature/AttributeTypeFilter.java
Log:
AttributeTypeFilter NO_GEOMETRY had to be adapted to use the new GT2.6 attribute descriptors
/**
* Standard-Filter, der {@linkplain GeometryDescriptor
* Geometrie-Attribute} ausblendet.
*/
public static final AttributeTypeFilter NO_GEOMETRY = new AttributeTypeFilter() {
public boolean accept(AttributeDescriptor desciptor, int idx) {
return !(desciptor instanceof GeometryDescriptor);
}
};
Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/feature/AttributeTypeFilter.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/feature/AttributeTypeFilter.java 2009-09-18 15:00:29 UTC (rev 409)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/feature/AttributeTypeFilter.java 2009-09-21 16:44:30 UTC (rev 410)
@@ -29,8 +29,11 @@
******************************************************************************/
package schmitzm.geotools.feature;
+import org.geotools.feature.GeometryAttributeType;
import org.geotools.feature.type.GeometricAttributeType;
import org.opengis.feature.type.AttributeDescriptor;
+import org.opengis.feature.type.AttributeType;
+import org.opengis.feature.type.GeometryDescriptor;
import schmitzm.geotools.gui.FeatureFilterPanel;
@@ -58,16 +61,16 @@
return true;
}
};
-
+
/**
- * Standard-Filter, der {@linkplain GeometricAttributeType Geometrie-Attribute}
- * ausblendet.
- */
- public static final AttributeTypeFilter NO_GEOMETRY = new AttributeTypeFilter() {
- public boolean accept(AttributeDescriptor type, int idx) {
- return !( type instanceof GeometricAttributeType );
- }
- };
+ * Standard-Filter, der {@linkplain GeometryDescriptor
+ * Geometrie-Attribute} ausblendet.
+ */
+ public static final AttributeTypeFilter NO_GEOMETRY = new AttributeTypeFilter() {
+ public boolean accept(AttributeDescriptor desciptor, int idx) {
+ return !(desciptor instanceof GeometryDescriptor);
+ }
+ };
/**
* Bestimmt, ob eine Attribut dargestellt wird, oder nicht.
More information about the Schmitzm-commits
mailing list