mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
fix: rename wkt conversion function
This commit is contained in:
@@ -340,7 +340,7 @@ impl GeometryValue {
|
||||
GeometryValueRef::Ref { val: self }
|
||||
}
|
||||
|
||||
pub fn from_wkb(s: &str) -> Result<Self> {
|
||||
pub fn from_wkt(s: &str) -> Result<Self> {
|
||||
let wktls: Wkt<OrderedF64> = Wkt::from_str(s).unwrap();
|
||||
match wktls.item {
|
||||
Geometry::Point(_) => {
|
||||
|
||||
@@ -94,7 +94,7 @@ fn parse_string_to_value(
|
||||
}
|
||||
}
|
||||
ConcreteDataType::Geometry(_) => {
|
||||
if let Ok(geo_value) = GeometryValue::from_wkb(&s) {
|
||||
if let Ok(geo_value) = GeometryValue::from_wkt(&s) {
|
||||
Ok(Value::Geometry(geo_value))
|
||||
} else {
|
||||
ParseSqlValueSnafu {
|
||||
|
||||
Reference in New Issue
Block a user