[Qgis-user] Compiling messages Qgis 3.18.3

Saulteau Don sault.don at gmail.com
Thu Jun 10 19:00:10 PDT 2021


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.3158204722222 +gamma=53.1301023611111
+k=0.99984
+x_0=2000000 +y_0=5000000 +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 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

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 <qgis src directory>
patch -Np1 -i <path to patch>/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 <apschwimmer at 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 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 at 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 at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210610/c7683195/attachment.html>


More information about the Qgis-user mailing list