[Qgis-user] Add elevation data to many gpx files

2022-01-25 Thread APM

Dear List,



is it possible to add elevation data to gpx files with Qgis?

I have a high amount of gpx-files and would have to add the data's in a 
batch.




Thank you!



Kind regards


Piet

___
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] Disassemble GPX files

2022-01-02 Thread APM

Dear Qgis-user,


I have a lot of gpx-files, which contain several tracks each.


Is it possible to disassemble this files in several files in a batch, 
which contain only one track each?


The file name should be the  tag of the track.


I use a Linux system with a self compiled Qgis 3.20.

But maybe there's a solution in addition to Qgis with command line, gdal 
etc. ?



Thank you!


Kind regards


Piet

___
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] Error make install Qgis

2021-12-13 Thread APM

Hi Andrea,


I changed the files, all is o.k. now.

Is this o.k. as well, to report such errors or will they be fixed anyway?


Kind regards


Piet




Am 13.12.21 um 17:59 schrieb Andrea Giudiceandrea:


APM 
<https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=from:%22APM%22>Mon, 
13 Dec 2021 05:05:32 -0800 
<https://www.mail-archive.com/search?l=qgis-user@lists.osgeo.org&q=date:20211213>


Dear List,

I compiled Qgis from github.
If I install the build with make install I got the message:

Installing crssync ... Could not execute: INSERT INTO 
tbl_srs(srs_id,description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated)VALUES 
(63560, 'GSK-2011 / GSK 3GK zone 
7','tmerc','tmerc','+proj=tmerc+lat_0=0 +lon_0=21 +k=1 +x_0=725 
+y_0=0 +ellps=GSK2011+towgs84=0,0,0,0,0,0,0 +units=m 
+no_defs',520003560,'EPSG','21207',0,0)[UNIQUE constraint failed: 
tbl_srs.srs_id/UNIQUE constraint failed:tbl_srs.srs_id]


Hi Piet,
this issue is similar to the one previously also reported by you some 
months ago.


It seems to me there is again an issue in the source code files 
qgscoordinatereferencesystem.cpp and qgscoordinatereferencesystem_legacy.h


You should be able to fix the issue patching the lines 2357 and 2358 
of src/core/proj/qgscoordinatereferencesystem.cpp


from:

  int nextSrsId = 63560;
  int nextSrId = 520003560;


to:

  int nextSrsId = 63561;
  int nextSrId = 520003561;



and the last lines of src/core/proj/qgscoordinatereferencesystem_legacy.h

from:

  {"OGC:CRS83", "63559,520003559"},
};


to:

  {"OGC:CRS83", "63559,520003559"},
  {"EPSG:20904", "63560,520003560"},
};



Best regards.

Andrea Giudiceandrea___
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] Error make install Qgis

2021-12-13 Thread APM

Dear List,

I compiled Qgis from github.

If I install the build with make install I got the message:

Installing crssync ... Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63560, 'GSK-2011 / GSK 3GK zone 7','tmerc','tmerc','+proj=tmerc 
+lat_0=0 +lon_0=21 +k=1 +x_0=725 +y_0=0 +ellps=GSK2011 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs',520003560,'EPSG','21207',0,0) 
[UNIQUE constraint failed: tbl_srs.srs_id/UNIQUE constraint failed: 
tbl_srs.srs_id]


Kind regards

Piet

Data:

QGIS-Version



3.20.3-Odense



QGIS-Codeversion



6214761b62 

Qt-Version



5.15.2

Python-Version



3.9.9

GDAL-Version



3.3.3

PROJ-Version



8.2.0

EPSG-Registraturdatenbankversion



v10.038 (2021-10-21)

GEOS-Version



3.10.1-CAPI-1.16.0

SQLite-Version



3.36.0

PostgreSQL-Client-Version



14.1 (Debian 14.1-1)

SpatiaLite-Version



5.0.1

QWT-Version



6.1.4

QScintilla2-Version



2.11.6

BS-Version



Debian GNU/Linux bookworm/sid






Aktive Python-Erweiterungen



batch_gps_importer GpxSegmentImporter processing db_manager MetaSearch
___
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] Build error on Debian testing 'bookworm'

2021-09-17 Thread APM

Dear Richard,


you're right:


The name of the Debian package is sip5-tools.

