GithubHelp home page GithubHelp logo

thangqd / becagis Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 5.95 MB

BecaGIS GeoProcessing for QGIS

License: GNU General Public License v3.0

Python 29.83% Makefile 1.03% Batchfile 0.34% Shell 0.20% QML 0.29% Jupyter Notebook 68.31%
geoprocessing qgis-plugin spatial-analysis

becagis's Introduction

Thang Quach

GitHub Badge LinkedIn Badge CV Badge Donate Badge Visitor Badge

About me

  • 20 years’ experience in GIS.
  • An enthusiast and active contributor to GeoSpatial Open Source, Open Standards, and Open Data Communities.
  • Research Interests & Skills: Information system design, Geodatabase design, project planning and management, building desktop/ web/ mobile GIS applications; LiDAR, 3D GIS, geoprocessing, computational geometry, geospatial big data, cartography, data visualization, and data science.
  • Qualifications: MSc in Cartography, Remote Sensing and GIS, BSc in Mathematics and Computer Science, BA in English Linguistics and Literature. More information about me and my projects can be found on My Homepage

πŸ’—πŸ’—πŸ’— Nice to meet you all!


Projects


flight_routes github stats Top Langs

becagis's People

Contributors

thangqd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

becagis's Issues

QgsProcessingParameterNumber(): arguments did not match any overloaded call: overload 1: argument 'type' has unexpected type 'int' overload 2: argument 1 has unexpected type 'str'

Getting this error on startup:

An error has occurred while executing Python code:

TypeError: QgsProcessingParameterNumber(): arguments did not match any overloaded call: overload 1: argument 'type' has unexpected type 'int' overload 2: argument 1 has unexpected type 'str'
Traceback (most recent call last):
File "/Users/bart/Library/Application Support/QGIS/QGIS3/profiles/bart/python/plugins/becagis/processing_provider/Vect_DirectionalMerge.py", line 122, in initAlgorithm
QgsProcessingParameterNumber(
TypeError: QgsProcessingParameterNumber(): arguments did not match any overloaded call:
overload 1: argument 'type' has unexpected type 'int'
overload 2: argument 1 has unexpected type 'str'

Python version: 3.11.8 | packaged by conda-forge | (main, Feb 16 2024, 20:52:50) [Clang 16.0.6 ]
QGIS version: 3.36.0-Maidenhead Maidenhead, exported

Plugin approval

Problem

Please the link for the homepage doesn't resolve. Please link it to the repo rather

Support of the graphical modeler in QGIS

Dear team,

I am wondering why the BecaGIS algorithms as Skeleton, Isolation or "Merge lines in direction" do not support the QGIS graphical modeler as they do not function properly within it.

As an example, I was trying to skeletonize a bucnh of polygons within a pipeline, pyping out a single dissolved polygon.

I thought that the problem would just occur because no features are selected when outputting a layer in the graphical modeler. Moreover, this is not possible.

The most simple but usual strong solution is just to modify the plugin and so I want ahead to just select all features by input_layer.selectByExpression("$id") real quick below the feature count restriction in Vect_Skeleton.py, line 192.

However, it just yields in an empty result:
snipping

For reproducability, just load the appended tif and execute the appended model onto it. The dissolved layer works but no skeleton layer is generated. In a second step, manually execute "Skeleton" from Beca-GIS onto the dissolved layer, this works.

Materials:
materials.zip

I think the plugin would really benefit from a modeler support since post-processing needs to be applied as well...

Skeleton crashes

Hi,
Nice set of tools, looks promissing! But the skeleton tool keeps crashing on me. I get the following crash report:

Report Details

Python Stack Trace

Windows fatal exception: access violation

Thread 0x00001224 (most recent call first):
  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python/plugins\processing\gui\AlgorithmExecutor.py", line 72 in execute
    results, ok = alg.run(parameters, context, feedback, {}, False)
  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python/plugins\processing\core\Processing.py", line 187 in runAlgorithm
    ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False)
Windows fatal exception:   File access violation"

C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python/plugins\processing\tools\general.py", line 108 in run
  File "C:\Users/web/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\becagis\becagislibrary\voronoi.py", line 76 in skeleton
    voronoipolygon = processing.run('qgis:voronoipolygons', parameters4)
  File "C:\Users/web/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\becagis\processing_provider\Vect_Skeleton.py", line 221 in processAlgorithm
    mem_layers.append(skeleton(selected_feature, unique_field, density, tolerance))

Current thread 0x00004b20 (most recent call first):
  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python/plugins\processing\ProcessingPlugin.py", line 395 in executeAlgorithm
    dlg.exec_()
  File "C:\PROGRA~1/QGIS32~1.3/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", line 234 in executeAlgorithm
    self.executeWithGui.emit(alg.id(), self, self.in_place_mode, False)

Stack Trace
No stack trace is available.

QGIS Info
QGIS Version: 3.24.3-Tisler
QGIS code revision: cf22b74e
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.4.3
Running against GDAL: 3.4.3

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.22621

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.