[Schmitzm-commits] r2002 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu May 17 16:37:55 CEST 2012


Author: mojays
Date: 2012-05-17 16:37:55 +0200 (Thu, 17 May 2012)
New Revision: 2002

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/AttributeTypeFactory.java
Log:
AttributeTypeFactory: new simplified constructor methods

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/AttributeTypeFactory.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/AttributeTypeFactory.java	2012-05-17 14:25:26 UTC (rev 2001)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/feature/AttributeTypeFactory.java	2012-05-17 14:37:55 UTC (rev 2002)
@@ -33,7 +33,7 @@
 		return newAttributeDescriptor(name, binding, null, null, null);
 	}
 
-	public static AttributeDescriptor newAttributeDescriptor(String name,
+    public static AttributeDescriptor newAttributeDescriptor(String name,
 			Class<?> binding, Boolean nillable, Filter restrictions,
 			Object newDefaultValue) {
 
@@ -64,4 +64,10 @@
 				restrictions, defaultGeom, crs);
 		return FeatureUtil.ATTRTYPE_BUILDER.buildDescriptor(name, gtype);
 	}
+
+    public static GeometryDescriptor newGeometryAttributeDescriptor(
+        Class<? extends Geometry> binding, Geometry defaultGeom,
+        CoordinateReferenceSystem crs) {
+      return newGeometryAttributeDescriptor("the_geom",binding,true,null,defaultGeom,crs);
+    }
 }



More information about the Schmitzm-commits mailing list