[Qgis-user] Attribute table issue

2022-05-12 Thread Lester Anderson via Qgis-user
Hello all,

I had to apply a "fix geometries" on a shapefile which worked fine.
However, it appears to move the fixed elements to the top of the table and
as a result the sequence is out of order, e.g.:


[image: image.png]
Is it possible to put things back in the correct order (by ID); 12 and 13
should be the last rows ?

Thanks

Lester
___
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 3.26 Elevation profile/cross section tool deep dive - live today

2022-05-12 Thread Nyall Dawson via Qgis-user
Hi all,

Later today (May 13), at 19:30 AEST (GMT+10) / 11:30 CEST I'll be
doing an in-depth live exploration of all the new elevation
profile/cross section functionality coming in QGIS 3.26. Tim Sutton
will be joining me, so it's guaranteed to be an educational &
entertaining session!

You can tune in live here https://youtu.be/AknJjNPystU (a recording
will also be made available after the event).

Regards,
Nyall
___
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] Configuration for PostgreSQL

2022-05-12 Thread Richard Duivenvoorde via Qgis-user

Hi,

This is just the way the Linux install's software.
I think you installed only postgres-server...

And yes you probably need a lot of header files (often residing the in the 
'*-dev' packages).

But have a look into:

https://github.com/qgis/QGIS/blob/master/INSTALL.md

There is a lot of info to compile it on Debian or Ubuntu, including the full 
apt-get line to get all the dependencies:

https://github.com/qgis/QGIS/blob/master/INSTALL.md#33-install-build-dependencies
(pick the focal line)

A question: do you really want to compile yourself? Or do you just want to run 
QGIS?
Because, if the last: 
https://qgis.org/en/site/forusers/alldownloads.html#quickstart

FYI: my line to build/install master (I'm on Debian), after you checked out 
from git. From withing the ~/git/qgis folder:

 # MASTER DEBUG with server and 3D in ~/bin/qgis_
 mkdir build;cd build;ccmake -GNinja -DBUILD_TESTING=FALSE -DENABLE_TESTS=OFF 
-DWITH_SERVER=TRUE -DWITH_3D=TRUE 
-DCMAKE_INSTALL_PREFIX=~/bin/qgis_/master/debug -DWITH_QWTPOLAR=OFF 
-DCMAKE_BUILD_TYPE=Debug 
-DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so 
-DWITH_GRASS=TRUE -DGRASS_PREFIX7=/usr/lib/grass78 ..

Hope this helps.

Regards,

Richard Duivenvoorde


On 5/12/22 15:09, vicentesmith via Qgis-user wrote:

Hello,
I'm new to QGIS and this is my first try at installing it (using cmake). My 
system is running Ubuntu 20.04 so I used /apt/ to install PostgreSQL. /apt/ 
decided that the way to go was to install all the components at the 
/usr/lib/postgresql/12 subdirectory, where it created 2 subdirectories bin and 
lib, but not include. I modified the cmake menu accordingly:
  POSTGRESQL_PREFIX                /usr/lib/postgresql/12
  POSTGRES_CONFIG                  /usr/lib/postgresql/12/bin/pg_config
  POSTGRES_CONFIG_PREFER_PATH      /usr/lib/postgresql/12/bin
  POSTGRES_INCLUDE_DIR             /usr/include/postgresql
  POSTGRES_LIBRARY                 /usr/lib/postgresql/12/lib
However, the configuration still fails with:
  Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
  Found PostgreSQL: /usr/lib/postgresql/12/lib
This makes sense because (1) I'm not really telling it which library to load 
and (2) there is no /usr/include/postgresql subdirectory (although I could 
manually create /usr/lib/postgresql/12/include). Just for completion, the 
/usr/lib/postgresql/12/lib subdirectory has the following files:
_int.so              dict_xsyn.so lo.so plpgsql.so 
           utf8_and_euc_jp.so
adminpack.so earthdistance.so ltree.so 
              postgres_fdw.so       utf8_and_euc_kr.so
amcheck.so           euc2004_sjis2004.so moddatetime.so 
refint.so             utf8_and_euc_tw.so
ascii_and_mic.so     euc_cn_and_mic.so pageinspect.so seg.so 
               utf8_and_gb18030.so
auth_delay.so        euc_jp_and_sjis.so passwordcheck.so 
sepgsql.so            
utf8_and_gbk.so
auto_explain.so      euc_kr_and_mic.so      pg_buffercache.so sslinfo.so 
           utf8_and_iso8859.so
autoinc.so           euc_tw_and_big5.so     pg_freespacemap.so 
tablefunc.so          utf8_and_iso8859_1.so
bitcode              file_fdw.so            pg_prewarm.so tcn.so 
               utf8_and_johab.so
bloom.so fuzzystrmatch.so       
pg_stat_statements.so  test_decoding.so      utf8_and_sjis.so
btree_gin.so hstore.so              pg_trgm.so             
tsm_system_rows.so    utf8_and_sjis2004.so
btree_gist.so        insert_username.so     pg_visibility.so       
tsm_system_time.so    utf8_and_uhc.so
citext.so isn.so pgcrypto.so 
unaccent.so           utf8_and_win.so
cube.so              latin2_and_win1250.so pgoutput.so 
           utf8_and_ascii.so uuid-ossp.so 
cyrillic_and_mic.so  latin_and_mic.so pgrowlocks.so       
   utf8_and_big5.so
dblink.so libpqwalreceiver.so 
pgstattuple.so         
utf8_and_cyrillic.so
dict_int.so llvmjit.so pgxml.so             
  utf8_and_euc2004.so
dict_snowball.so     llvmjit_types.bc       pgxs                   
utf8_and_euc_cn.so

My questions are which library(ies) QGIS needs for building and if QGIS also 
needs any header from PostgreSQL. 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] Configuration for PostgreSQL

