[prev in list] [next in list] [prev in thread] [next in thread]
List: postgis-users
Subject: Re: [postgis-users] WKT Raster - geos version error while running
From: Tyler Erickson <tyler.erickson () mtu ! edu>
Date: 2010-08-27 12:11:14
Message-ID: 29551944.post () talk ! nabble ! com
[Download RAW message or body]
Regina,
Your guess was correct. I did configure my gdal build (many months ago) and
included the --with-geos option. I had forgotten about that. Here is an
except from the configure output:
checking for geos-config... /usr/local/geos/3.2.0/bin/geos-config
checking for GEOS version >= 2.2.0... yes
checking for GEOSversion in -lgeos_c... yes
configure: Using C API from GEOS 3.2.0
Thanks for the insight!
- Tyler
Paragon Corporation-2 wrote:
>
> Tyler,
>
> It just occurred to me that you can build GDAL with geos dependency and
> since WKT Raster depends on GDAL, it might be your libgdal.so that is at
> fault. Though I would expect eh error to be different.
>
> Do you remember how you built libgdal? Since you had an older GEOS, maybe
> you are just using an existing compiled libgdal compiled against an older
> GEOS.
>
> I'm not sure what happens in that case if libgdal is compiled with an
> older
> GEOS than you compiled WKT Raster with.
>
> Hope that helps,
> Regina
>
> -----Original Message-----
> From: postgis-users-bounces@postgis.refractions.net
> [mailto:postgis-users-bounces@postgis.refractions.net] On Behalf Of Tyler
> Erickson
> Sent: Tuesday, August 24, 2010 8:14 AM
> To: postgis-users@postgis.refractions.net
> Subject: Re: [postgis-users] WKT Raster - geos version error while running
> rtpostgis.sql
>
>
> Yes, while building PostGIS I specified that it should use geos 3.2.2.
> Here
> is the relevant output from the postgis ./configure step:
>
> -------------- Dependencies --------------
> GEOS config: /usr/local/geos/3.2.2/bin/geos-config
> GEOS version: 3.2.2
> PostgreSQL config: /usr/bin/pg_config
> PostgreSQL version: PostgreSQL 8.4.4
> PROJ4 version: 47
> Libxml2 config: /usr/bin/xml2-config
> Libxml2 version: 2.7.5
> PostGIS debug level: 0
>
> I also checked that when I request the postgis version from the template
> database I created, it lists geos 3.2.2
>
> psql -d $WKTRASTER_TEMPLATE -c "SELECT POSTGIS_FULL_VERSION()"
> postgis_full_version
> ----------------------------------------------------------------------------
> --------------------------
> POSTGIS="1.5.1" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23 September
> 2009"
> LIBXML="2.7.5" USE_STATS
>
> As a work around, I included libgeos-3.2.0.so in my list of shared
> libraries. Once this was done, the rtpostgis.sql script ran without an
> error. But I still don't know why it requires geos 3.2.0.
>
> - Tyler
>
>
>
>
> Pierre Racine-2 wrote:
> >
> > Hi Tyler,
> >
> > Is this the same geos you are using when compiling PostGIS? WKT Raster
> > is indirectly rependent on geos via PostGIS.
> >
> > Pierre
> >
> > > -----Original Message-----
> > > From: postgis-users-bounces@postgis.refractions.net
> > > [mailto:postgis-users- bounces@postgis.refractions.net] On Behalf Of
> > > Tyler Erickson
> > > Sent: 20 août 2010 18:55
> > > To: postgis-users@postgis.refractions.net
> > > Subject: [postgis-users] WKT Raster - geos version error while running
> rtpostgis.sql
> > >
> > >
> > > I am trying to run WKT Raster's rtpostgis.sql against a database, but
> > > am encountering in the following error:
> > >
> > > psql:/usr/share/postgresql/8.4/contrib/rtpostgis.sql:32: ERROR: could
> > > not load library "/usr/lib/postgresql/8.4/lib/rtpostgis.so":
> libgeos-3.2.0.so:
> > > cannot open shared object file: No such file or directory
> > >
> > > I would have expected to see libgeos-3.2.2.so mentioned instead of
> > > libgeos-3.2.0.so since I specified the GEOS version location during
> > > the configure step.
> > >
> > > ~/src/wktraster$ ./configure
> > > --with-postgis-sources=/home/terickson/src/postgis/postgis-1.5.1
> > > --with-gdal=/usr/local/gdal/1.7.1/bin/gdal-config
> > > --with-geos=/usr/local/geos/3.2.2/bin/geos-config
> > >
> > > Other potentially relevant info:
> > >
> > > OS: Ubuntu 9.10
> > >
> > > PostGIS was built using GEOS 3.2.2
> > > $ psql -d $WKTRASTER_TEMPLATE -c "SELECT POSTGIS_FULL_VERSION()"
> > > postgis_full_version
> > > ----------------------------------------------------------------------
> > > --------------------------------
> > > -
> > > POSTGIS="1.5.1" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23
> > > September 2009" LIBXML="2.7.5" USE_STATS
> > > (1 row)
> > >
> > > I do have GEOS 3.2.0 installed on my system... but I was trying to use
> > > the latest version.
> > >
> > > Any idea why the WKT Raster script is trying to access GEOS 3.2.0
> > > instead
> of
> > > the specified version 3.2.2?
> > >
> > > - Tyler
> > > --
> > > View this message in context:
> http://old.nabble.com/WKT-Raster---geos-version-error-while-running-
> > > rtpostgis.sql-tp29496374p29496374.html
> > > Sent from the PostGIS - User mailing list archive at Nabble.com.
> > >
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users@postgis.refractions.net
> > > http://postgis.refractions.net/mailman/listinfo/postgis-users
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/WKT-Raster---geos-version-error-while-running-rtpostgi
> s.sql-tp29496374p29521321.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
--
View this message in context: \
http://old.nabble.com/WKT-Raster---geos-version-error-while-running-rtpostgis.sql-tp29496374p29551944.html
Sent from the PostGIS - User mailing list archive at Nabble.com.
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic