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 is the longest line possible within a polygon, but I can't
find it. I did it manually a few years ago.

Le jeu. 3 févr. 2022 à 23:29, Dario C  a écrit :

> 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, actually they have more then
> 4 points and, moreover, points do not always have the same order.
>
> here below an example:
> [image: image.png]
>
> Is there any expression in order to pick the two longest segments
> connecting all the points of the geometry?
>
>
> 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-it-user] Alcuni problemi con la funzione overlay_nearest usata sullo stesso layer

2022-02-03 Thread Totò Fiandaca
Buongiorno,
confermo tutto.
Ho fatto i test consigliati e ho usato il gpkg condiviso.

Aggiungo altre osservazioni:
1. dove è scritto nella documentazione che overlay_nearest() utilizzato con
lo stesso layer ha quel comportamento? (ovvero salta i casi banali);
2. come mai l'opzione limit:=-1 non ha effetto se il layer è lo stesso?

grazie per la segnalazione

saluti

Il giorno gio 3 feb 2022 alle ore 20:23 Andrea Giudiceandrea <
andreaer...@libero.it> ha scritto:

> Salve a tutti,
> rispondendo ad un quesito di un utente della mailing list qgis-user
> qualche giorno fa, mi sono accorto che si riscontrano dei bug usando la
> funzione overlay_nearest sullo stesso layer.
>
> La funzione, usata su uno stesso layer, per esempio, di punti, dovrebbe
> trovare, per ogni punto del layer, il punto più vicino appartenente allo
> stesso layer.
> Chiaramente il punto più vicino appartenente allo stesso layer è il punto
> stesso, ma il codice è fatto in modo che in questo caso venga escluso il
> punto stesso (che sarebbe un risultato banale) e si cerchi il secondo punto
> più vicino nello stesso layer.
>
> overlay_nearest funziona effettivamente così per layer in formato, per
> esempio, Memory, GeoPackage o Spatialite.
>
> Invece, per layer, per esempio, in formato Shapefile, GeoJSON o
> FlatGeobuf, io riscontro che la funzione restituisce sempre il punto stesso
> invece che il secondo punto più vicino.
>
> Per fare una semplice verifica:
>
> - crea un nuovo Memory layer di tipo geometrico Point in un progetto vuoto
> - aggiungi un singolo punto al layer, salva la modifica e chiudi
> l'editazione
> - usa l'espressione overlay_nearest(@layer,$geometry) nel calcolatore di
> campi per tale layer: l'anteprima mostra il valore [] (cioè, correttamente,
> un array vuoto)
>
> - esporta il Memory layer in un layer in formato Shapefile e aggiungi tale
> layer Shapefile al progetto
> - usa la stessa espressione nel calcolatore di campi per tale layer
> Shapefile: l'anteprima mostra il valore [  ] (cioè
> l'espressione restituisce erroneamente lo stesso unico punto presente nel
> layer)
>
> - esporta il Memory layer in un layer in formato GeoPackage o Spatialite e
> aggiungi tale layer al progetto
> - usa la stessa espressione nel calcolatore di campi per tale layer
> GeoPackage o Spatialite: l'anteprima mostra il valore [] (cioè,
> correttamente, un array vuoto)
>
>
> Inoltre, sempre applicando la funzione sullo stesso layer, anche con layer
> in formato Memory, GeoPackage o Spatialite, riscontro un altro bug.
>
> Creando un nuovo layer di tipo geometrico Point in formato Memory,
> GeoPackage o Spatialite e inserendo un certo numero di punti, tutto
> funziona come dovrebbe e l'espressione overlay_nearest(@layer,$geometry)
> restituisce correttamente il secondo punto più vicino.
>
> Se però elimino uno dei punti dal layer, allora, per tutti i punti a
> partire da quello successivo a quello eliminato, la funzione restituisce
> erroneamente il punto stesso invece che il secondo punto più vicino.
>
> Mi sembra strano che nessun altro se ne sia ancora accorto (non ho trovato
> bug report a riguardo e la funzione esiste ormai da più di un paio di anni)
> e quindi sono un po' in dubbio sulla reale esistenza di questi due bug...
>
> Per verificare questo bug, metto a disposizione un piccolo file GeoPackage
> https://drive.google.com/file/d/195J1kph3v8q_Db2TVDXm-RMYpkaI2ES5
>
> Il layer contiene sette punti, con un campo ID testuale progressivo da 1 a
> 7.
>
> Creando un campo virtuale testuale (ID_near) con il calcolatore di campi e
> l'espressione overlay_nearest(@layer, ID)[0] si dovrebbero ottenere i
> seguenti valori:
>
> ID ID_near
> 1 3
> 2 5
> 3 7
> 4 2
> 5 2
> 6 3
> 7 3
>
>
> Se però, per esempio, elimino il punto con ID 4, la tabella diventa
> erroneamente:
>
> ID ID_near
> 1 3
> 2 5
> 3 7
> 5 5
> 6 6
> 7 7
> cioè i valori del campo virtuale per i punti con ID da 1 a 3 sono
> corretti, mentre per i punti con ID da 5 a 7 sono errati (riportano lo
> stesso ID del punto).
>
>
> Riscontro il problema con QGIS 3.16.0 (prima versione in cui è presente
> overlay_nearest), 3.16.16 e 3.22.3.
>
>
> Spero qualcuno possa smentirmi... ma le conferme sono apprezzate
> ugualmente :-)
>
> A presto.
>
> Andrea
> ___
> QGIS-it-user mailing list
> QGIS-it-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/qgis-it-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/ *
*socio GFOSS.it - *http://gfoss.it/
*blog:*
* https://pigrecoinfinito.com/  FB: Co-admin
- https://www.facebook.com/qgis.it/ **
 *
