<div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1039px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:4mz" class="gmail-ii gmail-gt" style="direction:ltr;margin:8px 0px 0px;padding:0px;font-size:0.875rem"><div id="gmail-:4n0" class="gmail-a3s gmail-aiL" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif;overflow:hidden"><div dir="ltr"><div dir="ltr">Hi Sandro,</div><br><div class="gmail_quote"><span class="gmail-im" style="color:rgb(80,0,80)"><div dir="ltr" class="gmail_attr">On Fri, 4 Feb 2022 at 17:05, Sandro Santilli <<a href="mailto:strk@kbt.io" target="_blank">strk@kbt.io</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">The question I have for you is: do you keep your custom CRSs<br>in the spatial_ref_sys table ? If so:<br></blockquote><div><br></div></span><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  - How many ?<br></blockquote><div><br></div><div>A dozen or so. We use 800xxx numbering for no particular reason, but we try and avoid exposing that. </div><span class="gmail-im" style="color:rgb(80,0,80)"><div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  - Do you also keep the entries installed by spatial_ref_sys.sql ?<br></blockquote><div><br></div></span><div>Yes</div><span class="gmail-im" style="color:rgb(80,0,80)"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  - Do you ever update the table with entries from newer<br>    spatial_ref_sys.sql ?<br></blockquote><div><br></div></span><div>Yes. We keep postgis' spatial_ref_sys synchronised with the Proj DB version we're running as best we can to make life simpler.</div><div><br></div><div>If we're moving things:</div><div><br></div><div>1. is spatial_ref_sys redundant for anything non-custom? Proj has a full database now, why does PostGIS need it's own?</div><div>2. proj4text should disappear altogether too. If people have existing proj4text they want to use... `projinfo -o WKT2:2019 '{my-proj4text}'`</div><div>3. Since CUSTOM:4326 and EPSG:4326 clash - the PK is the number; and SRID-is-integer is part of SF-SQL (ie: that's not going to change anytime soon) could we at least help people put their custom CRS in the right place? Is there a defined custom number range we could use to initialise a sequence?</div><div><br></div><div>I think since Proj has gotten a lot smarter since v4, PostGIS should tend towards helping people use it (supporting pipelines, using it's DB/transform grids/etc) rather than adding additional abstractions over the top.</div><div><br></div><div>Cheers,</div><div><br></div><div>Rob :-)</div></div></div></div></div></div></div></div>