<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>Could you add following information in the postgis docs in this page :<br></div><div><a href="https://postgis.net/docs/postgis_installation.html#hard_upgrade">https://postgis.net/docs/postgis_installation.html#hard_upgrade</a><br>in the chapter :<br>"Some custom records of spatial_ref_sys in dump file have an invalid SRID value"</div><div><br></div><div>please be kind to insert :<br></div><div>"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 <a href="http://postgis_restore.pl">postgis_restore.pl</a>. So, first run :<br>perl utils/<a href="http://postgis_restore.pl">postgis_restore.pl</a> "/somepath/olddb.backup" > oldbb.sql<br>then<br>grep -v IGNF olddb.sql > olddb-without-IGN.sql<br>then create your newdb, activate the required Postgis extensions, and insert properly the french system IGN with this script :<br><a href="https://raw.githubusercontent.com/Remi-C/IGN_spatial_ref_for_PostGIS/master/Put_IGN_SRS_into_Postgis.sql">https://raw.githubusercontent.com/Remi-C/IGN_spatial_ref_for_PostGIS/master/Put_IGN_SRS_into_Postgis.sql</a><br>then, to finish, run :<br>psql -h localhost -p 5432 -U postgres -d newdb -f olddb-without-IGN.sql  2> errors.txt</div><div>"</div><div>Thank you very much,</div><div>With best regards,</div><div>Mikhael Philippenko.<br></div></div></div></div>