Description: avoid building embedded crate spargeo
 Needs not-in-Debian crates geo geojson
 .
 This essentially reverts upstream git commit 6cdffd8.
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2024-11-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,6 @@
     "lib/sparesults",
     "lib/spareval",
     "lib/spargebra",
-    "lib/spargeo",
     "lib/sparopt",
     "lib/sparql-smith",
     "oxrocksdb-sys",
@@ -43,8 +42,6 @@
 dissimilar = "1"
 dashmap = ">=5.4, <7.0"
 flate2 = "1.0"
-geo = ">=0.28, <0.32"
-geojson = "0.24"
 getrandom = "0.2.8"
 hex = "0.4"
 js-sys = "0.3.60"
@@ -76,7 +73,6 @@
 tokio = "1.29"
 url = "2.4"
 wasm-bindgen = "0.2.88"
-wkt = "0.14"
 
 # Internal dependencies
 oxigraph = { version = "=0.5.1", path = "lib/oxigraph" }
@@ -88,7 +84,6 @@
 oxsdatatypes = { version = "=0.2.2", path = "lib/oxsdatatypes" }
 oxttl = { version = "=0.2.1", path = "lib/oxttl" }
 spargebra = { version = "=0.4.1", path = "lib/spargebra" }
-spargeo = { version = "=0.5.1", path = "lib/spargeo" }
 sparesults = { version = "=0.3.1", path = "lib/sparesults" }
 sparopt = { version = "=0.3.1", path = "lib/sparopt" }
 spareval = { version = "=0.2.1", path = "lib/spareval" }
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -18,12 +18,11 @@
 doc = false
 
 [features]
-default = ["native-tls", "geosparql", "rdf-12"]
+default = ["native-tls", "rdf-12"]
 native-tls = ["oxigraph/http-client-native-tls"]
 rdf-12 = ["oxigraph/rdf-12"]
 rocksdb-pkg-config = ["oxigraph/rocksdb-pkg-config"]
 rustls-native = ["oxigraph/http-client-rustls-native"]
-geosparql = ["dep:spargeo"]
 
 [dependencies]
 anyhow.workspace = true
@@ -34,7 +33,6 @@
 oxiri.workspace = true
 rand.workspace = true
 rayon-core.workspace = true
-spargeo = { workspace = true, optional = true }
 url.workspace = true
 
 [dev-dependencies]
--- a/js/Cargo.toml
+++ b/js/Cargo.toml
@@ -17,15 +17,13 @@
 doc = false
 
 [features]
-default = ["geosparql", "rdf-12"]
-geosparql = ["dep:spargeo"]
+default = ["rdf-12"]
 rdf-12 = ["oxigraph/rdf-12"]
 
 [dependencies]
 console_error_panic_hook.workspace = true
 js-sys.workspace = true
 oxigraph = { workspace = true, features = ["js"] }
-spargeo = { workspace = true, optional = true }
 wasm-bindgen.workspace = true
 
 [lints]
--- a/python/Cargo.toml
+++ b/python/Cargo.toml
@@ -19,15 +19,13 @@
 doc = false
 
 [features]
-default = ["geosparql", "rdf-12"]
+default = ["rdf-12"]
 abi3 = ["pyo3/abi3-py38"]
 rocksdb-pkg-config = ["oxigraph/rocksdb-pkg-config"]
-geosparql = ["dep:spargeo"]
 rdf-12 = ["oxigraph/rdf-12"]
 
 [dependencies]
 pyo3 = { workspace = true, features = ["extension-module"] } # TODO: remove the feature in a few months
-spargeo = { workspace = true, optional = true }
 
 [target.'cfg(any(target_family = "windows", target_os = "macos", target_os = "ios"))'.dependencies]
 oxigraph = { workspace = true, features = ["http-client-native-tls"] }
--- a/testsuite/Cargo.toml
+++ b/testsuite/Cargo.toml
@@ -19,7 +19,6 @@
 oxjsonld.workspace = true
 oxttl.workspace = true
 spargebra = { workspace = true, features = ["standard-unicode-escaping"] }
-spargeo.workspace = true
 sparopt.workspace = true
 spareval.workspace = true
 time = { workspace = true, features = ["formatting"] }
--- a/testsuite/src/sparql_evaluator.rs
+++ b/testsuite/src/sparql_evaluator.rs
@@ -20,7 +20,6 @@
 use spareval::{DefaultServiceHandler, QueryEvaluationError, QueryEvaluator, QuerySolutionIter};
 use spargebra::algebra::GraphPattern;
 use spargebra::{Query, SparqlParser};
-use spargeo::GEOSPARQL_EXTENSION_FUNCTIONS;
 use sparopt::Optimizer;
 use std::collections::HashMap;
 use std::fmt::Write;
@@ -179,11 +178,8 @@
         .parse_query(&query.to_string())
         .with_context(|| format!("Failure to deserialize \"{query}\""))?;
 
-    let mut evaluator = QueryEvaluator::new()
+    let evaluator = QueryEvaluator::new()
         .with_default_service_handler(StaticServiceHandler::new(&test.service_data)?);
-    for (name, implementation) in GEOSPARQL_EXTENSION_FUNCTIONS {
-        evaluator = evaluator.with_custom_function(name.into(), implementation)
-    }
 
     // FROM and FROM NAMED support. We make sure the data is in the store
     if let Some(query_dataset) = query.dataset() {
--- a/testsuite/tests/oxigraph.rs
+++ b/testsuite/tests/oxigraph.rs
@@ -71,6 +71,7 @@
 }
 
 #[test]
+#[ignore]
 fn oxigraph_geosparql_testsuite() -> Result<()> {
     check_testsuite(
         "https://github.com/oxigraph/oxigraph/tests/geosparql/manifest.ttl",
