Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-06-01 Thread Abdul Raheem Siddiqui via QGIS-Developer
I run into this error myself today. I didn't install any plugin recently
that might have changed this settings.

On Sun, Apr 28, 2024, 11:54 PM Andrea Giudiceandrea via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> > Abdul Raheem Siddiqui abdulraheemsiddiqui at gmail.com
> > Sat Apr 27 15:36:55 PDT 2024
> > multiple people
> > have reported this issue. They are saying they never changed the default
> > format themselves.
>
> In fact, the issue continues to be reported for various GDAL processing
> algorithms.
>
> For example, the following ones are the most recent reports regarding
> the default output layer extensions issue:
>
> - https://github.com/qgis/QGIS/issues/54375
> - https://github.com/qgis/QGIS/issues/55110#issuecomment-1873415345
> - https://github.com/qgis/QGIS/issues/57250
> - https://github.com/qgis/QGIS/issues/57267
>
> Best regards.
>
> Andrea
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-04-28 Thread Andrea Giudiceandrea via QGIS-Developer

Abdul Raheem Siddiqui abdulraheemsiddiqui at gmail.com
Sat Apr 27 15:36:55 PDT 2024
multiple people
have reported this issue. They are saying they never changed the default
format themselves.


In fact, the issue continues to be reported for various GDAL processing 
algorithms.


For example, the following ones are the most recent reports regarding 
the default output layer extensions issue:


- https://github.com/qgis/QGIS/issues/54375
- https://github.com/qgis/QGIS/issues/55110#issuecomment-1873415345
- https://github.com/qgis/QGIS/issues/57250
- https://github.com/qgis/QGIS/issues/57267

Best regards.

Andrea
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-04-27 Thread Abdul Raheem Siddiqui via QGIS-Developer
I am the owner of the Curve Number Generator plugin and multiple people
have reported this issue. They are saying they never changed the default
format themselves.
When they make a new profile, everything works well. Someone has reported
this to QGIS as well
https://github.com/qgis/QGIS/issues/57250#issuecomment-2080370076


Abdul Raheem Siddiqui
abdulraheemsiddi...@gmail.com





On Thu, Mar 14, 2024 at 12:12 PM Andrea Giudiceandrea via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> I've recently seen 3 other reports from as many users [1] [2] [3] using
> QGIS 3.36 and QGIS 3.34 about the same issue which completely disrupts
> the functionality of the GDAL processing algorithms.
>
> Maybe the fix could be to just totally avoid to use the "-1" value as
> the default for the "Default output [vector|raster] layer extension" and
> use the value 0 instead. I don't have enough knowledge of the settings
> logic to propose a fix, anyway I think it would be great if the
> underlying root cause of the issue could be fixed ASAP.
>
> Best regards.
>
> [1] https://github.com/qgis/QGIS/issues/56588
> [2]
>
> https://gis.stackexchange.com/questions/478050/raster-to-vector-bunch-of-errors/
> [3] https://lists.osgeo.org/pipermail/qgis-user/2024-March/054176.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-03-14 Thread Andrea Giudiceandrea via QGIS-Developer
I've recently seen 3 other reports from as many users [1] [2] [3] using 
QGIS 3.36 and QGIS 3.34 about the same issue which completely disrupts 
the functionality of the GDAL processing algorithms.


Maybe the fix could be to just totally avoid to use the "-1" value as 
the default for the "Default output [vector|raster] layer extension" and 
use the value 0 instead. I don't have enough knowledge of the settings 
logic to propose a fix, anyway I think it would be great if the 
underlying root cause of the issue could be fixed ASAP.


Best regards.

[1] https://github.com/qgis/QGIS/issues/56588
[2] 
https://gis.stackexchange.com/questions/478050/raster-to-vector-bunch-of-errors/

[3] https://lists.osgeo.org/pipermail/qgis-user/2024-March/054176.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-02-26 Thread WhereGroup
I am 99% that I have not uninstalled any plugins in two profiles where 
this occured and in one of them there is only the GeoCat Bridge plugin 
and in the other the QuickWKT plugin, in addition to the core plugins. 
So I would consider it unlikely to be caused by plugins.


On 26.02.24 08:05, Andrea Giudiceandrea via QGIS-Developer wrote:

Hi all,

Il 26/02/2024 00:23, Nyall Dawson ha scritto:
> Hmm, I wonder if it's a plugin changing this setting. I've definitely
> seen plugins before doing unfriendly things like this...

I also suspected that a plugin may be involved, but I was unable to 
find a common plugin in all the reports.


Now it seems to me more likely that it may be the management of the 
settings, after seeing https://github.com/qgis/QGIS/issues/53204 and 
https://github.com/qgis/QGIS/pull/53458 precisely relating to the 
DefaultOutputRasterLayerExt and the DefaultOutputVectorLayerExt 
settings and the -1 index.



Il 26/02/2024 01:38, Even Rouault ha scritto:
> For example when using the ".xml" extension as a vector output, you'll
> probably be surprised that the obscure PDS4 vector driver (tabular data
> for planetary datasets) is used!

==> Those settings should actually be deprecated and replaced by 
others that save a GDAL driver name ... plus an extension, because 
the "MapInfo File" driver produces quite different output if you 
chose ".tab" or ".mif" (or the GeoJSONSeq driver that will use 
different separators if you select the ".geojsonl" or ".geojsons" 
extensions)


The problem occurs also when saving the algorithm output to a file, 
instead of a temporary output, and choosing an extension.



Best regards.

Andrea
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


--
Johannes Kröger / GIS-Entwickler/-Berater