I delete it, and I delete sip with 'pip3 uninstall sip' as well.

The compilation works fine now.


If I reinstall sip5-tools, the build fails again.


Thank you for your help!


Kind regards


Piet




Am 17.09.21 um 07:41 schrieb Richard Duivenvoorde:

On 9/17/21 6:58 AM, APM wrote:

Dear List,


after removing the Debian sip5 package and a 'pip3 install sip'
the compilation works find.

Maybe helpful for others.

Hi Piet,

I'm not 100% sure if this is a good solution.

Installing sip with pip or pip3 means you are pulling sip-stuff from the python 
repo's, while I think it is preferred to keep plain Debian (python/sip) 
packages for compiling QGIS yourself.

I build on a aging system myself, so I'm not very aware of which sip I exactly 
use... but I cannot find a 'sip5' package, only sip5-doc and sip5-tools (both 
also not installed on my system...
Ah:
  `dpkg -S /usr/bin/sip`
tell's me it comes from sip-dev package (sip-dev/testing,testing,now 
4.19.25+dfsg-1), so I think that is what I actually use to build QGIS...

The 'Debian control' file of QGIS [0] shows that (for the packaging build) 
there is a dependency on 'python3-sip', and:
  `apt show python3-sip`
show me that it's source comes from 'sip4'(!)... so maybe you installed sip5 
via other sources?

I hope this is helpful...

Regards,

Richard Duivenvoorde

[0] https://github.com/qgis/QGIS/blob/master/debian/control
___
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] Build error on Debian testing 'bookworm'

2021-09-16 Thread APM

Dear List,


after removing the Debian sip5 package and a 'pip3 install sip'
the compilation works find.

Maybe helpful for others.

Kind regards

Piet






Am 13.09.21 um 08:27 schrieb APM:

Dear List,


I tried to build Qgis in a fresh rebuild, but the problem remains.


Because I like to enlarge my experiences in compiling software, it 
would be nice for me to know,


how to analyze such errors in a build process.


Kind regards


Piet



Am 10.09.21 um 09:49 schrieb Richard Duivenvoorde:

Hi Piet,

I'm on bookworm too, and just successfully rebuild QGIS.

My best guess: something old in your build dir.
So I would try to create a fresh build dir and do a fresh rebuild.

Regards,

Richard Duivenvoorde


On 9/10/21 7:13 AM, APM wrote:

Dear List,


if I try to compile Qgis 3.20 on a Debian testing, the build failed 
with:



[ 49%] Automatic MOC for target qgis_weakrelationtest
[ 49%] Built target qgis_weakrelationtest_autogen
Traceback (most recent call last):
   File "/usr/bin/sip5", line 33, in 
 sys.exit(load_entry_point('sip==5.5.0', 'console_scripts', 
'sip5')())

   File "/usr/bin/sip5", line 25, in importlib_load_entry_point
 return next(matches).load()
StopIteration
make[2]: *** 
[python/CMakeFiles/python_module_qgis__core_autogen.dir/build.make:761: 
python/core/sip_corepart0.cpp] Fehler 1

make[2]: *** Datei „python/core/sip_corepart0.cpp“ wird gelöscht
make[1]: *** [CMakeFiles/Makefile2:7451: 
python/CMakeFiles/python_module_qgis__core_autogen.dir/all] Fehler 2



Kind regards


Piet

___
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] Build error on Debian testing 'bookworm'

2021-09-12 Thread APM

Dear List,


I tried to build Qgis in a fresh rebuild, but the problem remains.


Because I like to enlarge my experiences in compiling software, it would 
be nice for me to know,


how to analyze such errors in a build process.


Kind regards


Piet



Am 10.09.21 um 09:49 schrieb Richard Duivenvoorde:

Hi Piet,

I'm on bookworm too, and just successfully rebuild QGIS.

My best guess: something old in your build dir.
So I would try to create a fresh build dir and do a fresh rebuild.

Regards,

Richard Duivenvoorde


On 9/10/21 7:13 AM, APM wrote:

Dear List,


if I try to compile Qgis 3.20 on a Debian testing, the build failed with:


[ 49%] Automatic MOC for target qgis_weakrelationtest
[ 49%] Built target qgis_weakrelationtest_autogen
Traceback (most recent call last):
   File "/usr/bin/sip5", line 33, in 
     sys.exit(load_entry_point('sip==5.5.0', 'console_scripts', 'sip5')())
   File "/usr/bin/sip5", line 25, in importlib_load_entry_point
     return next(matches).load()
StopIteration
make[2]: *** 
[python/CMakeFiles/python_module_qgis__core_autogen.dir/build.make:761: 
python/core/sip_corepart0.cpp] Fehler 1
make[2]: *** Datei „python/core/sip_corepart0.cpp“ wird gelöscht
make[1]: *** [CMakeFiles/Makefile2:7451: 
python/CMakeFiles/python_module_qgis__core_autogen.dir/all] Fehler 2


Kind regards


Piet

___
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] Build error on Debian testing 'bookworm'

2021-09-09 Thread APM

Dear List,


if I try to compile Qgis 3.20 on a Debian testing, the build failed with:


[ 49%] Automatic MOC for target qgis_weakrelationtest
[ 49%] Built target qgis_weakrelationtest_autogen
Traceback (most recent call last):
  File "/usr/bin/sip5", line 33, in 
    sys.exit(load_entry_point('sip==5.5.0', 'console_scripts', 'sip5')())
  File "/usr/bin/sip5", line 25, in importlib_load_entry_point
    return next(matches).load()
StopIteration
make[2]: *** 
[python/CMakeFiles/python_module_qgis__core_autogen.dir/build.make:761: 
python/core/sip_corepart0.cpp] Fehler 1

make[2]: *** Datei „python/core/sip_corepart0.cpp“ wird gelöscht
make[1]: *** [CMakeFiles/Makefile2:7451: 
python/CMakeFiles/python_module_qgis__core_autogen.dir/all] Fehler 2



Kind regards


Piet

___
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] Find / checkout different branches Github

2021-07-26 Thread APM

Dear List,


my questions are more related to the git system, but I hope you'll give 
me some information.



I like to compile QGIS on my own following

https://github.com/qgis/QGIS/blob/master/INSTALL.md#36-check-out-the-qgis-source-code

But I like to compile Qgis 3.20 and not the developement version.


My questions:


How to find the avaible versions ("branches"?) by using a 'git'-command ?

How to checkout a special version?


Further, what is the difference between "backport-43897-to-release-3_20"

and "backport-44030-to-release-3_20"?


Futher, I red that there's a version 3.20.1, but I can't find it?

Is this the 'master' branch?


Thank you very much!


Kind regards


Piet




___
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] Compiling with 3D, how to setup ccmake

2021-06-18 Thread APM

Dear List,


I like to compile Qgis with 3D for Debian Bullseye.


According the manual 
https://github.com/qgis/QGIS/blob/master/INSTALL.md#381-compiling-with-3d-on-debian-based-distributions


I have to add some cmake option:


CMAKE_PREFIX_PATH={path to QGIS Git repo}/external/qt3dextra-headers/cmake
QT5_3DEXTRA_INCLUDE_DIR={path to QGIS Git repo}/external/qt3dextra-headers
QT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so


How can I do that, please?


Thank you!



Kind regards


Piet

___
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] Working with GIT in case of changes in src

2021-06-14 Thread APM

Dear List,


my question is not related to Qgis directly, but I would be glad, if you 
could help me.



On a Debian Bullseye I compiled Qgis and changed the file

src/core/proj/qgscoordinatereferencesystem.cpp

manually, because the orginal file contains a bug, which is already 
reported.


I think, this bugs will be corrected in the orginal source files soon.

But I do not know when.


If I start 'git pull', git ask me to 'commit' or to 'stash' my changes.


Make it sense to keep my manual changes until the change is in the 
orginal source code?


Could this 'keep' cause other errors, because my local source files do 
not fit to the branch anymore?



Kind regards


Piet




___
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] Fwd: Compiling messages Qgis 3.19.0

2021-06-13 Thread APM

Dear List,

after patching the files I see no messages anymore and the related CRS 
is visible in the CRS list!


Have thanks!

Kind regards

Piet



 Weitergeleitete Nachricht 
Betreff:Re: [Qgis-user] Compiling messages Qgis 3.18.3
Datum:  Fri, 11 Jun 2021 13:55:56 +0200
Von:APM 
An: qgis-user@lists.osgeo.org



Dear List,

