sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1564263 - /sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
Date Tue, 04 Feb 2014 12:11:15 GMT
Author: desruisseaux
Date: Tue Feb  4 12:11:14 2014
New Revision: 1564263

URL: http://svn.apache.org/r1564263
Log:
REMARKS element not allowed in WKT 1.

Modified:
    sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java

Modified: sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java?rev=1564263&r1=1564262&r2=1564263&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-referencing/src/main/java/org/apache/sis/io/wkt/Formatter.java
[UTF-8] Tue Feb  4 12:11:14 2014
@@ -462,6 +462,8 @@ public class Formatter {
      *   <li>Append the {@code SCOPE[…]} element, if any (WKT 2 only).</li>
      *   <li>Append the {@code AREA[…]} element, if any (WKT 2 only).</li>
      *   <li>Append the {@code BBOX[…]} element, if any (WKT 2 only).</li>
+     *   <li>Append the {@code VERTICALEXTENT[…]} element, if any (WKT 2 only).</li>
+     *   <li>Append the {@code TIMEEXTENT[…]} element, if any (WKT 2 only).</li>
      *   <li>Append the {@code ID[…]} (WKT 2) or {@code AUTHORITY[…]}} (WKT 1)
element, if any.</li>
      *   <li>Append the {@code REMARKS[…]} element, if any (WKT 2 only).</li>
      * </ul>
@@ -562,7 +564,7 @@ public class Formatter {
         /*
          * Format remarks if any, and close the element.
          */
-        if (info != null) {
+        if (!isWKT1 && info != null) {
             append("REMARKS", info.getRemarks(), ElementKind.REMARKS);
         }
         buffer.appendCodePoint(symbols.getClosingBracket(0));



Mime
View raw message