May 2017
Beginner to intermediate
328 pages
7h 17m
English
In order to import a single raster file, let's issue the following command:
raster2pgsql -s 4326 -C -l 2,4 -I -F -t 2700x2700 gray_50m_sr_ob.tif data_import.gray_50m_sr_ob | psql -h localhost -p 5434 -U postgres -d mastering_postgis
You should see a similar output:
Processing 1/1: gray_50m_sr_ob.tifBEGINCREATE TABLECREATE TABLECREATE TABLEINSERT 0 1(...)INSERT 0 1CREATE INDEXANALYZECREATE INDEXANALYZECREATE INDEXANALYZENOTICE: Adding SRID constraintCONTEXT: PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURNNOTICE: Adding scale-X constraint(...)---------------------- t(1 row) addoverviewconstraints ...
Read now
Unlock full access