[Schmitzm-commits] r1233 - trunk/src/schmitzm/geotools/styling
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 4 18:29:59 CET 2010
Author: alfonx
Date: 2010-11-04 18:29:59 +0100 (Thu, 04 Nov 2010)
New Revision: 1233
Modified:
trunk/src/schmitzm/geotools/styling/StylingUtil.java
Log:
Modified: trunk/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/styling/StylingUtil.java 2010-11-04 16:22:29 UTC (rev 1232)
+++ trunk/src/schmitzm/geotools/styling/StylingUtil.java 2010-11-04 17:29:59 UTC (rev 1233)
@@ -193,7 +193,7 @@
* {@link #parseColormapToSld(File)}
**/
public static final Pattern GDALINFO_COLORMAP_RGB = Pattern
- .compile("^.*(\\d+): (\\d+),(\\d+),(\\d+).*$");
+ .compile("^[^\\d]*(\\d+): (\\d+),(\\d+),(\\d+).*$");
/**
* RegEx Patter to read palette information from gdalinfo output, for images
@@ -201,7 +201,7 @@
* {@link #parseColormapToSld(File)}
**/
public static final Pattern GDALINFO_COLORMAP_RGBA = Pattern
- .compile("^.*(\\d+): (\\d+),(\\d+),(\\d+),(\\d+).*$");
+ .compile("^[^\\d]*(\\d+): (\\d+),(\\d+),(\\d+),(\\d+).*$");
static final Literal halfLit = FeatureUtil.FILTER_FACTORY2.literal(.5);
static final Literal size0 = FeatureUtil.FILTER_FACTORY2.literal(26);
More information about the Schmitzm-commits
mailing list