Skip to content

Commit

Permalink
fix ewkt - take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Aug 12, 2023
1 parent 116f438 commit 4f2c505
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions geozero/src/wkt/wkt_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ mod test {
fn from_wkb() {
let blob = hex::decode("01040000A0E6100000020000000101000080000000000000244000000000000034C0000000000000594001010000800000000000000000000000000000E0BF0000000000405940").unwrap();
let mut cursor = std::io::Cursor::new(blob);
assert_eq!(
EwktString::from_wkb(&mut cursor, WkbDialect::Ewkb).unwrap(),
EwktString("SRID=4326;MULTIPOINT(10 -20 100,0 -0.5 101)".to_string())
)
let ewkt = EwktString::from_wkb(&mut cursor, WkbDialect::Ewkb).unwrap();
assert_eq!(ewkt.0, "SRID=4326;MULTIPOINT(10 -20 100,0 -0.5 101)")
}
}

0 comments on commit 4f2c505

Please sign in to comment.