Revision 40864 branches/v02_desarrollo/libraries/sld/temp/org.gvsig.sldconverter/org.gvsig.sldconverter.lib/org.gvsig.sldconverter.lib.impl/src/main/java/org/gvsig/sldconverter/impl/legend/IntervalsLegendUtils.java

View differences:

IntervalsLegendUtils.java
274 274
			SLDBinaryComparisonOperator resp = new SLDBinaryComparisonOperator();
275 275
			resp.setComparisonOperator(FilterTags.PROPERTYISGREATEROREQUALTHAN);
276 276
			resp.setFirstExpression(new SLDPropertyName(fieldName));
277
			resp.setSecondExpression(new SLDLiteral(Double.toString(min)));
277
			
278
			resp.setSecondExpression(new SLDLiteral(BasicUtils.df.format(min)));
278 279
			return resp;
279 280
			
280 281
		} else {
......
283 284
				SLDBinaryComparisonOperator resp = new SLDBinaryComparisonOperator();
284 285
				resp.setComparisonOperator(FilterTags.PROPERTYISLESSOREQUALTHAN);
285 286
				resp.setFirstExpression(new SLDPropertyName(fieldName));
286
				resp.setSecondExpression(new SLDLiteral(Double.toString(max)));
287
				resp.setSecondExpression(new SLDLiteral(BasicUtils.df.format(max)));
287 288
				return resp;
288 289
				
289 290
			} else {
290 291
				// normal (between)
291 292
				SLDIsBetweenOperator resp = new SLDIsBetweenOperator();
292 293
				resp.setExpression(new SLDPropertyName(fieldName));
293
				resp.setLowerBoundary(new SLDLiteral(Double.toString(min)));
294
				resp.setUpperBoundary(new SLDLiteral(Double.toString(max)));
294
				resp.setLowerBoundary(new SLDLiteral(BasicUtils.df.format(min)));
295
				resp.setUpperBoundary(new SLDLiteral(BasicUtils.df.format(max)));
295 296
				return resp;
296 297
			}
297 298
		}

Also available in: Unified diff