<div dir="ltr"><div>Hi Regina, thanks for your answer. Your reply ended up in the wrong email folder so I didn't see it until just now. <br></div><div><br></div><div>I'm using the BigSQL distribution (i.e., PostgreSQL and associated libraries as provided by <a href="http://bigsql.org">bigsql.org</a>). <br></div><div><br></div><div>SELECT postgis_full_version() gives this:</div><div>"POSTGIS="2.5.0 r16836" [EXTENSION] PGSQL="110" GEOS="3.6.2-CAPI-1.10.2 0" PROJ="Rel. 4.9.2, 08 September 2015" GDAL="GDAL 2.2.0, released 2017/04/28" LIBXML="2.9.0" LIBJSON="0.12.1" TOPOLOGY RASTER"</div><div><br></div><div>Sounds like maybe I should contact BigSQL.org with the question. I appreciate you giving me some perspective. <br></div><div><br></div><div>John<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2019 at 10:13 PM Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</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">Which package system did you get your PostGIS from?<br>
<br>
What you can load via raster2pgsql depends on what drivers your GDAL is compiled with. It might have been an omission on the part of the packager, like perhaps in past they used the standard base packages to get GDAL and because GDAL from base is always old, they might have compiled their own to ship to get newer GDAL and didn't include the kitchen sink that the base OS package includes.<br>
NetCDF is not in the default compile of GDAL as it requires additional dependencies.<br>
<br>
Hope that helps,<br>
Regina<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 Of J Payne<br>
Sent: Wednesday, August 21, 2019 11:12 PM<br>
To: <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
Subject: Re: [postgis-users] netcdf files deprecated in raster2pgsql?<br>
<br>
Hi all,<br>
<br>
I recently discovered that my new version of raster2pgsql doesn't work for importing netcdf files, but an older version I have on my computer does. I'm wondering if netcdf handling has been dropped/deprecated in the later version. <br>
<br>
With postgresql version 11.0 and postgis 2.5, this fails:<br>
raster2pgsql -s 4326 -c -F -t 256x256 NETCDF:"[myfile]":p mytable | psql -h localhost -U [user] -d [database]<br>
<br>
...but this works with an older version of raster2pgsql that came with PostgreSQL 9.4:<br>
/usr/local/old_pgsql-9.4/bin/raster2pgsql -s 4326 -c -F -t 256x256 NETCDF:"[myfile]":p mytable | psql -h localhost -U [user] -d [database]<br>
<br>
I also note that "netcdf" is not included in the list of formats returned by 'raster2pgsql -G' with the new version.<br>
<br>
Thanks,<br>
<br>
John<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>
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>