<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you David,<br>
<br>
I am a little afraid about my data but I need to do that because there
are implementation using this libraries.<br>
<br>
Thank you again and any problem I will contact you ok ?<br>
<br>
Sincerely...<br>
Ezequias<br>
<br>
TECHER David escreveu:
<blockquote cite="mid441819A1.1070405@yahoo.fr" type="cite">
<pre wrap="">I think U need to used Geos for what U are doing!
As Nico said, from PostGIS doc
----------------------------------------------------------------------------------------------
PointOnSurface(geometry)
Return a Point guaranteed to lie on the surface
Implemented using GEOS
OGC SPEC 3.2.14.2 and 3.2.18.2 -
--------------------------------------------------------------------------------------------
One solution I give is first trying to backup your database with only
the tables then
rebuild postgis with geos
So let's go:
Backup only for tables:
===============
su 'postgres_usre_you_are'
export yourdatabase=????????;for i in $(psql -d ${yourdatabase} -AtF ""
-c "select tablename from pg_tables where (tablename not like 'pg_%')
and (tablename not like 'spatial_ref_sys' ) and (tablename not like
'sql_%' ) and (tablename not like 'geom%' ) order by tablename");do
pg_dump -civOt $i $yourdatabase >> ~/${yourdatabase}_dump.sql;done
replace ????? by then name of your database
cd /path/to/postgis-1.0.0/sources
make uninstall clean distclean
cd ..
wget <a class="moz-txt-link-freetext" href="http://geos.refractions.net/geos-2.2.1.tar.bz2">http://geos.refractions.net/geos-2.2.1.tar.bz2</a>
tar xjjf geos-2.2.1.tar.bz2
cd geos-2.2.1;./configure && make && make install
If your need to specify the gcc version U could try
CC=gcc-3.4 CXX=g++-3.4 ./configure
before make and make install
See if geos it installed by trying
geos-config --version
then
try
which geos-config
if u have something like '/usr/local/bin/geos-config'
do
cat /etc/ld.so.conf
then see if it send U something like '/usr/local/lib' or else
do echo /usr/local/lib >> /etc/ld.so.conf
then
ldconfig
cd /path/to/postgis-1.0.0/sources
/configure --enable-autoconf --with-geos=$(which geos-config)
N.B: Since 1.0.0 is not available on PostGIS I'm very sure for the
options above so try ./configure --help for the option for geos
make
make install
su 'postgres_usre_you_are'
dropdb yourdatase
createdb yourdatabse and so on
then psql -d yoyrdatabase -f ~/"your_database"_dump.sql
Ezequias Rodrigues da Rocha a écrit :
</pre>
<blockquote type="cite">
<pre wrap="">I just thought JTS was created by vividsolutions (Martin Davis)
Now I am updated.
So we can use jts or we are obligated to use GEOS ?
Thank you.
Nicolas Ribot escreveu:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap=""> Could someone tell me the steps to flow to make this recompilation ?
Are you sure JTS is installed ?
The GEOS functions could not be used with JTS ?
</pre>
</blockquote>
<pre wrap="">
GEOS is the C++ port of the JTS library (done by Refractions) used in
Postgis.
Nicolas
_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur <a class="moz-txt-link-freetext" href="http://fr.messenger.yahoo.com">http://fr.messenger.yahoo.com</a>
_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a class="moz-txt-link-freetext" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ezequias Rodrigues da Rocha
<a class="moz-txt-link-freetext" href="http://ezequiasrocha.blogspot.com">http://ezequiasrocha.blogspot.com</a>
<a class="moz-txt-link-abbreviated" href="mailto:msn:ezequias@hotmail.com">msn:ezequias@hotmail.com</a>
"the worst of democracies is still better than the best of dictatorship"
</pre>
</body>
</html>