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

Crash using the clip tool with PointZ files #365

Open
csmemoe-aquaveo opened this issue Jul 19, 2023 · 0 comments
Open

Crash using the clip tool with PointZ files #365

csmemoe-aquaveo opened this issue Jul 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@csmemoe-aquaveo
Copy link

Hi,

I have an issue using the "Clip" command on PointZ files. Here's the commandline:

.\whitebox_tools.exe --run="Clip" --input='C:\temp\whitebox_test\input_ptz.shp' --clip='C:\temp\whitebox_test\clip_poly.shp' --output='C:\temp\whitebox_test\clipped_points_out.shp' -v

The test files are located here:

shapefile.zip

I tracked down the issue to an error when writing PointZ files and computing the header extents and writing the geometry. The code was trying to write the "M" values to the shapefile but these values do not exist for PointZ shapefiles. Also there was an issue with computing the header max Z value. I tried to push a fix to github but was denied, probably because I'm new and don't know what I'm doing. But you can download a patch file and my changes to mod.rs here:

whitebox_test.zip

Let me know if you have any questions.

Thanks,

Chris

@Afrancioni Afrancioni added the bug Something isn't working label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants