Skip to content
Permalink
Browse files

Fix WKTReadWriteTest by setting output ordinates to XY

Signed-off-by: Felix Obermaier <felix.obermaier@netcologne.de>
  • Loading branch information...
FObermaier committed Jun 14, 2018
1 parent b75d5a0 commit 06360ec27cfc9e92429cc94900b2b4129fbed17d
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/core/src/test/java/org/locationtech/jts/io/WKTReadWriteTest.java
@@ -4,6 +4,7 @@
import junit.framework.TestSuite;
import junit.textui.TestRunner;

import org.locationtech.jts.geom.CoordinateSequence;
import org.locationtech.jts.geom.CoordinateSequenceFactory;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.impl.PackedCoordinateSequenceFactory;
@@ -27,6 +28,7 @@ public static void main(String[] args) {

public WKTReadWriteTest(String name) {
super(name);
writer.setOutputOrdinates(CoordinateSequence.XYFlag);
}

public void testReadNaN() throws Exception {
@@ -53,7 +55,6 @@ public void testReadLinearRing() throws Exception {
}
catch (IllegalArgumentException e) {
assertTrue(e.getMessage().contains("not form a closed linestring"));
fail();
}
assertEquals("LINEARRING (10 10, 20 20, 30 40, 10 10)", writer.write(reader.read("LINEARRING (10 10, 20 20, 30 40, 10 10)")));
assertEquals("LINEARRING EMPTY", writer.write(reader.read("LINEARRING EMPTY")));

0 comments on commit 06360ec

Please sign in to comment.
You can’t perform that action at this time.