Re: [Qgis-user] QGIS action to run a command in a terminal window on Windows

2024-05-07 Per discussione Ujaval Gandhi via QGIS-User
You can use the 'Execute SQL' algorithm from Processing Toolbox to run the SQL query. You can trigger any processing algorithm from an Action that will run on any platform. Example of how to run a processing algorithm from a Python Action https://courses.spatialthoughts.com/qgis-actions.html#creating-isochrones-using-ors-tools-plugin---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Tue, May 7, 2024 at 5:39 AM Brent Wood via QGIS-User  wrote:






Hi,




I'm trying to create an action to run an SQL on a spatialite database & show the result as a QGIS action.




In Linux this works by running a script in an xterm, but I can't work out how to do something similar under widows.




Any suggestions?




Thanks





Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529



From: QGIS-User  on behalf of Brent Wood via QGIS-User 
Sent: Wednesday, March 6, 2024 09:33
To: 'Qgis-user@lists.osgeo.org' 
Cc: Nyall Dawson 
Subject: [Qgis-user] Problem: Can't open Spatialite tables in QGIS on Windows
 




Hi,




We have been using QGIS & Spatialite for years and have recently encountered a problem in QGIS under Windows.




We connect to a spatialite database fine, we can list the tables, but when we try to open them we get an error:

db <...> table <...> is an invalid layer - not loaded (this is also written to the log)




I can open the db in DBManager and enter the query "select * from t_transect;" which runs & shows the data in the output pane.

When I try to load the layer as a map layer I get an error message referring me to the error log, but the log is empty.




This is using QGIS 3.34.1 on Windows.




The same database file works perfectly on Linux, with QGIS v3.34.3. A colleague has tried this & v3.36 on Windows with the same problem. The databases are generated with echo sounder data by the ESP3 application, and we have been able to use these in QGIS for
 years without problems until now.




Spatialite access the tables fine, the basic metadata is present:
select * from geometry_columns;
t_transect|geom_col|1|2|4326|0
t_echoint_transect_1d|geom_col|1|2|4326|0




The QGIS error message is not particularly helpful in determining the problem. Our workaround is to run the SQL we would have run in the QGIS database manager directly from the spatialite command line, exported to CSV & then open the CSV in QGIS, which works,
 but is not ideal.

 

For some context about these data:  The figure shows each "ping" from the echo sounder, scaled by the magnitude of the echo from fish, showing the location and density of fish encountered on each transect (ESP3 is used for the acoustic analysis). This dataset
 was from surveying a hill off the west coast of New Zealand (generated on Linux!).





Brent Wood

Principal Technician, Fisheries
NIWA
DDI:  +64 (4) 3860529









Brent Wood 
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529

National Institute of Water & Atmospheric Research Ltd (NIWA)
301 Evans Bay Parade Hataitai Wellington New Zealand
Connect with NIWA: niwa.co.nz 
Facebook 
LinkedIn 
Twitter 
Instagram 
YouTube 






To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third
 parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems.

Note: This email is intended solely for the use of the addressee and may contain information that is confidential or subject to legal professional privilege. If you receive this email in error please immediately notify the sender and delete the email.



___
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] How QGIS handles on-the-fly projection?

2024-02-29 Per discussione Ujaval Gandhi via QGIS-User
There is specific code for QGIS to handle transformation between EPSG:3857 and
EPSG:4326 due to EPSG:3857 not being valid at poles. See the comments at
https://github.com/qgis/QGIS/blob/master/src/core/proj/
qgscoordinatetransform.cpp#L585
[https://mailtrack.io/l/3b9f0f5d1696eca585d974232660d3c67b88aeef?url=https%3A%2F%2Fgithub.com%2Fqgis%2FQGIS%2Fblob%2Fmaster%2Fsrc%2Fcore%2Fproj%2Fqgscoordinatetransform.cpp%23L585=8747767=160430bc5e3e39b2]


You should not be using EPSG:3857 for datasets that span more than +/-85 degrees
latitude. If you want to display global datasets in a projected CRS, try Equal
Earth (EPSG:8857). 


---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/l/23351823d4981a6feab4bb8e2f53958dd02b7b6f?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=f6b62978c9915c25]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Wed, Feb 28, 2024 at 6:32 PM Régis Haubourg via QGIS-User
 wrote:


> Hi ,
> 
> 
> the render in QGIS is always done on the fly, there is no caching of
> prerendered data, except for online webservices. 
> 
> PROJ is indeed the library doing the job. 
> 
> Régis
> 
> 
> On 27/02/2024 14:00, Ionut Ungurianu via QGIS-User wrote:
> 
> 
> > Hi!
> > 
> > I’m looking to understand  in a more advanced way how QGIS handles 
> > on-the-fly projection.
> > In my case I set the project crs in epsg:3857 and I have a raster layer in 
> > epsg:4326. In this case what is happening with the layer?
> > 
> > I know that it’s based on PROJ, but I’m wondering what is actually 
> > happening in the back-end, what is happening in the map canvas, how is the 
> > layer render, is being resampled every time you pan the map or do zoom 
> > in/out ...
> > 
> > So, if someone can help with a detailed explanation, I would really 
> > appreciate it.
> > 
> > Thanks in advance!
> > 
> > All the best!
> > Ionut
> > ___
> > QGIS-User mailing list
> > QGIS-User@lists.osgeo.orgqgis-u...@lists.osgeo.org
> > List info: 
> > https://lists.osgeo.org/mailman/listinfo/qgis-userhttps://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: 
> > https://lists.osgeo.org/mailman/listinfo/qgis-userhttps://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Batch Processing Tool for Wedge Buffers

2024-02-11 Per discussione Ujaval Gandhi via QGIS-User
Should be possible. Use Autofill -> Calculate by _expression_ can build an _expression_ that takes the Layer (you have access to the current layer variable in _expression_ builder) and the Row number (rownumber variable) and get the attribute value of 'Azimuth' field. ---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Sun, Feb 11, 2024 at 9:32 PM krishna Ayyala  wrote:Ujaval,Thanks for the reply. When I add  generate_series _expression_ and click ok, only one more row is getting added to the batch process tool. i.e.90 degree azimuth got added. 180 and 270 were not added. Is there a way that, the batch tool can read directly from the attribute table and generate the wedge buffers? The reason is; the example that I gave has only four features.But my original file has 100 features. It will be difficult to enter all 100 values manually. If the tool can pull these values from the attribute table and generate wedge buffers that will be free of errors.On Sun, Feb 11, 2024 at 5:19 AM Ujaval Gandhi <uja...@spatialthoughts.com> wrote:click 'Autofill' -> Add Values by _expression_ and use _expression_ generate_series(90, 270, 90)You will get 4 layers, one for each azimuth value. Use 'Merge Vector Layers' tool to merge them into a single layer.---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Sun, Feb 11, 2024 at 3:25 AM krishna Ayyala via QGIS-User <qgis-user@lists.osgeo.org> wrote:Hello, I have opened Batch Processing tool for wedge buffers. In this, how do I use the Auto fill function such that, I get the four rows with azimuths 0,90,180,270 without me having to manually input the azimuth values for the attribute table as shown below.

___
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] Batch Processing Tool for Wedge Buffers

2024-02-11 Per discussione Ujaval Gandhi via QGIS-User
click 'Autofill' -> Add Values by _expression_ and use _expression_ generate_series(90, 270, 90)You will get 4 layers, one for each azimuth value. Use 'Merge Vector Layers' tool to merge them into a single layer.---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Sun, Feb 11, 2024 at 3:25 AM krishna Ayyala via QGIS-User  wrote:Hello, I have opened Batch Processing tool for wedge buffers. In this, how do I use the Auto fill function such that, I get the four rows with azimuths 0,90,180,270 without me having to manually input the azimuth values for the attribute table as shown below.

___
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] Oriented Points

2023-11-27 Per discussione Ujaval Gandhi via QGIS-User
If you want to add the angle of the underlying road automatically, this is doable using aggregate() _expression_ to obtain the intersecting road sement and then obtaining the angle of the line using angle_at_vertex() function. You can set it up so it gets filled automatically as soon as you add the point. See the example at https://courses.spatialthoughts.com/advanced-qgis.html#auto-populate-field-values---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Mon, Nov 27, 2023 at 7:21 PM Huesmann, Michaela via QGIS-User  wrote:







Thank you, Ujaval Gandhi. 'Measure Angle' is a good idea. I didn’t know that tool!
I would like to have the points oriented tot he underlaying road.
 
Von: Ujaval Gandhi <uja...@spatialthoughts.com> 
Gesendet: Montag, 27. November 2023 14:47
An: Huesmann, Michaela Steinfurt.de>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Oriented Points
 

I see. If the angle is from a fixed reference point, you can add an _expression_ using azimuth() function in the Attribute Form that sets the default value of the attribute to the angle between the current point and the target point. If your
 reference point is not fixed but you need to select it manually, you can add the angle after digitizing. Use the 'Measure Angle' tool from the toolbar and measure the angle between the target point and reference point. Make sure to enable snapping so you get
 the exact point coordinates. Copy/Paste the result into the attribute table.




---

Ujaval Gandhi


Spatial Thoughts


www.spatialthoughts.com


 




 






On Mon, Nov 27, 2023 at 6:04 PM Huesmann, Michaela via QGIS-User <qgis-user@lists.osgeo.org> wrote:





Hello,
 
Thanks for pointing out that I can capture an attribute using rotation. I already know that I can use the angle attribute to rotate the symbol. But it is very difficult to determine
 the respective angle. If I type in the value manually, I have to correct it 5 times until it is exactly as it should. This is extremely unproductive. Rotating  doesn't work with the "Rotate Object" tool.
 
From Geomedia, I'm used to the fact that when recording, you first click on the position point and then record the direction using the mouse position. That's what I was looking
 for in QGIS.
Best regards,

Michaela
 
 
 
Von: Ujaval Gandhi <uja...@spatialthoughts.com>

Gesendet: Montag, 27. November 2023 12:32
An: Huesmann, Michaela Steinfurt.de>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Oriented Points
 

Just add an attribute for the rotation/orientation. You can visualize them using the technique shown here https://www.communityhealthmaps.org/blog/2019/02/21/mapping-field-photos-in-qgis




---

Ujaval Gandhi


Spatial Thoughts


www.spatialthoughts.com


 




 





On Mon, Nov 27, 2023 at 4:18 PM Huesmann, Michaela via QGIS-User <qgis-user@lists.osgeo.org> wrote:





Hello QGIS group,
 
how can I digitize oriented points in QGIS? I probably have to provide information when creating the geometry type fort he object class so that the rotation can be recorded.
Must be easy I guess but didn’t found out yet.

 
Best regards,
Michaela

 






 - 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.huesmann@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
___
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] Oriented Points

2023-11-27 Per discussione Ujaval Gandhi via QGIS-User
I see. If the angle is from a fixed reference point, you can add an _expression_ using azimuth() function in the Attribute Form that sets the default value of the attribute to the angle between the current point and the target point. If your reference point is not fixed but you need to select it manually, you can add the angle after digitizing. Use the 'Measure Angle' tool from the toolbar and measure the angle between the target point and reference point. Make sure to enable snapping so you get the exact point coordinates. Copy/Paste the result into the attribute table.---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Mon, Nov 27, 2023 at 6:04 PM Huesmann, Michaela via QGIS-User  wrote:







Hello,
 
Thanks for pointing out that I can capture an attribute using rotation. I already know that I can use the angle attribute to rotate the symbol. But it is very difficult to determine the respective
 angle. If I type in the value manually, I have to correct it 5 times until it is exactly as it should. This is extremely unproductive. Rotating  doesn't work with the "Rotate Object" tool.
 
From Geomedia, I'm used to the fact that when recording, you first click on the position point and then record the direction using the mouse position. That's what I was looking for in QGIS.
Best regards,

Michaela
 
 
 
Von: Ujaval Gandhi <uja...@spatialthoughts.com> 
Gesendet: Montag, 27. November 2023 12:32
An: Huesmann, Michaela Steinfurt.de>
Cc: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] Oriented Points
 

Just add an attribute for the rotation/orientation. You can visualize them using the technique shown here https://www.communityhealthmaps.org/blog/2019/02/21/mapping-field-photos-in-qgis




---

Ujaval Gandhi


Spatial Thoughts


www.spatialthoughts.com


 




 





On Mon, Nov 27, 2023 at 4:18 PM Huesmann, Michaela via QGIS-User <qgis-user@lists.osgeo.org> wrote:





Hello QGIS group,
 
how can I digitize oriented points in QGIS? I probably have to provide information when creating the geometry type fort he object class so that the rotation can be recorded.
Must be easy I guess but didn’t found out yet.

 
Best regards,
Michaela

 






 - 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.huesmann@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] Oriented Points

2023-11-27 Per discussione Ujaval Gandhi via QGIS-User
Just add an attribute for the rotation/orientation. You can visualize them using the technique shown here https://www.communityhealthmaps.org/blog/2019/02/21/mapping-field-photos-in-qgis---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Mon, Nov 27, 2023 at 4:18 PM Huesmann, Michaela via QGIS-User  wrote:









Hello QGIS group,
 
how can I digitize oriented points in QGIS? I probably have to provide information when creating the geometry type fort he object class so that the rotation can be recorded.
Must be easy I guess but didn’t found out yet. 
 
Best regards,
Michaela







 - 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.huesmann@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] Flatgeobuf in google drive ?

2023-10-06 Per discussione Ujaval Gandhi via QGIS-User
Google Drive doesn't allow static file hosting (it used to, but stopped around
2015). So you cannot use it to get a file URL that can be directly used to get
the file contents. You'll need to host the file on a static file server or a
cloud bucket (Google Cloud Storage or AWS s3)


---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/8aae70f5bd6ada7857cc248f40e8d91737f68592?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=1b1622ce093fbb24]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Fri, Oct 6, 2023 at 11:56 AM Adam Nielsen via QGIS-User
 wrote:


> > However, I would like to use Google Drive as a data repository instead
> > of the website,  so I uploaded the same file to (my) Google Drive in the
> > "Shared Data" directory and made it public viewable using a https
> > address similar to this:
> >
> > *https://drive.google.com/file/d/180sZv..
> [https://drive.google.com/file/d/180sZv..].. a lot of letters and
> > numbersUe/view?usp=sharing*
> >
> > The question: Is there any method so QGIS can access to the .fgb file
> > located in Google Drive using the information in the above https address ?
> 
> I'm no expert on Google Drive but it looks like you're using the URL
> for the friendly "view this file" page, rather than the URL that
> contains the raw file content itself.
> 
> You'll probably have to try to download the file and grab the download
> URL it gives you there and use that instead.
> 
> Cheers,
> Adam.
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] how to count overlays of objects

2023-08-18 Per discussione Ujaval Gandhi via QGIS-User
If your goal is to have a heatmap of polygon overlaps - it's actually
very simple. Use the Blending Mode to 'Multiply' for 'Features' and the layer
will be rendered with darker colors at the regions of overlaps


See the screenshot https://i.imgur.com/fcdB7h6.png
[https://mailtrack.io/trace/link/732b10cae06f133e97cdeeca8cc037a0b2bca537?url=https%3A%2F%2Fi.imgur.com%2FfcdB7h6.png=8747767=9651e967590f9544]

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/1be9ce20e165c06e6cb5dd4e4e0956d4dc28808e?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=93852ec6d31da55c]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Fri, Aug 18, 2023 at 7:45 PM Daniela Friebel via QGIS-User
 wrote:


> Dear Community
> 
>  
> 
> I have a vectorlayer with many objects (polygons) that overlap. Now I want to
> create a new layer, where each overlap results in a separate object, which has
> an attribute with the number of overlaps.
> 
> I have already tried various things, but have not yet found a solution. With
> the "union" tool I can generate the overlaps as objects, but I cannot count
> the number of overlaps. 
> 
> I am grateful for any help and hints.
> 
>  
> 
> (I would like to count the overlaps to eventually create a heatmap. If there
> is a completely different way of doing this, I would also appreciate a tip).
> 
>  
> 
> Kind regards
> 
> Daniela
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Shifting a Geotiff image

2023-08-13 Per discussione Ujaval Gandhi via QGIS-User
Hi Grant - You can do this with a simple Linear transform using the built-in
Georeferencer. I made a small video showing
how https://www.youtube.com/watch?v=8a4M32Rkwck
[https://mailtrack.io/trace/link/ebfeb1e55e3f8462089ce55d97e05185ae0619ed?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8a4M32Rkwck=8747767=8f549a955495bf81]


Hope that helps.

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/69c992a0409ae934c5c0e2276997a6ee22503015?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=16f533b4cb0820fe]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Sat, Aug 12, 2023 at 9:48 PM Martin Weis via QGIS-User
 wrote:


> Dear Perth,
> 
> On 11/08/2023 09:14, Grant Boxer via QGIS-User wrote:
> > I have a GeoTIFF image created using Web ODM and is mis-aligned by 1 to 1.5
> > m and I would like to move the image to register with the surveyed ground
> > control points. I can see vector tools to do this, but no raster tools.
> > Anyone have any suggestions.
> 
> 
> If it just a bit off, then the plugin "Freehand raster georeferencer"
> can be quick to shift it, otherwise use georeferencer from core (Layer -
> georeferencer), which is especially more flexible and the right tool if
> you have GCPs that you can use.
> Be careful, sometimes crashes can occur with certain transformation
> types, so better save beforehand (autoSaver and MemoryLayerSaver are
> your friends).
> 
> > Image created in WGS84 z51S.
> 
> Sound like UTM (good, metric CRS), though WGS84 might be geographic CRS
> (worse, pixel size undefined/different in x,y).
> 
> Cheers
> Martin
> 
> 
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] connect QGIS with python

