Giter Club home page Giter Club logo

geoscience's People

Contributors

koalageo avatar rolandhill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geoscience's Issues

Geoscience bug

Whenver I execute desurvey hole, I am faced with the message the collar 3D and Collar_Desurvey file were not made.

Python error when accessing log file

I'm encountering a Python error when attempting to desurvey the sample borehole data provided with the QGIS plugin. Copied below.

The error occurs even if I manually create the Geoscience_DrillManager_log.txt file myself. It occurs whether the data is on my internal hard drive or external USB drive.

I'm using QGIS 3.10 on a mac running Catalina 10.15.1.

Much appreciated if you can suggest a solution.

2019-12-02T15:47:31 WARNING Traceback (most recent call last): File "/Users/justin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/geoscience/DrillManager.py", line 114, in onDesurveyHole self.openLogFile() File "/Users/justin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/geoscience/DrillManager.py", line 76, in openLogFile self.logFile = open(os.path.join(os.path.dirname(fileName), "Geoscience_DrillManager_log.txt"),'w') FileNotFoundError: [Errno 2] No such file or directory: 'file:/Volumes/USBdrive/Borehole data/Geoscience_DrillManager_log.txt'

No results

I'm trying to use the pluging. First I tried to use with my own boreholes with no results, then i tried to use with test data but no results. There is no advance and the program stops in "build Collar Array"
image

Can't load plugin in 3.2.3 on Windows

Couldn't load plugin 'geoscience' due to an error when calling its classFactory() method 

TypeError: 'QVariant' object is not subscriptable 
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python\qgis\utils.py", line 337, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/alistair/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\__init__.py", line 36, in classFactory
    return Geoscience(iface)
  File "C:/Users/alistair/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\geoscience.py", line 40, in __init__
    locale = QSettings().value('locale/userLocale')[0:2]
TypeError: 'QVariant' object is not subscriptable

Lithology data not displaying down desurveyed drill trace in "sections"

I added in all my CSV files to qgis, desurved the ddh, and then I added drill hole data to the desurveyed trace (litho), and all of that worked fine. The litho displays as it should down the hole, BUT as soon as I go into section manager and cut a section by "map extent" the lithology no longer appears along the drill hole trace in the section view. Any idea how to make it plot along the trace in section..?

Z-Dimension

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!

wrapped C/C++ object of type QgsLayerTreeGroup has been deleted

When i'm trying to run the section manager tool, the below error shows up -

2022-08-24T11:48:42 WARNING Traceback (most recent call last):
File "~/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionMapTool.py", line 66, in canvasReleaseEvent
self.sectionManagerDlg.sectionManager.showSection(s)
File "~AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionManager.py", line 572, in showSection
s.group.setItemVisibilityChecked( False )
RuntimeError: wrapped C/C++ object of type QgsLayerTreeGroup has been deleted

Is there anywone who encountered a similar problem and how could it be solved? thanks!

From, Mid, To coordinates drillhole segment

Very nice tool to visualize drillhole data in 3D.

It works fine, but the _From, _Mid, _To coordinates listed under actions are not consistent (too small by a factor of about 300) to the length and end-point of the interval (UTM coordinates). The LineString coordinates, however appear to be correct.

Thanks

fid: 4281
holeid: FFS033
from: 315.09
to: 455
natmapcode: P
_From_x: 312991.664
_From_y: 6067976.116
_From_z: 75.838
_To_x: 312992.022
_To_y: 6067976.529
_To_z: 75.11
_Mid_x: 312991.843
_Mid_y: 6067976.323
_Mid_z: 75.474
wkt_geom fid holeid from to natmapcode _From_x _From_y _From_z _To_x _To_y _To_z _Mid_x _Mid_y _Mid_z
LineStringZ (312991.66417954984353855 6067976.11635233368724585 75.83808235355040495, 312992.0224152360460721 6067976.52883914951235056 75.11033114648461151, 312992.41646834404673427 6067976.98189552128314972 74.31066742201559805, 312992.81090880080591887 6067977.43472575955092907 73.51106658328804144, 312993.20573643612442538 6067977.88732957560569048 72.71152863930672083, 312993.60095107957022265 6067978.33970668073743582 71.91205359904192562, 312993.99655256047844887 6067978.79185678716748953 71.11264147142948389, 312994.39254070800961927 6067979.24377960525453091 70.31329226537070554, 312994.78891535109141842 6067979.6954748472198844 69.51400598973239653, 312995.18567631841870025 6067980.14694222528487444 68.71478265334687308, 312995.58282343851169571 6067980.59818145073950291 67.91562226501193322, 312995.98035653965780511 6067981.04919223580509424 67.11652483349085685, 312996.37827544996980578 6067981.49997429270297289 66.31749036751241988, 312996.77657999732764438 6067981.95052733365446329 65.51851887577085165, 312997.17527000932022929 6067982.40085107181221247 64.71961036692584912, 312997.57434531347826123 6067982.85094521846622229 63.9207648496026053, 312997.97380573698319495 6067983.30080948676913977 63.12198233239175238, 312998.37365110690006986 6067983.75044358987361193 62.32326282384937599, 312998.7738812500028871 6067984.19984724093228579 61.52460633249702937, 312999.17449599294923246 6067984.64902015216648579 60.72601286682169786, 312999.57549516210565343 6067985.09796203766018152 59.92748243527582019, 312999.97687858360586688 6067985.54667260963469744 59.12901504627726723, 313000.37864608346717432 6067985.99515158217400312 58.33061070820934191, 313000.78079748747404665 6067986.44339866936206818 57.53226942942077926, 313001.1833326211781241 6067986.89141358435153961 56.73399121822573221, 313001.58625130989821628 6067987.33919604029506445 55.93577608290378578, 313001.98955337872030213 6067987.78674575220793486 55.13762403169992155, 313002.39323865261394531 6067988.23406243324279785 54.33953507282454609, 313002.79730695631587878 6067988.6811457984149456 53.54150921445346967, 313003.20175811427179724 6067989.1279955618083477 52.74354646472789909, 313003.60659195081098005 6067989.57461143750697374 51.94564683175443776, 313004.01180828997166827 6067990.02099314052611589 51.14781032360509272, 313004.41740695561747998 6067990.46714038494974375 50.35003694831723919, 313004.82338777149561793 6067990.91305288672447205 49.55232671389365606, 313005.22975056094583124 6067991.35873035993427038 48.75467962830249036, 313005.63649514730786905 6067991.80417251959443092 47.95709569947726436, 313006.04332725744461641 6067992.24964785762131214 47.15957494275758677, 313006.45024688920238987 6067992.69515636283904314 46.36211736689665486, 313006.85725404048571363 6067993.14069802407175303 45.56472298064665694, 313007.26434870908269659 6067993.5862728301435709 44.76739179275877945, 313007.67153089283965528 6067994.03188076987862587 43.97012381198322117, 313008.07880058960290626 6067994.47752183303236961 43.17291904706915773, 313008.48615779721876606 6067994.92319600749760866 42.37577750676478416, 313008.89360251353355125 6067995.36890328302979469 41.57869919981727946, 313009.30113473633537069 6067995.81464364845305681 40.78168413497282785, 313009.7087544635287486 6067996.2604170935228467 39.98473232097661167, 313010.11646169290179387 6067996.70622360613197088 39.18784376657281143, 313010.52425642230082303 6067997.15206317603588104 38.39101848050460575, 313010.93213864957215264 6067997.59793579205870628 37.59425647151416428, 313011.34010837250389159 6067998.04384144302457571 36.79755774834266902, 313011.74816558894235641 6067998.48978011775761843 36.00092231973027879, 313012.15631029673386365 6067998.93575180601328611 35.20435019441617186, 313012.56454249372472987 6067999.38175649661570787 34.40784138113851043, 313012.97286217770306394 6067999.82779417838901281 33.61139588863445482, 313013.38126934645697474 6068000.27386484015733004 32.8150137256401635, 313013.78976399783277884 6068000.71996847074478865 32.01869490089079306, 313014.19834612967679277 6068001.16610505897551775 31.22243942312049469, 313014.60701573977712542 6068001.61227459460496902 30.42624730106242126, 313015.01577282598009333 6068002.05847706645727158 29.63011854344871665, 313015.42461738607380539 6068002.50471246335655451 28.8340531590105229, 313015.83354941790457815 6068002.95098077412694693 28.03805115647798019, 313016.24256891926052049 6068003.39728198852390051 27.24211254458021969, 313016.65167588798794895 6068003.84361609444022179 26.4462373320453743, 313017.06087032187497243 6068004.28998308163136244 25.65042552760056793, 313017.47015221870969981 6068004.73638293892145157 24.85467713997192263, 313017.87952157633844763 6068005.18281565513461828 24.05899217788455502, 313018.28897839254932478 6068005.62928121909499168 23.26337065006257987, 313018.69852266513044015 6068006.07577962055802345 22.46781256522910297, 313019.10815439186990261 6068006.52231084834784269 21.67231793210622826, 313019.51787357061402872 6068006.96887489128857851 20.87688675941505068, 313019.92768019915092736 6068007.41547173820436001 20.08151905587566333, 313020.33757427526870742 6068007.86210137791931629 19.28621483020715388, 313020.74755579675547779 6068008.30876379925757647 18.49097409112760459, 313021.157624761457555 6068008.75545899197459221 17.69579684735409231, 313021.56778116710484028 6068009.20218694489449263 16.90068310760268488, 313021.97802501154365018 6068009.64894764684140682 16.10563288058844478, 313022.38835629256209359 6068010.0957410866394639 15.31064617502543257, 313022.79877500789007172 6068010.54256725311279297 14.51572299962669987, 313023.20928115537390113 6068010.9894261360168457 13.72086336310429289, 313023.6198747328016907 6068011.43631772417575121 12.92606727416924883, 313024.03055573796154931 6068011.88324200548231602 12.1313347415316013, 313024.4413241685833782 6068012.33019897062331438 11.33666577390037666, 313024.8521800225134939 6068012.77718860749155283 10.54206037998359236, 313025.26312329748179764 6068013.22421090491116047 9.74751856848826215, 313025.67415399133460596 6068013.67126585263758898 8.95304034812038907, 313026.0852721018018201 6068014.11835343949496746 8.15862572758497073, 313026.49666316621005535 6068014.56545366533100605 7.36435953780770003, 313026.90832716372096911 6068015.01256641838699579 6.5702418265627589, 313027.32026407343801111 6068015.45969158597290516 5.77627264160080944, 313027.73247387452283874 6068015.9068290563300252 4.98245203064898856, 313028.14495654602069408 6068016.35397871676832438 4.18878004141089821, 313028.55771206697681919 6068016.80114045552909374 3.39525672156659875, 313028.97074041632004082 6068017.24831415992230177 2.60188211877260134, 313029.38404157297918573 6068017.6954997181892395 1.80865628066186046, 313029.79761551588308066 6068018.14269701763987541 1.01557925484376632, 313030.21146222384413704 6068018.58990594651550055 0.22265108890413732, 313030.6255816756747663 6068019.03712639212608337 -0.57012816959478796, 313031.03997385012917221 6068019.48435824178159237 -1.36275847311435694, 313031.45463872596155852 6068019.93160138372331858 -2.1552397741395124, 313031.86957628180971369 6068020.37885570619255304 -2.94757202517879868, 313032.28478649631142616 6068020.82612109649926424 -3.73975517876436925, 313032.70026934804627672 6068021.27339744195342064 -4.5317891874519951, 313033.11602481553563848 6068021.72068462986499071 -5.32367400382107192, 313033.53205287730088457 6068022.16798254940658808 -6.11540958047462713, 313033.94835351180518046 6068022.61529108695685863 -6.90699587003932702, 313034.36492669745348394 6068023.06261013075709343 -7.69843282516548655, 313034.78177241259254515 6068023.50993956904858351 -8.48972039852707283, 313035.1988906356273219 6068023.95727928820997477 -9.28085854282171852, 313035.61628134472994134 6068024.40462917741388083 -10.07184721077072354, 313036.03394451824715361 6068024.85198912303894758 -10.86268635511906311, 313036.45188013429287821 6068025.29935901425778866 -11.65337592863540017, 313036.8700881710392423 6068025.74673873744904995 -12.44391588411208893, 313037.28856860665837303 6068026.1941281808540225 -13.23430617436518197, 313037.70732141914777458 6068026.64152723178267479 -14.02454675223443914, 313038.12634658656315878 6068027.08893577847629786 -14.81463757058333464, 313038.54564408690202981 6068027.53635370824486017 -15.60457858229906591, 313038.96521389804547653 6068027.98378090932965279 -16.39436974029255722, 313039.38505599793279544 6068028.43121726904064417 -17.18401099749847205, 313039.80517036438686773 6068028.87866267561912537 -17.97350230687521844, 313040.22555697523057461 6068029.32611701544374228 -18.76284362140495432, 313040.64621580828679726 6068029.77358017768710852 -19.55203489409359463, 313041.06714684120379388 6068030.22105204872786999 -20.34107607797082906, 313041.48835005168803036 6068030.66853251680731773 -21.12996712609011141, 313041.9098254173877649 6068031.1160214701667428 -21.91870799152868443, 313042.33157291583484039 6068031.56351879611611366 -22.70729862738757276, 313042.75359252461930737 6068032.01102438196539879 -23.49573898679160422, 313043.17588422127300873 6068032.45853811595588923 -24.28402902288940979, 313043.59844798326957971 6068032.90605988539755344 -25.07216868885342365, 313044.0212837879662402 6068033.35358957760035992 -25.86015793787990802, 313044.44439161277841777 6068033.80112708080559969 -26.64799672318894963, 313044.86777143506333232 6068034.24867228232324123 -27.43568499802446325, 313045.29142323206178844 6068034.6962250703945756 -28.22322271565420948, 313045.71534698107279837 6068035.14378533232957125 -29.01060982936979471, 313046.13954265927895904 6068035.59135295636951923 -29.79784629248668182, 313046.56401024380465969 6068036.03892782889306545 -30.58493205834419726, 313046.98874971183249727 6068036.48650983907282352 -31.37186708030553461, 313047.41374339029425755 6068036.93405880965292454 -32.15868363591232537, 313047.8389912522980012 6068037.38157464098185301 -32.94538169552257045, 313048.26449327089358121 6068037.8290572315454483 -33.73196122951166132, 313048.69024941907264292 6068038.27650648169219494 -34.51842220827240482, 313049.11625966988503933 6068038.72392228990793228 -35.30476460221500901)

Geoscience stopped working and won't load after re-install

I am currently using QGIS 3.24.2 and Geoscience has been problematic i.e. not consistent and has now stopped working. I have reinstalled three times and get the error below when trying to load/start Geoscience.

Couldn't load plugin 'geoscience' due to an error when calling its classFactory() method

IndexError: list index out of range
Traceback (most recent call last):
File "C:\PROGRA1/QGIS321.2/apps/qgis/./python\qgis\utils.py", line 423, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience_init
.py", line 36, in classFactory
return Geoscience(iface)
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\geoscience.py", line 52, in init
self.drillManager = DrillManager()
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\DrillManager.py", line 66, in init
self.readProjectData()
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\DrillManager.py", line 1110, in readProjectData
self.sectionManager.readProjectData()
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionManager.py", line 703, in readProjectData
self.createSection(name, startx, starty, endx, endy, width, layerList, elevationList, False)
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionManager.py", line 502, in createSection
layer = self.sectionPlaLayer()
File "C:\Users/Main/ApData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionManager.py", line 527, in sectionPlanLayer
layer = self.createSectionPlanLayer()
File "C:\Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geoscience\SectionManager.py", line 626, in createSectionPlanLayer
crs = self.sectionReg[0].sourceLayers[0].crs()
IndexError: list index out of range

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
QGIS version: 3.24.2-Tisler Tisler, 13c1a028

Python Path:
C:/PROGRA1/QGIS321.2/apps/qgis/./python
C:/Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA1/QGIS321.2/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.24.2\bin\python39.zip
C:\PROGRA1\QGIS321.2\apps\Python39\DLLs
C:\PROGRA1\QGIS321.2\apps\Python39\lib
C:\Program Files\QGIS 3.24.2\bin
C:\PROGRA1\QGIS321.2\apps\Python39
C:\PROGRA1\QGIS321.2\apps\Python39\lib\site-packages
C:\PROGRA1\QGIS321.2\apps\Python39\lib\site-packages\GDAL-3.4.2-py3.9-win-amd64.egg
C:\PROGRA1\QGIS321.2\apps\Python39\lib\site-packages\win32
C:\PROGRA1\QGIS321.2\apps\Python39\lib\site-packages\win32\lib
C:\PROGRA1\QGIS321.2\apps\Python39\lib\site-packages\Pythonwin
C:/Users/Main/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\Main\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows
E:/Dropbox/GIS Projects

cannot load plugin geoscience when calling its classFactory() method

Cannot load plugin 'geoscience' due to an error when calling its classFactory() method

I am using QGIS 3.8 but also confirmed on 3.4. Have removed the geoscience folder under python directory and re-installed. Have removed all layers created by the plugin in the active QGIS project and re-installed. None of these attempts rectified the issue.

Here's the error message:

IndexError: list index out of range
Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.8/apps/qgis/./python\qgis\utils.py", line 334, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience_init
.py", line 36, in classFactory
return Geoscience(iface)
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\geoscience.py", line 51, in init
self.drillManager = DrillManager()
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\DrillManager.py", line 65, in init
self.readProjectData()
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\DrillManager.py", line 774, in readProjectData
self.sectionManager.readProjectData()
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\SectionManager.py", line 686, in readProjectData
self.createSection(name, startx, starty, endx, endy, width, layerList, elevationList, False)
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\SectionManager.py", line 485, in createSection
layer = self.sectionPlanLayer()
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\SectionManager.py", line 510, in sectionPlanLayer
layer = self.createSectionPlanLayer()
File "C:/Users/david/AppData/Roaming/QGIS/QGIS3\profiles\DWA/python/plugins\geoscience\SectionManager.py", line 609, in createSectionPlanLayer
crs = self.sectionReg[0].sourceLayers[0].crs()
IndexError: list index out of range

Thank you for your help.

Desurvey Issue

I find problem while trying to use drilling desurvey hole command. this message appear : The data source for the layer could not be found. I tried with your files and it works but it doesn't work with my data!! is there any explanation to that? For information, I use meter unit for parameters such as elevation, depth...

Please consider moving some tools to Processing

This plugin appears a mix of very specific geological tools and very generic ones. It would be very good if you could move the generic ones to main Processing, so they could profit from more contributions and would become useful for more users.
Thanks.

Local Grid transformation not working (feet issue?)

I'm having trouble getting the local grid projection to work. I'm wondering if the tool requires to the input coordinates to be metric, because the points are ending up about x2 as far off to the opposite side. Sorry in advance for being American and still using feet (and "us-feet" at that) :)

x-epsg6597 y-epsg6597 x-local y-local
1263187.502 215893.9240 25665.0016 15680.6409
1263307.439 215889.4943 25785.0016 15678.5953
1263251.740 213087.0128 25785.0016 12875.5953
1263131.732 213087.8976 25665.0016 12874.0953

survey/DH data import

Hi! Plugin looks super useful, but not clear how to incorporate survey or other downhole data. Projecting Desurvey trace works fine. But "Survey Layer" dropdown under Drilling Data is always empty, as are all dropdowns on "Display Trace". No option to select Have tried importing CSVs with collar and downhole data, but dropdowns always remain blank. Unsure of what I am doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.