sorry, I give bad data.

My compiled Qgis version is not 3.18.3, it's

QGIS-Version



3.19.0-Master



QGIS-Codeversion



2066fd6fb9 <https://github.com/qgis/QGIS/commit/2066fd6fb9>

Kind regards

Piet

Am 11.06.21 um 09:24 schrieb APM:


Hello Saulteau,

I'm unsure, if I understand your information right.

1. Go to the issue that Andrea referenced at   > ok

2. copy the patch link with the clipboard button.

I think this is the button on the right side beneath "Verified". If I 
press it   in Firefox


I have "4036e3d6ae71ffefc48a22295e338f59502949bb" in the browsers 
clipboard.


So I copy and paste the file directly and stored it as 'srs-fix.diff':

If I use the command

patch -Np1 -i /home/user/tmp/srs-fix.diff

I get the message:

---

user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? The text leading up 
to this was: -- |diff --git 
a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp |index 
77c7081e455d..4cba529b89de 100644 |--- 
a/src/core/proj/qgscoordinatereferencesystem.cpp |+++ 
b/src/core/proj/qgscoordinatereferencesystem.cpp 
-- File to patch:


---

Kind regards

Piet

~/src/qgis/cpp/QGIS/src$ patch -Np1 -i /home/user/tmp/ 
4036e3d6ae71ffefc48a22295e338f59502949bb.diff srs-fix.diff 
user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? The text leading up 
to this was: -- |diff --git 
a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp |index 
77c7081e455d..4cba529b89de 100644 |--- 
a/src/core/proj/qgscoordinatereferencesystem.cpp |+++ 
b/src/core/proj/qgscoordinatereferencesystem.cpp 
--


Am 11.06.21 um 04:00 schrieb Saulteau Don:
The patch resolved almost all of them! It's left a single CRS that 
couldn't be:


Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63
321, 'Timbalai 1948 / RSO Sarawak LSD 
(m)','omerc','omerc','+proj=omerc +no_uoff +lat_0=4 +lonc=115 
+alpha=53.315820472 +gamma=53.130102361 +k=0.99984
+x_0=200 +y_0=500 +ellps=evrstSS 
+towgs84=-679,669,-48,0,0,0,0 +units=m 
+no_defs',520003321,'EPSG','29874',0,0) [UNIQUE constraint failed: 
tbl_srs.srs_

id/UNIQUE constraint failed: tbl_srs.srs_id]

1 CRSs could not be updated.

Tested on QGIS 3.18.3 and Arch Linux.

To get the patch:
1.) Go to the issue that Andrea referenced at 
https://github.com/qgis/QGIS/pull/43671 
<https://github.com/qgis/QGIS/pull/43671> and click the "commits" tab
2.) copy the patch link with the clipboard button and paste that into 
your browser

3.) add .diff to it like so,
https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff 
<https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff>


that's the patch file =) download it or put it in a notepad and save it.

This particular patch is being applied to 'master' so it's important 
to Find & Replace the reference to the /proj/ folder.
It's because the /proj folder doesn't exist in the 3.18.3 source 
package and the patch won't apply.


Then, you can change directly into the qgis source folder after you 
extract it, apply the patch, then make, make install.


cd 
patch -Np1 -i /srs-fix.diff

is an example of applying the patch with the 'patch' utility

saultdon

On Thu, Jun 10, 2021 at 4:42 AM APM <mailto:apschwim...@apmland.de>> wrote:


Dear Andrea,


thank you for that!


To be honest, I have no idea how to deal with a patch!


Maybe you can give me a short advice?



Kind regards


Piet


Am 10.06.21 um 13:35 schrieb Andrea Giudiceandrea:
> APM wrote
>> All blocks of the message contains
>>
>> "NOT NULL constraint failed:"
> Hi Piet,
> I've submitted a patch https://github.com/qgis/QGIS/pull/43671
<https://github.com/qgis/QGIS/pull/43671> which
> hopefully fixes the issue.
>
> If you want, you cou

Re: [Qgis-user] Compiling messages Qgis 3.18.3

2021-06-11 Thread APM

Dear List,

sorry, I give bad data.

My compiled Qgis version is not 3.18.3, it's

QGIS-Version



3.19.0-Master



QGIS-Codeversion