2023-08-07 Per discussione Ujaval Gandhi via QGIS-User
You can install QGIS using conda
[https://gisunchained.wordpress.com/2019/05/29/using-qgis-from-conda/] along
with other required packages in the same environment. This is the easiest way to
ensure python dependencies are found correctly. If this is not feasible for you,
you can refer to the documentation
[https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/intro.html#running-custom-applications]
which has pointers on how to set your PYTHONPATH


You can use all QGIS functionality, includig processing algorithms in a headless
mode. See my guide
at 
https://courses.spatialthoughts.com/pyqgis-in-a-day.html#writing-standalone-python-scripts
[https://mailtrack.io/trace/link/c33fcf55a40a973c7257e78375b291fb5ac40ff9?url=https%3A%2F%2Fcourses.spatialthoughts.com%2Fpyqgis-in-a-day.html%23writing-standalone-python-scripts=8747767=d37ba1c90b9723a7]
 


I also gave a talk recently and demonstrated the setup required to launch a
custom pyqgis algorithm from a web app. You can find the materials and video at 
http://bit.ly/automating-geospatial-qgis
[https://mailtrack.io/trace/link/a6fab34e22cbe38854a288b16087a07c01f35a5d?url=http%3A%2F%2Fbit.ly%2Fautomating-geospatial-qgis=8747767=d0d515c797aa16b3]



Good luck.
---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/d900ac0c48e3d561fb2ae71ca20b9e521c00612f?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=4baa3836b075f66e]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Aug 7, 2023 at 10:58 AM Pinkal Sanoria via QGIS-User
 wrote:

> please revert back as soon as possible, because it is very important for me. 
> 
> 
> Thanks 
> Pinkal
> 
> 
> 
> 
> 
> 
> 
> On Fri, Jul 28, 2023 at 12:53 AM Pinkal Sanoria  [pinkalsanoria...@gmail.com]> wrote:
> 
> > Dear QGIS Team,
> > 
> > 
> > I hope this email finds you well. My name is Pinkal, and I am a developer
> > interested in leveraging the capabilities of QGIS within a web application.
> > I am reaching out to seek guidance and support on how to connect QGIS with
> > Python, specifically Django, to utilize the full functionality of QGIS in a
> > web-based environment.
> > 
> > 
> > My objective is to integrate QGIS functionality into a Django-based web
> > application, enabling users to access and interact with geospatial data and
> > perform various geospatial analyses through the web interface. After some
> > research, I understand that the primary method for this integration is by
> > using the PyQGIS library, the Python API for QGIS.
> > 
> > 
> > Could you please provide me with some guidance on the following aspects:
> > 
> > 
> > Steps to Integrate PyQGIS with Django: I would greatly appreciate a
> > step-by-step guide or documentation that outlines the process of setting up
> > and integrating PyQGIS with a Django project. This includes installing QGIS,
> > configuring the PyQGIS library, and handling any potential dependencies or
> > issues that may arise during web deployment.
> > 
> > 
> > Best Practices for Web Integration: As I plan to deploy QGIS within a web
> > application, I am concerned about potential challenges related to QGIS's
> > reliance on the GUI. It would be incredibly helpful if you could provide
> > insights or best practices on using QGIS in a "headless" mode to ensure
> > smooth web-based functionality while still accessing the complete range of
> > QGIS features.
> > 
> > 
> > Recommended QGIS API or Alternatives: While I am familiar with PyQGIS, I am
> > open to exploring other QGIS APIs or methods that might better suit web
> > integration. If there are any alternatives or specific QGIS APIs that are
> > more suitable for web-based applications, I would appreciate your expert
> > recommendations and insights on their usage.
> > 
> > 
> > Community Resources: Are there any specific community forums, mailing lists,
> > or documentation repositories where I can connect with other developers who
> > have successfully integrated QGIS with Python and Django in web
> > applications? Being part of a vibrant community of like-minded developers
> > would be invaluable.
> > 
> > 
> > I am enthusiastic about harnessing the power of QGIS in a web environment,
> > and I believe that with your guidance, I can achieve a seamless integration
> > that meets the project's requirements.
> > 
> > 
> > Thank you for your time and support. I am looking forward to your valuable
> > assistance in this endeavor.
> > 
> > 
> > Best regards,
> > 
> > 
> > Pinkal Sanoria
> > Indian
> > 9805

Re: [Qgis-user] Add context menu to map canvas

2023-08-02 Per discussione Ujaval Gandhi via QGIS-User
Put the code block inside initGui(). Tested on a small plugin and worked
fine https://pastebin.com/raw/U55Hbguk
[https://mailtrack.io/trace/link/d204ab4d25292415574deaa5cfbfef567d34b153?url=https%3A%2F%2Fpastebin.com%2Fraw%2FU55Hbguk=8747767=26d638063caac0c3]
---

Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/77965c2ef6002bde576e0b136d4c883ebfebdcaa?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=34ffd88bbade5fae]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Tue, Aug 1, 2023 at 7:47 PM Christoph Jung via QGIS-User
 wrote:

> Hello everyone,
> 
> 
> 
> 
> I try to add a new entry to the map canvas context menu using the following
> two documentations:
> 
> https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/canvas.html#add-
> items-to-map-canvas-contextual-menu
> [https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/canvas.html#add-items-to-map-canvas-contextual-menu]
> 
> 
> 
> 
> https://github.com/qgis/QGIS-Documentation/issues/5842
> [https://github.com/qgis/QGIS-Documentation/issues/5842]
> 
> 
> 
> 
> Adding a new menu entry from the python console works like a charm. Now I want
> to provide the context menu through a plugin. But I am not able to connect the
> context menu with a signal declared as a function in the same class, where I
> want to connect it. I receive the message, that my plugin class has no method
> „addMenu“. This is my code snippet:
> 
> 
> 
> 
> from qgis.PyQt.QtWidgets import QMenu
> 
> from qgis.gui import QgsMapMouseEvent
> 
> import json
> 
>  
> 
> class SmallworldShortcutPlugin:
> 
> 
> 
> def __init__(self, iface):
> 
>     self.iface = iface
> 
>     self.canvas = self.iface.mapCanvas()
> 
>         self.canvas.contextMenuAboutToShow.connect(self.populateContextMenu)
> 
> 
> 
> 
> The function populateContextMenu is the same as in the documentation. But if I
> declare the function outside of the class in the same python file, it works
> very well (of course without calling the function on self). Does anybody has a
> hint for me how to connect the map canvas context menu with a function from a
> class? Or is it the right way to declare the function to be connected with the
> context menu outside of a class?
> 
> 
> 
> 
> Best regards,
> 
> Christoph 
> 
> 
> 
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Python Problems

2023-08-01 Per discussione Ujaval Gandhi via QGIS-User
Looks like it is coming from qgis2web and relates to access to the file you are using. You already received a response to the same query before, so avoid posting the same question again without additional information.---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Tue, Aug 1, 2023 at 9:45 PM John Studley via QGIS-User  wrote:



Dear AllWhy am I getting the following error - how do I resolve it?RegardsJohnAn error has occurred while executing Python code: 
ftplib.error_perm: 550 Requested action not taken. File unavailable (e.g., file not found, no access). 
Traceback (most recent call last):  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 321, in cwd_and_create    ftp.cwd(p)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 625, in cwd    return self.voidcmd(cmd)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 286, in voidcmd    return self.voidresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 259, in voidresp    resp = self.getresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 254, in getresp    raise error_perm(resp)ftplib.error_perm: 550 Requested action not taken. File unavailable (e.g., file not found, no access).During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 321, in cwd_and_create    ftp.cwd(p)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 625, in cwd    return self.voidcmd(cmd)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 286, in voidcmd    return self.voidresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 259, in voidresp    resp = self.getresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 254, in getresp    raise error_perm(resp)ftplib.error_perm: 550 Requested action not taken. File unavailable (e.g., file not found, no access).During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 321, in cwd_and_create    ftp.cwd(p)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 625, in cwd    return self.voidcmd(cmd)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 286, in voidcmd    return self.voidresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 259, in voidresp    resp = self.getresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 254, in getresp    raise error_perm(resp)ftplib.error_perm: 550 Requested action not taken. File unavailable (e.g., file not found, no access).During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\maindialog.py", line 354, in saveMap    result = self.exporter.postProcess(results, feedback=self.feedback)  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 330, in postProcess    cwd_and_create(self.remote_folder)  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 324, in cwd_and_create    cwd_and_create(parent)  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 324, in cwd_and_create    cwd_and_create(parent)  File "C:\Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis2web\exporter.py", line 327, in cwd_and_create    ftp.mkd(base)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 637, in mkd    resp = self.voidcmd('MKD ' + dirname)  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 286, in voidcmd    return self.voidresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 259, in voidresp    resp = self.getresp()  File "C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib\ftplib.py", line 254, in getresp    raise error_perm(resp)ftplib.error_perm: 550 Requested action not taken. File unavailable (e.g., file not found, no access).
Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] QGIS version: 3.28.8-Firenze Firenze, 5ac45272b5 
Python Path:
C:/PROGRA~1/QGIS32~1.8/apps/qgis-ltr/./python
C:/Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/Windows/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA~1/QGIS32~1.8/apps/qgis-ltr/./python/plugins
C:\PROGRA~1\QGIS32~1.8\apps\grass\grass82\etc\python
C:\Users\Windows\Documents
C:\Program Files\QGIS 3.28.8\bin\python39.zip
C:\PROGRA~1\QGIS32~1.8\apps\Python39\DLLs
C:\PROGRA~1\QGIS32~1.8\apps\Python39\lib
C:\Program Files\QGIS 3.28.8\bin

Re: [Qgis-user] Editing expression in QGIS

2023-07-10 Per discussione Ujaval Gandhi via QGIS-User
You will need to write the expression using QGIS's expression syntax and
functions. There's no direct migration from Excel to QGIS.


You can add a new field using Field Calculator as a 'Virtual Field' which is
computed dynamically, so if any data value changes or you add new rows, the
expression will be evaluated automatically. 
https://docs.qgis.org/3.28/en/docs/user_manual/working_with_vector/attribute_table.html#creating-a-virtual-field
[https://mailtrack.io/trace/link/4ba39305aa20b35528de7fa38a3ec18452d0?url=https%3A%2F%2Fdocs.qgis.org%2F3.28%2Fen%2Fdocs%2Fuser_manual%2Fworking_with_vector%2Fattribute_table.html%23creating-a-virtual-field=8747767=3aa673f10063f979]

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/54638064fd4644a93dec4856f74627dce1b11ca0?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=5d1143e2859dd24d]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Jul 10, 2023 at 8:28 PM Simon via QGIS-User 
wrote:

> Hi all, 
> 
> 
> Is it possible to add an Excel equation into QGIS via the field calculator in
> the attribute table window. The expression is fairly large, and the references
> will have to be changed but is it even do-able? 
> 
> 
> If not, is there a better tool or plugin I can use?
> 
> 
> The goal is to add the equation, but also to be able to edit it in the future
> if the data changes. 
> 
> 
> Thanks, 
> 
> 
> Simon
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Request for Guidance on Using 'Dissolve' Tool in QGIS with IUCN Data

2023-06-26 Per discussione Ujaval Gandhi via QGIS-User
There is Vector Geometry --> Aggregate algorithm in the Processing Toolbox
that can summarize values while dissolving features. It can be a little tricky
to use so if you can't figure out how to use it - see my
tutorial https://www.qgistutorials.com/en/docs/3/areal_mean_rainfall.html
[https://mailtrack.io/trace/link/43bf6ee36d437ce2c50d26c89696b2046c0225b5?url=https%3A%2F%2Fwww.qgistutorials.com%2Fen%2Fdocs%2F3%2Fareal_mean_rainfall.html=8747767=d01c47db48ea788d]


Use Field Calculator for updating values using an expression, or just put the
layer in Edit mode, open the Attribute Table and update the values manually. 

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/f80872d1a86e7c96a2818d9f373eff28606b2163?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=88087252a09861e6]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Jun 26, 2023 at 11:33 AM Bernhard Ströbl via QGIS-User
 wrote:


> Hi Marcello,
> 
> you can choose which fields QGIS should use for the dissolve process. Only
> features that are homogeneous throughout the chosen fields will be dissolved
> into a new feature.
> Hope this helps
> Bernhard
> 
> 
> > Marcello Bilancioni via QGIS-User  [qgis-user@lists.osgeo.org]> hat am 26.06.2023 01:54 CEST geschrieben:
> >
> > 
> > Good morning,
> >
> > I am currently working with the mammal species distribution data provided
> > by IUCN, and analyzing these shape files in QGIS.
> >
> > As part of my analysis, I have been using the 'Dissolve' tool in QGIS to
> > merge rows of the same species into a single entry. This operation is aimed
> > at creating a single comprehensive polygon that represents each species'
> > entire distribution range. However, while the tool successfully
> > consolidates the geometries, it looses important attribute data from the
> > original attribute table. In particular, this leads to the loss of valuable
> > information within the "Presence" and "Origin" columns, where the values
> > can differ across entries for the same species.
> >
> > Could you provide any recommendations on how to avoid such data loss? Is
> > there a strategy or method that could effectively summarize or retain this
> > varied information while processing the data using the 'Dissolve' tool?
> >
> > Furthermore, in my dataset, I have noticed some specific values under the
> > "Presence" and "Origin" columns: "presence 3", "presence 6", and "origin 5"
> > (I have attached a list with those species here). According to the IUCN
> > guidelines, these values need to be updated or adjusted. Do you happen to
> > know how to update these entries within QGIS best?
> >
> > Thank you in advance for any assistance you can provide.
> >
> > Best regards,
> >
> > Marcello Bilancioni
> > ___
> > QGIS-User mailing list
> > QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Adding delimited text layer in QGIS using Geographical modeler- reg

2023-06-25 Per discussione Ujaval Gandhi via QGIS-User
You can use the “Create points layer from table” algorithm.

On Sun, 25 Jun 2023 at 10:39 PM, Abhi Shek via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hi,
>
> Can you please suggest me how to add a delimited text layer in QGIS using
> Geographical modeler.
> Thanks in advance.
> --
> with warm regards,
> P S N Abhishek,
>
> ___
> 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
>
-- 
---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.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] [pyqgis] create new raster

2023-05-09 Per discussione Ujaval Gandhi via QGIS-User
Instead of manually iterating over the raster, you can use the 'Raster
Calculator' Algorithm to set the pixel values which will be much easier and will
resolve your issues. Test it with the processing toolbox and then all via PyQGIS
with the required parameters.


I tested and the following expression works. Replace N27E086 with the name of
your layer



"N27E086@1"*("N27E086@1"<1500 or "N27E086@1">2000) + -*("N27E086@1">=1500
and "N27E086@1"<=2000)





---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/c359cb3ba6621429914ba43aa93bbeae2d52326f?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=aae92c96b65f2608]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Tue, May 9, 2023 at 11:58 AM andrea antonello via QGIS-User
 wrote:

> Hello,
> 
> I am trying to find out the best workflow to create a new raster.
> As an example I take an existing elevation model raster and loop over it to
> set values between 1500 and 2000 to novalue and write the result to a new
> raster.
> 
> 
> This is the only way I found to do so:
> 
> 
> # create new raster with novalues between 1500 and 2000
> dataType = dtmLayer.dataProvider().dataType(1)
> crs = QgsCoordinateReferenceSystem('EPSG:3003')
> params = {
> 'EXTENT': dtmLayer.extent(),
> 'TARGET_CRS': crs,
> 'PIXEL_SIZE': dtmLayer.rasterUnitsPerPixelX(),
> 'NUMBER': -.0,
> # 'OUTPUT_TYPE': dataType,
> 'OUTPUT': QgsProcessing.TEMPORARY_OUTPUT
> }
> newRaster = processing.run('qgis:createconstantrasterlayer', params)['OUTPUT']
> newRasterLayer = QgsRasterLayer(newRaster, 'temp', 'gdal')
> newRasterProvider = newRasterLayer.dataProvider()
> 
> block = QgsRasterBlock(dataType, cols, rows)
> 
> 
> for row in range(rows):
> for col in range(cols):
> point = dtmLayer.dataProvider().transformCoordinates(QgsPoint(col, row),
> transformType)
> value, res = dtmLayer.dataProvider().sample(QgsPointXY(point.x(), point.y()),
> 1)
> 
> if res and value != -.0:
> if value < 1000 or value > 2000:
> block.setValue(row, col, value)
> 
> 
> newRasterProvider.setEditable(True)
> newRasterProvider.writeBlock(block, band=1)
> newRasterProvider.setEditable(False)
> 
> 
> 
> 
> This code has two main issues:
> 1. if I uncomment the line containing OUTPUT_TYPE, I am getting an error about
> the type passed. But I can't find the right type needed there, it should be
> the one taken from the original provider.
> 2. the resulting raster is scrambled as if there was a shift in the setting of
> the values. But the QgsRasterBlock seems to be built correctly (rows, cols)
> and the values set properly (col, row).
> 3. in the above example, the dtmLayer has an epsg 3033 crs and when loaded
> manually into QGIS, it is recognized. But when I read the layer's metadata crs
> with pyQGIS , it is not able to read it and tells me it is invalid. 
> 
> 
> Has anyone a hint about what I am doing wrong? 
> 
> 
> Thanks,
> Andrea
> 
> 
> 
> 
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] self-learning resources

2023-04-26 Per discussione Ujaval Gandhi via QGIS-User
Hi Simon,I have a series of beginner-friendly tutorials in multiple languages at https://www.qgistutorials.com/. There's also several full-length courses at https://courses.spatialthoughts.com/---Ujaval GandhiSpatial Thoughtswww.spatialthoughts.comOn Wed, Apr 26, 2023 at 3:59 AM Phil Wyatt via QGIS-User  wrote:Hi Simon,For QGIS I always recommend Locate Press, Discover QGIS 3.0 as it exposes just about everything that folks will come across in early GIS career, plus it has useful exercises and data packages to download.Discover QGIS 3.x Book - Second Edition by Kurt Menkelocatepress.comCheers - Phil, On the road with his iPad On 26 Apr 2023, at 12:20 am, Simon Dietmann via QGIS-User  wrote:







dear group,
 
last week I was asked for a recommendation for resources for self-teaching by an almost complete GIS beginner. Of course I have some ideas, but does anyone of you have the ultimate hint for a good and systematic start
 into GIS in general and/or QGIS ?
 
cheers,
 
Simon
 

i.A. Simon DietmannProjektleiter | Geograph

PGNU Planungsgesellschaft Natur & Umwelt mbHAmtsgericht Frankfurt am Main, HRB 111938; Geschäftsführer: Dr. Benjamin Hill, Johannes Christoph Kress, Alexander von KüchlerHamburger Allee 45 +++ 60486 Frankfurt am MainDurchwahl: +49 69 952964-75 +++ Fax: +49 69 952964-99 +++ Mobil: E-Mail: dietm...@pgnu.de +++ Web: www.pgnu.de> Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

___QGIS-User mailing listQGIS-User@lists.osgeo.orgList info: https://lists.osgeo.org/mailman/listinfo/qgis-userUnsubscribe: 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] QGIS under Arch-Linux

2023-02-16 Per discussione Ujaval Gandhi via QGIS-User
You can try installing using conda. The latest LTR and Current releases are
available on conda-forge


https://www.linkedin.com/posts/alexandre-neto-geo_qgis-activity-7030576968169336832-cwOm
[https://mailtrack.io/trace/link/06cdc2c4ecba275b945832ac4d3faedd2327d6e5?url=https%3A%2F%2Fwww.linkedin.com%2Fposts%2Falexandre-neto-geo_qgis-activity-7030576968169336832-cwOm=8747767=0470f2d3c2e9a56e]



Instructions at
https://gisunchained.wordpress.com/2019/05/29/using-qgis-from-conda/
[https://mailtrack.io/trace/link/da3735f150e424ab9bddb8b1b57cdf3d515721f8?url=https%3A%2F%2Fgisunchained.wordpress.com%2F2019%2F05%2F29%2Fusing-qgis-from-conda%2F=8747767=5a9cf790c9a9f4af]

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/trace/link/f15498490707ce09016a3abb50eacfdc7d1f6e3e?url=http%3A%2F%2Fwww.spatialthoughts.com=8747767=a803620488c5babb]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Thu, Feb 16, 2023 at 5:15 AM Nikos Alexandris via QGIS-User
 wrote:


> Hello, is anyone currently using QGIS under Arch-Linux (or else any
> Arch-based distribution)?  I have yet to find a way to make the SIP
> module to be installed/imported properly, and this to obviously make the
> Plugins available.  I have tried without success all available versions
> via AUR, namely :
> 
> - qgis-ltr 3.22.16-1
> - qgis-git 3.99_master.r78162.24a71d05862-1
> - qgis 3.28.3-1
> 
> Any help much appreciated. Kind regards, Nikos
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org [QGIS-User@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Convert an ALOS PALSAR DEM from ellipsoidal to geoid.

2023-01-02 Per discussione Ujaval Gandhi via QGIS-User
I have a blog post explaining how to do the conversion using GDAL
https://spatialthoughts.com/2019/10/26/convert-between-orthometric-and-ellipsoidal-elevations-using-gdal

On Tue, 3 Jan 2023 at 11:09 AM, Eddison Araya via QGIS-User <
qgis-user@lists.osgeo.org> wrote:

> Hi, thanks, skip previous message, apparently you're right, it's emg96
>
> Thank you
>
> Eddison
>
> [image: image.png]
>
>
>
> El lun, 2 ene 2023 a las 20:08, Eddison Araya ()
> escribió:
>
>>
>> Hello yes, thank you very much, according to that source it is EMG-2008
>>
>> Regards!
>>
>> eddison
>>
>> [image: image.png]
>>
>>
>>
>> El lun, 2 ene 2023 a las 11:16, Nicolas Cadieux (<
>> njacadieux.git...@gmail.com>) escribió:
>>
>>> Hi,
>>>
>>> Will do. I’am heading out of the woods now.  In the mean time, look at
>>> the metadata to find out what ellipsoid is being used by the file.  I
>>> believe it’s probably EMG96 but can you confirm?
>>>
>>> Nicolas Cadieux
>>> https://gitlab.com/njacadieux
>>>
>>> Le 2 janv. 2023 à 08:01, Eddison Araya  a écrit :
>>>
>>> 
>>> Hello Nicolás Cadieux, I hope you had a nice end and beginning of the
>>> year!
>>>
>>> Ok very good, so I await your message with the step by step, just in
>>> case I attach the image:
>>>
>>>
>>>
>>> https://drive.google.com/file/d/1mJvB77MMOF86X7I4qwtS3i7UYq1wYmGR/view?usp=share_link
>>>
>>>
>>> Greetings and thank you very much
>>>
>>> Eddison
>>>
>>>
>>>
>>>
>>> El jue, 29 dic 2022 a las 21:11, Nicolas Cadieux (<
>>> njacadieux.git...@gmail.com>) escribió:
>>>
>>>> Hi,
>>>>
>>>> Google  vdatum https://vdatum.noaa.gov/  <https://vdatum.noaa.gov/> Contact
>>>> me early next year and I can help you step by step.  I can’t help you more
>>>> now because i’am far from civilisation with very limited internet access.
>>>>
>>>> Nicolas Cadieux
>>>> https://gitlab.com/njacadieux
>>>>
>>>> Le 28 déc. 2022 à 09:52, Eddison Araya via QGIS-User <
>>>> qgis-user@lists.osgeo.org> a écrit :
>>>>
>>>> 
>>>> Hello, a pleasure to greet you.
>>>>
>>>> I need to convert an ALOS PALSAR DEM from ellipsoidal to geoid.
>>>>
>>>> Does anyone know how to do this process step by step?
>>>>
>>>> Thank you
>>>>
>>>> Eddison
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>
-- 
---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.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] multiple csv file import

2022-11-16 Per discussione Ujaval Gandhi via Qgis-user
Another option is to use the tool 'Create Points Layer from Table' tool from
QGIS Processing Toolbox. This tool can read a CSV and create a point layer (i.e.
shapefile). First test it on a single file and if it works for your use case,
you can click the 'Run as a Batch Process' and run it on all files in your
folder.


---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com [http://www.spatialthoughts.com]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Wed, Nov 16, 2022 at 3:04 AM Salvatore Mellino via Qgis-user
 wrote:

> I found this on line :
> 
> 
> 
> 
> import glob, os
> 
> # Define path to  directory of your csv files
> path_to_csv = "C:/File Path/"
> 
> # Set current directory to path of csv files
> os.chdir(path_to_csv)  
> # Find each .csv file and load them as vector layers
> for fname in glob.glob("*.csv"):  
> uri ="file:///"+path_to_csv + 
> fname+"encoding=%s=%s=%s=%s=%s" % ("UTF-8",",", 
> "Long", "Lat","epsg:4326")
> name=fname.replace('.csv', '')
> lyr = QgsVectorLayer(uri, name, 'delimitedtext')
> QgsProject.instance().addMapLayer(lyr)
> 
> 
> 
> 
> but it doesn’t work. I have csv files with lat long and value separated by 
> space and without header 
> 
> 
> 
> 
> > Il giorno 15 nov 2022, alle ore 21:22, Hugh Kelley  > [hghk...@gmail.com]> ha scritto:
> 
> > 
> > Awesome thanks very much. glad I asked, you learn something new every day.
> > 
> > 
> > On Tue, Nov 15, 2022 at 3:19 PM David Strip  > [qgis-u...@stripfamily.net]> wrote:
> > 
> > > Starting with v2.1, ogr2ogr supports args X_POSSIBLE_NAMES,
> > > Y_POSSIBLE_NAMES which are strings with allowed wildcards (eg, Lon* ), or
> > > you can use field_1, field_2, etc to explicitly give the position of
> > > lat/lon.
> > > It's explained on the driver page.
> > > [https://gdal.org/drivers/vector/csv.html]  This StackExchange
> > > [https://gis.stackexchange.com/a/276607/4449]post shows csv to shapefile
> > > conversion and included Windows command line syntax for looping over files
> > > in a directory.
> > > 
> > > On 11/15/2022 12:58 PM, Hugh Kelley wrote:
> > > 
> > > > David, this was my first thought when i saw this question as well.
> > > > 
> > > > 
> > > > however, I didn't look for very long but I haven't seen a way to tell
> > > > ogr2ogr to read columns in a csv as the lat/lon and write those as
> > > > points to the shapefile.  I generally write a csv to postgres as a
> > > > non-spatial table and then process the lat lon columns with postgis.
> > > > 
> > > > 
> > > > 
> > > >  Are there arguments for ogr2ogr that can do this?
> > 
> > 
> > 
> > --
> > 
> > Hugh Kelley      
> 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org [Qgis-user@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [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] Tectonic plate boundaries

2022-08-19 Per discussione Ujaval Gandhi via Qgis-user
Hi John,


I think you may be working with a 'Line' layer so you can't fill the space
between them. You should get a 'Polygon' layer, specifically the 'PB2002_plates'
from the repository mentioned earlier. You can download it from 
https://github.com/fraxen/tectonicplates/blob/master/GeoJSON/PB2002_plates.json
[https://github.com/fraxen/tectonicplates/blob/master/GeoJSON/PB2002_plates.json]
(right-click and Save As on your computer) and drag and drop it in QGIS.


I also have a detailed step-by-step tutorial that shows how to import and style
data in QGIS, including the tectonic plate boundaries layer that you are
interested in. If you work through the whole exercise, you will have a good idea
how to import several types of data to QGIS and create a
map. https://courses.spatialthoughts.com/introduction-to-qgis#creating-maps
[https://courses.spatialthoughts.com/introduction-to-qgis#creating-maps]

---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com [http://www.spatialthoughts.com]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Fri, Aug 19, 2022 at 3:15 PM John Moyle via Qgis-user
 wrote:

> Thank you one and all with helpful suggestions about finding a shape file of
> tectonic plate boundaries.
> Having tried several of them, QGIS accepts them and allows me to set colour
> type and thickness of line etc but even if they are the only layer selected I
> am unable to see them.  I must be doing something wrong!
> Maybe it's "old dogs and new tricks" at 77 to learn QGIS. The problem is that
> this is probably the only time I will ever be using a GIS and all the courses
> available want to teach so much general GIS before the little bits that I need
> to learn!!  I have my base raster file of the North Atlantic and have learned
> enough to make individual layers of cable interruptions, sub-sea volcanoes and
> land-slides etc. but have come unstuck at an imported shape file!
> Anyway, many thanks one and all.
> 
> 
> Dr John Moyle
> MB, BS, MSc, PhD, CEng, MInstMC, FRCA, FRHistS
> Chartered Engineer
> Physician & Anaesthetist (Retired)
> Historian (Telegraphy & Medical Technology) 
> 
> Home +44(0)1608 665968
> Cell     +44(0)7836 244584
> 
> Amberley
> Cotswold Close
> Tredington
> Shipston on Stour
> Warwickshire
> CV36 4NR, UK 
> 
> "A person has nothing to lose if he believes in God and in the end he turns
> out to be wrong but everything to lose if he wagers that God does not exist
> and it turns out in the end that He really does." - Blaise Pascal (C17th
> French Scientist & Mathematician)
> 
> 
> 
> On Sun, 14 Aug 2022 at 22:35, Fielding, Eric J (US 329A) via Qgis-user
>  wrote:
> 
> 
> > Hi John,
> > 
> > Here is a GitHub site with plate boundaries in several GIS formats,
> > including Shapefile and GeoJSON.
> > https://github.com/fraxen/tectonicplates
> > [https://github.com/fraxen/tectonicplates]
> > 
> > These should work with QGIS. This is from the Bird (2003) paper that is a
> > widely used source of tectonic plate boundaries.
> > 
> > ++Eric
> > --
> > Eric Fielding
> > 
> > eric.j.field...@jpl.nasa.gov [eric.j.field...@jpl.nasa.gov]
> > http://science.jpl.nasa.gov/people/Fielding/
> > [http://science.jpl.nasa.gov/people/Fielding/]
> > Twitter: @EricFielding
> > Jet Propulsion Laboratory
> > Caltech
> > 4800 Oak Grove Drive               
> > Pasadena, CA   91109
> > USA
> > 
> > 
> > 
> > 
> >     Date: Sat, 13 Aug 2022 14:53:54 -0700
> >     From: chris hermansen 
> >     To: John Moyle 
> >     Cc: qgis-user 
> >     Subject: Re: [Qgis-user] Tectonic plate boundaries
> >     Message-ID:
> >          > [fuh6atwa8b5zx1emux9mbv...@mail.gmail.com]>
> >     Content-Type: text/plain; charset="utf-8"
> > 
> >     John and list,
> > 
> >     On Sat, Aug 13, 2022, 09:38 John Moyle via Qgis-user <
> >     qgis-user@lists.osgeo.org [qgis-user@lists.osgeo.org]> wrote:
> > 
> >     > Hi
> >     > New to QGIS. I want to plot Victorian submarine telegraph cable
> >     > interruptions under the Atlantic.  I know, what an Anorak!!
> >     > I have found a brilliant rasterfile of the seabed from GEBCO to use as
> > a
> >     > base layer. I have also collected all the data of cable failure,
> > submarine
> >     > earthquakes and volcanoes and am ready to make vector layers of all
> > the
> >     > data.
> >     > But what I can't find is a shapefile of the tectonic plates
> > boundaries,
> >     > just the boundary lines with no shading or text.
&

Re: [Qgis-user] [QGIS-Developer] passing parameters to QGIS Python-Script started via Command Line

2022-08-08 Per discussione Ujaval Gandhi via Qgis-user
One option is to set env variables before launching the qgis command. The env
variables can be read from python.


set QGIS_MESSAGE=Helllo World




Then your myscript.py can be something like


from qgis.utils import iface
import os

message = os.environ['QGIS_MESSAGE']
iface.messageBar().pushMessage(message)





---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com [http://www.spatialthoughts.com]




[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAQABAAACAkQBADs=3D]
On Mon, Aug 8, 2022 at 7:52 PM Matthias Kuhn via QGIS-Developer
 wrote:

> Hi Peter,
> 
> 
> You are correct with the analysis of the situation.
> 
> 
> Even if `qgis --help` states the following:
>  [--] treat all following arguments as FILEs
> 
> 
> it does in fact already interpret parameters as files before the `--`
> parameter.
> Changing this behavior is risky (it will break many startup scripts out there)
> and can be considered for QGIS 4.
> For now, we could add another marker as a band aid, e.g. we add a `--ex`
> (extra-parameters) that indicates that any parameters that follow should NOT
> be interpreted as files:
> 
> 
> 
>     qgis -p 1234.qgs --code script.py [files could be here] --ex
> --myparam=1324 -- [more files can still be here]
> 
> 
> If that sounds like what you are looking for, we are happy to help you with
> that
> 
> 
> Best regards
> Matthias
> 
> On Mon, Aug 8, 2022 at 3:55 PM Drexel Peter via QGIS-Developer
>  wrote:
> 
> 
> > Hi everyone,
> > 
> > My goal: I want to open QGIS using the Command-Line, load a specific
> > project, select specific features and zoom to the selected features.
> > 
> > What sounds rather difficult is actually mostly solvable using the
> > following:
> > 
> > "C:\Program Files\QGIS 3.16\bin\qgis-ltr-bin.exe" -p "d:\standardebenen.qgs"
> > --code myscript.py
> > 
> >  
> > 
> > This opens QGIS with the Project d:\standardebenen.qgs and after that it
> > runs the script “myscript.py”.
> > 
> > Within the scrip I can do everything what I can do in a Python-script, so
> > there I can select some features in a layer and show that selection.
> > 
> > But this selections are “hard-coded” in the script, I cannot pass over these
> > parameters to the myscript.py.
> > 
> > In “Pure Python” I can pass parameters to a Python Script using “python
> > myscript.py arg1 arg2 arg3”.
> > 
> > This seems to be not working in the QGIS-Command-Line  as the parameters are
> > interpreted as “layers to load”.
> > 
> > Am I right with my analysis?
> > 
> > One workaround is to write the parameters to al file and use this file
> > within the myscript.py to define the selections. But this is very unhandy…
> > 
> > Are there any ideas from any QGIS-Expert to solve my problem?
> > 
> >  
> > 
> > If this cannot be solved in the current version of QGIS is one of the
> > developers willing to get in contact with me to make an offer the implement
> > this feature ?
> > 
> > Thanks
> > 
> > Peter
> > 
> > ___
> > QGIS-Developer mailing list
> > qgis-develo...@lists.osgeo.org [qgis-develo...@lists.osgeo.org]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> > [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> 
> 
> https://qfield.org/get/
> [https://ci4.googleusercontent.com/proxy/GqvhkBbIsDNWtqe2HThZLEElIli5211Hog29CYort7mWquajzTRIucqyquJ4nK_KuFTbuEa2CCNNIfLx52nBCCQkb6EWyBAfIjM_iV06dJPuBZpmAolhpdzysf0=s0-d-e1-ft#https://www.opengis.ch/wp-content/uploads/2022/04/Qfield_Banner_email.png]
> [https://qfield.org/get/]
> 
> QFIELD 2.0 IS HERE! - Hold the power of QGIS in your hand - learn more
> [https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/] - get it now
> [https://qfield.org/get]
> 
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org [qgis-develo...@lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> [https://lists.osgeo.org/mailman/listinfo/qgis-developer]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> [https://lists.osgeo.org/mailman/listinfo/qgis-developer]___
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] PyQGIS from non-bundled Python install?

2022-06-08 Per discussione Ujaval Gandhi via Qgis-user
Yes. Configuring system paths to point to qgis libraries will allow native
python to work with pyqgis. I have a complete example for Mac which can be
easily adapted for a linux based system.
https://courses.spatialthoughts.com/pyqgis-in-a-day.html#writing-standalone-python-scripts
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Wed, Jun 8, 2022 at 7:25 AM Andrew Hughes via Qgis-user <
qgis-user@lists.osgeo.org> wrote:

> Hi All,
>
> Q: Is it possible to have a system/native python install work with PyQGIS?
>
> Finer Details: I am working with Azure Functions. Their base
> (container/docker) image includes a python install. I can provide a custom
> docker image, thus I can set system paths and run all the instructions as
> per this https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntu
> so that QGIS is installed on the container. But, I doubt my (function) app
> can be configured to run a-top of the QGIS python install that is bundled
> with QGIS.
>
> Also, I don't know if conda is an option - would prefer to assume not at
> this point in time as that doesn't align with local development tooling
> that is based on venv.
>
> Things I am hoping to see:
> Yes - but you need to set a PATH or PYTHONPATH
> Yes - but need to see . in requirements.txt
> No - impossible, fill your boots
>
> Thanks for reading
> Andrew
>
>
>
> ___
> 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] add strava heatmap to QGIS

2022-05-11 Per discussione Ujaval Gandhi via Qgis-user
Hi Hugh,

I made it work successfully in QGIS. The URL needs slight tweaking as
follows

https://heatmap-external-a.strava.com/tiles-auth/all/hot/{z}/{x}/{y}.png?Key-Pair-Id=LONG_STRING

Pro Tip: Use View -> Panels -> Debugging /Development Tools to see the
network request that QGIS is sending out. It helped figure out the correct
url.




On Fri, May 6, 2022 at 9:22 PM Hugh Kelley via Qgis-user <
qgis-user@lists.osgeo.org> wrote:

> Hi,
>
> I'm hoping to add the strava global heatmap as a tile layer in QGIS.
>
> I've done this successfully in the OSM JOSM and ID Editors without a
> problem. this set of instructions/browser plugin is super helpful.
> https://github.com/zekefarwell/josm-strava-heatmap
>
> without sharing my credentials, the url is just:
>
> https://heatmap-external-{switch:a,b,c}.
> strava.com/tiles-auth/all/hot/{zoom}/{x}/{y}.png?Key-Pair-Id=ID_STRING=VERY_LONG_STRING
> 
>
>
> It seems that I should be able to plug the same url into the QGIS  as an
> xyz layer, but when I do it doesn't work. There's no error or warning, just
> a blank map window. I tried including my strava login in the credentials
> section but this didn't do anything and isn't necessary in the JOSM or ID
> editors.
>
> Just wondering if anyone can think of any further fixes to try or has
> successfully done this themselves. The heatmap api has changed a bit in the
> past couple years so what worked in the past may not work correctly today.
>
> Thanks!
>
> Hugh
>
> ___
> 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] help with shortest-path/network analysis (multiple origins to multiple destinations)

2022-05-06 Per discussione Ujaval Gandhi via Qgis-user
_IT.aspx> in
>> SocioEconomic and Statistical Studies
>> _ Luiss SEP <https://sep.luiss.it/> School of European Political Economy
>>
>>
>> email: francescaparente@gmail.com
>>paren...@luiss.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
>>
>>
>
> --
> 
> Francesca Parente
>
> _ SESS Euro PhD
> <https://phd.uniroma1.it/web/FRANCESCA-PARENTE_nT1602922_IT.aspx> in
> SocioEconomic and Statistical Studies
> _ Luiss SEP <https://sep.luiss.it/> School of European Political Economy
>
> email: francescaparente@gmail.com
>paren...@luiss.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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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] geolocating a list of addresses

2022-03-04 Per discussione Ujaval Gandhi via Qgis-user
You mention your points are in Lat/Lon but your chosen CRS is UTM. That's
the mismatch.

If your point coordinates are in Latitude Longitude, choose EPSG:4326 WGS84
as your CRS when importing the CSV and it will line up.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Fri, Mar 4, 2022 at 3:26 PM Francesca Parente <
francescaparente@gmail.com> wrote:

> Hello again and apologies for re-posting on this same thread, I still
> haven't managed to display the points within their polygons.
> I checked the CRS and it's same for both layers: [image: image.png]
> I believe there is an issue with the scale, which I'm not sure how to
> reconcile: when I zoom on the points layer it's 1:14, while with the
> polygons' I see 1:9490547.
>
> Could you please provice any advice on how to solve this?
> Thank you very much indeed for your time,
> Francesca
>
> Il giorno gio 3 mar 2022 alle ore 12:51 Francesca Parente <
> francescaparente@gmail.com> ha scritto:
>
>> Thanks a lot Ujaval, now I see the points displayed!
>>
>> The problem is different than I though then, because it's like this new
>> layer has a different scale with respect to the ones I was already working
>> on... how can I reconcile the two, in order to see the points within the
>> boundaries of related polygons?
>>
>> Thank you so much once again!
>> Francesca
>>
>> Il giorno gio 3 mar 2022 alle ore 12:20 Ujaval Gandhi <
>> uja...@spatialthoughts.com> ha scritto:
>>
>>> Right-click the layer and select 'Zoom to Layer'. If you still do not
>>> see the points, it must be a problem with your CRS or the coordinates
>>> itself. (Make sure Longitude is X field and Latitude is Y field)
>>> [image: Logo] <https://spatialthoughts.com/>
>>> Ujaval Gandhi
>>> Spatial Thoughts
>>> mobile: +91-8095684687
>>> email: uja...@spatialthoughts.com
>>> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  
>>> [image:
>>> Twitter icon] <https://twitter.com/spatialthoughts>
>>>
>>>
>>>
>>> On Thu, Mar 3, 2022 at 4:45 PM Francesca Parente <
>>> francescaparente@gmail.com> wrote:
>>>
>>>> Hello everyone and thank you for making this mailing list available!
>>>>
>>>> I am using QGIS 3.18 and I have a list of punctual street addresses
>>>> (along with their latitude/longitude data), that I would like to display
>>>> and analyze.
>>>> I've already set a project with polygon layers and related attributes,
>>>> in which the locations should fit.
>>>> I imported the addresses in this project as a delimited text layer
>>>> (specifying the coordinates info in the geometry definition menu), but
>>>> nothing happened next - other than seeing it added to the project layers'
>>>> list.
>>>>
>>>> I'm not sure on how to proceed further and any advice you may have
>>>> would be so very much appreciated.
>>>> Many thanks for your time and good day to all!
>>>> --
>>>> 
>>>> Francesca Parente
>>>>
>>>>
>>>> ___
>>>> 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
>>>
>>>
>>
>
> --
> 
> Francesca Parente
>
> _ SESS Euro PhD
> <https://phd.uniroma1.it/web/FRANCESCA-PARENTE_nT1602922_IT.aspx> in
> SocioEconomic and Statistical Studies
> _ Luiss SEP <https://sep.luiss.it/> School of European Political Economy
>
> email: francescaparente@gmail.com
>paren...@luiss.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] geolocating a list of addresses

2022-03-03 Per discussione Ujaval Gandhi
Right-click the layer and select 'Zoom to Layer'. If you still do not see
the points, it must be a problem with your CRS or the coordinates itself.
(Make sure Longitude is X field and Latitude is Y field)
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Mar 3, 2022 at 4:45 PM Francesca Parente <
francescaparente@gmail.com> wrote:

> Hello everyone and thank you for making this mailing list available!
>
> I am using QGIS 3.18 and I have a list of punctual street addresses (along
> with their latitude/longitude data), that I would like to display and
> analyze.
> I've already set a project with polygon layers and related attributes, in
> which the locations should fit.
> I imported the addresses in this project as a delimited text layer
> (specifying the coordinates info in the geometry definition menu), but
> nothing happened next - other than seeing it added to the project layers'
> list.
>
> I'm not sure on how to proceed further and any advice you may have would
> be so very much appreciated.
> Many thanks for your time and good day to all!
> --
> 
> Francesca Parente
>
>
> ___
> 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] Rounding off QgsPointXY

2022-02-20 Per discussione Ujaval Gandhi
Another approach would be to use 'Snap points to Grid' algorithm. This
allows you to snap the points to a regular grid. Choose 0.01 as the grid
spacing and you'll get points rounded off to 2 decimal points (As David
mentioned, floating-point precision means the printed values won't be exact
2 decimals). Sample PyQGIS code below

layer = iface.activeLayer()

output = processing.run("native:snappointstogrid",
{'INPUT':layer,
'HSPACING':0.01,
'VSPACING':0.01,
'OUTPUT': 'TEMPORARY_OUTPUT'})

for f in output['OUTPUT'].getFeatures():
geom = f.geometry().asPoint()
print(geom)
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sun, Feb 20, 2022 at 11:03 PM David Strip 
wrote:

> I'd start by building the array of values using just the rounded x, y, and
> complex value, not storing a QgsPointXY. Something like
>
> triplets = []
> for point in points:
> # point consists of a QgsPointXY and a complex value - [QgsPointXy,
> complex_value]
> triplets +=  [(round(point[0].x(), 3), round(point[0].y(), 3),
> point[1])]
>
> #sort points by y value
> triplets.sort(key = lambda point: point[1])
> # sort points by x value. Sort is stable, so now we have sorted by x as
> primary, y as secondary
>
> #walk the list of points looking for points with same rounded value,
> summing complex value, outputting a new point when x or y doesn't match
> complex_sum = 0
> last_x = triples[0][0]
> last_y  = triples[0][1]
> output = []
> for t in triplets:
> if ((t[0] == last_x AND t[1] == last_y)):
> complex_sum += t[2]
> else:
> output += [(last_x, last_y, complex_sum)]
> last_x = t[0]
> last_y = t[1]
> complex_sum = t[2]
>
>
> at the end of the loop the var output is a list of triplets (x, y,
> complex) with the third element equal to the sum of the the complex value
> for all points with the same rounded coordinates.
> I haven't actually tested, this so there could be errors. But the idea is
> there.
> There's probably a more pythonic way to do this, but possibly harder to
> read.
>
>
> On 2/20/2022 7:07 AM, Asim al-sofi wrote:
>
> Thank you for your reply
> The issue I have is  that I have an array of values. each value consists
> of xy coordinates of a point and a complex value.
> What I want is that the points that have the same xy coordinates to be
> added together(i.e,, their complex values need to be summed up)
> Because of the high number of decimals of each point, sometimes a point
> like QgsPointXY(6500.114910002363*2* 0), 0.25+0.25j] and a point like
> QgsPointXY(6500.114910002363*1* 0), 0.25+0.25j] would be
> considered as two different points.
> Thanks in advance
> Asim
>
> On Sun, Feb 20, 2022 at 5:21 AM David Strip 
> wrote:
>
>> On 2/19/2022 6:03 PM, Asim al-sofi wrote:
>>
>> Hi everyone
>> I have a problem rounding off the QgsPointXY to say 3 decimals? How can I
>> do that?
>> If I use the numpy.round(point,decimals) then I get an np.array back as a
>> type and not a QgsPointXY.
>> Can someone help?
>> Kind regards
>> Asim
>>
>>
>> what are you trying to achieve? Keep in mind that in general decimal
>> fractions do not have exact representations in floating point, so if you
>> round a coordinate to 3 decimals, store it somewhere, then print it, there
>> will almost certainly be more than three numbers past the decimal point. If
>> it's the printed representation of the number that matters, deal with it in
>> the formatting of the printed representation.
>>
>> That said, you set() method of QgsPointXY to set the values to their
>> rounded values. If my_pt is a QgsPointXY, then
>>
>> my_pt.set(round(my_pt.x(), 3), round(my_pt.y(), 3))
>>
>>
>>
> ___
> 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] Rolling out pre-configured QGIS for multiple users - MSI package, user profiles and more

2022-02-10 Per discussione Ujaval Gandhi
Check out this guide https://github.com/haubourg/custom-osgeo4w-qgis
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Feb 10, 2022 at 9:09 PM  wrote:

> Hi QGIS users
>
> At my workplace we use QGIS and new employed users QGIS installation is
> launched from an internal MSI package provided by the IT Department.
> Still there´s some manual configurations that has to be done for every
> user - installing certain plugins, pointing at local db with reader
> rights etc. I´ve worked with user profiles but as I see it, it cannot
> accomplish all of our requirements. Either can a "coorporate"
> MSI-package or?
> The users are working on Windows. How to do this and is there any  good
> examples out there. Thx.
>
> - Dany Morck, Denmark
> ___
> 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 Model Designer

2022-01-11 Per discussione Ujaval Gandhi
The batch processing and modeler are mising the 'iterate' feature, and this
type of batch processing + merge functionality will be useful. I have a
tutorial on how to write a bit of pyqgis code to do this that shows exactly
the use case you have. But it can be used with any other processing
algorithm.
https://www.qgistutorials.com/en/docs/3/processing_algorithms_pyqgis.html
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Jan 10, 2022 at 4:52 PM Richard McDonnell 
wrote:

> Hi All,
>
> Apologies, but I think I have found a Plugin, which looks promising “Point
> sampling tool” which seems to do what I want.
>
> 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/
>
> *From:* Qgis-user  *On Behalf Of *Richard
> McDonnell
> *Sent:* 10 January 2022 11:18
> *To:* qgis-user@lists.osgeo.org
> *Subject:* [Qgis-user] QGIS Model Designer
>
>
>
> Hi all.
>
> I have been asked to sample over 100 raster pixel values using a single
> point file.
>
> I can use the “Sample raster values” Tool, but this only outputs for one
> Raster. I have looked at batching this, but it will produce 100’s of point
> files which I will have to merge together. So I was looking at using the
> Model Designer, but again it can’t accept multiple raster inputs.
>
>
>
> What I would like to know, is how I might easily create a single shapefile
> with a column for each raster containing the sampled value. The easiest way
> would be to somehow sample the first raster saving the output then loop
> back to the second raster, but this time using output from the first
> sampling to sample the second. This looping would continue until all
> raster’s had been sampled.
>
>
>
> Any help appreciated.
>
> 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/
>
>
> ___
> 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] NULL value in a table

2022-01-11 Per discussione Ujaval Gandhi
This looks like a bug, but I could find a workaround. In the Print Layout
Table's Item Properties, choose 'Attribute' and for the column that you
have NULL values, enter an expression like below under the 'Attributes'
heading. Replace 'my_col' with the name of your attribute.

CASE WHEN "my_col" is NULL
THEN NULL
ELSE "my_col"
END

After you enter the expression, change the 'Heading' to the original column
names. Now you should have blank entries where there were NULL values.

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Jan 10, 2022 at 10:30 PM Dario C  wrote:

> Hi,
> I have a table in my layout, which has  a column set as integer. Is there
> any chance to have void attribute where I have NULL values? At the moment I
> have everything with "0".
>
> 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 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] Interpolation of a geometry

2022-01-08 Per discussione Ujaval Gandhi
 There's a tool 'Points along geometry' in the Processing Toolbox that can
do this. Can you use that?

If you are trying to do this with PyQGIS, share your code snippet so folks
can suggest how to do it.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sat, Jan 8, 2022 at 7:22 PM Asim al-sofi  wrote:

> Dear all,
> I am asking for help with interpolating a geometry.
> I have a geometry say "*geom*" and want to add new points to it at fixed
> distances, say "*distance*".
> Using the method "interpolate" i.e., *geom*.interpolate(*distance*)
> returns only points at the interpolated distance(s), meaning the geometry
> points between the interpolated points are unknown.
> Is there a method to insert the interpolated points into the *geom*(of
> course at the right positions)?
> With other words, how to create a new geometry that contains the points of
> the old geometry and the interpolated points?
>
> Kind regards,
> Asim
> ___
> 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] Raster layer opacity expression - how does it work?

2021-12-06 Per discussione Ujaval Gandhi
You can also try the “Mask” plugin for more control.
https://plugins.qgis.org/plugins/mask/

On Mon, 6 Dec 2021 at 7:43 PM, DelazJ  wrote:

> Hi,
> And here's the feature in the changelog (
> https://qgis.org/en/site/forusers/visualchangelog322/index.html#feature-data-defined-raster-layer-opacity);
> afaict, it affects the whole layer and not pixel by pixel.
>
> On a kind-of "off topic" request, I'd also be interested to see examples
> of expressions playing with raster functions.
>
> Regards,
> Harrissou
>
> Le lun. 6 déc. 2021 à 13:32, Johannes Kröger (WhereGroup) <
> johannes.kroe...@wheregroup.com> a écrit :
>
>> Anything that you can do with expressions, in this case to get a number
>> between 0 and 100, but it will always affect the whole layer globally.
>> You can not set a different opacity for different regions. For this,
>> approaches like Ujaval's suggestion are probably the best way.
>>
>> Cheers
>> Hannes
>>
>> > I'd still really like to know what can be done using an expression for
>> > the Global Opacity of a raster layer.
>>
>> --
>> Johannes Kröger / GIS-Entwickler/-Berater
>> WhereGroup GmbH
>> Eifelstraße 7
>> <https://www.google.com/maps/search/Eifelstra%C3%9Fe+7+%0D%0A53119+Bonn+%0D%0AGermany?entry=gmail=g>
>> 53119 Bonn
>> <https://www.google.com/maps/search/Eifelstra%C3%9Fe+7+%0D%0A53119+Bonn+%0D%0AGermany?entry=gmail=g>
>> Germany
>> <https://www.google.com/maps/search/Eifelstra%C3%9Fe+7+%0D%0A53119+Bonn+%0D%0AGermany?entry=gmail=g>
>>
>> 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
>> ---
>>
>> 
>> Where2B Konferenz 2021
>> Online am 16. Dezember 2021
>> https://where2b-conference.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
>>
> --
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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] Raster layer opacity expression - how does it work?

2021-12-05 Per discussione Ujaval Gandhi
I assume you are trying to set the opacity to 50% outside of a polygon
layer. This can be done using the 'Inverted Polygon' renderer. See this
screenshot https://ibb.co/Sf5HySf

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sun, Dec 5, 2021 at 5:12 PM Jonathan Schultz  wrote:

> Hello,
>
> I'm trying to use opacity on a raster layer to highlight an area of
> interest. So, for example, I would use opacity 100 for an area (defined
> in another layer), and 50 for anywhere outside that area. But I can't
> seem to even find basic documentation on how the Renderer opacity values
> work. If I enable the Assistant I get a bunch of fields: Source (an
> expression), Values from and to, plus a checkbox "Apply transform curve"
> with its own set of fields.
>
> When I google words like "Renderer opacity" all I get are references to
> the source code but no documentation or examples.
>
> This is QGIS version 3.22.0-Białowieża running on Linux/Debian.
>
> Does anyone know how this stuff works, or how I could find out?
>
> 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 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] excel file with lat long

2021-11-16 Per discussione Ujaval Gandhi
Drag and drop the Excel file to QGIS. Then use the “ Points layer from
table” tool from the Processing Toolbox to create a point layer from it.

On Wed, 17 Nov 2021 at 5:58 AM, Firstname Lastname 
wrote:

> i have a file with a four columns,
> latitude, longitude, outcrop name, identifier
>
> how do i import an excel file, do i need to convert to a text file and how
> do i assign the format in qgis to import as lat long?
> thanks
>
>
> --
> Byron Veilleux, MSc. P.Geo
> Conjugate Geologic Services Limited
> Calgary, Alberta Canada
> by...@conjugategeo.com
> Cell:4037108414
>
>
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
> <#m_-3135534670972974893_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> ___
> 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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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-LTR on MacOs

2021-10-23 Per discussione Ujaval Gandhi
Go to Preferences → Security & Privacy → General. Click the Lock icon and
enter your password. Click the Open Anyway button to launch QGIS. This step
needs to be done only once. The next time, you can launch QGIS-LTR directly
from the Applications folder.

On Sat, 23 Oct 2021 at 1:59 PM,  wrote:

> Hi,
>
>
>
> I need some help please….
>
>
>
> I have an iMac with version macOS Big Sur Version 11.6. I am trying to
> download and run QGIS-LTR or the standard version of QGIS.
>
>
>
> The download takes place of either version, when I try to run the
> application, it does a verify with no errors but refuses to open with the
> message:
>
>
>
> *QGIS-LTR can’t be opened because Apple cannot check it for malicious
> software*
>
>
>
> I would really appreciate any help.
>
>
>
> Thanks
>
>
>
> Terence
> ___
> 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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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] k-means constrained

