Re: [Qgis-user] Problem saving project to geopkg

2023-07-25 Thread Michael Dufty via QGIS-User
The error message includes MedicalDebt.mldata as a project name.  I believe 
this is the file the memorylayer saver plugin creates to save the temporary 
layers to.   Have you tried it with that plugin disabled?

I'm really dependent on the memory layer saver plugin, and have abandoned 
investigation of saving files to geopackage because memorylayer saver does not 
seem to support it.

Michael Dufty

From: QGIS-User  On Behalf Of David Strip 
via QGIS-User
Sent: Thursday, July 20, 2023 12:27 PM
To: qgis-user 
Subject: [Qgis-user] Problem saving project to geopkg

I created a geopkg by exporting a layer from my project to a new geopkg. I then 
exported a couple of other layers to the geopkg. I then did File->Save To-> 
geopkg and saved my project to the geopkg. So far, so good. Now I made some 
changes to the project and tried to save it and now I get a python error
ValueError: Cannot open 
geopackage:C:/Users/David/Documents/Geodata/Maps/RIP_Medical_Debt.gpkg?projectName=MedicalDebt.mldata
How do I fix this?
Thanks

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Clipping ecw to mask not working

2023-07-25 Thread Michael Dufty via QGIS-User
I'm having issues trying to clip ecw images to a mask layer.
Using raster-extraction-clip raster to mask layer.
Default parameters.
The tool runs extremely quickly (successfullyin 0.12 seconds), but produces a 
raster entirely black (0,0,0 for all pixels).  With the correct extent of the 
mask layer.
If I tick the box to create an alpha output band it produces an entirely 
transparent result.

Source and mask layers both in EPSG 28350

Anyone else having this issue?  I cannot see any bug reports.
Tried in 328.8, 3.28.9, 3.32.0 and 3.32.1 with same result.

Seems to work fine if input raster is a tif.

___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [QGIS-it-user] R e QGIS

2023-07-25 Thread Andrea Giudiceandrea via QGIS-it-user

Il 25/07/2023 13:12, Federico Gianoli ha scritto:
ho eseguito la procedura anche da R e l'output è il risultato atteso che 
ho inserito nella cartella.


Di norma una qualsiasi procedura ha un output di testo (il log di 
esecuzione) che indica, fra le altre cose, la versione di R, eventuali 
parametri impostati ed eventuali errori.
Il codice del plugin legge tale output testuale per verificare se ci 
siano le stringhe 'Error ', 'Execution halted' o 'Error:' ed è 
"leggendo" tale output che il codice del plugin va in errore.


Siccome molto probabilmente l'output è codificato nel codec di sistema 
(solitamente Windows-1252 su Windows in Italiano) mentre il codice 
Python del plugin interpreta l'output nel codec UTF-8, Python emetterà 
l'errore da te riscontrato se sono presenti caratteri non ASCII in tale 
output testuale.
Questa è l'ipotesi che ho fatto per la causa del problema da te 
riscontrato. Puoi verificarla controllando se nell'output testuale siano 
presenti caratteri non ASCII.


Se l'output è in italiano, è probabile che esso contenga caratteri non 
ASCII, mentre se è in inglese è molto probabile che esso non contenga 
caratteri non ASCII.


A presto.

Andrea
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] draw polygon

2023-07-25 Thread Prisma via QGIS-User

Hello Richard,
it works!
Thank you!

Il 25/07/2023 10:36, Richard McDonnell ha scritto:


Hi Salvatore,

You could try:

1.Selecting/Highlighting Polygon 1, which should also highlight the 
area you want to cut into area 4.


2.Using the Split Features tool, you can then create a cutline to clip 
it successfully, something like what’s shown below in green, should work.


The polygons 2 and 3 shouldn’t be altered, as the Split feature tool 
will only alter the Selected/Highlighted Polygon 1


.

Hope that helps.

Regards,

Richard


——
Richard McDonnell MSc GIS, FME Certified Professional
/FRM Data Management/

——
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw

——
To send me files larger than 30MB, please use the link below 
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie


Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/



——
MSc GIS, FME Certified Professional

——
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 46 942 2409
https://https://gov.ie/opw 

——
Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/ 



*From:*QGIS-User  *On Behalf Of 
*Prisma via QGIS-User

*Sent:* 24 July 2023 10:59
*To:* qgis-user@lists.osgeo.org
*Subject:* [Qgis-user] draw polygon

Hello,

I need to draw a polygon, the blue one indicated in the figure below:

I tried with the split features toll but I received an error. Any 
solution?


Thank you.

Regards,

Salvatore


--
Salvatore Mellino
Dottore di Ricerca/Ph.D.

Prisma s.r.l. - Progettazione e Realizzazione Impianti e Servizi di 
Monitoraggio Ambientale
Via Monsignor Bonaventura Gargiulo, 13 - 80065 S.Agnello (NA)
Tel./Fax: +39 081 8072476
salvatore.mell...@prismambiente.it
www.prismambiente.it
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Removal of overlap geometries within the same layer - merge to largest neighbor polygon

2023-07-25 Thread Bernhard Ströbl via QGIS-User
Hi Andreas,

the Algorithm "Eliminate selected polygons" was originally created to address 
these questions. I usually imported the data into GRASS ran a clean there and 
reexported the results into a non topolgical dataset. Thus overlapping areas 
and gaps (only if closed) are identified and can be eliminated using the 
algorithm named above (selecting only a certain area-circumference relation) by 
merging it with the adjacent polygon with the smallest/largest area or the 
longest common boundary.
For your case you could have used this algorithm after the union to identify 
overlaps.
As for an algorithm that does all this in one go: You would need something that 
detects holes between polygons without the help of a toplogical data format. 

regards
Bernhard

> Andreas Neumann via QGIS-User  hat am 25.07.2023 
> 12:01 CEST geschrieben:
> 
>  
> Hi,
> 
> A friend of mine has a dirty input data set with lots of overlapping 
> geometries (within the same layer) and asked me if there is a tool 
> within QGIS to automatically remove the overlaps and assign the 
> overlapping area to the neighbor polygon with the largest area.
> 
> The solution was surprisingly hard to find, although I am pretty sure 
> there are multiple combinations of algorithms that would solve the 
> problem. Here is the solution I came up with: 
> https://github.com/qgis-ch/overlap_removal/tree/main [1]- perhaps you 
> have better ideas - more elegant solutions?
> 
> Wouldn't it be great if QGIS had a processing tool to solve this overlap 
> cleaning within the same layer "out of the box" without having to use a 
> graphical model or a more or less complicated sequence of algorithms in 
> the processing toolbox? Apparently, ArcGIS has such a tool ...
> 
> Saga and GRASS also might have such tools - but I couldn't get the SAGA 
> based QGIS plugin "Dissect and dissolve overlaps" 
> (https://plugins.qgis.org/plugins/dissect_dissolve_overlaps).
> 
> The same problem exists for automatically filling small gaps in the 
> polygon data set ...
> 
> Andreas
> 
> 
> 
> Links:
> --
> [1] 
> https://github.com/qgis-ch/overlap_removal/tree/main___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [QGIS-it-user] R e QGIS

2023-07-25 Thread Federico Gianoli
Grazie,
ho eseguito la procedura anche da R e l'output è il risultato atteso che ho
inserito nella cartella.
Il codice che ho lanciato su R è questo
https://gist.github.com/fgianoli/10ecad31c52a36f87b6f260bb3076f63
e non mi ha dato nessun errore, vuoi che ti esporti qualche log specifico?
direi che non contiene caratteri strani...
QGIS lo sto usando in inglese, R Studio in italiano. Può dipendere dalla
lingua di QGIS l'errore?

Federico

Il giorno mar 25 lug 2023 alle ore 13:03 Andrea Giudiceandrea <
andreaer...@libero.it> ha scritto:

> Il 25/07/2023 11:21, Federico Gianoli ha scritto:
> > Allego anche il dato di risultato atteso (popchangeR.tif)
>
> > il path dei dati di input è D:\Master\LC\LC_reclassified_clipped.tif e
> > per il secondo file D:\Master\LC\pop_eu.tif
>
>
> Ciao Federico,
> nel path dei layer non sembrano presenti caratteri non ASCII.
> Hai eseguito la procedura anche direttamente in R? Qual è l'output
> testuale della procedura eseguita in R? Contiene caratteri non ASCII? È
> in italiano o in inglese?
>
> A presto.
>
> Andrea
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] Removal of overlap geometries within the same layer - merge to largest neighbor polygon

2023-07-25 Thread Nyall Dawson via QGIS-User
On Tue, 25 July 2023, 8:02 pm Andreas Neumann via QGIS-User, <
qgis-user@lists.osgeo.org> wrote:

> Hi,
>
> A friend of mine has a dirty input data set with lots of overlapping
> geometries (within the same layer) and asked me if there is a tool within
> QGIS to automatically remove the overlaps and assign the overlapping area
> to the neighbor polygon with the largest area.
>
> The solution was surprisingly hard to find, although I am pretty sure
> there are multiple combinations of algorithms that would solve the problem.
> Here is the solution I came up with: 
> https://github.com/qgis-ch/overlap_removal/tree/main
> - perhaps you have better ideas - more elegant solutions?
>
> Wouldn't it be great if QGIS had a processing tool to solve this overlap
> cleaning within the same layer "out of the box" without having to use a
> graphical model or a more or less complicated sequence of algorithms in the
> processing toolbox? Apparently, ArcGIS has such a tool ...
>
> Saga and GRASS also might have such tools - but I couldn't get the SAGA
> based QGIS plugin "Dissect and dissolve overlaps" (
> https://plugins.qgis.org/plugins/dissect_dissolve_overlaps).
>
> The same problem exists for automatically filling small gaps in the
> polygon data set ...
>

The recently introduced geos tools for coverage layer cleaning and
simplification seem like a good fit here! See eg
https://lin-ear-th-inking.blogspot.com/2022/08/validating-polygonal-coverages-in-jts.html?m=1

These tools would ideally be exposed through the qgis processing toolbox.

Nyall

Andreas
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Removal of overlap geometries within the same layer - merge to largest neighbor polygon

2023-07-25 Thread Wouter Impens via QGIS-User
Hi Andreas,

You could do a ' self-intersect'  of the polygon layer, calculate the area,
select polygons under specific area (assuming they're small overlaps) and
run the ' eliminate selected polygons' tool.
The GRASS tool v.clean offers some solutions too.

Greetings
Wouter

Op di 25 jul 2023 om 12:02 schreef Andreas Neumann via QGIS-User <
qgis-user@lists.osgeo.org>:

> Hi,
>
> A friend of mine has a dirty input data set with lots of overlapping
> geometries (within the same layer) and asked me if there is a tool within
> QGIS to automatically remove the overlaps and assign the overlapping area
> to the neighbor polygon with the largest area.
>
> The solution was surprisingly hard to find, although I am pretty sure
> there are multiple combinations of algorithms that would solve the problem.
> Here is the solution I came up with: 
> https://github.com/qgis-ch/overlap_removal/tree/main
> - perhaps you have better ideas - more elegant solutions?
>
> Wouldn't it be great if QGIS had a processing tool to solve this overlap
> cleaning within the same layer "out of the box" without having to use a
> graphical model or a more or less complicated sequence of algorithms in the
> processing toolbox? Apparently, ArcGIS has such a tool ...
>
> Saga and GRASS also might have such tools - but I couldn't get the SAGA
> based QGIS plugin "Dissect and dissolve overlaps" (
> https://plugins.qgis.org/plugins/dissect_dissolve_overlaps).
>
> The same problem exists for automatically filling small gaps in the
> polygon data set ...
>
> Andreas
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [QGIS-it-user] R e QGIS

2023-07-25 Thread Andrea Giudiceandrea via QGIS-it-user

Il 25/07/2023 11:21, Federico Gianoli ha scritto:

Allego anche il dato di risultato atteso (popchangeR.tif)


il path dei dati di input è D:\Master\LC\LC_reclassified_clipped.tif e 
per il secondo file D:\Master\LC\pop_eu.tif



Ciao Federico,
nel path dei layer non sembrano presenti caratteri non ASCII.
Hai eseguito la procedura anche direttamente in R? Qual è l'output 
testuale della procedura eseguita in R? Contiene caratteri non ASCII? È 
in italiano o in inglese?


A presto.

Andrea
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user


Re: [Qgis-user] draw polygon

2023-07-25 Thread Richard McDonnell via QGIS-User
Hi Salvatore,
You could try:

1.   Selecting/Highlighting Polygon 1, which should also highlight the area 
you want to cut into area 4.

2.   Using the Split Features tool, you can then create a cutline to clip 
it successfully, something like what’s shown below in green, should work.

The polygons 2 and 3 shouldn’t be altered, as the Split feature tool will only 
alter the Selected/Highlighted Polygon 1

[cid:image001.png@01D9BEEB.9C9A7320].

Hope that helps.
Regards,

Richard



——
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

——
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw

——
To send me files larger than 30MB, please use the link below 
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie

Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/

——
MSc GIS, FME Certified Professional

——
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
——
M +353 87 688 5964 T +353 46 942 2409
https://https://gov.ie/opw

——
Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/
From: QGIS-User  On Behalf Of Prisma via 
QGIS-User
Sent: 24 July 2023 10:59
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] draw polygon

Hello,

I need to draw a polygon, the blue one indicated in the figure below:

[cid:image002.png@01D9BEEB.9C9A7320]

I tried with the split features toll but I received an error. Any solution?

Thank you.

Regards,

Salvatore


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Removal of overlap geometries within the same layer - merge to largest neighbor polygon

2023-07-25 Thread Andreas Neumann via QGIS-User

Hi,

A friend of mine has a dirty input data set with lots of overlapping 
geometries (within the same layer) and asked me if there is a tool 
within QGIS to automatically remove the overlaps and assign the 
overlapping area to the neighbor polygon with the largest area.


The solution was surprisingly hard to find, although I am pretty sure 
there are multiple combinations of algorithms that would solve the 
problem. Here is the solution I came up with: 
https://github.com/qgis-ch/overlap_removal/tree/main [1]- perhaps you 
have better ideas - more elegant solutions?


Wouldn't it be great if QGIS had a processing tool to solve this overlap 
cleaning within the same layer "out of the box" without having to use a 
graphical model or a more or less complicated sequence of algorithms in 
the processing toolbox? Apparently, ArcGIS has such a tool ...


Saga and GRASS also might have such tools - but I couldn't get the SAGA 
based QGIS plugin "Dissect and dissolve overlaps" 
(https://plugins.qgis.org/plugins/dissect_dissolve_overlaps).


The same problem exists for automatically filling small gaps in the 
polygon data set ...


Andreas



Links:
--
[1] https://github.com/qgis-ch/overlap_removal/tree/main___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [QGIS-it-user] R e QGIS

2023-07-25 Thread Federico Gianoli
Grazie mille Andrea,

i dati sono a questo link:
https://drive.google.com/drive/folders/1GvAETuFR9uAwaqP54ECAfqWSYqvwVHU8?usp=sharing
Allego anche il dato di risultato atteso (popchangeR.tif)

il path dei dati di input è D:\Master\LC\LC_reclassified_clipped.tif e per
il secondo file  D:\Master\LC\pop_eu.tif

Apro un ticket anche nelle issue del plugin, grazie mille del supporto,.

Fede

Il giorno mar 25 lug 2023 alle ore 00:40 Andrea Giudiceandrea via
QGIS-it-user  ha scritto:

> Ciao Federico,
> sarebbe meglio se allegassi il file effettivamente usato o lo rendessi
> disponibile online. Inoltre, potresti specificare il path completo dei
> layer di input e di output e il log completo di esecuzione?
>
> L'errore è generato da quella parte di codice del plugin che "legge"
> l'output di R per verificare che ci siano errori. Sembrerebbe che,
> benché l'output sia atteso con codifica UTF-8, R invece lo invii con
> un'altra codifica (probabilmente la codifica di sistema in Windows).
>
> Ti consiglio comunque di segnalare il problema agli sviluppatori del
> plugin.
>
> A presto.
>
> Andrea
>
> Il 24/07/2023 09:33, Federico Gianoli ha scritto:
> > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in
> > position 21: invalid continuation byte
> > Execution failed after 37.93 seconds
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-user
>
___
QGIS-it-user mailing list
QGIS-it-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/qgis-it-user