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-boun...@postgis.refractions.net [mailto:postgis-users-
> boun...@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.

_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to