-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid panics in GEOS geometry construction #217
Changes from 4 commits
f5dc53b
6eb91cc
84282ca
a46c2d6
0ae2e12
e26d33e
6ccb209
ac5c2ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.DS_Store | ||
.idea | ||
|
||
# Generated by Cargo | ||
# will have compiled files and executables | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for LineStringArray<O> { | |
"ARROW:extension:name".to_string(), | ||
"geoarrow.linestring".to_string(), | ||
); | ||
Arc::new(Field::new("", self.storage_type(), true).with_metadata(field_metadata)) | ||
Arc::new(Field::new("geometry", self.storage_type(), true).with_metadata(field_metadata)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm reluctant to call this |
||
} | ||
|
||
fn into_arrow(self) -> Self::ArrowArray { | ||
|
@@ -180,7 +180,7 @@ impl<'a, O: OffsetSizeTrait> GeometryArrayTrait<'a> for LineStringArray<O> { | |
/// This operation is `O(1)` as it amounts to increase two ref counts. | ||
/// # Examples | ||
/// ``` | ||
/// use arrow2::array::PrimitiveArray; | ||
/// use arrow::array::PrimitiveArray; | ||
/// | ||
/// let array = PrimitiveArray::from_vec(vec![1, 2, 3]); | ||
/// assert_eq!(format!("{:?}", array), "Int32[1, 2, 3]"); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just finished a migration from arrow2 to arrow-rs and the docstrings haven't been updated yet (not that they were accurate before either; they were copied from arrow2). Could you revert these specific changes to make it clear that these docstring examples don't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, there's a whole bunch of these docstrings that need to be updated, so ideally we'll be intentional about fixing them in some sort of dedicated PR, ideally restoring
doctest = true
as wellgeoarrow-rs/Cargo.toml
Lines 58 to 60 in 29930b0