gustavowillam / SmartMapPlugin

Plugin Qgis3.10.x para interpolação utilizando Krigagem Ordinária (OK), Machine Learning (ML) e Geração de Zonas de Manejo
https://github.com/gustavowillam/SmartMapPlugin
GNU General Public License v3.0
52 stars 13 forks source link

Outline polygon function doesn't work with Multypoligons #14

Closed dragonfly-lover closed 2 years ago

dragonfly-lover commented 2 years ago

Hallo @gustavowillam , i'm trying to use this plugin with kubuntu 21.04, qgis 3.16 Basically, i can point out two problems

I have installed not only recommended dependencies, but also pandas, scipy, scikit-learn, scikit-fuzzy, pysal e pyKrige.

I have two possible bugs

1) when i import "Pluvio 2017" files it imports correctly, but when i try to use an outline polygon:

a) outline poligon is not imported correctly (it shows like a line and not like latium outline).

b) after import it wipes all imported data.

anyway when i try to launch interpolation it crashes suddenly

imported pluvio latium latium borders error Data.zip

gustavowillam commented 2 years ago

Hi! Looking at your contour polygon, I noticed that you have several smaller polygons in the southern part of the map. Currently the plugin cuts to layers of the type polygons. In this case your layer is multpoligons. I used your data and did the interpolation without using the contour polygon. First, resize the maximum and minimum values of X and Y to have a greater coverage of the map as shown in the figure below.

image

Then perform the interpolation without the contour polygon.

image

With the map interpolated in QGIS, make the cut through the Menu (Raster -> Extraction -> Clip raster by Mask Layer)

image

Here is the QGIS project with the data used

Thanks!

ExampleQGIS.zip

dragonfly-lover commented 2 years ago

God bless you Gustavo! It works like a charm in the way you wrote me. Your plugin deserves to be integrated in the qgis general workflow, so useful it is!

Just want to know what to do with the issue. In case someone uses a multypoligons crop layer there has to be at least a messagebox that explains why it can't be used. Would you prefer I change the title or close the comment and open another issue?

Many thanks again!

gustavowillam commented 2 years ago

Thanks a lot! The plugin is constantly improving. In the next version, we intend to solve the issue of multiple polygons in the clipping of the interpolation areas. You can change the title and close the comment, please.