Skip to content

Commit

Permalink
ST_YMAX/ST_XMIN/ST_YMIN
Browse files Browse the repository at this point in the history
Signed-off-by: Fan Yang <[email protected]>
  • Loading branch information
kkk25641463 committed May 21, 2024
1 parent 790bd8e commit 961dbb6
Show file tree
Hide file tree
Showing 10 changed files with 556 additions and 55 deletions.
29 changes: 22 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ethnum = { version = "1.5.0" }
feature-set = { version = "0.1.1" }
geo = { version = "0.27.0", features = ["use-serde"] }
geos = { version = "8.3", features = ["static", "geo", "geo-types"] }
geozero = { version = "0.12.0", features = ["default", "with-wkb", "with-geos", "with-geojson"] }
geozero = { version = "0.13.0", features = ["default", "with-wkb", "with-geos", "with-geojson"] }
itertools = "0.10.5"
match-template = "0.0.1"
mysql_async = { version = "0.34", default-features = false, features = ["rustls-tls"] }
Expand Down
12 changes: 12 additions & 0 deletions src/common/io/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ pub enum GeometryDataType {
GEOJSON,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Axis {
X,
Y,
}

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Extremum {
Max,
Min,
}

impl FromStr for GeometryDataType {
type Err = ErrorCode;

Expand Down
2 changes: 2 additions & 0 deletions src/common/io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ pub use geometry::geometry_format;
pub use geometry::parse_to_ewkb;
pub use geometry::parse_to_subtype;
pub use geometry::read_ewkb_srid;
pub use geometry::Axis;
pub use geometry::Extremum;
pub use geometry::GeometryDataType;
Loading

0 comments on commit 961dbb6

Please sign in to comment.