rolandhill / geoscience

QGIS plugin for geology and exploration. Drill hole desurvey/display and other utilities.
GNU General Public License v3.0
40 stars 11 forks source link

Z-Dimension #5

Closed jumbardo closed 4 years ago

jumbardo commented 5 years ago

Have you considered having the desurveyed polylines contain the z-dimension? QGIS has some 3d functionality, but you could also export a format like .dxf and bring it into paraview or another 3d viewer. I haven't seen any freeware that desurveys and allows for viewing of drillholes in 3D and you are most of the way there. Great work btw!

rolandhill commented 5 years ago

Hi,

The desurveyed 3D From and To coordinates are appended as columns when you plot down hole data. Also, when you desurvey each drill hole is represented by a poly line with true 3D coordinates. Qgis only pays attention to x & y. It should all be ready for display in 3D.

Cheers, Roland

Sent from my iPhone

On Mar 17, 2019, at 15:11, jumbardo notifications@github.com wrote:

Have you considered having the desurveyed polylines contain the z-dimension? QGIS has some 3d functionality, but you could also export a format like .dxf and bring it into paraview or another 3d viewer. I haven't seen any freeware that desurveys and allows for viewing of drillholes in 3D and you are most of the way there. Great work btw!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

rolandhill commented 5 years ago

..... open the attributes of a down hole data plot to see the desurveyed coordinates.

Sent from my iPhone

On Mar 17, 2019, at 15:11, jumbardo notifications@github.com wrote:

Have you considered having the desurveyed polylines contain the z-dimension? QGIS has some 3d functionality, but you could also export a format like .dxf and bring it into paraview or another 3d viewer. I haven't seen any freeware that desurveys and allows for viewing of drillholes in 3D and you are most of the way there. Great work btw!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jumbardo commented 5 years ago

Thanks very much for the reply. I suspected and still suspect I am doing something incorrectly with data types as my downhole traces show from x from y to x to y coordinates but the from z and to z coordinates are empty and in 3d view or when exporting to dxf with z values I am still only seeing 2d. Perhaps I can try loading into arcscence but I think my layer in qgis itself is 2d. image

rolandhill commented 5 years ago

Those columns should be filled. Check the data for your collar x, y & z coordinates to make sure they’re valid and that they are float or double. If they are integer then add some .0 to you’re source data. I’ll fix it one day to force the correct types. If you don’t have any luck then you can send me your files to check.

Sent from my iPhone

On Mar 17, 2019, at 21:12, jumbardo notifications@github.com wrote:

Thanks very much for the reply. I suspected and still suspect I am doing something incorrectly with data types as my downhole traces show from x from y to x to y coordinates but the from z and to z coordinates are empty and in 3d view or when exporting to dxf with z values I am still only seeing 2d. Perhaps I can try loading into arcscence but I think my layer in qgis itself is 2d.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

rolandhill commented 5 years ago

The end of the downhole file should look like the one below. I've just updated the git repository with an update to force the hole id to be a string and the collar coordinates, survey data and downhole distances to be numbers. Look for an updated version in the QGIS repo soon.

image

jumbardo commented 5 years ago

Thanks for your hard work. I'll give this a shot later.

On Wed, Mar 20, 2019, 3:44 PM Roland Hill notifications@github.com wrote:

The end of the downhole file should look like the one below. I've just updated the git repository with an update to force the hole id to be a string and the collar coordinates, survey data and downhole distances to be numbers. Look for an updated version in the QGIS repo soon.

[image: image] https://user-images.githubusercontent.com/2024003/54714167-02a43800-4b59-11e9-842c-3e6decdfaccc.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rolandhill/geoscience/issues/5#issuecomment-474999522, or mute the thread https://github.com/notifications/unsubscribe-auth/ApWaAMIKRD67QP9n-Rh3yeax40lWljIMks5vYo-UgaJpZM4b4X6J .

jumbardo commented 5 years ago

Excellent! The new version is working for me. I threw in the original dataset I had that wasn't super cleaned up and it handled some errors like missing data as well. image

I've yet to get a 3d view going but it looks like all the data is there.

jumbardo commented 5 years ago

Here's the 3d in paraview. I used qgis with grass and used the grass v.out.vtk tool in the processing toolbox. Now I just need to classify by category somehow, and label by holeID. I'm not sure how to do the second part if it's not part of the attribute table. I might be able to do a join in qgis for the uppormost linestring to the collar point but the rest of the line I'm not sure if it's possible. I'd at least have the top of the hole labeled with a spatial join. image EDIT: actually I lose the lith category data when exporting to vtk with v.out.vtk If I can fix that may be out of luck. I can imagine building a batch process in graphical modeler if you had the drill setup, desurvey, and drill traces as seperate processing tools, but not sure how to do it now. Looks like you are working on a section view, but I haven't looked into your progress on that. Getting something straight into paraview seems easier to me but I know very little python. Thanks again for the 0.7 version update.