2066fd6fb9 <https://github.com/qgis/QGIS/commit/2066fd6fb9>

Kind regards

Piet

Am 11.06.21 um 09:24 schrieb APM:


Hello Saulteau,

I'm unsure, if I understand your information right.

1. Go to the issue that Andrea referenced at   > ok

2. copy the patch link with the clipboard button.

I think this is the button on the right side beneath "Verified". If I 
press it   in Firefox


I have "4036e3d6ae71ffefc48a22295e338f59502949bb" in the browsers 
clipboard.


So I copy and paste the file directly and stored it as 'srs-fix.diff':

If I use the command

patch -Np1 -i /home/user/tmp/srs-fix.diff

I get the message:

---

user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? The text leading up 
to this was: -- |diff --git 
a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp |index 
77c7081e455d..4cba529b89de 100644 |--- 
a/src/core/proj/qgscoordinatereferencesystem.cpp |+++ 
b/src/core/proj/qgscoordinatereferencesystem.cpp 
-- File to patch:


---

Kind regards

Piet

~/src/qgis/cpp/QGIS/src$ patch -Np1 -i /home/user/tmp/ 
4036e3d6ae71ffefc48a22295e338f59502949bb.diff srs-fix.diff 
user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff can't find file to patch at input line 5 
Perhaps you used the wrong -p or --strip option? The text leading up 
to this was: -- |diff --git 
a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp |index 
77c7081e455d..4cba529b89de 100644 |--- 
a/src/core/proj/qgscoordinatereferencesystem.cpp |+++ 
b/src/core/proj/qgscoordinatereferencesystem.cpp 
--


Am 11.06.21 um 04:00 schrieb Saulteau Don:
The patch resolved almost all of them! It's left a single CRS that 
couldn't be:


Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63
321, 'Timbalai 1948 / RSO Sarawak LSD 
(m)','omerc','omerc','+proj=omerc +no_uoff +lat_0=4 +lonc=115 
+alpha=53.315820472 +gamma=53.130102361 +k=0.99984
+x_0=200 +y_0=500 +ellps=evrstSS 
+towgs84=-679,669,-48,0,0,0,0 +units=m 
+no_defs',520003321,'EPSG','29874',0,0) [UNIQUE constraint failed: 
tbl_srs.srs_

id/UNIQUE constraint failed: tbl_srs.srs_id]

1 CRSs could not be updated.

Tested on QGIS 3.18.3 and Arch Linux.

To get the patch:
1.) Go to the issue that Andrea referenced at 
https://github.com/qgis/QGIS/pull/43671 
<https://github.com/qgis/QGIS/pull/43671> and click the "commits" tab
2.) copy the patch link with the clipboard button and paste that into 
your browser

3.) add .diff to it like so,
https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff 
<https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff>


that's the patch file =) download it or put it in a notepad and save it.

This particular patch is being applied to 'master' so it's important 
to Find & Replace the reference to the /proj/ folder.
It's because the /proj folder doesn't exist in the 3.18.3 source 
package and the patch won't apply.


Then, you can change directly into the qgis source folder after you 
extract it, apply the patch, then make, make install.


cd 
patch -Np1 -i /srs-fix.diff

is an example of applying the patch with the 'patch' utility

saultdon

On Thu, Jun 10, 2021 at 4:42 AM APM <mailto:apschwim...@apmland.de>> wrote:


Dear Andrea,


thank you for that!


To be honest, I have no idea how to deal with a patch!


Maybe you can give me a short advice?



Kind regards


Piet


Am 10.06.21 um 13:35 schrieb Andrea Giudiceandrea:
> APM wrote
>> All blocks of the message contains
>>
>> "NOT NULL constraint failed:"
> Hi Piet,
> I've submitted a patch https://github.com/qgis/QGIS/pull/43671
<https://github.com/qgis/QGIS/pull/43671> which
> hopefully fixes the issue.
>
> If you want, you could try if it works for you. In case, let me
know.
>
> Regards.
>
> Andrea
>
>
>
> --
> Sent from:
http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
<http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html>
> ___
> Qgis-user mailing list
  

Re: [Qgis-user] Compiling messages Qgis 3.18.3

2021-06-11 Thread APM

Hello Saulteau,


I'm unsure, if I understand your information right.


1. Go to the issue that Andrea referenced at   > ok