*TW:  **https://twitter.com/totofiandaca
*

43°51'0.54"N  10°34'27.62"E - EPSG:4326

“Se la 

[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, actually they have more then
4 points and, moreover, points do not always have the same order.

here below an example:
[image: image.png]

Is there any expression in order to pick the two longest segments
connecting all the points of the geometry?


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


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:

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 ;)

Cheers,

Bernd

Am 03.02.22 um 15:33 schrieb 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, Feb 3, 2022 at 9:23 AM Johannes Kröger (WhereGroup)
 wrote:

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 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 to myself when I filter things
sometimes as it can be hard months or years later to figure
out the motivation. for example:

-- remove built neighborhood bikeway according to KML file
from client, per email 2022-02-03
"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)

Maybe there's a better way to include this note, but it
seems that the closer the note is to the filter query
definition the more likely I am to see it.

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


--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany

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

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

-
Schon gewusst?

In unserem Blog geben wir Tipps & Tricks zu
 Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
https://wheregroup.com/blog/
-

___
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



--
Hugh Kelley


___
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




--
Hugh Kelley

___
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] 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-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 ;)
>
> Cheers,
>
> Bernd
> Am 03.02.22 um 15:33 schrieb 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, Feb 3, 2022 at 9:23 AM Johannes Kröger (WhereGroup) <
> johannes.kroe...@wheregroup.com> wrote:
>
>> 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 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 to myself when I filter things sometimes as
>> it can be hard months or years later to figure out the motivation. for
>> example:
>>
>> -- remove built neighborhood bikeway according to KML file from client,
>> per email 2022-02-03
>> "LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)
>>
>> Maybe there's a better way to include this note, but it seems that the
>> closer the note is to the filter query definition the more likely I am to
>> see it.
>>
>> thanks
>>
>> Hugh
>>
>>
>> ___
>> 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
>>
>> --
>> Johannes Kröger / GIS-Entwickler/-Berater
>> WhereGroup GmbH
>> Grevenweg 89
>> 20537 Hamburg
>> Germany
>>
>> Tel: +49 (0)228 / 90 90 38 - 36
>> Fax: +49 (0)228 / 90 90 38 - 11
>> johannes.kroe...@wheregroup.comwww.wheregroup.com
>> Geschäftsführer:
>> Olaf Knopp, Peter Stamm
>> Amtsgericht Bonn, HRB 9885
>> ---
>>
>> -
>> Schon gewusst?
>> In unserem Blog geben wir Tipps & Tricks zu
 Open-Source-GIS-Software
>> und berichten aus unserem Experten-Alltag:https://wheregroup.com/blog/
>> -
>>
>> ___
>> 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
>>
>
>
> --
> Hugh Kelley
>
>
> ___
> 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
>
>

-- 
Hugh Kelley
___
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] 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 ;)

Cheers,

Bernd

Am 03.02.22 um 15:33 schrieb 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, Feb 3, 2022 at 9:23 AM Johannes Kröger (WhereGroup)
 wrote:

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
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 to myself when I filter things
sometimes as it can be hard months or years later to figure out
the motivation. for example:

-- remove built neighborhood bikeway according to KML file from
client, per email 2022-02-03
"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)

