[Schmitzm-commits] r955 - trunk/src/schmitzm/geotools/feature

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Aug 5 20:04:50 CEST 2010


Author: alfonx
Date: 2010-08-05 20:04:49 +0200 (Thu, 05 Aug 2010)
New Revision: 955

Modified:
   trunk/src/schmitzm/geotools/feature/FeatureUtil.java
Log:
getCQLAttributNames verbessert um variablennamen zu erkennen, die mit einer zahl beginnen. eine sache, die in CQL eigentlich vberboten ist.

Modified: trunk/src/schmitzm/geotools/feature/FeatureUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-08-05 14:02:23 UTC (rev 954)
+++ trunk/src/schmitzm/geotools/feature/FeatureUtil.java	2010-08-05 18:04:49 UTC (rev 955)
@@ -167,8 +167,11 @@
 
 			// Ignore number literals
 			try {
-				NumberFormat.getInstance().parse(attName);
-				continue;
+				Number parsed = NumberFormat.getInstance().parse(attName);
+				
+				// Acjhtung "34hf" wird hier einfach geparsed!!
+				if (parsed.toString().length() == attName.length())
+					continue;
 			} catch (Exception e) {
 			}
 



More information about the Schmitzm-commits mailing list