2. copy the patch link with the clipboard button.

I think this is the button on the right side beneath "Verified". If I 
press it   in Firefox


I have "4036e3d6ae71ffefc48a22295e338f59502949bb" in the browsers clipboard.


So I copy and paste the file directly and stored it as 'srs-fix.diff':


If I use the command


patch -Np1 -i /home/user/tmp/srs-fix.diff


I get the message:

---


user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|diff --git a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp

|index 77c7081e455d..4cba529b89de 100644
|--- a/src/core/proj/qgscoordinatereferencesystem.cpp
|+++ b/src/core/proj/qgscoordinatereferencesystem.cpp
--
File to patch:

---


Kind regards


Piet


~/src/qgis/cpp/QGIS/src$ patch -Np1 -i /home/user/tmp/
4036e3d6ae71ffefc48a22295e338f59502949bb.diff
srs-fix.diff
user@debian:~/src/qgis/cpp/QGIS/src$ patch -Np1 -i 
/home/user/tmp/srs-fix.diff

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|diff --git a/src/core/proj/qgscoordinatereferencesystem.cpp 
b/src/core/proj/qgscoordinatereferencesystem.cpp

|index 77c7081e455d..4cba529b89de 100644
|--- a/src/core/proj/qgscoordinatereferencesystem.cpp
|+++ b/src/core/proj/qgscoordinatereferencesystem.cpp
--



Am 11.06.21 um 04:00 schrieb Saulteau Don:
The patch resolved almost all of them! It's left a single CRS that 
couldn't be:


Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63
321, 'Timbalai 1948 / RSO Sarawak LSD 
(m)','omerc','omerc','+proj=omerc +no_uoff +lat_0=4 +lonc=115 
+alpha=53.315820472 +gamma=53.130102361 +k=0.99984
+x_0=200 +y_0=500 +ellps=evrstSS +towgs84=-679,669,-48,0,0,0,0 
+units=m +no_defs',520003321,'EPSG','29874',0,0) [UNIQUE constraint 
failed: tbl_srs.srs_

id/UNIQUE constraint failed: tbl_srs.srs_id]

1 CRSs could not be updated.

Tested on QGIS 3.18.3 and Arch Linux.

To get the patch:
1.) Go to the issue that Andrea referenced at 
https://github.com/qgis/QGIS/pull/43671 
<https://github.com/qgis/QGIS/pull/43671> and click the "commits" tab
2.) copy the patch link with the clipboard button and paste that into 
your browser

3.) add .diff to it like so,
https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff 
<https://github.com/qgis/QGIS/commit/4036e3d6ae71ffefc48a22295e338f59502949bb.diff>


that's the patch file =) download it or put it in a notepad and save it.

This particular patch is being applied to 'master' so it's important 
to Find & Replace the reference to the /proj/ folder.
It's because the /proj folder doesn't exist in the 3.18.3 source 
package and the patch won't apply.


Then, you can change directly into the qgis source folder after you 
extract it, apply the patch, then make, make install.


cd 
patch -Np1 -i /srs-fix.diff

is an example of applying the patch with the 'patch' utility

saultdon

On Thu, Jun 10, 2021 at 4:42 AM APM <mailto:apschwim...@apmland.de>> wrote:


Dear Andrea,


thank you for that!


    To be honest, I have no idea how to deal with a patch!


Maybe you can give me a short advice?



Kind regards


Piet


Am 10.06.21 um 13:35 schrieb Andrea Giudiceandrea:
> APM wrote
>> All blocks of the message contains
>>
>> "NOT NULL constraint failed:"
> Hi Piet,
> I've submitted a patch https://github.com/qgis/QGIS/pull/43671
<https://github.com/qgis/QGIS/pull/43671> which
> hopefully fixes the issue.
>
> If you want, you could try if it works for you. In case, let me
know.
>
> Regards.
>
> Andrea
>
>
>
> --
> Sent from:
http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
<http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto: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
<

Re: [Qgis-user] Compiling messages Qgis 3.18.3

2021-06-10 Thread APM

Dear Andrea,


thank you for that!


To be honest, I have no idea how to deal with a patch!


Maybe you can give me a short advice?



Kind regards


Piet


Am 10.06.21 um 13:35 schrieb Andrea Giudiceandrea:

APM wrote

All blocks of the message contains

"NOT NULL constraint failed:"

Hi Piet,
I've submitted a patch https://github.com/qgis/QGIS/pull/43671 which
hopefully fixes the issue.

If you want, you could try if it works for you. In case, let me know.

Regards.

Andrea



--
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] Compiling messages Qgis 3.18.3

2021-06-10 Thread APM

Hello Andrea,


yes, this is the case!

All blocks of the message contains

"NOT NULL constraint failed:"



Kind regards

Piet


Am 10.06.21 um 11:11 schrieb Andrea Giudiceandrea:

APM wrote

After a 'make install' I received sevaral similar messages, please see a
cut below:


Could not execute: INSERT INTO tbl_srs(srs_id,
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated)
VALUES (63422, 'NAD27 (CRS27)','longlat',NULL,'+proj=longlat
+datum=NAD27 +no_defs',520003422,'OGC','CRS27',1,0) [NOT NULL constraint
failed: tbl_srs.ellipsoid_acronym/NOT NULL constraint failed:
tbl_srs.ellipsoid_acronym]

Hi Pet,
are all the messages referring to "NOT NULL constraint failed:
tbl_srs.ellipsoid_acronym" or are there other types of errors?

Regards.

Andrea



--
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] Compiling messages Qgis 3.18.3

2021-06-09 Thread APM

Dear All,


on a Debian Bullseye system I compiled Qgis 3.18.3 following
https://github.com/qgis/QGIS/blob/master/INSTALL.md 
.



After a 'make install' I received sevaral similar messages, please see a 
cut below:



Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63422, 'NAD27 (CRS27)','longlat',NULL,'+proj=longlat 
+datum=NAD27 +no_defs',520003422,'OGC','CRS27',1,0) [NOT NULL constraint 
failed: tbl_srs.ellipsoid_acronym/NOT NULL constraint failed: 
tbl_srs.ellipsoid_acronym]


Could not execute: INSERT INTO tbl_srs(srs_id, 
description,projection_acronym,ellipsoid_acronym,parameters,srid,auth_name,auth_id,is_geo,deprecated) 
VALUES (63423, 'NAD83 (CRS83)','longlat',NULL,'+proj=longlat 
+datum=NAD83 +no_defs',520003423,'OGC','CRS83',1,0) [NOT NULL constraint 
failed: tbl_srs.ellipsoid_acronym/NOT NULL constraint failed: 
tbl_srs.ellipsoid_acronym]



Do you know, what is wrong? There seems to be something like a sql error?


Thank you!



Kind regards


Piet

___
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 selfcompiled Atlas export as image as geotiff not possible

2021-06-07 Thread APM

Dear Werner,


works now, I have to install geotiff-bin!


Thank you!



Kind regards


Piet

Am 07.06.21 um 13:50 schrieb Werner Macho:

Hi!

I would expect having libgeotiff-dev in the list of installed packages 
(for compilation) and geotiff (all) to be able to export as tiff files.

I Hope this helps.

regards
Werner

On Mon, Jun 7, 2021 at 1:30 PM APM <mailto:apschwim...@apmland.de>> wrote:


Dear All,


on a Debian Bullseye system I compiled Qgis 3.18.3 following
https://github.com/qgis/QGIS/blob/master/INSTALL.md
<https://github.com/qgis/QGIS/blob/master/INSTALL.md>.

If I like to export a picture as an atlas, I can't use the .tiff
format, because the option is not listed in the pop up menu.


Do you have a tipp?


Thank you!



Piet





___
Qgis-user mailing list
Qgis-user@lists.osgeo.org <mailto: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


[Qgis-user] Qgis selfcompiled Atlas export as image as geotiff not possible

2021-06-07 Thread APM

Dear All,


on a Debian Bullseye system I compiled Qgis 3.18.3 following 
https://github.com/qgis/QGIS/blob/master/INSTALL.md.


If I like to export a picture as an atlas, I can't use the  .tiff 
format, because the option is not listed in the pop up menu.



Do you have a tipp?


Thank you!



Piet





___
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] Extract nodes where lines are crossing other lines

2021-05-05 Thread APM

Dear List,

I like to extract nodes from one layer Line (MultiLineStringZ) with Qgis 
3.18.


There are lines, which crosses other lines in the same layer.

