Revision: 5674 http://sourceforge.net/p/jump-pilot/code/5674 Author: edso Date: 2018-01-18 13:45:07 +0000 (Thu, 18 Jan 2018) Log Message: ----------- fix bug in SRID boundedBy writer. If the locale is set to Finnish then comma is used as decimal separator.
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java Modified: core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java 2018-01-16 10:44:08 UTC (rev 5673) +++ core/trunk/src/com/vividsolutions/jump/io/GMLWriter.java 2018-01-18 13:45:07 UTC (rev 5674) @@ -38,9 +38,11 @@ import java.io.OutputStreamWriter; import java.io.Writer; import java.text.DecimalFormat; +import java.text.DecimalFormatSymbols; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Iterator; +import java.util.Locale; import java.util.regex.Pattern; import org.apache.commons.lang3.StringEscapeUtils; @@ -206,7 +208,7 @@ // 11.3.6 Inheritance rules for srsName values if (getSrid(featureCollection) > 0){ Envelope env = featureCollection.getEnvelope(); - DecimalFormat df = new DecimalFormat("#,##0.00"); + DecimalFormat df = new DecimalFormat("#,##0.00", new DecimalFormatSymbols(Locale.US)); df.setGroupingUsed(false); String envString = df.format(env.getMinX()) + "," + df.format(env.getMinY()) + " " + df.format(env.getMaxX()) + "," + df.format(env.getMaxY()); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel