[Qgis-user] Fail to show markers in a vector layer

2024-01-11 Thread Simone Melis via QGIS-User

Hi,
I'm Simone Melis and I'm sw engineer in an Italian company.

I' m using QGis API 3.26 on Ubuntu 20.04, to create an application GUI 
using Qt 5.15.2


I created a vector layer and I can show correctly a georeferenced pdf 
image.
Then I added another transparent layer  (vector layer) and I tried to 
add markers in lat,long points.
Using QgsSimpleMarkerSymbolLayer I can inserted correctly all markers of 
the same shape and color. Then I tried to add markers with different 
shapes and colors on the same layers; using QgsSimpleMarkerSymbolLayer I 
show only one kind of marker. Browsing on internet I found an example to 
use QgsCategorizedSymbolRenderer. I tried to implement it in my code but 
no markers shown. Can you suggest a correct way to do this?


Thanks,

Simone

Here code I implemented:

doublelatitude[4]={44.095003,44.095103,44.095203,44.094811};

doublelongitude[4]={9.858660,9.859060,9.859460,9.859034};

//

//QgsCategorizedSymbolRenderer

//

transparentLayerBSPRX->dataProvider()->addAttributes({QgsField("Category",QVariant::String),

QgsField("Name",QVariant::String),

QgsField("Latitude",QVariant::Double),

QgsField("Longitude",QVariant::Double),

QgsField("Type",QVariant::String)});

//Setupthedefaultsymbol

QgsSimpleMarkerSymbolLayer*BSPRX_SymbolLayer=newQgsSimpleMarkerSymbolLayer();

BSPRX_SymbolLayer->setShape(QgsSimpleMarkerSymbolLayer::Circle);

BSPRX_SymbolLayer->setSize(5.0);

BSPRX_SymbolLayer->setColor(Qt::blue);

QgsSymbol*def_symbol=QgsSymbol::defaultSymbol(QgsWkbTypes::PointGeometry);

def_symbol->changeSymbolLayer(0,BSPRX_SymbolLayer);

for(inti=0;i<4;i++)//Correctedloopcondition

{

QgsFeaturefeature(transparentLayerBSPRX->dataProvider()->fields());

if(i<1)

{

//Createanewfeature

feature.setAttribute("Category","A");

feature.setAttribute("Name","RX");

feature.setAttribute("Latitude",latitude[i]);

feature.setAttribute("Longitude",longitude[i]);

feature.setAttribute("Type","BSPRX");

def_symbol->symbolLayers()[0]->setColor(Qt::red);

}

else

{

//Createanewfeature

feature.setAttribute("Category","B");

feature.setAttribute("Name","TX");

feature.setAttribute("Latitude",latitude[i]);

feature.setAttribute("Longitude",longitude[i]);

feature.setAttribute("Type","BSPTX");

def_symbol->symbolLayers()[0]->setColor(Qt::blue);

}

//Addthefeaturetothelayer

transparentLayerBSPRX->dataProvider()->addFeatures(QgsFeatureList()addCategory(bsprxCategory);

QgsRendererCategorybsptxCategory("B",def_symbol->clone(),"TX",true);

categorizedRenderer->addCategory(bsptxCategory);

//Printsymbolsfordebugging

QListcategories=categorizedRenderer->categories();

for(constQgsRendererCategory:categories)

{

qDebug()<<"Category:"setRenderer(categorizedRenderer);


--

--
Questa email è stata esaminata alla ricerca di virus dal software antivirus 
Avast.
www.avast.com___
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] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Andrea Giudiceandrea via QGIS-User

Il 11/01/2024 16:53, Amal Kar ha scritto:

Dear Drs. Richard McDonnell and Andrea Giudiceandrea,


However, i now find a small difference between the batch processing 
through the"Wrap" tool and the processing of individual files.


When i convert the files individually, the files get converted from 
32-bit to 16-bit automatically, without asking, but under the Batch 
Processing through Wrap the 32-bit data is retained.


Hi Amal,
the "Warp (Reproject)" processing algorithm allows you to set the output 
data type specifying it in the "Output data type" advanced parameter. 
Have you properly set it with the desired output data type?
Please refer to the algorithm help page already linked to find info 
about all the algorithm parameters.


In your initial message in this thread, you wrote that the "Translate 
(Convert Format)" processing algorithm converts the raster layers 
accurately except for the output resolution which you didn't know how to 
set, thus I suppose that with such algorithm the output data type is 
correct.
Have you set it or not in such algorithm? Have you tried to continue to 
use such algorithm and just add the -tr and -r additional parameters in 
the "Additional command-line parameters" algorithm parameter?


Best regards.

Andrea
___
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] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Amal Kar via QGIS-User
Dear Drs. Richard McDonnell and Andrea Giudiceandrea,
THANK YOU VERY MUCH
for the helpful suggestions.
I have been able to use "Wrap" tool for converting the files' formats and
spatial resolutions under Batch processing.
However, i now find a small difference between the batch processing through
the"Wrap" tool and the processing of individual files.
The data is in 32-bit Unsigned Integer (UInt32), which needs to be
converted first to 16-bit Signed Integer (Int16).
When i convert the files individually, the files get converted from 32-bit
to 16-bit automatically, without asking, but under the Batch Processing
through Wrap the 32-bit data is retained.
Anyway, THANKS again for the immense help.
With Best Regards,
amal kar.
 ---

On Thu, 11 Jan 2024 at 14:41, Richard McDonnell 
wrote:

> Hi,
>
> One solution is to use Warp, found under *Raster* à *Projections *à *Warp
> (reproject)*
>
> This will allow you to specify a resolution and also change the file type.
>
> Kind 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 *Amal
> Kar via QGIS-User
> *Sent:* 11 January 2024 08:16
> *To:* qgis-user@lists.osgeo.org
> *Subject:* [Qgis-user] Amal Kar - India - Batch conversion of files for
> raster layer format from geotiff to idrisi, and simultaneously from a
> higher pixel resolution to a lower one.
>
>
>
> Dear Community Members,
>
> I am currently trying to make use of a series of Raster data files from
> Modis satellite sensors that are available in Geotiff format (.tif) and in
> the pixel resolution of 500-m.
>
> I downloaded the files from a USGS website, and wanted to convert each
> file into an Idrisi raster format (16 bit integer elevation data in .RST &
> .RDC files), and in 1-km pixel resolution.
>
> I am using the batch convert utility in my QGIS (ver. 3.18; Zurich)
> within the GDAL Toolbox, especially its "Translate (Convert Format)"
> utility under "Raster Conversion".
>
> While this utility converts all the files from .tif to .rst & .rdc very
> quickly and accurately, it does not have any scope of changing the pixel
> resolution (i.e., from pixel width & height of 0.00417 arc degrees for 500
> m pixels to the width & height of 0.00833 arc degrees for the desired
> 1-km pixels).
>
> When i do the conversion of files individually by opening each .tif raster
> file and then exporting each ("Save as") to idrisi format, it opens a new
> window of "Save Raster Layer as", where the options are for changing
> the "Resolution", both horizontal and vertical.
>
> However, changing each data file through this process, especially when i
> am dealing with a few hundreds of daily satellite data files, is very
> cumbersome. There must be some clickable tool  hidden within the Tool Box,
> which i am too naive to understand and pick up (i am NOT computer-savvy,
> although i use it more often for digital analysis of my earth surface data
> in GIS).
>
> I shall be highly grateful if you can lead me to the appropriate tool in
> my  QGIS (ver. 3.18; Zurich), which can be easily followed.
>
> Thanking You for Your patience, and with Kind Regards,
>
> amal kar.
>
> -- -- --
>
>
>
> --
>
> Dr. Amal Kar
>
> Former Principal Scientist and Head, Division of Natural Resources &
> Environment,
>
> Central Arid Zone Research Institute, Jodhpur 342003, India
>
> A-1/6, Baitalik Housing Society, KMDA Housing Complex,
>
> Baghajatin (Near Hiland Park),
>
> KOLKATA 700 094, India
>
> Email: akarca...@gmail.com
>
>
>
>
>


-- 
Dr. Amal Kar
Former Principal Scientist and Head, Division of Natural Resources &
Environment,
Central Arid Zone Research Institute, Jodhpur 342003, India
A-1/6, Baitalik Housing Society, KMDA Housing Complex,
Baghajatin (Near Hiland Park),
KOLKATA 700 094, India
Email: akarca...@gmail.com
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: 

Re: [Qgis-user] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Amal Kar via QGIS-User
Dear Drs. Richard McDonnell and Andrea Giudiceandrea,
THANK YOU VERY MUCH
for the helpful suggestions.
I have been able to use "Wrap" tool for converting the files' formats and
spatial resolutions under Batch processing.
However, i now find a small difference between the batch processing through
the"Wrap" tool and the processing of individual files.
The data is in 32-bit Unsigned Integer (UInt32), which needs to be
converted first to 16-bit Signed Integer (Int16).
When i convert the files individually, the files get converted from 32-bit
to 16-bit automatically, without asking, but under the Batch Processing
through Wrap the 32-bit data is retained.
Anyway, THANKS again for the immense help.
With Best Regards,
amal kar.
-- 

On Thu, 11 Jan 2024 at 14:55, Andrea Giudiceandrea via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> > Amal Kar akarcaz50 at gmail.com
> > Thu Jan 11 00:16:21 PST 2024
>
> > I am using the batch convert utility in my QGIS (ver. 3.18; Zurich)
> within
> > the GDAL Toolbox, especially its "Translate (Convert Format)" utility
> under
> > "Raster Conversion".
> > While this utility converts all the files from .tif to .rst & .rdc very
> > quickly and accurately, it does not have any scope of changing the pixel
> > resolution
>
> Hi Amal Kar,
> the "Translate (Convert Format)" GDAL processing algorithm is based on
> the GDAL "gdal_translate" utility [1] as stated in the algorithm help
> page [2].
>
> The "gdal_translate" utility has various parameter to set the output
> resolution [3] and the resampling method [4].
>
> The "Translate (Convert Format)" algorithm exposes in the GUI only a
> subset of the "gdal_translate" utility parameters.
> Anyway you could provide additional parameters using the "Additional
> command-line parameters" algorithm parameter.
>
> Another way could be to use the "Warp (reproject)" GDAL processing
> algorithm [5] which is based on the GDAL "gdalwarp" utility and which
> exposes in the GUI the both the output resolution and the resampling
> method parameters.
>
> Best regards.
>
> Andrea
>
>
> [1] https://gdal.org/programs/gdal_translate.html
> [2]
>
> https://docs.qgis.org/3.28/en/docs/user_manual/processing_algs/gdal/rasterconversion.html#translate-convert-format
> [3]
> https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-tr
> [4]
> https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-r
> [5]
>
> https://docs.qgis.org/3.28/en/docs/user_manual/processing_algs/gdal/rasterprojections.html#warp-reproject
> ___
> 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
>


-- 
Dr. Amal Kar
Former Principal Scientist and Head, Division of Natural Resources &
Environment,
Central Arid Zone Research Institute, Jodhpur 342003, India
A-1/6, Baitalik Housing Society, KMDA Housing Complex,
Baghajatin (Near Hiland Park),
KOLKATA 700 094, India
Email: akarca...@gmail.com
___
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] Decimal delimiter different in label and attribute table

2024-01-11 Thread Richard Duivenvoorde via QGIS-User

Mmm, did some further testing, and it appears to me that the number formatting 
seems to be ignored for labeling

Created an issue for it: https://github.com/qgis/QGIS/issues/55822

So I think indeed you end up formatting the numbers yourself with an expression 
for now

Regards,

Richard Duivenvoorde

On 1/11/24 16:14, Richard Duivenvoorde via QGIS-User wrote:

Data in the gepackage looks like numbers/double.

What to use as separators depends on the language settings.
Besides the language there is also a setting for the Date/time/numbers 
separators.

See screenshot

I think it should be possible to show those numbers with comma's if you choose 
a locale with 'Fliesskommazahl' :-)

You probably have to restart QGIS to see it.
If not working please let us know.

Regards,

Richard Duivenvoorde

On 1/11/24 15:13, Huesmann, Michaela via QGIS-User wrote:

Hello all,

I created a geopackage layer with a column of fieldtype „Decimal (Double)“. In 
the Attribute Table I can see the decimal delimiter as comma as I want it in 
Germany. But the labels display the delimiter as point. Where do I change the 
delimiter for labels?

Best regards,

Michaela


Kreisstadt Steinfurt 

  - 48565 Steinfurt
www.steinfurt.de 

Mit freundlichen Grüßen
im Auftrag
MichaelaHuesmann
IT
Fachdienst Tiefbau

Tel.: +49 2552 925 219
Fax:
E-Mail: michaela.huesm...@stadt-steinfurt.de 



Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.


___
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


___
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] Decimal delimiter different in label and attribute table

2024-01-11 Thread Richard Duivenvoorde via QGIS-User

Data in the gepackage looks like numbers/double.

What to use as separators depends on the language settings.
Besides the language there is also a setting for the Date/time/numbers 
separators.

See screenshot

I think it should be possible to show those numbers with comma's if you choose 
a locale with 'Fliesskommazahl' :-)

You probably have to restart QGIS to see it.
If not working please let us know.

Regards,

Richard Duivenvoorde

On 1/11/24 15:13, Huesmann, Michaela via QGIS-User wrote:

Hello all,

I created a geopackage layer with a column of fieldtype „Decimal (Double)“. In 
the Attribute Table I can see the decimal delimiter as comma as I want it in 
Germany. But the labels display the delimiter as point. Where do I change the 
delimiter for labels?

Best regards,

Michaela


Kreisstadt Steinfurt 

  - 48565 Steinfurt
www.steinfurt.de 

Mit freundlichen Grüßen
im Auftrag
MichaelaHuesmann
IT
Fachdienst Tiefbau

Tel.: +49 2552 925 219
Fax:
E-Mail: michaela.huesm...@stadt-steinfurt.de 



Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.


___
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] Decimal delimiter different in label and attribute table

2024-01-11 Thread Frank Broniewski via QGIS-User
Hello Michaela,

Geopackage always stores numbers with "." as decimal separator. The table view 
just shows a localized view of it. If you enter numbers with a comma, they get 
internally replaced with a point before storing the values in the geopackage.
But you can format the label and force the german number format with the 
following expression as an example:

 format_number( "flaeche", 2, 'de')

If you use the expression dialog window, you can use the built in help for more 
information about the format_number function.


HTH
Frank

Von: QGIS-User  im Auftrag von Huesmann, 
Michaela via QGIS-User 
Gesendet: Donnerstag, 11. Januar 2024 15:13
An: qgis-user@lists.osgeo.org 
Betreff: [Qgis-user] Decimal delimiter different in label and attribute table


Hello all,

I created a geopackage layer with a column of fieldtype „Decimal (Double)“. In 
the Attribute Table I can see the decimal delimiter as comma as I want it in 
Germany. But the labels display the delimiter as point. Where do I change the 
delimiter for labels?



[cid:image001.png@01DA44A0.677C0C90]



Best regards,

Michaela



[Kreisstadt Steinfurt]

 - 48565 Steinfurt
www.steinfurt.de

Mit freundlichen Grüßen
im Auftrag
Michaela Huesmann
IT
Fachdienst Tiefbau

Tel.: +49 2552 925 219
Fax:
E-Mail: 
michaela.huesm...@stadt-steinfurt.de

Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.

___
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] Resource Sharing plugin:

2024-01-11 Thread Julien Moura via QGIS-User

Dear QGIS community and especially Resource Sharing users,

I trust this message finds you well. As we embark on the journey of 
enhancing the Resource Sharing project, I wanted to share the good news 
with you. Thanks to the dedication and support from the Oslandia (my 
employer) team, we are allocating 8 days of development to this widely 
used plugin in 2024.


Our focus is clear: maintain and fix the functionality perimeter. We 
have outlined key objectives, including upgrading tools, dependencies 
the minimum QGIS version, along with addressing specific issues to 
ensure a seamless experience for all users. To streamline communication 
and progress tracking, we've just opened a discussion on the GitHub's 
project: 
https://github.com/QGIS-Contribution/QGIS-ResourceSharing/discussions/322.


Your involvement would be really appreciated. We invite you to explore 
the outlined goals, share your insights, and actively contribute. 
Whether through code contributions, improving documentation, or 
supporting development financially (I mean not only an Oslandia's one 
but any skilled developer for the task). We're also eager to hear your 
thoughts on priorities and any additional ideas you may have.


Thank you for your ongoing support, and let's make Resource Sharing in 
QGIS even better!


Warm regards,Julien, Resource Sharing maintainer
BEGIN:VCARD
VERSION:4.0
EMAIL;PREF=1:julien.mo...@oslandia.com
EMAIL:juli...@oslandia.com
FN:Julien Moura
NICKNAME:jmo
ORG:Oslandia;
TITLE:Consultant - Ingénieur développeur
N:Moura;Julien;;;
ADR:;;France
URL;VALUE=URL:https://static.geotribu.fr
X-MOZILLA-HTML;VALUE=BOOLEAN:TRUE
UID:c6b195b1-5100-402f-bb73-b312bb7289c0
END:VCARD
___
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] Decimal delimiter different in label and attribute table

2024-01-11 Thread Huesmann, Michaela via QGIS-User
Hello all,
I created a geopackage layer with a column of fieldtype „Decimal (Double)“. In 
the Attribute Table I can see the decimal delimiter as comma as I want it in 
Germany. But the labels display the delimiter as point. Where do I change the 
delimiter for labels?

[cid:image001.png@01DA44A0.677C0C90]

Best regards,
Michaela


[Kreisstadt Steinfurt]

 - 48565 Steinfurt
www.steinfurt.de

Mit freundlichen Grüßen
im Auftrag
Michaela Huesmann
IT
Fachdienst Tiefbau

Tel.: +49 2552 925 219
Fax:
E-Mail: 
michaela.huesm...@stadt-steinfurt.de

Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken.

___
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] Form non ridimensionabile

2024-01-11 Thread Giulio Fattori via QGIS-it-user

Buongiorno,
grazie per il suggerimento, tuttavia questo articolo ha risolto egregiamente

https://gis.stackexchange.com/questions/163414/making-icons-and-text-larger-on-high-resolution-screen-for-qgis

Cordiali saluti

Il 20/12/2023 14:31, Marco Guiducci via QGIS-it-user ha scritto:
ci sono molte finestre che ogni volta che si aprono aumentano di 
dimensioni fino ad uscire dallo schermo, purtroppo.
Non riesci a ridurla perché non raggiungi i pulsanti di 
ridimensionamento? Oppure non ci sono i pulsanti?
Nel primo caso, su win prova così: mouse sulla barra della finestra, 
tasto destro--->sposta, premi una freccia sulla tastiera. (oppure 
Alt+barra)
A questo punto la finestra è agganciata al mouse e forse riesci a 
spostarla fino a vedere i pulsanti di dimensione.

marco

Il 15/12/2023 07:27, Giulio Fattori via QGIS-it-user ha scritto:


Buongiorno,

la form di inserimento credenziali ha assunto la dimensione a schermo 
intero e non riesco in alcun modo a ridurla


c'è qualche soluzione per riportarla alle dimensioni originali?

Ho provato con un profilo pulito e li ha le dimensioni corrette, ma 
ovviamente non può essere una soluzione sempre praticabile.


Utilizzo WIN10 e QGIS 3.34

Cordiali Saluti




===
Avvertenza: Gli allegati ricevuti sono scansionati automaticamente 
per la ricerca di software malevolo. Nel caso di file o archivi 
protetti da password potrebbe non essere possibile analizzarne 
correttamente il contenuto. Si invita, pertanto, ad adottare le 
cautele previste dalle norme sull'utilizzo della postazione di lavoro.

