<div dir="ltr"><div>Hi</div><div><a href="https://github.com/postgis/postgis/pull/448">https://github.com/postgis/postgis/pull/448</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 18 juil. 2019 à 19:42, Darafei "Komяpa" Praliaskouski <<a href="mailto:me@komzpa.net">me@komzpa.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I don't see your pull request. Can you send over a link to it?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 18, 2019 at 8:22 PM Michel Philippenko <<a href="mailto:michel.ing93@gmail.com" target="_blank">michel.ing93@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Привет Darafei <br></div><div><br></div><div>Sorry for the delay. I pushed my pull request in order to suggest a modification of the documentation, as we talked about previously.</div><div><br></div><div>You asked me :</div><div><br></div><div>- what is IGN  <== I putted a link in the text I proposed.</div><div><br></div><div>- why it produces invalid SRIDs <== I'm not expert of cartography and cannot explain the technical reason why in old databases using french IGN we have SRID out of range. It seems that French IGN had specific system about 10 years ago. I putted in my pull request an example of an issue. As I seemed to me, these SRID correspond mostly to french islands which are far from France (but not only islands also few parts of France itself). The warnings I had on my screen mentionned these ones for example : 310024140, 310642254, ..., 110600000, 110013000, 110013000, and many others.</div><div><br></div><div>- what do you lose by removing them <== I had no more problems when doing my hard upgrade of my database :-)  As I could understand, the old SRIDs which have been out of range correspond to new SRID which are inside the right range ; it seems that the IGN cartography data are still there but with another format :</div><div><br></div><div><b>OLD database :</b> SELECT srtext FROM spatial_ref_sys where srid=<span style="color:rgb(0,0,255)"><b>310423221</b></span>;<br></div><div>returns :<br></div><div>PROJCS["St Pierre et Miquelon 1950",GEOGCS["St Pierre et Miquelon 1950 ",DATUM["St Pierre et Miquelon 1950",SPHEROID["Clarke 1866",6378206.4000,294.9786982000000,AUTHORITY["IGNF","ELG004"]],TOWGS84[-95.5930,573.7630,173.4420,-0.9602,1.2510,-1.3918,42.626500],AUTHORITY["IGNF","REG423"]],PRIMEM["Greenwich",0.000000000,AUTHORITY["IGNF","LGO01"]],UNIT["degree",0.01745329251994330],AXIS["Longitude",EAST],AXIS["Latitude",NORTH],AUTHORITY["IGNF","STPM50GEO"]],PROJECTION["Transverse_Mercator",AUTHORITY["IGNF","PRC0221"]],PARAMETER["semi_major",6378206.4000],PARAMETER["semi_minor",6356583.8000],PARAMETER["latitude_of_origin",0.000000000],PARAMETER["central_meridian",-57.000000000],PARAMETER["scale_factor",0.99960000],PARAMETER["false_easting",500000.000],PARAMETER["false_northing",0.000],UNIT["metre",1],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["IGNF","STPM50UTM21"]]</div><div><br></div><div><b>New database after hard upgrade :</b> SELECT srtext FROM spatial_ref_sys where srid=<span style="color:rgb(0,0,255)"><b>911423</b></span>;</div><div>returns : <br></div><div>GEOCCS["St Pierre et Miquelon 1950",DATUM["St Pierre et Miquelon 1950",SPHEROID["Clarke 1866",6378206.4000,294.9786982000000,AUTHORITY["IGNF","ELG004"]],TOWGS84[-95.5930,573.7630,173.4420,-0.9602,1.2510,-1.3918,42.626500],AUTHORITY["IGNF","REG423"]],PRIMEM["Greenwich",0.000000000,AUTHORITY["IGNF","LGO01"]],UNIT["metre",1],AXIS["X",OTHER],AXIS["Y",EAST],AXIS["Z",NORTH],AUTHORITY["IGNF","STPM50"]]<br></div><div><br></div><div>Thank you for your attention,</div><div>with best regards,</div><div>Mikhael<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 10 nov. 2018 à 19:11, Darafei "Komяpa" Praliaskouski <<a href="mailto:me@komzpa.net" target="_blank">me@komzpa.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Привет,<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">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. :)</div><br><div class="gmail_quote"><div dir="ltr">пт, 9 нояб. 2018 г. в 19:24, Michel Philippenko <<a href="mailto:michel.ing93@gmail.com" target="_blank">michel.ing93@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><div dir="ltr"><div dir="ltr"><div>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">postgis.net</a> to add some information in this page :<br></div><div><a href="https://postgis.net/docs/postgis_installation.html#hard_upgrade" target="_blank">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>Information 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" target="_blank">postgis_restore.pl</a>. So, first run :<br>perl utils/<a href="http://postgis_restore.pl" target="_blank">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">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 for you attention,</div><div>With best regards,</div><div>Mikhael Philippenko.</div><div><br></div></div></div></div></div><div dir="ltr"><div><div class="gmail_quote"><div dir="ltr">Le jeu. 8 nov. 2018 à 14:55, Michel Philippenko <<a href="mailto:michel.ing93@gmail.com" target="_blank">michel.ing93@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>I'm new with Postgis.</div><div>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">https://postgis.net/docs/postgis_installation.html#hard_upgrade</a>.</div><div>The errors below are displayed when importing my dump. Will my DB work well ? Should I fight more to have no errors at all ? <br></div><div>Thank you for your help and your attention.</div><div>With best regards,</div><div>Mikhael.<br></div><div><br></div><div dir="ltr">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.</div><div dir="ltr"><br></div><div>My translation in English :</div><div>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.<br></div></div></div></div>
</blockquote></div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>-- <br><div dir="ltr" class="gmail-m_-7970195274823256067gmail-m_3776150779470872959gmail-m_274765433958243477gmail_signature"><div dir="ltr">Darafei Praliaskouski<br>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7970195274823256067gmail_signature"><div dir="ltr"><div><div>Darafei Praliaskouski</div><div>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>