2021-10-21 Per discussione Ujaval Gandhi
I wrote a QGIS processing alg for constrained k-means based on another
library. You can check it out at
https://spatialthoughts.com/2021/01/31/equal-sized-kmeans-qgis/

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Oct 21, 2021 at 10:53 PM Wolfgang Meinolf <
wmein...@bbv-deutschland.de> wrote:

> Hi,
>
> I need to use the https://github.com/joshlk/k-means-constrained in QGIS.
> Unfortunately this lib in not listed in the OSGeo4W installer. As I don’t
> like to install it separately on windows here my question:
>
>
>
> Is there any comparable processing alg or Plugin available in QGIS, which
> I can Installviy QGIS Installer and use inside processing scripts?
>
>
>
> Thanks and regards
>
> Wolfgang
> ___
> 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] generating contours from point elevation data

2021-10-15 Per discussione Ujaval Gandhi
You can do this built in processing tools by interpolating the points.
Here’s the workflow
http://www.qgistutorials.com/en/docs/3/interpolating_point_data.html

-Ujaval

On Fri, 15 Oct 2021 at 8:55 PM, Bernd Vogelgesang 
wrote:

>
> On 15.10.21 17:00, Firstname Lastname wrote:
>
>  i have imported several elevation model files into qgis.  they come in as
> x,y,z, elevation points.  The original files are of the type:  GDBINDEXES,
> GDBTABLE FILE, GDBTABLX, and SPX.  can someone help me with a workflow for
> gridding and contouring these elevation files so that they look like either
> a contoured topo map or density contoured DEM.   i am able to import the
> points but need some help with the contouring
>
>
>
> Plugins might be your friend:
>
> https://plugins.qgis.org/search/?q=contour
>
> ___
> Qgis-user mailing listqgis-u...@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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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 please

2021-10-11 Per discussione Ujaval Gandhi
You need a field data collection solution. There are twi offerings based on
QGIS that can help you collect data using a mobile device and have the data
stored in a central QGIS database.

Check out https://inputapp.io/en/ and https://qfield.org/

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Oct 11, 2021 at 5:58 AM Peter Cramer  wrote:

> I have a very basic question about qgis features. Thanks in advance for
> any answers.
>
>
>
> The scenario is that we need to geo locate 6,000 machines in various
> locations throughout Australia.
>
> I person will be onsite at each machine in the exact position of the
> machine.
>
> We want to create a gps position for each machine and save it or record /
> copy it
>
> Create a list of the 6000 machines in a data base
>
> Use this database to display machine placements on maps at level – country
> – state – suburb and or postcode
>
> Select a single machine and see a description of the location and or
> actual zoomed in map vision of the machine location
>
> Zoom out or in to different levels of geographic area size to see all
> machines within the screen view
>
>
>
>
>
> Second priority level of information
>
> Add additional information to each machine. E.g model number and type of
> machine displayed in map via hover or similar function
>
> Select State – suburb or postcode to view all machines withing that
> specific area.
>
> Build a visual presentation of maps for selected specific areas as above
> point.
>
>
>
> I am thinking that if qgis can do these basic things we can add to our
> wish list of features later.
>
>
>
>
>
>
>
>
>
> Kind Regards
>
>
>
> Peter
>
>
>
> *Peter*
>
> *Cramer*
> Director
>
> [image: A picture containing drawing, food Description automatically
> generated]
>
>  *0401771863*
>
> pe...@websurge.com.au
>
> https://websurge.com.au
>
> *Breakfast Point NSW*
>
>
>
>
> ___
> 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] Preparation of road network layer

2021-09-02 Per discussione Ujaval Gandhi
Dissolve, followed by Multiparty to Singlepart will do the trick. See step
7-10 of this tutorial
http://www.qgistutorials.com/en/docs/3/calculating_intersection_density.html

On Thu, 2 Sep 2021 at 6:22 PM, C Hamilton  wrote:

> I don't know if it is helpful to you but the Shape Tools plugin has an
> algorithm that breaks lines and polygons down into line segments and
> measures each as individual line segments or the entire line. It then can
> automatically style it and display it to the user. It adds all the
> measurements to the attribute table.
>
> https://plugins.qgis.org/plugins/shapetools/
>
> The algorithm is "Geodesic measurement layer".
>
> Regards,
> Calvin
>
> On Thu, Sep 2, 2021 at 3:46 AM Roland Spielhofer  wrote:
>
>> Hi,
>> I have a road network layer (Multi Line String) I would like to prepare
>> so that each segment is a single line between intersections.
>> This would mean to connect consecutive lines without intersections and
>> split longer line segments at interesctions.
>> In the end I need statistics of the length of the road segments between
>> to junctions.
>>
>>
>> I remember a plugin capable of this but have not found anything useful.
>>
>> BTW: Is there a way to make a fulltext search of the qgis-user mailing
>> list archive? Nabble is not available for this anymore.
>>
>> Regards,
>> Roland
>> ___
>> 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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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] processAlgorithm vs processFeature?

2021-08-23 Per discussione Ujaval Gandhi
If your algorithm works on each feature independently, processFeature() is
preferred. If you need to work with layers, you need to use
processAlgorithm(). I demonstrate this with an example at
https://spatialthoughts.com/2019/04/05/geodesic-buffers-in-qgis/

On Mon, 23 Aug 2021 at 10:25 PM, C Hamilton  wrote:

> I discovered that it looks like there is another way to deal with
> processing algorithms. Rather than use processAlgorithm it looks like I can
> use prepareAlgorithm & processFeature. I have always used processAlgorithm
> and then iterated through the features.
>
> Is processFeature just as quick as using processAlgorithm (iterating
> through the features)? Is one method preferred over the other? I think for
> some algorithms using processFeature would make the code look cleaner. Are
> there any gotchas in using the processFeature method?
>
> Thanks,
>
> Calvin
> ___
> 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
>
-- 
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
___
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] Uninstall QGIS 3.16.8 macOS?

2021-07-26 Per discussione Ujaval Gandhi
That's for the old installers. The new installers are self-contained and
you can just delete /Application/QGIS3.x package and everything will get
deleted.

The profile is stored at ~/Library/Application Support/QGIS . You can
delete that to get a clean start.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Jul 26, 2021 at 6:49 PM Samuel Heichelbech 
wrote:

> Hi everyone,
>
> I’d like to completely uninstall 3.16.8 from my Mac. Any guidance on how
> to do this completely? I found a StackExchange post (
> https://gis.stackexchange.com/questions/268229/how-to-uninstall-qgis-from-macos)
> that dealt with 3.2, but I could not find any ReadMe with the specific
> terminal commands in the .dmg for 3.16. I can see that QGIS installs data
> in “Application Support,” but I don’t know where else all the packages get
> deposited, and I’d like to remove them all so as to have a clean slate. I
> installed from the binaries available on the QGIS website.
>
> Any help would be much appreciated!
>
> Thank you,
>
> Sam
> ___
> 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] PYQGIS Algorithm Dev Environments?

2021-07-25 Per discussione Ujaval Gandhi
What you are looking for is 'Processing Algorithms' or 'Processing
Scripts'. When you write a new algorithm using the Processing Framework,
the algorithm is available in the Processing Toolbox and can be used in
models, batch processing, or standalone tool. QGIS also includes a
'qgis_process' tool that can execute processing algorithms from
command-line without launching the qgis gui.

You can also write a standalone pyqgis script that can be run on
servers/headless mode without QGIS GUI.

For dev environments, you can use PyQGIS with Pycharm, VSCode, Jupyter etc.
by setting your paths correctly. You can also install QGIS using conda and
use it from the conda environment (which removes the hassle of setting
python paths)

 Sharing some resources

Writing Processing Scripts
https://docs.qgis.org/3.16/en/docs/user_manual/processing/scripts.html
qgis_process tool:
https://bnhr.xyz/2020/07/17/run-qgis-algorithms-command-line.html
writing standalone pyqgis scripts
https://courses.spatialthoughts.com/pyqgis-in-a-day.html#writing-standalone-python-scripts
VSCode PyQGIS setup https://gis.stackexchange.com/a/330646/5160
QGIS with Conda
https://gisunchained.wordpress.com/2019/05/29/using-qgis-from-conda/


[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Jul 26, 2021 at 8:31 AM Andrew Hughes  wrote:

> Hi All,
>
> I've spent the best part of the morning trying and getting nowhere working
> out the following when developing python algorithms
>
> In order of priority, my questions are - How can I...
>
> Q: develop+run/debug algorithms in VSCode?
> Q: run the python algorithm on the command line (without starting the QGIS
> GUI) - this is for automation (non-human) driven execution?
> Q: display the algorithm in the QGIS processing panel, and execute it -
> for human driven execution.
> Q: incorporate the algorithm in QGIS processing models?
>
> I am hoping there is an online guide or public project I have not been
> able to find yet that someone can point me to.
>
> For reference: I'm trying to process large volumes of data that I would
> like to 'migrate' across to openstreet map exports. Given the size of the
> data, I feel like I need to start writing bespoke algorithms that will
> iterate feature-by-feature and have more control over what is happening
> during the execution.
>
> Many thank in advance
> Andrew
> ___
> 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] 'Thinning' features

2021-06-18 Per discussione Ujaval Gandhi
For Points, there's a simple solution using SAGA Point Thinning algorithm
<https://gis.stackexchange.com/questions/233032/reduce-number-of-points-in-polygon>.
For Lines I could not find anything built-in but after some tests and the
following solution seems to work well.

   - Use Processing Toolbox > Snap geometries to Layer. Select the same
   layer for both input and reference. Specify your tolerance
   - The nearby line features will be snapped. Now use the Processing
   Toolbox > Delete duplicate geometries to remove one of the overlapping lines

Let me know how it goes with your dataset.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Fri, Jun 18, 2021 at 4:54 PM ryanpeel  wrote:

> I have these features that are 'near' each other by just a couple feet.  I
> want to remove one of them.  Basically, remove one (doesn't matter which)
> if
> it's in parallel proximity by x number of feet.  Is there a way to do this?
> <http://osgeo-org.1560.x6.nabble.com/file/t387303/8eSl3nIP6b.png>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> 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] How can I add a distinct ID-Number to my shape-file?

2021-06-14 Per discussione Ujaval Gandhi
You can check out the various suggestions in this thread
https://gis.stackexchange.com/questions/132346/is-there-a-way-of-auto-increment-for-the-id-column-in-qgis

Ujaval Gandhi
Spatial Thoughts

On Mon, Jun 14, 2021, 4:49 PM Katrin Schneider 
wrote:

> Hi, I am building a dataset of recordings of animals as an shapefile
> (Point) with several attributes for every recording. I would like to
> automatically add a distinct ID to every point. Ideally it should not be
> possible to change it.  Can you tell me, whether this is possible and how?
>
> QGIS 3.14
>
> Kind regards,
>
> Katrin
>
>
>
> *Katrin Schneider*
>
> FG Naturschutz & Umweltkommunikation / Fachgebietsleiterin
>
>
>
> Unabhängiges Institut für Umweltfragen - UfU -
>
> Büro Halle
>
> korina | Koordinationsstelle Invasive Neophyten in
>
> Schutzgebieten Sachsen-Anhalts beim UfU e.V.
>
>
>
> Große Klausstr. 11, 06108 Halle/Saale
>
> Telefon 0345 202 65 30, Fax 0345 685 85 216
>
> www.korina.info, www.neophyten-in-der-landwirtschaft.de
>
> KORINA-Newsletter <https://www.korina.info/info/korina/newsletter/>
>
>
>
> <https://www.ufu.de/><https://twitter.com/UfUberlin>
> <https://www.facebook.com/ufu.institut>
>
>
>
> *Das UfU braucht Unterstützung!*
>
> *Jetzt **Spenden* <https://www.ufu.de/ufu-mitglieder-2/>* oder **Mitglied*
> <https://www.ufu.de/ufu-mitglieder/>
> * werden und ein Teil der UfU Familie sein!*
>
>
>
> *Hier finden Sie unsere neusten **Publikationen*
> <https://www.ufu.de/publikationen/>*.*
>
>
>
>
>
>
>
>
> ___
> 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] SPLIT POLYGONS INTO 3 PARTS (similar size)

2021-06-12 Per discussione Ujaval Gandhi
I ended up writing a blog post with step-by-step instructions on how to do
this. You may find it useful
https://spatialthoughts.com/2021/06/12/split-polygons-qgis/
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Jun 10, 2021 at 12:34 PM Ujaval Gandhi 
wrote:

> Hi Azzurra,
>
> QGIS Processing Algorithms have an 'Iterate' feature that can be used to
> run an algorithm on all features of the layer. (see attached screenshot) I
> built a QGIS Processing Model that splits a polygon into N parts. You can
> load the model using 'Add Model to Toolbox' from the Processing Toolbox
> menu and run the 'Split Polygon' algorithm with 'Iterator' mode to run it
> 200 times - one for each of your polygons. You will get 200 new layers
> which can be merged into 1 using the 'Merge Vector Layer' tool. I tested it
> on the US States dataset and it works well.
>
>
> [image: Logo] <https://spatialthoughts.com/>
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
> Twitter icon] <https://twitter.com/spatialthoughts>
>
>
>
> On Thu, Jun 10, 2021 at 5:01 AM Azzurra Lentini 
> wrote:
>
>> Hi List, I ask you  again the same question  I asked you days ago.
>> I have several polygons - around 200-  (all different shapes and not
>> regular geometry) and I need to split every single polygon into 3 parts
>> of similar size.
>> I have tried with *Split polygons* but it is working very well only with
>> regular geometries (square, rectangle etc.) and so I can not use it in this
>> case.
>> I have tried  also your suggestions (generate points, kclustering and
>> voronoi polygons):https://gis.stackexchange.com/questions/321021/how-to-
>> split-polygon-into-equal-area-polygons-in-qgis-3 and
>> https://blog.cleverelephant.ca/2018/06/polygon-splitting.html
>> but I am not able to do it to all 200 polygons at once.. I can do it only
>> polygon by polygon..
>>
>> do you have other suggestions? thanks AL
>>
>> On Wed, 19 May 2021 at 15:49, Azzurra Lentini 
>> wrote:
>>
>>> Dear List,
>>> please I would like to have any suggestion regarding this topic: I have
>>> several polygons (all different shapes and not regular geometry) and I need
>>> to split every single polygon into 3 parts of similar size.
>>> I have tried with *Split polygons* but it is working very well only
>>> with regular geometries (square, rectangle etc.) and so I can not use it in
>>> this case.
>>>
>>> Do you have any suggestions?
>>>
>>> THANK YOU, AZZURRA
>>> --
>>> Adjunct Professor University "Roma Tre"
>>> Gis Applied for Environmental studies
>>> Risk modelling & Hydrogeology
>>> Consultant DFID-UK, United Nations, EU projects
>>> AZZURRA LENTINI
>>> ++
>>> Italy Mobile Tel.: **(39) 338 24 40 676
>>> ++
>>> SKYPE azzurrahydro
>>> ++
>>>
>>> *azzurralent...@gmail.com *
>>>
>>> *azzurra.lent...@uniroma3.it  *
>>> ++
>>> *Par respect pour l'environnement,*
>>>
>>> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Adjunct Professor University "Roma Tre"
>> Gis Applied for Environmental studies
>> Risk modelling & Hydrogeology
>> Consultant DFID-UK, United Nations, EU projects
>> AZZURRA LENTINI
>> ++
>> Italy Mobile Tel.: **(39) 338 24 40 676
>> ++
>> SKYPE azzurrahydro
>> ++
>>
>> *azzurralent...@gmail.com *
>>
>> *azzurra.lent...@uniroma3.it  *
>> ++
>> *Par respect pour l'environnement,*
>>
>> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>>
>>
>>
>>
>>
>> ___
>> 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] Unable to use Raster Calc in Modeller

2021-06-11 Per discussione Ujaval Gandhi
QGIS Raster Calculator syntax is hard to use, especially from the modeler
and I frequently end up with wrong results. My suggestion is to use the
GDAL Raster Calculator, which has much more friendly syntax and is easy to
configure from the modeler.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Fri, Jun 11, 2021 at 10:45 PM Drew French  wrote:

> The native raster calculator does not seem to work in the Graphic Modeller
> when you use an  algorithm result instead of an input. This is very
> frustrating as I wanted to build a model that relies on the calculator for
> the final output. I don't have an example but it is as simple as taking an
> original DEM, running it through an algorithm to extract a category of
> values, and then subtracting those values from the original. The formula is
> good - I tested it out in the normal processing toolbox, it works great!
> But I want to take that into a model so I can batch process. Thanks for any
> thoughts
>
> --
> Drew French
> (715) 986-8088
> www.ecologicaldesign.land
> ___
> 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] Rename column

2021-06-01 Per discussione Ujaval Gandhi
You can also use the 'Refactor Fields' algorithm from the Processing
Toolbox - which can not only rename the fields but also change the order
and types as well.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Jun 1, 2021 at 3:35 PM Matt Boyd  wrote:

> You can rename columns (or fields) in the layer properties (need to
> have editting turned on)
> In the field calculator, sometimes I have issues with the data type
> and "fieldname" doesn't work so well but if I do "1*fieldname" it
> does.
>
>
>
> On Tue, Jun 1, 2021 at 7:31 PM Ursula Heinze 
> wrote:
> >
> > Hello,
> >
> > I have a little problem with the field calculator. I want to rename a
> column, and I don´t find any way to do it.
> >
> > Now I tried to copy the field values in a new column with the right
> name, and am also not successful. Has anybody an idea for me, how to solve
> the problem? Many thanks in advance!
> >
> > Ursula Heinze
> >
> >
> >
> > Gesendet von Mail für Windows 10
> >
> >
> >
> > ___
> > 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] Is this a bug in the vector clipping algorithm?

2021-06-01 Per discussione Ujaval Gandhi
You can run the 'Check Validity' tool from the Processing Toolbox with
'QGIS' method and it will point out the error. (see screenshot
<https://imgur.com/a/yIP947p>) 'line 1 contains 3 duplicate nodes starting
at vertex 13'. So QGIS will try to fix this by creating a multipart
geometry.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Jun 1, 2021 at 1:59 PM Alister Hood  wrote:

> Hi everyone,
>
> I found that if a line touches itself, if I use the vector overlay "clip"
> algorithm on that layer, the feature gets broken up into 3 pieces (I can
> tell by running it through the "multipart to singleparts" algorithm).
>
> See the screenshot below of some example inputs, and I've attempted to
> attach the layers.  If I run the line layer through "multipart to
> singleparts" it produces a layer with only one feature.  But if I use the
> polygon to clip the line layer, and then run it through "multipart to
> singleparts" it gets split at the point where it touches itself,  into
> three pieces.
>
> I haven't been able to find a tool for validating or repairing geometries
> that thinks there is a problem with the original geometry, so I think this
> is a bug with the clip algorithm.  Should I file a ticket?
>
> Or should the original geometry be considered invalid, so I can't expect
> the algorithm to preserve it as a single feature?  If that's the case do we
> need a better tool for validating or repairing geometries, which can
> identify geometries with this problem?).
> [image: image.png]
>
> Regards,
> Alister
> ___
> 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] Assistance required

2021-05-25 Per discussione Ujaval Gandhi
Do it in 2 steps. 'Extract by Location' form Processing Toolbox and use
'Disjoint' predicate with the buffer layer, and then do 'Random Selection'
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, May 25, 2021 at 11:05 PM Frances Cornelius 
wrote:

> To whom it may concern
>
> I would like to randomly select points, but exclude the buffered zone of
> the road.  I've tried a couple of things and nothing seems to work.
>
> With best regards
> Frances
> ___
> 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] Select data from a specific layer

2021-05-18 Per discussione Ujaval Gandhi
get_feature() will get you the feature.Your current expression will get you
the first feature from 'V_TB_ATTIVITA_PT_NR' layer where the "Colore" value
is 'N'. - I don't think that is what you want.  You need to query for a
feature from another layer that relates to the current feature, (using a
common field value).  Once you get the feature, you can use the
attributes(feature)['Colore'] to read the "Colore' field from that feature.

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, May 18, 2021 at 4:35 AM Delaz J  wrote:

> Hi Dario,
>
> Could you try with 'Colore' and not "Colore" (pay attention to the simple
> vs double quotes)?
>
> Regards,
>
> Harrissou
> Le 18/05/2021 à 00:41, Dario C a écrit :
>
>   Hi, thank you for your reply, but I still don't understand how to do...
> sorry
>
> i tried to write this code in colour expression, but I don't understand
> what "value" is in get_feature :
>
> CASE
> When
> get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'N')='N' then color_rgb (0,0,0)
> When
> get_feature('V_TB_ATTIVITA_PT_NR',"Colore",'R')='R' then color_rgb
> (255,0,0)
> END
>
> Consider that I have a virtual field called "Colore" where I have 'N' or
> 'R' in case it is black or red color.
>
> Thank you for your kind availability.
>
> cheers
>
> Il giorno lun 17 mag 2021 alle ore 09:09 Ujaval Gandhi <
> uja...@spatialthoughts.com> ha scritto:
>
>> You can select the layer under 'Plot Parameters' and its attributes will
>> be available in the expression. (see attached screenshot).
>>
>> If you need to get the attribute from another layer, you can use the
>> get_feature() function to get feature from another layer by specifying the
>> layer name.
>> [image: Logo] <https://spatialthoughts.com/>
>> Ujaval Gandhi
>> Spatial Thoughts
>> mobile: +91-8095684687
>> email: uja...@spatialthoughts.com
>> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  
>> [image:
>> Twitter icon] <https://twitter.com/spatialthoughts>
>>
>>
>>
>>
>> On Mon, May 17, 2021 at 2:47 AM Dario  wrote:
>>
>>> Hi,
>>>
>>> I should get some data from a specific field of a specific layer but I’m
>>> stuck.
>>>
>>> I’m using “Data Ploty” plug-in and I’d like to customise the colour of
>>> the chart using expression.
>>> As I’m working on layout I can’t see any field into expression menu, so
>>> I need to call a specific layer and then the field.
>>> I’d like to write something like that but, of course, selecting the
>>> correct layer:
>>>
>>> CASE
>>> WHEN "Civici" = 'Neri' THEN color_rgb(0,0,0)
>>> ELSE color_rgb (255,0,0)
>>> END
>>>
>>>
>>> Thank you in advance.
>>>
>>> Cheers
>>>
>>> _
>>> ___
>>> 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 listqgis-u...@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] Measure distance along line

2021-04-29 Per discussione Ujaval Gandhi
The closest I can think of is to use the 'Shortest path (point-to-point)'
tool from the Processing Toolbox. It will allow you to select 2 points on
your line layer and give you an output line with the distance along the
line as an attribute/
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Apr 29, 2021 at 5:23 PM Prud'homme Jérémie 
wrote:

> Hi,
>
> I am wondering if it's possible to use the Measure distance tool to
> measure the distance between two places, following a line.
>
> For example, I click on a first place on the line, I click on a second
> place and the tool automagically follow the line.
> Same behavior as what we can do with the use of automatic tracing for
> geaometrie creations.
>
> BR,
> Jérémie.
> ___
> 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] Geo Referencing - The image does not fall in the right place

2021-04-20 Per discussione Ujaval Gandhi
Hi Krishna,

You are using the deprecated tutorial and as mentioned at top of the the
page, the updated tutorial is at the following link and works with QGIS
3.16 https://www.qgistutorials.com/en/docs/3/georeferencing_basics.html

Ujaval Gandhi
Spatial Thoughts

On Tue, Apr 20, 2021, 10:22 PM Jeff Sonnentag 
wrote:

> If you are using QGIS 3.16 then this reference is supposed to be the
> latest instructions:
>
>
>
>
> https://docs.qgis.org/3.16/en/docs/user_manual/working_with_raster/georeferencer.html
>
>
>
> I have had a similar problem in the past but it generally works if you set
> the Georeferencing SRS in the Georeferencer Transformation Settings to the
> map’s current CRS (shown in the bottom left corner of the map).
>
>
>
>
>
> *From:* Qgis-user  * On Behalf Of *krishna
> Ayyala
> *Sent:* Tuesday, April 20, 2021 8:16 AM
> *To:* qgis-user 
> *Subject:* [Qgis-user] Geo Referencing - The image does not fall in the
> right place
>
>
>
> Hello,
>
> I have a jpeg image that I georeferenced using the steps mentioned in the
> following link. At the end, the image does not fall in the right place. As
> shown in step13, a modified image is created and saved in the folder. This
> modified image layer name appears in the layers panel of QGIS but the image
> does not appear on the map.
>
>
>
> Regards.
>
>
>
> https://www.qgistutorials.com/en/docs/georeferencing_basics.html
> ___
> 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 for macOS Big Sur

2021-04-15 Per discussione Ujaval Gandhi
The official All-in-one, signed installer on the download page works on Big
Sur.

https://qgis.org/en/site/forusers/download.html

Ujaval Gandhi
Spatial Thoughts

On Thu, Apr 15, 2021, 11:26 PM Cassia Pahim  wrote:

> Hello! I can’t see on QGIS download options a version for an iMac OS Big
> Sur. Do you guys know how to install QGIS in that kind of computer? Thanks!!
>
> *Cassia *
>
>
> ___
> 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] Generate the bearing in the attribute table

2021-04-08 Per discussione Ujaval Gandhi
Can you elaborate with an example? It's not clear what the bearing would be
for a polygon.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Apr 8, 2021 at 8:50 PM carlos h  wrote:

>
> Hello, nice to write here.
>
> How can I generate the bearing in the attribute table of a polygon? the
> bearing not in azimuth, but for example N30E etc
>
> Thanks
>
> CA
>
>
> ___
> 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] QIGS icon for MacOS

2021-03-12 Per discussione Ujaval Gandhi
Love it. Nice facelift to the most used app on my mac :)
https://ibb.co/z6CWKh0
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Fri, Mar 12, 2021 at 3:45 PM Christoph Jung  wrote:

> Hi Ricardo,
>
> This icon looks great, well done :)
>
> Regards,
> Christoph
>
> > Am 12.03.2021 um 10:38 schrieb Ricardo Rodrigues :
> >
> > Hi!
> >
> > I've created, I think, a new QIGS icon for MacOS, Big Sur style (
> https://github.com/qgis/QGIS/files/6128912/QGIS.icns.zip).
> >
> > If you want to try it, you are welcome.
> >
> >
> > Best regards,
> >
> >Ricardo
> >
> > ___
> > 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] Shapefile Rename

2021-01-25 Per discussione Ujaval Gandhi
A 'shapefile' is a collection of at least different files with extension
.shp, .shx, .dbf and .prj. So if you rename one of them it doesn't work.
You must rename all the sidecar files. Better yet, open original shapefile
in QGIS, right-click, Export , Save Features As and save it with the new
name.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Jan 25, 2021 at 7:46 PM krishna Ayyala 
wrote:

> I have a shapefile with the name "Polygon". I can see this shapefile in
> the browser panel. In the browser panel, I right click on "Polygon" and
> Properties. I changed the name to "Polygon_rename".
>
> [image: image.png]
>
> After changing the name, I  have added to the layers window. Then I am
> getting the following error message. How to rename a shapefile?
>
> [image: image.png]
>
> ___
> 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] Sum a list os raster

2021-01-12 Per discussione Ujaval Gandhi
I have done similar things with vector layer attributes using eval()
expression, but Raster Calculator doesn't support expressions, so I don't
think there's a way to simplify this. You can instead try the SAGA ->
Raster Calculus -> Rasters sum tool from the Processing Toolbox
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Jan 12, 2021 at 10:48 PM Igor Oliveira Ribeiro <
igorgeoinforma...@gmail.com> wrote:

> Hi,
> I have a list with 15 raster. I would like to make a simple sum of these
> raster. I know about raster calculation tool, but the expression would be
> too long. Is there a way to replace this expression
> (raster1+raster2+...+raster15) by sum(raster1,raster2,...,raster15) for
> example?
> Thanks
>
> --
>
> See our last paper:  <https://doi.org/10.1016/j.envpol.2020.114029>
>
> Impact of biomass burning on a metropolitan area in the Amazon during the
> 2015 El Niño: The enhancement of carbon monoxide and levoglucosan
> concentrations. <https://doi.org/10.1016/j.envpol.2020.114029>
>
> Igor Oliveira Ribeiro
>
> Post-Doc on Regional Climate Change, Vulnerability, Impacts and Adaptation
> - IPCC/Cuomo/UEA
>
> +55 92 98103 7136 | skype: igorflorestal
>
> Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da
> Amazônia
>
> Visite: www.geoescrita.com.br
>
> <https://www.linkedin.com/in/igoroliveiraribeiro/>
> <https://www.instagram.com/geoescrita/>
> <https://www.researchgate.net/profile/Igor_Oliveira_Ribeiro>
> <http://lattes.cnpq.br/3909691804095045>
> <https://orcid.org/-0002-3529-0525> <https://www.geoescrita.com.br/>
>
> Think globally, act locally!
> ___
> 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] HELP highlights points

2020-12-26 Per discussione Ujaval Gandhi
This can be done with an 'Action'. I was able to do it with a bit of PyQGIS
code. Change the  point_layer_name in the snippet below to match your point
name. Define the Action on the line layer. Here's how it works
https://ibb.co/vP7KRDd

line_layer = QgsProject.instance().mapLayer('[% @layer_id %]')
point_layer_name = 'points'
fid = [% $id %]
line_feature = line_layer.getFeature(fid)
line_geometry = line_feature.geometry().buffer(40, 5)
point_layer = QgsProject.instance().mapLayersByName(point_layer_name)[0]
nearby_points = [p.id() for p in point_layer.getFeatures()
if p.geometry().intersects(line_geometry) ]
layer.selectByIds(nearby_points)


[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Dec 24, 2020 at 8:02 PM Charles Dixon-Paver 
wrote:

> I was very interested to see if this was possible with qgis expressions
> and symbology, and I got it to work with surprisingly little effort, albeit
> with some issues [1].
>
> I simply used the rule based symbology to highlight the relevant features
> using an expression [2].
>
> The expression I used was as follows:
>
> if(
>   distance($geometry,
> geometry(
>   get_feature('Lines','fid','1')
> )
>   ) < 500
> ,true,false)
>
> One caveat is that the view does not automatically update when digitizing
> a new vertice. As a result I needed to zoom in and out constantly to update
> the symbol styles. This could probably be modified by using a layer action
> though.
>
> Secondly, this expression is limited to a single feature in it's
> current state. I'm not sure if anyone has a clever workaround for including
> all geometries from another layer in an expression.
>
> Lastly, this only tracks actual features, not the cursor.
>
> There could be many other ways to achieve your result though, but I was
> interested to see how well this would function so others might find the
> result quite interesting. It's probably also quite usable for static styles
> if the objective is just for mapmaking rather than a digitizing tool.
>
> [1] https://imgur.com/a/5J0dSt3
> [2] https://imgur.com/a/E043vO7
>
> On Thu, 24 Dec 2020 at 15:31, Raffaele Ceretto 
> wrote:
>
>> I need a tool that allows me to draw a line and that at the same time
>> highlights points within a certain distance (for example 40 meters).
>> I have a map with hundreds of points, I would like when I draw a line
>> what is nearby will light up.
>> There is a specific tool to do this or a simple "magnet" function?
>> Thank you for your help
>>
>> waiting for a reply
>>
>> regards
>>
>> Raffaele
>> ___
>> 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] QGIS 3.xx not starting

2020-12-20 Per discussione Ujaval Gandhi
One of the original suggestions was to disable / uninstall your anti-virus
and try launching qgis. Did you try that? From your description it looks
like Quickheal might be interfering with qgis. Qgis has other dependencies
on python, qt etc so merely allowing qgis may not be enough.

Ujaval Gandhi
Spatial Thoughts

On Mon, Dec 21, 2020, 9:41 AM K R Mayani 
wrote:

> As one suggestion came from other source, I have tried opening QGIS with
> firewall off. So I tried to add .exes of python, qgis ltr, qgis in allowed
> program in QuickHeal, as its installed and managed firewall, but did not
> start.
> So that strike me another idea. And I started the program in safe boot
> mode with network  in windows 10. Surprisingly the program ran normally
> without crashing.
> So can anyone give me any idea, what went wrong in normal boot mode?
> Because in safe boot, OS does not allow to connect through wifi and I, had
> to, mostly work with wifi.
>
> On Tue, Dec 8, 2020, 7:32 PM Nicolas Cadieux 
> wrote:
>
>> Hi,
>>
>> Just a bunch of ideas...
>> Did you have a working version before or is this a first time QGIS
>> installation?  You have 2 choices of installers on Windows, I would try
>> with the second installer after removing the first version.  Reboot the
>> computer after the installation.  Try Disabling your antivirus or adware
>> software you could have when installing or starting QGIS, make sure your
>> Windows and drivers are up to date.  Do you have a second version of Python
>> on your computer, or a software like ESRI that as it’s own version of
>> Python? Perhaps there is a conflict between your QGIS python and the
>> default python distribution?  If this is not a new install, would you have
>> a problématique python plugin  in the plugin directory? Perhaps try
>> removing those...  Would you have weird character in your user directory
>> like spaces or accents like “é”?
>>
>> Nicolas Cadieux
>> https://gitlab.com/njacadieux
>>
>> Le 8 déc. 2020 à 07:07, K R Mayani  a
>> écrit :
>>
>> 
>> Hi,
>> I am using QGIS 3.14.1 on my Laptop. I am having trouble with the
>> software about its starting. After setting up python screen, it does not
>> starts. I have also tried "run as administrator" but still the problem
>> persists. With v3.10 and v3.14.1, the same problem is there. I have
>> installed software again with "Run as Administrator" but the issue is not
>> solved.
>> .NET 4.8 already installed.
>> osbuild: 19042.630
>> OS: Windows 10, home
>> Processor:AMDRyzen 5 3550H with Radeon Vega Mobile Gfx 2.10 GHz
>> RAM: 8.00 GB
>> crash: https://pastebin.com/5Tk75LTu
>> Which version should support my system rig?
>> Please help me with my trouble. Or suggest to me the steps.
>> ___
>> 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] Question about Qgis - Google Earth historical imagery

2020-12-15 Per discussione Ujaval Gandhi
Historic imagery is only available in Google Earth Desktop client. It is
not available as map tiles format which are used by QuickMapServices.

Ujaval Gandhi
Spatial Thoughts

On Wed, Dec 16, 2020, 3:52 AM Azzurra Lentini 
wrote:

> Hi to all,
> please, do you know if it is possible to visualise in Qgis the historical
> images of google earth?
> I know how to see google earth using the plugin quick map service, but I
> can see only the current image of google earth (I suppose it is the
> current) and I cant see the past images that I can see in Google Earth: in
> Google Earth there is in the main menu bar: view/historical imagery.
> THANKS.
> Azzurra
>
>
> --
> Lecturer GIS University "Roma Tre"
> Consultant Environmental Risk Prevention and Hydrogeology
> AZZURRA LENTINI
> ++
> Italy Mobile Tel.: **(39) 338 24 40 676
> ++
> SKYPE azzurrahydro
> ++
>
> *azzurralent...@gmail.com *
>
> *azzurra.lent...@uniroma3.it  *
> ++
> *Par respect pour l'environnement,*
>
> *n'imprimez ce mail qu'en cas d'absolue nécessité*
>
>
>
>
>
> ___
> 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] Export Attributes to Excel and import back edited

2020-12-15 Per discussione Ujaval Gandhi
Actually, for point layers - there's a better workflow. Use the 'Add
geometry attributes' tool to add X and Y columns before exporting to Excel.
After you change your values, use the Processing Toolbox -> Create Points
layer from Table which can read Excel file directly from disk and give you
a vector layer.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Dec 15, 2020 at 10:38 PM Ujaval Gandhi 
wrote:

> Right click -> Export -> Save Features As and select 'MS Office Open XML
> spreadsheet'. Save it as a '.xlsx' file. Once you are done editing,
> drag-and-drop it to QGIS and it will be imported as a table. If you want
> the shapes, you'll have to join the table to the original layer using 'Join
> Attributes by Field value' tool in the processing toolbox.
>
> [image: Logo] <https://spatialthoughts.com/>
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
> Twitter icon] <https://twitter.com/spatialthoughts>
>
>
>
> On Tue, Dec 15, 2020 at 10:04 PM Marin Mirosevic <
> marin.mirose...@bouvet.no> wrote:
>
>> Hi,
>>
>>
>>
>> I want to export Attributes from a Layer as excel format   and then Edit
>> some values.
>>
>>
>>
>> Then I want to “import” back to Qgis to the same Layer with updated
>> values  of Attribute
>>
>>
>>
>> Is that possible ?
>>
>>
>>
>> If so how?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> With regards/ Vennlig hilsen
>>
>>
>>
>>
>>
>> *Marin Mirosevic*
>>
>>
>> *Consultant *Mobil +47 909 67 511
>>
>> *marin.mirose...@bouvet.no *
>>
>>
>>
>>
>>
>> *Bouvet Norge AS*
>>
>> *bouvet.no* <http://www.bouvet.no/>
>>
>>
>>
>>
>>
>>
>> ___
>> 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] Export Attributes to Excel and import back edited

2020-12-15 Per discussione Ujaval Gandhi
Right click -> Export -> Save Features As and select 'MS Office Open XML
spreadsheet'. Save it as a '.xlsx' file. Once you are done editing,
drag-and-drop it to QGIS and it will be imported as a table. If you want
the shapes, you'll have to join the table to the original layer using 'Join
Attributes by Field value' tool in the processing toolbox.

[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Dec 15, 2020 at 10:04 PM Marin Mirosevic 
wrote:

> Hi,
>
>
>
> I want to export Attributes from a Layer as excel format   and then Edit
> some values.
>
>
>
> Then I want to “import” back to Qgis to the same Layer with updated
> values  of Attribute
>
>
>
> Is that possible ?
>
>
>
> If so how?
>
>
>
>
>
>
>
>
>
> With regards/ Vennlig hilsen
>
>
>
>
>
> *Marin Mirosevic*
>
>
> *Consultant *Mobil +47 909 67 511
>
> *marin.mirose...@bouvet.no *
>
>
>
>
>
> *Bouvet Norge AS*
>
> *bouvet.no* <http://www.bouvet.no/>
>
>
>
>
>
>
> ___
> 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] Attribute Table - Primary key

2020-12-12 Per discussione Ujaval Gandhi
The 'primary key' for vector layer in QGIS could be any column that has
unique values for each feature. Using the fids as primary key is not a good
idea. I would recommend having a 'Parcel ID' column in your vector layer.
For a 1-to-1 join, you don't need to do anything special to designate that
column as your primary key. You can setup a join between the parcels layer
and the database table using 'Join Properties'
https://docs.qgis.org/3.10/en/docs/user_manual/working_with_vector/vector_properties.html?highlight=join#joins-properties

QGIS has a relation manager that allows you to create one-to-many joins.
See
https://docs.qgis.org/3.10/en/docs/user_manual/working_with_vector/attribute_table.html?highlight=foreign%20key#creating-one-or-many-to-many-relations




[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sun, Dec 13, 2020 at 3:14 AM  wrote:

>
>
> Cheers
>
>
>
> *Dr Iain Stuart*
>
> *JCIS Consultants *
>
> P.O. Box 2397
>
> Burwood North
>
> NSW, 2134
>
>
>
> (02) 9701 0191
> (0413) 380116 (m)
>
>
> ___
> 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] Condition in QGIS modeler

2020-12-08 Per discussione Ujaval Gandhi
Here's a step-by-step guide on how to use Conditional Branch algorithm
https://courses.spatialthoughts.com/advanced-qgis.html#conditional-branching
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Dec 8, 2020 at 2:38 PM Andreas Neumann  wrote:

> Yes.
>
> See
> https://www.qgis.org/en/site/forusers/visualchangelog314/index.html#feature-new-modeler-algorithm-for-creating-conditional-branches
>
> There is also a "Feature Filter" that can have an expression and can be
> connected to different other algorithms.
>
> Greetings,
>
> Andreas
>
> On 2020-12-08 09:35, Marc Yeranosyan wrote:
>
> Hi user list,
>
> Is the "conditional branch" work for in Qgis 3.14, I can't find it in
> Modeler.
> If not, is it possible to create a condition in the modeler
> processing algorithm?
>
> Thank You in advance
> Marc
>
> ___
> 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] Year of the Google Hybrid Imagery

2020-11-30 Per discussione Ujaval Gandhi
Imagery dates are not published for imagery in Google Maps. However, you
can visit the same area in Google Earth Pro and know the date of the image
in the bottom-right corner.
https://www.labnol.org/internet/find-date-of-satellite-images/2964/#find-the-capture-date-of-satellite-images
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Tue, Dec 1, 2020 at 4:55 AM krishna Ayyala 
wrote:

> In the XYZ tiles of QGIS map, I have added the google hybrid layer as a
> base map using the information given in the following link. How do I know
> the year of this map/imagery? Regards.
>
> https://www.hatarilabs.com/ih-en/how-to-add-a-google-map-in-qgis-3-tutorial
>
>
>
> ___
> 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] Polygon from 4 points

2020-11-26 Per discussione Ujaval Gandhi
Totò - really great solution! Didn't know about Geometry by Expression and
it will come in handy for sure.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Thu, Nov 26, 2020 at 8:33 PM Totò Fiandaca 
wrote:

> From Processing:
>
> search for Geometry by Expression:
> 1. as input layer put your file with the coordinates
> 2. and write this expression:
>
>   make_polygon (
>   make_line (
>   make_point ("x1", "y1"),
>   make_point ("x2", "y2"),
>   make_point ("x3", "y3"),
>   make_point ("x4", "y4")
>   ))
>
> and launch the geoprocess.
>
> I used QGIS 3.16 Hannover
>
> Il giorno gio 26 nov 2020 alle ore 15:48 Ryan Peel 
> ha scritto:
>
>> I have a csv/table that has a single row that contains some metadata as
>> well as four SEPARATE columns, x1, y1, x2, y2, x3, y3, x4, y4 of decimal
>> degree coordinates.
>>
>> I want to import all of this data into QGIS and create a polygon from the
>> four points as a vector layer.
>>
>> What is the best way to do this?  I'm not a programmer or scripter really
>> and fairly new to QGIS.
>>
>> Thanks!
>>
>>
>> *Ryan Peel*
>>
>> ___
>> 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
>>
>
>
> --
> *Ing. Salvatore Fiandaca*
> *mobile*.:+39 327.493.8955
> *m*: *pigrecoinfin...@gmail.com *
> *C.F*.: FNDSVT71E29Z103G
> *P.IVA*: 06597870820
> *membro QGIS Italia - http://qgis.it/ <http://qgis.it/>*
> *socio GFOSS.it - *http://gfoss.it/
> *blog:*
> * https://pigrecoinfinito.com/ <https://pigrecoinfinito.com/> FB: Co-admin
> - https://www.facebook.com/qgis.it/ <https://www.facebook.com/qgis.it/>**
> <https://www.facebook.com/qgis.it/> *
> *TW:  <http://goog_95411464>**https://twitter.com/totofiandaca
> <https://twitter.com/totofiandaca>*
>
> 43°51'0.54"N  10°34'27.62"E - EPSG:4326
>
> “Se la conoscenza deve essere aperta a tutti,
> perchè mai limitarne l’accesso?”
> R. Stallman
>
> Questo documento, allegati inclusi, contiene informazioni di proprietà di
> FIANDACA SALVATORE e deve essere utilizzato esclusivamente dal destinatario
> in relazione alle finalità per le quali è stato ricevuto. E' vietata
> qualsiasi forma di riproduzione o divulgazione senza l'esplicito consenso
> di FIANDACA SALVATORE. Qualora fosse stato ricevuto per errore si prega
> di informare tempestivamente il mittente e distruggere la copia in proprio
> possesso.
>
>
> ___
> 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] 202021-ESRI gdb not opening on macOS Big Sur Version 11.0.1

2020-11-21 Per discussione Ujaval Gandhi
Ah got it. I am still on Catalina so drag-and-drop works, but get an error
when opening via Data Source Manager.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sat, Nov 21, 2020 at 1:33 PM Paul T A Drea  wrote:

> Hi Ujaval,
>
> Same error. I am hearing from a colleage that this macOS version is
> missing some of the lbraries that were in Catalina.
>
> I am updating all my backups and will bite the bullet and roll back to
> Catalina.
>
> Thanks for the quick response.
>
> BR
>
> Paul
> On 21/11/2020 11:52, Ujaval Gandhi wrote:
>
> I just ran into this and looks like a bug. Apparently dragging and
> dropping layers from the Browser panel works perfectly. Do try and see if
> that's the case.
> [image: Logo] <https://spatialthoughts.com/>
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
> Twitter icon] <https://twitter.com/spatialthoughts>
>
>
>
>
> On Sat, Nov 21, 2020 at 12:27 PM Paul T A Drea  wrote:
>
>> Dear list,
>>
>> I am running QGIS 3.16.0-Hannover QGIS code revision 4af1cbfb97 on a
>> macOS Big Sur platform.
>>
>> Below is the error message I get when I try to open an ESRI gdb file.
>>
>> 2020-11-21T10:36:46 CRITICALInvalid Data Source : /Volumes/PAUL
>> SSD
>> 3/_Verif-i_UAE_2019/04.Data/02.GIS/03.Shapefiles/5.BLOCK_7_NORTH/Facilities_OnshoreBlock7.gdb
>> is not a valid or recognized data source.
>>
>> This same file opens on my Ubuntu 20.04 machine and Win10 machine running
>> QGIS 3.14.1-Pi QGIS code version de08d6b71d with no problems.
>>
>> This has only become apparent after an update on macOS from Catalina
>> v10.15 to Big Sur 11.0.1
>>
>> Has anyone else experienced this problem?
>>
>> Any help in solving this would be much appreciated.
>>
>> Thank you and BR.
>>
>> Paul
>> --
>>
>> *Paul T. A. Drea*
>>
>> *Geodetic Consultant*
>>
>> *Cell Greece: +30-698 052 0611*
>>
>> *Cell Abu Dhabi: +971 50 595 6547*
>>
>> *Cell U.K.: +44 7507 975162*
>>
>> *SKYPE: paul.drea*
>>
>> *e**-mail 1: **pauld...@gmail.com* 
>>
>> *e**-mail 2: **ptad...@otenet.gr* 
>>
>>
>> ___
>> 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
>>
> --
>
> *Paul T. A. Drea*
>
> *Geodetic Consultant*
>
> *Cell Greece: +30-698 052 0611*
>
> *Cell Abu Dhabi: +971 50 595 6547*
>
> *Cell U.K.: +44 7507 975162*
>
> *SKYPE: paul.drea*
>
> *e**-mail 1: **pauld...@gmail.com* 
>
> *e**-mail 2: **ptad...@otenet.gr* 
>
>
>
___
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] 202021-ESRI gdb not opening on macOS Big Sur Version 11.0.1

2020-11-20 Per discussione Ujaval Gandhi
I just ran into this and looks like a bug. Apparently dragging and dropping
layers from the Browser panel works perfectly. Do try and see if that's the
case.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Sat, Nov 21, 2020 at 12:27 PM Paul T A Drea  wrote:

> Dear list,
>
> I am running QGIS 3.16.0-Hannover QGIS code revision 4af1cbfb97 on a macOS
> Big Sur platform.
>
> Below is the error message I get when I try to open an ESRI gdb file.
>
> 2020-11-21T10:36:46 CRITICALInvalid Data Source : /Volumes/PAUL
> SSD
> 3/_Verif-i_UAE_2019/04.Data/02.GIS/03.Shapefiles/5.BLOCK_7_NORTH/Facilities_OnshoreBlock7.gdb
> is not a valid or recognized data source.
>
> This same file opens on my Ubuntu 20.04 machine and Win10 machine running
> QGIS 3.14.1-Pi QGIS code version de08d6b71d with no problems.
>
> This has only become apparent after an update on macOS from Catalina
> v10.15 to Big Sur 11.0.1
>
> Has anyone else experienced this problem?
>
> Any help in solving this would be much appreciated.
>
> Thank you and BR.
>
> Paul
> --
>
> *Paul T. A. Drea*
>
> *Geodetic Consultant*
>
> *Cell Greece: +30-698 052 0611*
>
> *Cell Abu Dhabi: +971 50 595 6547*
>
> *Cell U.K.: +44 7507 975162*
>
> *SKYPE: paul.drea*
>
> *e**-mail 1: **pauld...@gmail.com* 
>
> *e**-mail 2: **ptad...@otenet.gr* 
>
>
> ___
> 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] Vote for Lat Lon Tools Default Coordinate Order - YX or XY

2020-11-20 Per discussione Ujaval Gandhi
I generally use Lat Lon Tools to go to a specific coordinate that I found
somewhere (online maps, Wikipedia etc.) - so latitude, longitude is
preferred. There are other use cases where X,Y is preferred, but I have
always found it easy to switch using settings or dropdown menu when needed.

Thanks for authoring and maintaining a great plugin!
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Fri, Nov 20, 2020 at 10:41 PM C Hamilton  wrote:

> It was suggested to me that the default coordinate order in the Lat Lon
> Tools plugin for coordinate capture and zoom-to tools should be "longitude,
> latitude" or "X, Y". Originally, Lat Lon Tools was designed to work with
> on-line maps which are generally "latitude, longitude" order.
>
> You can always go into the plugin settings and specify which order you
> want and that order will be preserved everytime you launch QGIS. The
> default order is only applicable the first time you install "Lat Lon Tools"
> or if you do a reset to defaults in the Lat Lon Tools settings menu,
>
> Who prefers Lat Lon Tools to default to "longitude, latitude" or "X, Y"
> when the plugin is first installed or reset to default values?
>
> Who prefers Lat Lon Tools to default to "latitude, longitude (Google map
> order)" or "Y, X" when the plugin is first installed or reset to default
> values?
>
> I'm just checking to see if I should make this change or not.
>
> Thanks,
>
> Calvin
> ___
> 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 training certification

2020-11-09 Per discussione Ujaval Gandhi
You can find all organizations who are offering QGIS certification training
at https://changelog.qgis.org/en/qgis/certifyingorganisation/list/

Each certificate issued by a certifying organization has a unique ID which
can be verified at https://changelog.qgis.org/en/qgis/certificate/
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>



On Mon, Nov 9, 2020 at 3:37 PM Phil Wyatt  wrote:

> It would be great if that page also linked to certified trainers - its
> really hard to find that in one location. Its easy for someone to say they
> are certified but much harder to verify from what I can tell. Does such a
> page exist?
>
> Cheers - Phil
>
>
>
> -Original Message-
> From: Qgis-user  On Behalf Of Raymond
> Nijssen
> Sent: Monday, 9 November 2020 8:18 PM
> To: qgis-user@lists.osgeo.org
> Subject: Re: [Qgis-user] QGIS training certification
>
> Yes! It is here:
>
> https://qgis.org/en/site/getinvolved/certification.html
>
> Raymond
>
>
> On 09-11-2020 09:52, i...@jcis.net.au wrote:
> > I know to some the idea of getting certificates for training is a bit
> > like getting a degree from the Hamburger University of McDonalds but
> > for others it does give a reassurance that knowledge has been taught
> > absorbed and tested. It also helps with the aim of continuous
> > professional development.
> >
> > So is there such a system for QGIS? I thought there was but when I
> > tried to find it on the QGIS website I couldn’t find it. Could
> > somebody point me in the right direction?
> >
> > Cheers
> >
> > *Dr Iain Stuart*
> >
> > */JCIS Consultants /*
> >
> > P.O. Box 2397
> >
> > Burwood North
> >
> > NSW, 2134
> >
> > (02) 9701 0191
> > (0413) 380116 (m)
> >
> >
> > ___
> > 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
___
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] creating one portable QGIS project

2020-10-07 Per discussione Ujaval Gandhi
Hi Bernd,

The best practice I recommend is to first use the 'Package Layers'
algorithm to get all your layers in a geopackage. This saves the styles and
data into the geopackage. Then load these into a fresh project  and then
save the current project into the same geopackage. You can save processing
models, styles etc in your project which also gets packaged. This way you
end up with a single geopackage for your project. See the full workflow here
<https://courses.spatialthoughts.com/automating-gis-workflows.html#packaging-your-work>
.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Wed, Oct 7, 2020 at 4:18 PM Alessandro Pasotti 
wrote:

> On Wed, Oct 7, 2020 at 12:27 PM Bernd Vogelgesang
>  wrote:
> >
> > From what I now read and tried, that solution seems to be far from what
> Andre wants.
>
> What the Andre wants can be achieved by saving the filesystem-based
> data in a directory under the project's directory and then setting the
> project's option to store datasource paths as relative, if that
> doesn't work it's a bug.
> Then you can make a zip/tar.gz of the project and the underlying data
> and send the zip.
>
>
> > It seems, you can save it TO a gpkg and not AS a gpkg.
> > So in case your complete project data is not already stored within a
> gpkg, it won't collect and dump it as QConsolidate does. (correct?)
> >
>
> Correct.
>
>
> > Maybe someone could shed a light about an best-practice-approach, how to
> organize and store the data so this tool will give a smooth workflow.
> (thinking e.g. of how to deal with big permanent datasets on networks
> drives etc. )
> >
> > Cheers,
> >
> > Bernd
> >
> > On 07.10.20 11:56, Andreas Neumann wrote:
> >
> > For storing the .qgs file in a geopackage you can simply do "Project"
> > --> "Save As" --> "Geopackage".
> > I think you could even have multiple .qgs project files in a single
> > Geopackage.
> > Andreas
> > On 2020-10-07 11:50, Richard Duivenvoorde wrote:
> >
> > On 10/7/20 11:45 AM, Andre Ulrich wrote:
> >
> > Dear community,
> >
> > I want to export a QGIS project. In this project there are a few layers
> (the path for each layer is set according to where the data is saved on my
> computer). I can open the project on my computer and all the layers are
> available.
> > But when I send the project (and all the data for the layers -
> everything is in one repository) to a colleague, he can not view the layers
> (because the paths are still set according to my computer). One can fix
> this in a few minutes by setting up the correct paths, but this is very
> annoying. And once the paths are set correctly, all the symbology from the
> layer properties is lost (or reset to some standard).
> >
> > Is there a way to save a QGIS project and all the related data as one
> file (so that another person, who opens this file on its own computer, does
> not have to set up all the paths and edit the symbology)?
> >
> >
> > Try the QConsolidate plugin from Alex Bruy:
> > https://github.com/alexbruy/qconsolidate
> > available from his plugin repo (or github)
> > https://plugins.bruy.me/qconsolidate.html
> >
> > It is also possible to export your data to an geopackage yourself, as
> you can also save symbology for layers into a geopackage, and..., wel you
> would need to sent 2 files then: the gpkg with you data+symbology and your
> QGIS project file
> > (was there a plugin to write your projectfile into a gpkg?)
> >
> > HTH
> >
> > Regards,
> >
> > Richard Duivenvoorde
> >
> > ___
> > 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:/

Re: [Qgis-user] Graphical Modeller Question

2020-08-09 Per discussione Ujaval Gandhi
You can use 'Multiple Input' as an input to the 'Build Virtual Raster'
algorithm.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Sun, Aug 9, 2020 at 2:29 PM Grant Boxer  wrote:

> I am trying to use the GDAL "Build Virtual Raster" in the graphical
> modeller, but I can only seem to get it to take one input, not three
> bands necessary for an RGB image. Any suggestions?
>
> Cheers Grant
>
>
> ___
> 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] Requesting help with Satellite layer

2020-07-31 Per discussione Ujaval Gandhi
Hi Wanda,

Please use the QuickMapServices plugin instead of OpenLayers - which is the
preferred way to get different basemaps. Once installed, you can go
to QuickMapServices -> Settings and get the 'Contributed Pack' to get
access to many more basemaps.

The other error you are seeing is from the Google Earth Engine plugin and
related to authentication. If you use that plugin, you will need to re-run
authentication. See FAQ
<https://github.com/gee-community/qgis-earthengine-plugin>
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Fri, Jul 31, 2020 at 8:18 PM Wanda Norman 
wrote:

> Hello,
>
> I am a new user and I am trying to add a satellite layer to a project
> in QGIS 3.14 (non-MAC pc).  I need to be able to do this on a regular basis
> so I am trying to learn how.
>
> The steps I have taken are following this tutorial:
> https://www.geodose.com/2017/08/adding-free-satellite-imagery-layer-qgis.html
>
> The image is added to my project but I get these errors:
> 1) for development purposes only shows up on the layer
>
> 2)  I get this message log error:
>
> 2020-07-31T10:02:12 WARNINGPython error : Couldn't load plugin
> 'ee_plugin' due to an error when calling its classFactory() method See
> message log (Python Error) for more details.
>
> 2020-07-31T10:13:36 WARNINGPython error : An error has occurred
> while executing Python code: See message log (Python Error) for more
> details.
>
> 2020-07-31T10:13:36 WARNINGOpenLayers Plugin : Printing and
> rotating of Javascript API based layers is currently not supported!
>
>
> 3) if I try to move the satellite layer (up or down in my list) I get this
> error: This page can't load Google Maps correctly. with this Python error:
>
> 2020-07-31T10:02:12 CRITICALTraceback (most recent call last):
>   File
> "C:\Users\Annaka\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py",
> line 230, in get_persistent_credentials
>   tokens = json.load(open(oauth.get_credentials_path()))
>  FileNotFoundError: [Errno 2] No such file or directory:
> 'C:\\Users\\Annaka/.config/earthengine/credentials'
>
>  During handling of the above exception, another exception
> occurred:
>
>  Traceback (most recent call last):
>   File
> "C:/Users/Annaka/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py",
> line 19, in init
>   ee.Initialize()
>   File
> "C:\Users\Annaka\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\__init__.py",
> line 114, in Initialize
>   credentials = data.get_persistent_credentials()
>   File
> "C:\Users\Annaka\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\ee_plugin\extlibs_windows\ee\data.py",
> line 241, in get_persistent_credentials
>   'Please authorize access to your Earth Engine account by '
>  ee.ee_exception.EEException: Please authorize access to your
> Earth Engine account by running
>
>  earthengine authenticate
>
>  in your command line, and then retry.
>
>  During handling of the above exception, another exception
> occurred:
>
>  Traceback (most recent call last):
>   File "C:/PROGRA~1/QGIS
> 3.14/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
>   plugins[packageName] = package.classFactory(iface)
>   File
> "C:/Users/Annaka/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\__init__.py",
> line 25, in classFactory
>   from .ee_plugin import GoogleEarthEnginePlugin
>   File "C:/PROGRA~1/QGIS
> 3.14/apps/qgis/./python\qgis\utils.py", line 743, in _import
>   mod = _builtin_import(name, globals, locals, fromlist, level)
>   File
> "C:/Users/Annaka/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_plugin.py",
> line 26, in
>   ee_plugin.ee_auth.init()
>   File
> "C:/Users/Annaka/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ee_plugin\ee_auth.py",
> line 21, in init
>   authenticate()
>   File
> "C:/Users/Annaka/AppData/Roaming/QGIS/QGIS3\profiles\default/python/pl

Re: [Qgis-user] Typo? "required ... donation" for training certificates?

2020-07-17 Per discussione Ujaval Gandhi
+1 to Andreas's suggestion. A certification fee is more appropriate.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Fri, Jul 17, 2020 at 12:55 PM Andreas Neumann 
wrote:

> probably something like
>
> ... required to pay a €20 certification fee to the QGIS project.
>
> I agree - a required donation seems a bit odd.
>
> On 2020-07-17 08:59, Luigi Pirelli wrote:
>
> what's your proposal?
>
> Luigi Pirelli
>
>
> **
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Book: Mastering QGIS3 - 3rd Edition
> <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
> * Hire a team: http://www.qcooperative.net
>
> **
>
> On Thu, 16 Jul 2020 at 20:59, Jonathan Moules <
> jonathan-li...@lightpear.com> wrote:
>
> On the certification page:
> https://www.qgis.org/en/site/getinvolved/certification.html I see this:
>
> "If approved you are required to make a €20 donation to the QGIS project
> for each certificate."
>
> Is the word use "donation" intentional there, or merely a typo? Because
> it's a bit of an oxymoron to have a "required" "donation".
>
>
> ___
> 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
___
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] 3D Map View blank but no crash (windows 7)

2020-05-29 Per discussione Ujaval Gandhi
Likely because you do not have a graphics card in the computer or is not
supported.

Ujaval Gandhi
Spatial Thoughts

On Fri, May 29, 2020, 7:05 PM Kakoli Saha 
wrote:

>  DEM  looks fine in the map canvas but does not show up in 3D Map View . I
> am working with QGIS V. 10.3 Caruna. #D Map view even appears blank for any
> vector layer also.
> Regards,
>  Kakoli Saha, Ph.D.(Kent State University, USA)
> Assistant Professor
> Department of Planning
> School of Planning and Architecture, Bhopal
> Neelbad Road, Bhauri
> Bhopal-462030
> Madhya Pradesh
> ___
> 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] Isochrones

2020-05-26 Per discussione Ujaval Gandhi
Yes! If you have your own network data, QNEAT3 plugin has Iso-Area
algorithms. Otherwise, the ORS Tools plugin allows you to create isochrones
using OpenStreetMap data

http://www.qgistutorials.com/en/docs/3/service_area_analysis.html

Ujaval Gandhi
Spatial Thoughts

On Wed, May 27, 2020, 3:54 AM Riccardo D'Alvito 
wrote:

> Hi!
>
> I would like to know is there is a way to create isochorones (for instance
> - 5 minutes) on QGIS starting from a point and following a road network
> with a certain speed.
>
> Thank you.
> ___
> 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] Close QGIS via PyQGIS

2020-05-13 Per discussione Ujaval Gandhi
Yes. You can call QApplication.quit() from the python console.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Thu, May 14, 2020 at 12:46 AM Christoph Jung 
wrote:

> Hi Ujaval,
>
> Thank you for your answer. I will try it out.
>
> One additional question to your description: is it possible to quit QGIS
> from the python console within QGIS, i.e. calling exitQgis or something
> else for the current application?
>
> Christoph
>
> Am 13.05.2020 um 17:11 schrieb Ujaval Gandhi :
>
> 
> The way to do this is to launch a new QGIS instance without GUI, run your
> pyqgis code and then exit.
>
> qgs = QgsApplication([], False)
> qgs.initQgis()
>
> .
>
> qgs.exitQgis()
>
> See a full example at
> https://courses.spatialthoughts.com/pyqgis-in-a-day.html#writing-standalone-python-scripts
> [image: Logo] <https://spatialthoughts.com/>
> Ujaval Gandhi
> Spatial Thoughts
> mobile: +91-8095684687
> email: uja...@spatialthoughts.com
> [image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
> Twitter icon] <https://twitter.com/spatialthoughts>
> Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter
>
>
> On Wed, May 13, 2020 at 7:48 PM Christoph Jung 
> wrote:
>
>> Hello everyone,
>>
>> I want to create a scheduled task with opening QGIS, run a python script
>> and close the application at the end. Is it possible to close the current
>> QGIS application via PyQGIS? Or does anybody knows a better way to close
>> QGIS at the end of the task?
>>
>> Sincerely,
>> Christoph
>> ___
>> 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] Close QGIS via PyQGIS

2020-05-13 Per discussione Ujaval Gandhi
The way to do this is to launch a new QGIS instance without GUI, run your
pyqgis code and then exit.

qgs = QgsApplication([], False)
qgs.initQgis()

.

qgs.exitQgis()

See a full example at
https://courses.spatialthoughts.com/pyqgis-in-a-day.html#writing-standalone-python-scripts
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Wed, May 13, 2020 at 7:48 PM Christoph Jung  wrote:

> Hello everyone,
>
> I want to create a scheduled task with opening QGIS, run a python script
> and close the application at the end. Is it possible to close the current
> QGIS application via PyQGIS? Or does anybody knows a better way to close
> QGIS at the end of the task?
>
> Sincerely,
> Christoph
> ___
> 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] Should be easy? Open csv in Graphical Modeller

2020-03-31 Per discussione Ujaval Gandhi
Processing Toolbox has a 'Create point layer from table' algorithm that can
read a CSV and give you a vector layer that can be used in the model.
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Tue, Mar 31, 2020 at 4:48 PM Yann Voté  wrote:

> Hi,
>
> Not sure if this will help you, but I recently wrote a processing plugin
> to deal with CSV files. The plugin is named CSV Tools. It aims to be a
> little more generic than the "create points layer from table" since it
> can handle WKT geometries and hence can load lines and polygons.
>
> The plugin is *highly* experimental, and thus is available in QGIS only
> when experimental plugins are allowed.
>
> It works for me at the moment, I use it in models. But I've plans to
> make it more usable so that it can be useful to more people. I'd love to
> have feedback : if it works or not and would gladly fix bugs.
>
> Regards.
>
> Yann
>
>
> Le 31/03/2020 à 12:43, magerlin a écrit :
> > Thanks for your comment.
> >
> > But I am trying to setup a model for reading GTFS data (General Transit
> Feed
> > Specification) which are sets of like 10 csv files and I am right now
> > working with 3 sets so like 30 csv files in total.
> >
> > So the aim was to automate tedious work and not have to remember every
> time
> > how these 10 csv files relate to each other.
> >
> > I am aware of two plugins reading GTFS data but they both break down with
> > python errors ...
> >
> >
> >
> > -
> > Regards Morten
> >
> > Currently using Qgis 3.10.0
> > Windows 10, 64bit
> > --
> > Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> > ___
> > 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] Isochrones

2020-03-25 Per discussione Ujaval Gandhi
Hi Tyler,

I have step-by-step tutorials for using the built-in network analysis
tools, QNEAT3 and ORS Tools plugins that show how to setup and use them. Do
have a look and see if you can make it work for your dataset.

*Basic Network Visualization and Routing (QGIS3)*
<https://www.qgistutorials.com/en/docs/3/basic_network_analysis.html>
*Locating Nearest Facility with Origin-Destination Matrix (QGIS3)*
<https://www.qgistutorials.com/en/docs/3/origin_destination_matrix.html>
*Service Area Analysis using Openrouteservice (QGIS3)*
<https://www.qgistutorials.com/en/docs/3/service_area_analysis.html>
[image: Logo] <https://spatialthoughts.com/>
Ujaval Gandhi
Spatial Thoughts
mobile: +91-8095684687
email: uja...@spatialthoughts.com
[image: LinkedIn icon] <https://www.linkedin.com/in/spatialthoughts/>  [image:
Twitter icon] <https://twitter.com/spatialthoughts>
Subscribe to our newsletter http://bit.ly/spatialthoughts-newsletter


On Wed, Mar 25, 2020 at 9:05 PM Nicolas Cadieux <
nicolas.cadi...@archeotec.ca> wrote:

> Hi,
>
> The first thing I would do is to check the network integrity.  Perhaps
> some road are not connected (snapped).  You also need a snap and break at
> every intersection. You can do some of this by exporting all the end node.
> Check for multiline vs lines. You can split all of those in the vector
> menu.  Your problems are likely linked to a bad network topology. Users of
> that network could perhaps confirm this? I have used it but not for this
> type of stuff.
>
> Nicolas Cadieux
>
> > Le 25 mars 2020 à 10:22, Tyler Veinot  a écrit :
> >
> > 
> > All;
> > I have a network, Canada National Road Network it is a free download,
> that I am trying to use for PEI and the City of Charlottetown to find out
> what area is within X time of various points of interest. I used Here for
> QGIS to get the initial result but QGIS has a tool built in Network Analyst
> that has Service Area from Network and from Point, also and QNEAT that has
> 6 isochrone tools for doing exactly what I am trying to do. For some reason
> though the results don't seem to match the network. I would expect the from
> the point of origin the shortest times to be along the lines and radiate
> out.
> > What tools are you guys using to do this kind of work? Do my values for
> forward backward both direction need to be numeric? Any tutorials on using
> these tools?
> > Thanks;
> > Tyler
> > ___
> > 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] Python script for QGIS

2019-12-27 Per discussione Ujaval Gandhi
 <https://spatialthoughts.com/>
Try gdal_calc

gdal_calc.py -A input.tif --A_band=1 -B input.tif --B_band=2 -C input.tif
--C_band=3 -D input.tif --D_band=4 --outfile=reclass.tif
--calc="(A==109)*(B==178)*(C==200)*(D==255) +
(A==138)*(B==193)*(C==212)*(D==255) + (A==161)*(B==205)*(C==220)*(D==255)"

This will set the 3 RGB values to 1 and rest all to 0.

Ujaval Gandhi
Spatial Thoughts <https://spatialthoughts.com/>


On Fri, Dec 27, 2019 at 7:56 PM Nicolas Cadieux <
nicolas.cadi...@archeotec.ca> wrote:

> Hi,
> Yes, google “reclassify”. You can do it multiple ways.
> Nicolas
>
> > Le 27 déc. 2019 à 05:55, LE LAMER Romain  a écrit :
> >
> > Hi,
> > Is it possible via gdal_translate, or other gdal program, to binarize a
> tile?
> >
> > I would like the colors RGB 59,89,95,255 & 60,89,96,255  change to white
> (color entry 0) and that the other colors 109,178,200,255; 138,193,212,255
> & 161,205,220,255 change to black (color entry 1)
> >
> > I don't understand how to use the -b and / or -mask arguments in this
> code
> > l = 'gdal_translate -a_srs EPSG:4326 -a_ullr ' + ullr + f_in + f_out +
> '\n'
> >
> > 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 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] qgis.org down?

2019-12-12 Per discussione Ujaval Gandhi
The qgis.org main site is down and not accessible. Can someone have a look?


Ujaval Gandhi
Spatial Thoughts
___
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