===


___
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


Re: [Qgis-user] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Andrea Giudiceandrea via QGIS-User

Amal Kar akarcaz50 at gmail.com
Thu Jan 11 00:16:21 PST 2024



I am using the batch convert utility in my QGIS (ver. 3.18; Zurich) within
the GDAL Toolbox, especially its "Translate (Convert Format)" utility under
"Raster Conversion".
While this utility converts all the files from .tif to .rst & .rdc very
quickly and accurately, it does not have any scope of changing the pixel
resolution


Hi Amal Kar,
the "Translate (Convert Format)" GDAL processing algorithm is based on 
the GDAL "gdal_translate" utility [1] as stated in the algorithm help 
page [2].


The "gdal_translate" utility has various parameter to set the output 
resolution [3] and the resampling method [4].


The "Translate (Convert Format)" algorithm exposes in the GUI only a 
subset of the "gdal_translate" utility parameters.
Anyway you could provide additional parameters using the "Additional 
command-line parameters" algorithm parameter.


Another way could be to use the "Warp (reproject)" GDAL processing 
algorithm [5] which is based on the GDAL "gdalwarp" utility and which 
exposes in the GUI the both the output resolution and the resampling 
method parameters.


Best regards.

Andrea


[1] https://gdal.org/programs/gdal_translate.html
[2] 
https://docs.qgis.org/3.28/en/docs/user_manual/processing_algs/gdal/rasterconversion.html#translate-convert-format
[3] 
https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-tr

[4] https://gdal.org/programs/gdal_translate.html#cmdoption-gdal_translate-r
[5] 
https://docs.qgis.org/3.28/en/docs/user_manual/processing_algs/gdal/rasterprojections.html#warp-reproject

___
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] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Richard McDonnell via QGIS-User
Hi,
One solution is to use Warp, found under Raster --> Projections --> Warp 
(reproject)
This will allow you to specify a resolution and also change the file type.
Kind 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 Amal Kar via 
QGIS-User
Sent: 11 January 2024 08:16
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Amal Kar - India - Batch conversion of files for raster 
layer format from geotiff to idrisi, and simultaneously from a higher pixel 
resolution to a lower one.

Dear Community Members,
I am currently trying to make use of a series of Raster data files from Modis 
satellite sensors that are available in Geotiff format (.tif) and in the pixel 
resolution of 500-m.
I downloaded the files from a USGS website, and wanted to convert each file 
into an Idrisi raster format (16 bit integer elevation data in .RST & .RDC 
files), and in 1-km pixel resolution.
I am using the batch convert utility in my QGIS (ver. 3.18; Zurich) within the 
GDAL Toolbox, especially its "Translate (Convert Format)" utility under "Raster 
Conversion".
While this utility converts all the files from .tif to .rst & .rdc very quickly 
and accurately, it does not have any scope of changing the pixel resolution 
(i.e., from pixel width & height of 0.00417 arc degrees for 500 m pixels to the 
width & height of 0.00833 arc degrees for the desired 1-km pixels).
When i do the conversion of files individually by opening each .tif raster file 
and then exporting each ("Save as") to idrisi format, it opens a new window of 
"Save Raster Layer as", where the options are for changing the 
"Resolution", both horizontal and vertical.
However, changing each data file through this process, especially when i am 
dealing with a few hundreds of daily satellite data files, is very cumbersome. 
There must be some clickable tool  hidden within the Tool Box, which i am too 
naive to understand and pick up (i am NOT computer-savvy, although i use it 
more often for digital analysis of my earth surface data in GIS).
I shall be highly grateful if you can lead me to the appropriate tool in my  
QGIS (ver. 3.18; Zurich), which can be easily followed.
Thanking You for Your patience, and with Kind Regards,
amal kar.
-- -- --

--
Dr. Amal Kar
Former Principal Scientist and Head, Division of Natural Resources & 
Environment,
Central Arid Zone Research Institute, Jodhpur 342003, India
A-1/6, Baitalik Housing Society, KMDA Housing Complex,
Baghajatin (Near Hiland Park),
KOLKATA 700 094, India
Email: akarca...@gmail.com


