[postgis-users] postgis 2.0 cannot import raster

Sandro Santilli strk at keybit.net
Tue Feb 14 06:07:34 PST 2012


On Tue, Feb 14, 2012 at 05:15:25AM -0800, Zelio Fernandes wrote:
> The error i get is :
> 
> postgres at zelio-desktop:/usr/lib/postgresql/9.1/bin$ *raster2pgsql -s 4236 -I
> -C -M /home/zelio/Desktop/Zelio/Zelio/L3-NE43A16-094-059-13oct08-BAND2.tif
> -F -t 30x30 public.demelevation | psql -d mydb*
> 
> raster2pgsql: command not found
> 
> postgres at zelio-desktop:/usr/lib/postgresql/9.1/bin$ *raster2pgsql -G
> *
> raster2pgsql: command not found

Use this:

 $ /usr/lib/postgresql/9.1/bin/raster2pgsql 

Or set your path:

 $ PATH=$PATH:/usr/lib/postgresql/9.1/bin/

I've to admit I'm not sure why we don't install those binaries
into /usr/local/bin

--strk;



More information about the postgis-users mailing list