Skip to content

Commit

Permalink
Fix WKTReadWriteTest by setting output ordinates to XY
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Obermaier <felix.obermaier@netcologne.de>
  • Loading branch information
FObermaier committed Jun 14, 2018
1 parent b75d5a0 commit 06360ec
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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;
Expand All @@ -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 {
Expand All @@ -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")));
Expand Down

0 comments on commit 06360ec

Please sign in to comment.