___
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] Help

2024-01-11 Thread Andrea Giudiceandrea via QGIS-User

Oisin Canney oisin.canney at greenloaning.com.au
Wed Jan 10 20:36:37 PST 2024



Please refer to the word document as to what I'm having trouble with, I just 
want to separate the PCT layer into their own separate polygons.


Hi Oisin Canney,
it would be useful to describe the issue directly in the body of the 
message.


Best regards.

Andrea
___
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] Help

2024-01-11 Thread Nigel Berjak via QGIS-User


Hi Osh

Please clarify. Do you have a multipart vector and you are wanting to 
split them into single-parts, or are you wanting to split the PCT 
polygons into separate vector files by an attribute? Or something 
different?


Please consider the environment before printing this email.

On 2024-01-11 06:36, Oisin Canney via QGIS-User wrote:


Hi community,

Just wondering if anyone can help me.

Please refer to the word document as to what I'm having trouble with, I 
just want to separate the PCT layer into their own separate polygons.


I've also included the files I am using to try and create this map.

Hope to hear from you soon,

Osh
___
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] QGIS: csv export of decimal data without quotation marks

2024-01-11 Thread Andrea Giudiceandrea via QGIS-User

Matti Bartels bartels at capsa-building.org
Wed Jan 10 20:30:07 PST 2024



I’ve opened a ticket for this regression in GitHub.


Hi Matti,
thank you for creating an issue report in the GitHub repository [1]. The 
root cause of the issue has been already found by Even Rouault in the 
GDAL/OGR library and a patch for such library has been promptly 
submitted [2] in order to fix the regression (affecting QGIS version 
using GDAL/OGR 3.8.1 <= version <= 3.8.3).


Best regards.

Andrea

[1] https://github.com/qgis/QGIS/issues/55808
[2] https://github.com/OSGeo/gdal/pull/9048
___
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] Amal Kar - India - Batch conversion of files for raster layer format from geotiff to idrisi, and simultaneously from a higher pixel resolution to a lower one.

2024-01-11 Thread Amal Kar via QGIS-User
Dear Community Members,
I am currently trying to make use of a series of Raster data files from
Modis satellite sensors that are available in Geotiff format (.tif) and in
the pixel resolution of 500-m.
I downloaded the files from a USGS website, and wanted to convert each file
into an Idrisi raster format (16 bit integer elevation data in .RST & .RDC
files), and in 1-km pixel resolution.
I am using the batch convert utility in my QGIS (ver. 3.18; Zurich) within
the GDAL Toolbox, especially its "Translate (Convert Format)" utility under
"Raster Conversion".
While this utility converts all the files from .tif to .rst & .rdc very
quickly and accurately, it does not have any scope of changing the pixel
resolution (i.e., from pixel width & height of 0.00417 arc degrees for 500
m pixels to the width & height of 0.00833 arc degrees for the desired
1-km pixels).
When i do the conversion of files individually by opening each .tif raster
file and then exporting each ("Save as") to idrisi format, it opens a new
window of "Save Raster Layer as", where the options are for changing
the "Resolution", both horizontal and vertical.
However, changing each data file through this process, especially when i am
dealing with a few hundreds of daily satellite data files, is very
cumbersome. There must be some clickable tool  hidden within the Tool Box,
which i am too naive to understand and pick up (i am NOT computer-savvy,
although i use it more often for digital analysis of my earth surface data
in GIS).
I shall be highly grateful if you can lead me to the appropriate tool in
my  QGIS (ver. 3.18; Zurich), which can be easily followed.
Thanking You for Your patience, and with Kind Regards,
amal kar.
-- -- --

-- 
Dr. Amal Kar
Former Principal Scientist and Head, Division of Natural Resources &
Environment,
Central Arid Zone Research Institute, Jodhpur 342003, India
A-1/6, Baitalik Housing Society, KMDA Housing Complex,
Baghajatin (Near Hiland Park),
KOLKATA 700 094, India
Email: akarca...@gmail.com
___
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