<div dir="auto">Hello,<div dir="auto"><br></div><div dir="auto">Thank you for your answers !</div><div dir="auto"><br></div><div dir="auto">Yes my database was very old, that's why I had out of range SRIDs.</div><div dir="auto"><br></div><div dir="auto">Best regards to all</div></div><br><div class="gmail_quote"><div dir="ltr">Le dim. 11 nov. 2018 02:59, Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_3538827506470459908WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Is it still the case that IGN uses out of range srids, or is that just because your database is so old?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I know when we released 2.0, lots of people ran into this issue, particularly I think those using <a href="http://spatialreference.org" target="_blank" rel="noreferrer">spatialreference.org</a> because that produced at the time user srids that were out of range.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I would think IGN is common enough that we would have had more complaints if it was still an issue.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Darafei "Kom?pa" Praliaskouski<br><b>Sent:</b> Saturday, November 10, 2018 1:11 PM<br><b>To:</b> PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a>><br><b>Subject:</b> Re: [postgis-users] [Partially solved] Re: Upgrade from Postgis 1.5.1-5 to 2.3.1<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Привет,<br><br>That chapter is part of PostGIS documentation which is part of PostGIS itself. You can edit here:<br><a href="https://github.com/postgis/postgis/blob/svn-trunk/doc/installation.xml" target="_blank" rel="noreferrer">https://github.com/postgis/postgis/blob/svn-trunk/doc/installation.xml</a> <br><br>(just push [Edit], do your changes and [Save] -> [New pull request]).<br><br>Please also mention what is IGN and why it produces invalid SRIDs, and what do you lose by removing them. :)<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">пт, 9 нояб. 2018 г. в 19:24, Michel Philippenko <<a href="mailto:michel.ing93@gmail.com" target="_blank" rel="noreferrer">michel.ing93@gmail.com</a>>:<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><p class="MsoNormal">Hello,<u></u><u></u></p><div><div><div><div><p class="MsoNormal">I have managed to avoid errors in relation with spatial_ref_sys_srid_check and I asked the administrators of the website <a href="http://postgis.net" target="_blank" rel="noreferrer">postgis.net</a> to add some information in this page :<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://postgis.net/docs/postgis_installation.html#hard_upgrade" target="_blank" rel="noreferrer">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"<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Information to insert :<u></u><u></u></p></div><div><p class="MsoNormal">"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" target="_blank" rel="noreferrer">postgis_restore.pl</a>. So, first run :<br>perl utils/<a href="http://postgis_restore.pl" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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<u></u><u></u></p></div><div><p class="MsoNormal">"<u></u><u></u></p></div><div><p class="MsoNormal">Thank you very much for you attention,<u></u><u></u></p></div><div><p class="MsoNormal">With best regards,<u></u><u></u></p></div><div><p class="MsoNormal">Mikhael Philippenko.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><div><div><div><div><p class="MsoNormal">Le jeu. 8 nov. 2018 à 14:55, Michel Philippenko <<a href="mailto:michel.ing93@gmail.com" target="_blank" rel="noreferrer">michel.ing93@gmail.com</a>> a écrit :<u></u><u></u></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><div><div><p class="MsoNormal">Hello,<u></u><u></u></p></div><div><p class="MsoNormal">I'm new with Postgis.<u></u><u></u></p></div><div><p class="MsoNormal">I'm upgrading a database from Postgis 1.5.1-5 to 2.3.1 following the instructions given on this web page : <a href="https://postgis.net/docs/postgis_installation.html#hard_upgrade" target="_blank" rel="noreferrer">https://postgis.net/docs/postgis_installation.html#hard_upgrade</a>.<u></u><u></u></p></div><div><p class="MsoNormal">The errors below are displayed when importing my dump. Will my DB work well ? Should I fight more to have no errors at all ? <u></u><u></u></p></div><div><p class="MsoNormal">Thank you for your help and your attention.<u></u><u></u></p></div><div><p class="MsoNormal">With best regards,<u></u><u></u></p></div><div><p class="MsoNormal">Mikhael.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">ERREUR: la famille d'opérateur « btree_geography_ops » existe déjà pour la méthode d'accès « btree »<br>ERREUR: la famille d'opérateur « btree_geometry_ops » existe déjà pour la méthode d'accès « btree »<br>ERREUR: la famille d'opérateur « gist_geography_ops » existe déjà pour la méthode d'accès « gist »<br>ERREUR: la contrainte de vérification « spatial_ref_sys_srid_check » est rompue par une ligne<br>ERREUR: n'a pas pu créer l'index unique « spatial_ref_sys_pkey »<br>DÉTAIL : La clé (srid)=(999954) est dupliquée.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">My translation in English :<u></u><u></u></p></div><div><p class="MsoNormal">ERROR: the operator family « btree_geography_ops » already exists for the access method « btree »<br>ERROR: the operator family « btree_geometry_ops »already exists for the access method « btree »<br>ERROR: the operator family « gist_geography_ops » already exists for the access method « gist »<br>ERROR: the constraint check « spatial_ref_sys_srid_check » is broken for one line<br>ERROR: could not create the uniq index « spatial_ref_sys_pkey »<br>DETAIL : The key (srid)=(999954) is duplicated.<u></u><u></u></p></div></div></div></div></blockquote></div></div></div><p class="MsoNormal">_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank" rel="noreferrer">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal">-- <u></u><u></u></p><div><div><p class="MsoNormal">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa" target="_blank" rel="noreferrer">http://patreon.com/komzpa</a><u></u><u></u></p></div></div></div></div></div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>