*
FOSSGIS Konferenz
20.-23. März 2024 in Hamburg
https://www.fossgis-konferenz.de/2024/

WhereGroup-Beiträge auf der FOSSGIS
https://wheregroup.com/unternehmen/aktuelles/
*

WhereGroup GmbH
c/o KK03 GmbH
Lange Reihe 29
20099 Hamburg
Germany

Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11

johannes.kroe...@wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
---

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


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-02-25 Thread Andrea Giudiceandrea via QGIS-Developer

Hi all,

Il 26/02/2024 00:23, Nyall Dawson ha scritto:
> Hmm, I wonder if it's a plugin changing this setting. I've definitely
> seen plugins before doing unfriendly things like this...

I also suspected that a plugin may be involved, but I was unable to find 
a common plugin in all the reports.


Now it seems to me more likely that it may be the management of the 
settings, after seeing https://github.com/qgis/QGIS/issues/53204 and 
https://github.com/qgis/QGIS/pull/53458 precisely relating to the 
DefaultOutputRasterLayerExt and the DefaultOutputVectorLayerExt settings 
and the -1 index.



Il 26/02/2024 01:38, Even Rouault ha scritto:
> For example when using the ".xml" extension as a vector output, you'll
> probably be surprised that the obscure PDS4 vector driver (tabular data
> for planetary datasets) is used!

==> Those settings should actually be deprecated and replaced by others 
that save a GDAL driver name ... plus an extension, because the "MapInfo 
File" driver produces quite different output if you chose ".tab" or 
".mif" (or the GeoJSONSeq driver that will use different separators if 
you select the ".geojsonl" or ".geojsons" extensions)


The problem occurs also when saving the algorithm output to a file, 
instead of a temporary output, and choosing an extension.



Best regards.

Andrea
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-02-25 Thread Even Rouault via QGIS-Developer
I'm not sure if that explains the family of bugs seen, but as those 
settings are a *integer* index in the list returned by 
QgsVectorFileWriter::supportedFormatExtensions() or 
QgsRasterFileWriter::supportedFormatExtensions() , they depend both on 
the QGIS list of known formats which may evolve over versions (not that 
frequent that said), and/or if the GDAL version changes and/or if 
drivers are enabled/disabled. It would be more robust to capture the 
extension as a string rather than an index.


And even capturing an extension is not super robust, as potentially 
several drivers could recognize the same extension


For example when using the ".xml" extension as a vector output, you'll 
probably be surprised that the obscure PDS4 vector driver (tabular data 
for planetary datasets) is used!


This is because:

$ ogrinfo --formats | grep xml | grep 'w'
  PDS4 -raster,vector- (rw+vs): NASA Planetary Data System 4 (*.xml)
  GML -vector- (rw+v): Geography Markup Language (GML) (*.gml, *.xml)
  Interlis 2 -vector- (rw+v): Interlis 2 (*.xtf, *.xml, *.ili)
  GMLAS -vector- (rwv): Geography Markup Language (GML) driven by 
application schemas (*.gml, *.xml)


whereas looking at QgsVectorFileWriterMetadataContainer , I strongly 
suspect that the intent was rather to use the GeoRSS driver for which 
QGIS registers a .xml extension (the GDAL GeoRSS driver doesn't 
advertize a particular file extension)


==> Those settings should actually be deprecated and replaced by others 
that save a GDAL driver name ... plus an extension, because the "MapInfo 
File" driver produces quite different output if you chose ".tab" or 
".mif" (or the GeoJSONSeq driver that will use different separators if 
you select the ".geojsonl" or ".geojsons" extensions)


Even

Le 26/02/2024 à 00:23, Nyall Dawson via QGIS-Developer a écrit :

On Mon, 26 Feb 2024 at 08:58, Andrea Giudiceandrea via QGIS-Developer
 wrote:

Hi developers,
various QGIS users have reported during the latest months (mostly since
September 2023, and a couple also back in July 2023) on various channels
a strange issue which makes the GDAL processing algorithms to fail when
the temporary output is set.

Looking at the provided processing logs, it turns out that the issue is
due to the fact that the default output vector layer extension was set
to .xtf "Interlis 2" (instead of the default .gpkg "GeoPackage") or that
the default output raster layer extension was set to .nc "NetCDF"
(instead of the default .tif "GeoTIFF").

The weird think is that all the users affected by the issue have
reported that they had not deliberately changed these settings.

Hmm, I wonder if it's a plugin changing this setting. I've definitely
seen plugins before doing unfriendly things like this...

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


--
http://www.spatialys.com
My software is free, but my time generally not.

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


Re: [QGIS-Developer] GDAL processing algorithms issues due the default output layer extensions weirdly changed

2024-02-25 Thread Nyall Dawson via QGIS-Developer
On Mon, 26 Feb 2024 at 08:58, Andrea Giudiceandrea via QGIS-Developer
 wrote:
>
> Hi developers,
> various QGIS users have reported during the latest months (mostly since
> September 2023, and a couple also back in July 2023) on various channels
> a strange issue which makes the GDAL processing algorithms to fail when
> the temporary output is set.
>
> Looking at the provided processing logs, it turns out that the issue is
> due to the fact that the default output vector layer extension was set
> to .xtf "Interlis 2" (instead of the default .gpkg "GeoPackage") or that
> the default output raster layer extension was set to .nc "NetCDF"
> (instead of the default .tif "GeoTIFF").
>
> The weird think is that all the users affected by the issue have
> reported that they had not deliberately changed these settings.

Hmm, I wonder if it's a plugin changing this setting. I've definitely
seen plugins before doing unfriendly things like this...

Nyall
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer