[postgis-users] Uploading a folder with many files

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Thu May 10 07:10:57 PDT 2012


The PostGIS raster loader, raster2pgsql, supports wildcard so you can do:

raster2pgsql -I -C -F c:/temp/*.tif schema.table| psql -U postgres -d batabase

Pierre

> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
> bounces at postgis.refractions.net] On Behalf Of Giannis Giakoumidakis
> Sent: Thursday, May 10, 2012 5:19 AM
> To: Post GIS Users Discussion
> Subject: [postgis-users] Uploading a folder with many files
> 
> I want to upload to a database a big number of raster files (.tif), for example
> 500, in a folder. They are numbered in a row, for example c001, c002,..., cc500.
> Is there any way to upload all with one command or the whole folder at once, or
> I have to do this one by one? Thanks.




More information about the postgis-users mailing list