Skip to content

Commit 8383741

Browse files
committed
docs: add upstream source attribution for geo::algorithm::area and update LICENSE
docs: add upstream geo source attribution to remaining generic algorithms docs: add upstream geo source attribution to remaining line_measures modules docs: add upstream geo source attribution to intersects submodules and algorithm mod docs: add upstream geo attribution to geometry, lib, and utils modules license
1 parent 9ce0614 commit 8383741

File tree

31 files changed

+160
-0
lines changed

31 files changed

+160
-0
lines changed

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ c/sedona-geoarrow-c/src/geoarrow (vendored from https://github.com/geoarrow/geoa
212212
c/sedona-geoarrow-c/src/nanoarrow (vendored from https://github.com/apache/arrow-nanoarrow)
213213
c/sedona-s2geography/s2geography (submodule from https://github.com/paleolimbot/s2geography)
214214
c/sedona-s2geography/s2geometry (submodule from https://github.com/google/s2geometry)
215+
rust/sedona-geo-generic-alg (ported and contains copied code from https://github.com/georust/geo)
215216

216217
MIT License
217218
--------------------------------------

rust/sedona-geo-generic-alg/src/algorithm/area.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Area algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::area`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/area.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use sedona_geo_traits_ext::*;
1823

1924
use crate::{CoordFloat, CoordNum};

rust/sedona-geo-generic-alg/src/algorithm/bounding_rect.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Bounding Rectangle algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::bounding_rect`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/bounding_rect.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use crate::utils::{partial_max, partial_min};
1823
use crate::{coord, geometry::*, CoordNum};
1924
use core::borrow::Borrow;

rust/sedona-geo-generic-alg/src/algorithm/centroid.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Centroid algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::centroid`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/centroid.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use core::borrow::Borrow;
1823
use std::cmp::Ordering;
1924

rust/sedona-geo-generic-alg/src/algorithm/coordinate_position.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Coordinate Position algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::coordinate_position`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/coordinate_position.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use core::borrow::Borrow;
1823
use std::cmp::Ordering;
1924

rust/sedona-geo-generic-alg/src/algorithm/dimensions.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Dimensions (HasDimensions) algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::dimensions`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/dimensions.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use core::borrow::Borrow;
1823
use sedona_geo_traits_ext::*;
1924

rust/sedona-geo-generic-alg/src/algorithm/euclidean_length.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Generic Euclidean Length algorithm
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::euclidean_length`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/euclidean_length.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use core::borrow::Borrow;
1823
use std::iter::Sum;
1924

rust/sedona-geo-generic-alg/src/algorithm/intersects/collections.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Intersects implementations for Geometry and GeometryCollection (generic)
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::intersects::collections`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/intersects/collections.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use core::borrow::Borrow;
1823
use sedona_geo_traits_ext::*;
1924

rust/sedona-geo-generic-alg/src/algorithm/intersects/coordinate.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Intersects implementations for Coord and Point (generic)
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::intersects::coordinate`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/intersects/coordinate.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use sedona_geo_traits_ext::{CoordTag, CoordTraitExt, PointTag, PointTraitExt};
1823

1924
use super::IntersectsTrait;

rust/sedona-geo-generic-alg/src/algorithm/intersects/line.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17+
//! Intersects implementations for Line (generic)
18+
//!
19+
//! Ported (and contains copied code) from `geo::algorithm::intersects::line`:
20+
//! <https://github.com/georust/geo/blob/5d667f844716a3d0a17aa60bc0a58528cb5808c3/geo/src/algorithm/intersects/line.rs>.
21+
//! Original code is dual-licensed under Apache-2.0 or MIT; used here under Apache-2.0.
1722
use sedona_geo_traits_ext::*;
1823

1924
use super::{point_in_rect, IntersectsTrait};

0 commit comments

Comments
 (0)