> I'm preparing a presentation and I need some use cases for PostGIS
> Raster. I would be grateful if people already using the raster side of
> PostGIS would describe what they already do it.
Inspired by this call I started aiming at using PostGIS Raster for
my/our project. While trying to build PostGIS with raster support, I
noticed that declaring "--with-gdalconfig=..." with 'configure' didn't
work as expected (Linux Debian 5/Lenny on AMD64).
GDAL 1.8.0 is installed alongside with PostgreSQL, PROJ.4 4.7.0 and
GEOS 3.3.0 in /opt/PostgreSQL/. I've downloaded the 'postgis-2.0.0SVN'
snapshot as of revision 7325 (which is pretty close to current head).
I'm calling 'configure' with:
--with-gdalconfig=/opt/PostgreSQL/bin/gdal-config
.... which is present:
foxtrot: 15:31:36 /usr/local/src/postgis-2.0.0SVN> ls -l /opt/PostgreSQL/bin/gdal-config
-rwxr-xr-x 1 martin users 1365 Jun 6 23:30 /opt/PostgreSQL/bin/gdal-config
.... but the check "checking for GDAL >= 1.6.0..." fails with "not
found". Adding the directory "/opt/PostgreSQL/bin" to the $PATH helps.
There is no other 'gdal-config' in the $PATH.
Cheers,
Martin.
--
Unix _IS_ user friendly - it's just selective about who its friends are !
--------------------------------------------------------------------------
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Hi Martin,
You need to specify --with-raster too.
Best regards,
--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge....@deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g
Jorge Arévalo wrote:
> You need to specify --with-raster too.
I already did that - actually that's the reason why 'configure' stops
after the GDAL test fails ;-)
This is the complete 'configure' command line:
./configure --prefix=/opt/PostgreSQL \
--with-pgconfig=/opt/PostgreSQL/bin/pg_config\
--with-projdir=/opt/PostgreSQL \
--with-geosconfig=/opt/PostgreSQL/bin/geos-config \
--with-gdalconfig=/opt/PostgreSQL/bin/gdal-config \
--with-topology --with-raster
Thanks for responding,
> .... but the check "checking for GDAL >= 1.6.0..." fails with "not >
found". Adding the directory "/opt/PostgreSQL/bin" to the $PATH helps.
BTW, on this custom setup with GDAL installed in '/opt/PostgreSQL/',
additionally to adding "/opt/PostgreSQL/bin" to $PATH, it's required to
set $LD_LIBRARY_PATH to "/opt/PostgreSQL/lib" and $PYTHONPATH to
"/opt/PostgreSQL/lib/python2.5/site-packages" in order to let configure
detect "GDAL Python bindings...".
Mmm... can you execute /opt/PostgreSQL/bin/gdal-config --help? Could
you send the whole configure output?
Best regards,
--
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge....@deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g
Jorge Arévalo wrote:
> On Tue, Jun 7, 2011 at 5:49 PM, Martin Spott <Martin...@mgras.net> wrote:
>> Martin Spott wrote:
>> BTW, on this custom setup with GDAL installed in '/opt/PostgreSQL/',
>> additionally to adding "/opt/PostgreSQL/bin" to $PATH, it's required to
>> set $LD_LIBRARY_PATH to "/opt/PostgreSQL/lib" and $PYTHONPATH to
>> "/opt/PostgreSQL/lib/python2.5/site-packages" in order to let configure
>> detect "GDAL Python bindings...".
> Mmm... can you execute /opt/PostgreSQL/bin/gdal-config --help? Could
> you send the whole configure output?
These are generated after the required environment had been set
accordingly - the compressed 'config.log':
http://foxtrot.mgras.net/static/config.log.gz
and STDOUT:
http://foxtrot.mgras.net/static/configure.log.gz
Do you want me to create more of them, with $PYTHONPATH,
$LD_LIBRARY_PATH or $PATH unset ?
'gdal-config --help' just returns the usual output - I'm uncertain if
this is what you're looking for:
foxtrot: 0:54:48 ~> /opt/PostgreSQL/bin/gdal-config --help
Usage: gdal-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--libs]
[--dep-libs]
[--cflags]
[--datadir]
[--version]
[--ogr-enabled]
[--formats]
But this one for example looks quite reasonable:
foxtrot: 0:56:57 ~> /opt/PostgreSQL/bin/gdal-config --libs
-L/opt/PostgreSQL/lib -lgdal