Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
edpft committed Sep 19, 2022
1 parent df8ffd2 commit 28dd535
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geopolars/src/geoseries.rs
Expand Up @@ -71,7 +71,7 @@ pub trait GeoSeries {
fn exterior(&self) -> Result<Series>;

/// Explodes multi-part geometries into multiple single geometries.
fn explode_geometries(&self) -> Result<Series>;
fn explode(&self) -> Result<Series>;

/// Create a Series from a vector of geometries
fn from_geom_vec(geoms: &[Geometry<f64>]) -> Result<Series>;
Expand Down Expand Up @@ -310,7 +310,7 @@ impl GeoSeries for Series {
Ok(series)
}

fn explode_geometries(&self) -> Result<Series> {
fn explode(&self) -> Result<Series> {
let mut exploded_vector = Vec::new();

for geometry in iter_geom(self) {
Expand Down Expand Up @@ -1002,7 +1002,7 @@ mod tests {
assert_eq!(10.0_f64, as_vec[0]);
}
#[test]
fn explode_geometries() {
fn explode() {
let point_0 = Point::new(0., 0.);
let point_1 = Point::new(1., 1.);
let point_2 = Point::new(2., 2.);
Expand All @@ -1027,7 +1027,7 @@ mod tests {
])
.unwrap();

let output_series = input_series.explode_geometries().unwrap();
let output_series = GeoSeries::explode(&input_series).unwrap();

assert_eq!(output_series, expected_series);
}
Expand Down

0 comments on commit 28dd535

Please sign in to comment.