Revision: 5658 http://sourceforge.net/p/jump-pilot/code/5658 Author: edso Date: 2018-01-04 17:36:40 +0000 (Thu, 04 Jan 2018) Log Message: ----------- minor reformatting of the resulting GML file
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/io/GMLGeometryWriter.java Modified: core/trunk/src/com/vividsolutions/jump/io/GMLGeometryWriter.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/io/GMLGeometryWriter.java 2018-01-04 16:41:14 UTC (rev 5657) +++ core/trunk/src/com/vividsolutions/jump/io/GMLGeometryWriter.java 2018-01-04 17:36:40 UTC (rev 5658) @@ -278,7 +278,7 @@ * @param writer Writer to write coordinates to */ private void write(Coordinate[] coords, int level, Writer writer) throws IOException { - startLine(writer, level, "<gml:coordinates>"); + startLine(writer, level, "<gml:coordinates>\n"); int dim = 2; // [mmichaud 2012-05-05] if there is a single z value, I want to keep it @@ -289,7 +289,7 @@ } } - boolean isNewLine = false; + boolean isNewLine = true; for (int i = 0; i < coords.length; i++) { if (isNewLine) { startLine(writer, level, " "); @@ -314,7 +314,8 @@ isNewLine = true; } } - writer.append("</gml:coordinates>\n"); + writer.append("\n"); + startLine(writer, level, "</gml:coordinates>\n"); } } ------------------------------------------------------------------------------ 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