Skip to content
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

bug: shapefile_utils export fail with disu export #1775

Closed
laat0003 opened this issue May 6, 2023 · 0 comments · Fixed by #1785
Closed

bug: shapefile_utils export fail with disu export #1775

laat0003 opened this issue May 6, 2023 · 0 comments · Fixed by #1785
Assignees
Labels

Comments

@laat0003
Copy link

laat0003 commented May 6, 2023

Hi,

shapefile_utils export fails with disu export when angledegx.array is None

If angledegx.array is None then function model_attributes_to_shapefile() will fail in the attribute grab loop when it tests for the array shape.

This is presently line 307 in the shapefile_utils.py file develop branch online.
It is line 284 in the same file used in the release version 3.3.6

I got it working with the following starting at line 305 in dev branch online (same as line 281 in release 3.3.6)

if (
a.data_type == DataType.array2d # original code
and a.array is not None # I added this
and a.array.shape == horz_shape # original code
):

Hope that helps,
Tariq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants