Re: [Qgis-user] How to make diagonals

2022-02-03 Thread Etienne Trimaille
Maybe "oriented_bbox" to get first a proper rectangle ? https://docs.qgis.org/testing/en/docs/user_manual/expressions/functions_list.html#oriented-bbox But then, you might have some tiny leftover. It depends if you care or not. Otherwise, you need to use the angle at each points. I thought there

[Qgis-user] How to make diagonals

2022-02-03 Thread Dario C
Hi, I have several rectangles (almost squared) and I'd like to represent their diagonals. I started to do with geometry generator with: make_line(point_n($geometry,1),point_n($geometry,4)) and make_line(point_n($geometry,2),point_n($geometry,5)) Unfortunately, even if they look rectangular, actua

Re: [Qgis-user] Include Comment in source Query

2022-02-03 Thread Bernd Vogelgesang
mhm, seems to be this open issue maybe https://github.com/qgis/QGIS/issues/38359 Am 03.02.22 um 19:34 schrieb Hugh Kelley: Ah thanks yes agreed on the shp front. I'm not finding success with gpkg using QGIS 3.16.11 either though. On Thu, Feb 3, 2022 at 1:27 PM Bernd Vogelgesang wrote:

Re: [Qgis-user] Include Comment in source Query

2022-02-03 Thread Hugh Kelley
Ah thanks yes agreed on the shp front. I'm not finding success with gpkg using QGIS 3.16.11 either though. On Thu, Feb 3, 2022 at 1:27 PM Bernd Vogelgesang wrote: > Hi, > > here are my findings from 2015: > > > https://gis.stackexchange.com/questions/107522/is-it-possible-to-use-comments-in-qgi

Re: [Qgis-user] Include Comment in source Query

2022-02-03 Thread Bernd Vogelgesang
Hi, here are my findings from 2015: https://gis.stackexchange.com/questions/107522/is-it-possible-to-use-comments-in-qgis-query-builder-with-esri-shapefiles/149448#149448 In short: comments with shape files did not (do not maybe still ) work Solution: Just do not use ESRI-Shape files for work

Re: [Qgis-user] Include Comment in source Query

2022-02-03 Thread Hugh Kelley
Very helpful point, it is a shapefile. so far "#", "--", "//" and "/* */" did not work. I also tried "" for good measure which didn't work as well. I tried a few of those on a geopackage too and they errored out there as well. I'll try a postgis datas source later today if I remember. On Thu,

Re: [Qgis-user] Include Comment in source Query

2022-02-03 Thread WhereGroup
Hi Hugh, that depends on the provider in use, a PostGIS provider might behave differently from a Shapefile. See if wrapping the comment in /* comment */ works. Cheers, Hannes Am 03.02.22 um 15:16 schrieb Hugh Kelley: Hi all, in the Layer Properties >> source >> Query Builder dialogue, if I

[Qgis-user] Include Comment in source Query

2022-02-03 Thread Hugh Kelley
Hi all, in the Layer Properties >> source >> Query Builder dialogue, if I use "--" it shows that I've commented out that line. when I test the query though, it throws an error complaining about the comment I included. Is there a way to include a comment in the query? i've like to include a note

[Qgis-user] FW: RE: Labeling Lines with Bearings

2022-02-03 Thread kirk
Sent from my Galaxy Original message From: kirk Date: 2022-02-03 5:55 a.m. (GMT-04:00) To: Springfield Harrison , qgis-user@lists.osgeo.org Subject: RE: [Qgis-user] Labeling Lines with Bearings Hi Spingfield.I use a little routine and the core if it is:main_angle($geometry)

Re: [Qgis-user] Labeling Lines with Bearings

2022-02-03 Thread kirk
Hi Spingfield.I use a little routine and the core if it is:main_angle($geometry) which you can use in field calculator.Note this will give you the azimuth in relation to grid north for the coordinate system you are using.  For projections, you will need to lookup or calculate convergence to get

Re: [Qgis-user] QGIS 3.22.2 import Mapinfo files

2022-02-03 Thread SCHULZ Wolfgang
Hello, just to clarify - this was a problem on my side. I had to rename the files and the file names didn't match. Sorry for the confusion and thanks for the fast reply Wolfgang -Ursprüngliche Nachricht- Von: Qgis-user Im Auftrag von Richard Duivenvoorde Gesendet: Donnerstag, 3. Februar

Re: [Qgis-user] Labeling Lines with Bearings

2022-02-03 Thread Springfield Harrison
Hello Phil & Calvin, Thanks very much to you both for those tips. The Vector Shake Tools options were good but required some extra work to transfer the new information to the existing layer.  I think I could have made it work but then found one of the options in Stack Exchange to be exactly w