<div dir="ltr"><div dir="ltr"><div><div>On Tue, Oct 19, 2021 at 1:34 PM karsten <<a href="mailto:karsten@terragis.net">karsten@terragis.net</a>> wrote:<br></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is anyone out there that happens to know <br>
how can I make PostgreSQL use the new proj lib version I have installed?<br></blockquote><div><br></div><div>I imagine that you would need to build postgis from source to get it to use the newer proj version (and install the corresponding libproj-dev, libgeos-dev, etc.). But before you go to that trouble you should explore other options. Why not just comment out the offending line and put the index in later? I did a quick test creating a table with geometry(MultiPolygon,2263) and then <div>   CREATE INDEX test_geohash ON test USING btree (st_geohash(st_transform(wkb_geometry, 4326)));</div><div>and go no errors. I'm on Ubuntu 20.02, postgres 13, postgis 3.1 installed from the <a href="http://postgresql.org">postgresql.org</a> repo (not the native Ubuntu repo).</div><div><br></div><div>Try firing up a clean AWS instance and starting clean. I can't imagine that you really need proj > 6.</div></div><div><br></div><div>Rich</div><div><br></div><div><br></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">-----Original Message-----<br>
From: karsten [mailto:<a href="mailto:karsten@terragis.net" target="_blank">karsten@terragis.net</a>] <br>
Sent: Friday, October 15, 2021 12:03<br>
To: 'PostGIS Users Discussion'<br>
Subject: RE: [postgis-users] PostgreSQL 13, PostGIS 3.1 import - could not<br>
form projection<br>
<br>
I installed  proj-bin v 7.2.1-1 that was available from the apt packages but<br>
in postgres (also after) restart of the db it still list PROJ="6.3.1" being<br>
used. <br>
<br>
How can I make postgresql use the new proj ?<br>
<br>
<br>
-----Original Message-----<br>
From: postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] On Behalf<br>
Of karsten<br>
Sent: Friday, October 15, 2021 11:47<br>
To: 'PostGIS Users Discussion'<br>
Subject: Re: [postgis-users] PostgreSQL 13, PostGIS 3.1 import - could not<br>
form projection<br>
<br>
Yes will try to get this to work and report back here. <br>
<br>
The stack exchange issue mentioned that it worked with an older gdal version<br>
<br>
so will try with both different proj and gdal combinations<br>
<br>
Karsten<br>
<br>
-----Original Message-----<br>
From: postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] On Behalf<br>
Of Paul Ramsey<br>
Sent: Friday, October 15, 2021 11:36<br>
To: PostGIS Users Discussion<br>
Subject: Re: [postgis-users] PostgreSQL 13, PostGIS 3.1 import - could not<br>
form projection<br>
<br>
There's something very particular about your environment and I don't know<br>
what it is. Try upgrading your proj version, and jimmying with other version<br>
combinations. There's nothing special about the SRID numbers, they work fine<br>
for me locally. I can't invest the time in setting up a mirror system that<br>
matches yours. If there's something specific about proj 6.3.1 maybe? (both<br>
you and the stack exchange issue)<br>
<br>
P<br>
<br>
> On Oct 15, 2021, at 11:11 AM, karsten <<a href="mailto:karsten@terragis.net" target="_blank">karsten@terragis.net</a>> wrote:<br>
> <br>
> Hi All,<br>
>  <br>
> on new server with Ubuntu 20.04 , PostgreSQL 13, PostGIS 3.1 I am <br>
> trying to import a plain sql dump . This mostly worked but when the <br>
> script is executing the creation of a geohash (involving a <br>
> transformation from srid 2263 to geographic 4326) like this<br>
>  <br>
> CREATE INDEX parcels_geohash ON parcels USING btree <br>
> (st_geohash(st_transform(geom, 4326)));<br>
>  <br>
> I am getting this error:  <br>
> could not form projection (PJ) from 'srid=2263' to 'srid=4326'<br>
> <br>
> How can I fix this ?<br>
>  <br>
> Here are more details about the environment: <br>
> postgres: PostgreSQL 13.4 (Ubuntu 13.4-4.pgdg20.04+1) on <br>
> x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) <br>
> 9.3.0, 64-bit<br>
> postgis_version: 3.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1<br>
> postgis_proj_version: 6.3.1<br>
>  <br>
> Cheers<br>
> Karsten<br>
>  <br>
> Karsten Vennemann<br>
> <a href="http://www.terragis.net" rel="noreferrer" target="_blank">www.terragis.net</a><br>
>  <br>
> _______________________________________________<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><br>
<br>
_______________________________________________<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><br>
<br>
<br>
_______________________________________________<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><br>
<br>
<br>
_______________________________________________<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><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div></div>