Can I extract this crossing points?

I try to use the "Vector Intersection tool", which is demands an Input 
and Output-Layer.


It extracted some nodes, but not all.

Can you give me a tipp, please?

Thank you!

KR

Piet

___
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] GPX group, add field "name" from track layer to attribut table point layer

2021-04-25 Thread APM

Dear Greg,


thank you for your kindly answer!

Meanwhile I found a solution for my problem.

I can use the menu "Extract Vertices" to solve my problem.

This creates a usable point layer with the needed "name" field.


The "tracklogs" you mentioned are GPS-Tracks from a GPS-Device?

I use the same for my map.


But anyway, I'll check your remarks about the bounding boxes!


Kind regards


Piet


Axel




Am 25.04.21 um 16:32 schrieb Greg Troxel:

APM  writes:


if I import a gpx file via "Data source manager", I get a group with
two layers:

1. "track_points" as PointZ layer

2. "tracks" as MultiLineStringZ

The "tracks" layer contains a field "name" in the attribute table.

This field is not in the "track_points layer".

I have also been loading GPX of tracks, but in my case they are actual
tracklogs rather than trail geometries.  I'm not sure which you have.

Generally, I have loaded tracks and not loaded trackpoints.   This has
seemed like a good choice except for brief tracks at fixed locations (as
a form of position averaging to get a more reliable/accurate position
for a point).   But for tracks that represent trails, I find that the
trackpoints just cause clutter and I don't find them useful.  They are
implicitly present as vertices of the multilinestring.

I wonder if you are rendering track points, and if so why (you probably
understand something I don't; that's not meant to be "don't do that").

As for labeling, it seems pretty normal to have name labels on
multilinestrings, as that's basically how roads are, and it seems
labeling attempts to avoid overlap anyway.

I wonder if your svg object is somehow bigger than its bounding box, so
qgis thinks it doesn't overlap but yet it does?

Greg

___
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] GPX group, add field "name" from track layer to attribut table point layer

2021-04-25 Thread APM

Dear List,

if I import a gpx file via "Data source manager", I get a group with two 
layers:


1. "track_points" as PointZ layer

2. "tracks" as MultiLineStringZ

The "tracks" layer contains a field "name" in the attribute table.

This field is not in the "track_points layer".

Is there a way to add the field "name" in the "track_point" layer, so 
that every point has the track name which he belongs to?


I need this to create a map with hiking signs of the tracks. I use the 
field "name" to get the relation between hiking signs and the tracks.


Basically it works, but I have overlapping SVG signs in the map.

To avoid this overlapping, I try to use the "point displacement" in the 
"Symbology" menu. But I'm not sure if it will work. Maybe there is a 
better way to avoid the overlapping.


Thank you for you help!

KR

Piet

___
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] Overlapping SVG Symbols

2021-04-19 Thread APM

Dear List,


I like to create a map with gpx tracks. This tracks I imported as a 
vector layer.


Every track has a SVG Symbol which are defined in the menu Symbole > 
Line > Marker Line > Marker > SVG Marker


Works fine so far.

But at common points of the tracks,  the SVG symbols overlap each other 
and are not visible correctly.



I played a bit with 'Marker line" and 'Intervall', but I have no success.


I'm not an native English speaker, but I hope I pointed out my problem.


Thank you for every hint!


Kind regards


Piet


___
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] How to create a hiking map with Qgis and OSM

2020-04-08 Thread APM

Dear all,


I like to create a hiking map with Qgis and ask you for some help.

My system is a small laptop with Debian stable and Qgis 3.12.1.


As a base I to use the WMS server https://ows.terrestris.de/osm/service

I like to use OSM to avoid trouble due to legal things.


I added a vector layer with WGS84 / UTM 32N and a gps vector layer.

The related gpx file is loaded with the plugin gps tool.




My first question is how to setup a scale 1:10.000?

Maybe it‘s possible to print a map with fixed scale?


Further the printed .pdf has very small letters, which are not readable.

Can I enlarge the letters or is it given by the WMS server?


Generally I like to ask if I have to render a map if I would use a 
vector layer based on a OSM .pbf file in every case.

Is there a simple tool for linux to do the rendering?


I found only older tools or a very comlex solution with a comlete server.


Thank you very much for your kindly help!


Kind regards


Axel

___
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