Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince committed Nov 11, 2021
1 parent ef914f8 commit 710319f
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,17 @@ class ProcessorSuite extends Processor {

// POINT(3 8)
val geogPoint = Geography.ptVal(new Point(new Coordinate(3, 8)))
assert(extraValueForClient(row, "col15", map).equals(geogPoint))
var geogPointExpect = extraValueForSST(row, "col15", map)

println("jie, got" + geogPoint.toString())
println("jie, expect" + geogPointExpect.toString())
assert(geogPointExpect.equals(geogPoint))
// LINESTRING(3 8, 4.7 73.23)
var line = new java.util.ArrayList[Coordinate]()
line.add(new Coordinate(3, 8))
line.add(new Coordinate(4.7, 73.23))
val geogLineString = Geography.lsVal(new LineString(line))
assert(extraValueForClient(row, "col16", map).equals(geogLineString))
assert(extraValueForSST(row, "col16", map).equals(geogLineString))
// POLYGON((0 1, 1 2, 2 3, 0 1))
var shell: java.util.List[Coordinate] = new java.util.ArrayList[Coordinate]()
shell.add(new Coordinate(0, 1))
Expand All @@ -158,7 +162,7 @@ class ProcessorSuite extends Processor {
var rings = new java.util.ArrayList[java.util.List[Coordinate]]()
rings.add(shell)
val geogPolygon = Geography.pgVal(new Polygon(rings))
assert(extraValueForClient(row, "col17", map).equals(geogPolygon))
assert(extraValueForSST(row, "col17", map).equals(geogPolygon))
}

/**
Expand Down

0 comments on commit 710319f

Please sign in to comment.