2022-05-12 Thread vicentesmith via Qgis-user
Hello,
I'm new to QGIS and this is my first try at installing it (using cmake). My 
system is running Ubuntu 20.04 so I used apt to install PostgreSQL. apt decided 
that the way to go was to install all the components at the 
/usr/lib/postgresql/12 subdirectory, where it created 2 subdirectories bin and 
lib, but not include. I modified the cmake menu accordingly:
POSTGRESQL_PREFIX /usr/lib/postgresql/12
POSTGRES_CONFIG /usr/lib/postgresql/12/bin/pg_config
POSTGRES_CONFIG_PREFER_PATH /usr/lib/postgresql/12/bin
POSTGRES_INCLUDE_DIR /usr/include/postgresql
POSTGRES_LIBRARY /usr/lib/postgresql/12/lib
However, the configuration still fails with:
Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
Found PostgreSQL: /usr/lib/postgresql/12/lib
This makes sense because (1) I'm not really telling it which library to load 
and (2) there is no /usr/include/postgresql subdirectory (although I could 
manually create /usr/lib/postgresql/12/include). Just for completion, the 
/usr/lib/postgresql/12/lib subdirectory has the following files:
_int.so dict_xsyn.so lo.soplpgsql.so utf8_and_euc_jp.so
adminpack.soearthdistance.soltree.so postgres_fdw.so utf8_and_euc_kr.so
amcheck.so euc2004_sjis2004.so moddatetime.sorefint.so utf8_and_euc_tw.so
ascii_and_mic.so euc_cn_and_mic.so pageinspect.soseg.so utf8_and_gb18030.so
auth_delay.so euc_jp_and_sjis.so passwordcheck.sosepgsql.so utf8_and_gbk.so
auto_explain.so euc_kr_and_mic.so pg_buffercache.so sslinfo.so 
utf8_and_iso8859.so
autoinc.so euc_tw_and_big5.so pg_freespacemap.so tablefunc.so 
utf8_and_iso8859_1.so
bitcode file_fdw.so pg_prewarm.so tcn.so utf8_and_johab.so
bloom.sofuzzystrmatch.so pg_stat_statements.so test_decoding.so utf8_and_sjis.so
btree_gin.so hstore.so pg_trgm.so tsm_system_rows.so utf8_and_sjis2004.so
btree_gist.so insert_username.so pg_visibility.so tsm_system_time.so 
utf8_and_uhc.so
citext.soisn.sopgcrypto.sounaccent.so utf8_and_win.so
cube.so latin2_and_win1250.so pgoutput.so utf8_and_ascii.so uuid-ossp.so
cyrillic_and_mic.so latin_and_mic.so pgrowlocks.so utf8_and_big5.so
dblink.solibpqwalreceiver.sopgstattuple.so utf8_and_cyrillic.so
dict_int.so llvmjit.sopgxml.so utf8_and_euc2004.so
dict_snowball.so llvmjit_types.bc pgxs utf8_and_euc_cn.so

My questions are which library(ies) QGIS needs for building and if QGIS also 
needs any header from PostgreSQL. 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] add strava heatmap to QGIS

2022-05-12 Thread Hugh Kelley via Qgis-user
worked like a charm! Thanks so much for spending time on this!

Hope you're having a good week

hugh

* In case anyone else is following, i think i missed a url parameter I was
including because of how long it was. The url that I ended up using was

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

On Wed, May 11, 2022 at 3:12 PM Ujaval Gandhi 
wrote:

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

-- 
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] QgsField with unlimited text only 32767 characters long

2022-05-12 Thread Marco Lechner via Qgis-user
Hi,

when creating an attribute field for a memory layer the “unlimited” length 
seems to be limited to 32767 characters. I do

QgsField("history", QVariant.String, typeName='text', len=-1)

Is it possible, how?, to create an attribute field without this limit?

Regards
Marco

i.A. Dr. Marco Lechner
Leiter Fachgebiet RN 1 │ Head RN 1

--
Bundesamt für Strahlenschutz │ Federal Office for Radiation Protection
Koordination Notfallschutzsysteme │ Coordination Emergency Systems │ RN 1
Rosastr. 9
D-79098 Freiburg

Tel.: +49 30 18333-6724
E-Mail: mlech...@bfs.de
www.bfs.de
 Besuchen Sie unsere Website, folgen Sie uns auf 
