Skip to content

Commit

Permalink
go back to geo equals now that geography mixup figured out
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 14, 2024
1 parent 0b1c49f commit 1ca92d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/model/qvalue/qvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ func compareGeometry(value1, value2 interface{}) bool {

switch v1 := value1.(type) {
case *geom.Geom:
return v1.EqualsExact(geo2, 0.0001)
return v1.Equals(geo2)
case string:
geo1, err := geom.NewGeomFromWKT(v1)
if err != nil {
panic(err)
}
return geo1.EqualsExact(geo2, 0.0001)
return geo1.Equals(geo2)
default:
panic(fmt.Sprintf("invalid geometry value type %T: %v", value1, value1))
}
Expand Down

0 comments on commit 1ca92d0

Please sign in to comment.