Maybe there's a better way to include this note, but it seems
that the closer the note is to the filter query definition the
more likely I am to see it.

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


--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany

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

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

-
Schon gewusst?

In unserem Blog geben wir Tipps & Tricks zu
 Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
https://wheregroup.com/blog/
-

___
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



--
Hugh Kelley


___
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] 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 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 to myself when I filter things sometimes 
as it can be hard months or years later to figure out the motivation. 
for example:


-- remove built neighborhood bikeway according to KML file from 
client, per email 2022-02-03

"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)

Maybe there's a better way to include this note, but it seems that the 
closer the note is to the filter query definition the more likely I am 
to see it.


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


--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany

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

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

-
Schon gewusst?

In unserem Blog geben wir Tipps & Tricks zu
 Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
https://wheregroup.com/blog/
-



OpenPGP_0xBF7B268A77C202D5.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature
___
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] 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 to myself when I filter things sometimes as it
can be hard months or years later to figure out the motivation. for
example:

-- remove built neighborhood bikeway according to KML file from client, per
email 2022-02-03
"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)

Maybe there's a better way to include this note, but it seems that the
closer the note is to the filter query definition the more likely I am to
see it.

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] 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) 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 the adjustment to true north. Kirk SchmidtSent from my 
Galaxy Original message From: Springfield Harrison 
 Date: 2022-02-02  7:30 p.m.  (GMT-04:00) To: 
qgis-user@lists.osgeo.org Subject: [Qgis-user] Labeling Lines with Bearings 
Hello,I need to put the line direction (azimuth) into a line label. Some 
searching has not come up with anything.Is there a way?  Thanks very much . . . 
.Cheers, Spring___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


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 the adjustment to true north. Kirk SchmidtSent from my Galaxy
 Original message From: Springfield Harrison 
 Date: 2022-02-02  7:30 p.m.  (GMT-04:00) To: 
qgis-user@lists.osgeo.org Subject: [Qgis-user] Labeling Lines with Bearings 
Hello,I need to put the line direction (azimuth) into a line label. Some 
searching has not come up with anything.Is there a way?  Thanks very much . . . 
.Cheers, Spring___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


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 2022 08:40
An: qgis-user@lists.osgeo.org
Betreff: Re: [Qgis-user] QGIS 3.22.2 import Mapinfo files

On 2/3/22 08:31, SCHULZ Wolfgang wrote:
> Hello,
> 
> I’m importing Mapinfo files (*.mif + *.mid)  for years with all the QGIS 
> versions. I recently upgraded to QGIS 3.22.2 (Win10) and realized that it is 
> not working anymore. It seems that the *.mid file which is containing the 
> data is not read at all because the attribute table is empty (the individual 
> fields are there).
> 
> Is there another way to import Mapinfo files. What could be the reason for 
> this issue?
> 
> Any help is appreciated.
> 
> The thing is that I need to finish a project today and I use this feature for 
> the project.

Hi Wolfgang,

Normally I would advice you to create an issue for this on 
https://github.com/qgis/QGIS/issues
and attach a dataset with it, so other can confirm this is a QGIS issue (and 
not a mapinfo issue)

But to have a quick-fix, you could install an older (for you working) version 
of QGIS next to 3.22?
Another idea, if it is not too much data, ask others to convert your mapinfo 
files to geopackages or so? So you at least have the data?

(but please after you finished your project also create an issue (with dataset 
and expected outcome etc etc) so somebody can investigate.

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


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 what was needed.


This is it:

"And now it is even easier than Kay's answer -first use 'explode lines' 
tool, yielding all line segments, then calculate azimuth with field 
calculator: *main_angle($geometry)*".


This is brilliant, it can be used to populate an attribute field in the 
table or directly in a label formula as desired.  Exactly the solution I 
was looking for!


Thanks very much to you both, this is a great resource…


Cheers, Spring



On 02/Feb/2022 16:58, Phil Wyatt wrote:

Hi Spring,

Bottom  couple of posts in this stackexchange question should get you started

https://gis.stackexchange.com/questions/55449/how-do-i-find-vector-line-bearing-in-qgis-or-grass

Cheers - Phil

-Original Message-
From: Qgis-user  On Behalf Of Springfield 
Harrison
Sent: Thursday, 3 February 2022 10:30 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] Labeling Lines with Bearings

Hello,

I need to put the line direction (azimuth) into a line label. Some searching 
has not come up with anything.

Is there a way?  Thanks very much . . . .


Cheers, Spring



___
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