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/[email protected]&q=from:%22APM%22>Mon,
13 Dec 2021 05:05:32 -0800
<https://www.mail-archive.com/[email protected]&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=7250000
+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
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user