Twitter und 
abonnieren Sie unseren  Newsletter.
 Informationen zum Datenschutz gemäß Artikel 
13 DSGVO
 E-Mail drucken? Lieber die Umwelt schonen!

--
Hinweis zu Anhängen die auf .p7m/.p7c/.p7s oder .asc/.asc.sig enden:
Die .p7?- und .asc-Dateien sind ungefährliche Signaturdateien (digitale 
Unterschriften). In E-Mail-Clients mit S/MIME Konfiguration (.p7?) oder 
PGP-Erweiterung (.asc) dienen sie zur:
- Überprüfung des Absenders
- Überprüfung einer evtl. Veränderung des Inhalts während der Übermittlung über 
das Internet
Die Signaturdateien können ebenso dazu verwendet werden dem Absender dieser 
Signatur eine E-Mail mit verschlüsseltem Inhalt zu senden. In E-Mail-Clients 
ohne S/MIME Konfiguration oder PGP-Erweiterung erscheinen die Dateien als 
Anhang und können ignoriert werden.

___
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] Using Grass7 r.stream.order on QGIS 3.24

2022-05-12 Thread Rijyuta Kaabaadee via Qgis-user
Thank you for responding.

We are writing a python plugin for QGIS. This plugin intends to use
r.stream.order to get previous and next stream segments for a stream
network.
It will be better if the r.stream.order can be used within QGIS.

Your suggestion is also worth considering and I am looking at
https://grasswiki.osgeo.org/wiki/GRASS_and_Python to explore further in
that direction.

Regards,
Rijyuta

On Thu, May 12, 2022 at 12:38 PM Micha Silver  wrote:

> I think that the processing toolbox does not automatically create a new
> algorithm for GRASS modules added to GRASS.
>
> May I ask why not to run r.stream.order from GRASS directly?
>
>
> On 5/11/22 13:37, Rijyuta Kaabaadee via Qgis-user wrote:
>
> Hello QGIS community,
>
> I have recently started using QGIS. I am using QGIS 3.24 on Ubuntu 20.04.
> I want to use the r.stream.order tool from the grass7 provider in the QGIS
> processing toolbox. However this tool is not visible in the toolbox. So I
> followed the documentation:
> https://docs.qgis.org/3.22/en/docs/training_manual/grass/grass_setup.html
> to get a working grass7 shell. From this shell I was able to install
> r.stream.order using g.extension. It was installed successfully in
> ~/.grass7/addons/bin/r.stream.order. Even after restarting the QGIS
> application, r.stream.order is not visible in the processing toolbox.
> Has anyone faced a similar issue before?
>
> Regards,
> Rijyuta
>
> ___
> 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
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> cell: +972-523-665918https://orcid.org/-0002-1128-1325
>
>
___
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] New objectid numbers after using DIFFERENCE

2022-05-12 Thread Thomas Struller via Qgis-user
Hallo Keith,

go to your attribute table, use there the field calculator tool, create a new 
column id with  @row_number. Than you got a new object id for every object. 
Hope that helps because I use the german layout for qgis and tried to translate 
it for you.

Regards
Thomas


Mit freundlichen Grüßen


Thomas Struller
Diplom Geologe (Univ.), BDG, V18

Sachverständiger nach BBodSchG §18,
SG1 Historische Recherche
SG2 Pfad Boden - Gewässer
Akademischer Geoinformatiker




Tel:   0049 911 12076 111
Mobil:   0049 170 33 20 494
Mail: thomas.strul...@lga-geo.de


[cid:image002.png@01D865E0.9C09FE90]LGA Institut für Umweltgeologie und 
Altlasten GmbH
Christian-Hessel-Straße 1
90427 Nürnberg
i...@lga-geo.de
www.LGA-geo.de

[cid:image001.jpg@01D865E0.149505E0]


___
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] Using Grass7 r.stream.order on QGIS 3.24

2022-05-12 Thread Micha Silver via Qgis-user

  
  
I think that the processing toolbox does not
automatically create a new algorithm for GRASS modules added to
GRASS.
May I ask why not to run r.stream.order from GRASS
directly?


On 5/11/22 13:37, Rijyuta Kaabaadee via
  Qgis-user wrote:


  
  
Hello QGIS community,


I have recently started using QGIS. I am using QGIS 3.24 on
  Ubuntu 20.04. 

I want to use the r.stream.order tool from the grass7
  provider in the QGIS processing toolbox. However this tool is
  not visible in the toolbox. So I followed the documentation: https://docs.qgis.org/3.22/en/docs/training_manual/grass/grass_setup.html
  to get a working grass7 shell. From this shell I was able to
  install r.stream.order using g.extension. It was installed
  successfully in ~/.grass7/addons/bin/r.stream.order. Even
  after restarting the QGIS application, r.stream.order is not
  visible in the processing toolbox. 

Has anyone faced a similar issue before? 



Regards,
Rijyuta

  
  
  
  ___
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


-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
https://orcid.org/-0002-1128-1325
  

___
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