Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKTReader/-Writer enhancement #291

Merged
merged 7 commits into from Aug 20, 2018

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
commit 2f6840f295a36dd63bfbd84bc338ee3f5b6ceba7
@@ -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")));
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.