Hello, Could you add following information in the postgis docs in this page : https://postgis.net/docs/postgis_installation.html#hard_upgrade in the chapter : "Some custom records of spatial_ref_sys in dump file have an invalid SRID value"
please be kind to insert : "Typically, if you use the french system IGN, you will have problems with SRID values out of range. You need first to throw out completely the IGN from the sql which is resulting from postgis_restore.pl. So, first run : perl utils/postgis_restore.pl "/somepath/olddb.backup" > oldbb.sql then grep -v IGNF olddb.sql > olddb-without-IGN.sql then create your newdb, activate the required Postgis extensions, and insert properly the french system IGN with this script : https://raw.githubusercontent.com/Remi-C/IGN_spatial_ref_for_PostGIS/master/Put_IGN_SRS_into_Postgis.sql then, to finish, run : psql -h localhost -p 5432 -U postgres -d newdb -f olddb-without-IGN.sql 2> errors.txt " Thank you very much, With best regards, Mikhael Philippenko.
_______________________________________________ postgis-users mailing list postgis-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/postgis-users