From a2b83551709759cfb49e0bfe83e1d76e53609d6c Mon Sep 17 00:00:00 2001 From: Gaute Hope Date: Fri, 16 Aug 2024 18:22:37 +0200 Subject: [PATCH] use patch geo --- Cargo.toml | 2 ++ src/shapes.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 829648f..201a338 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,3 +46,5 @@ default = [ ] [profile.release] debug = true +[patch.crates-io] +geo = { path = "/home/gauteh/dev/misc/geo/geo" } diff --git a/src/shapes.rs b/src/shapes.rs index 4d25936..7a0a144 100644 --- a/src/shapes.rs +++ b/src/shapes.rs @@ -4,7 +4,7 @@ use std::io; use std::path::Path; use std::{borrow::Borrow, convert::TryInto}; -use geo::{point, Contains, Geometry, MultiPolygon, Point, Polygon}; +use geo::{point, Contains, Geometry, MultiPolygon, Point, Polygon, PreparedGeometry}; use numpy::{PyArray, PyReadonlyArrayDyn}; use rstar::{PointDistance, RTree, RTreeObject, AABB, Envelope};