From s8854617 at sinamail.com Tue Jan 1 23:59:38 2002
From: s8854617 at sinamail.com (=?big5?B?czg4NTQ2MTc=?=)
Date: Wed, 2 Jan 2002 15:59:38 +0800
Subject: [postgis] =?big5?B?bWFwc2VydmVyIGNvbm5lY3QgdG8gcG9zdGdpcz8=?=
Message-ID: <20020102075938.12983.qmail@sinamail.com>
Dear Sir:
I am a student in Taiwan. I have a problem with my mapserver.
my postgis table is following:
testdb=# \d roads
Table "roads"
Attribute | Type | Modifier
-----------+----------+----------
gid | integer |
geom | geometry |
Indices: roads_idx1,
roads_idx2
My data is following:
testdb=# select * from roads;
gid | geom
-----+-----------------------------------
1 | SRID=-1;LINESTRING(1 1,5 5,11 20)
(1 row)
My map file is following:
NAME EX3
SIZE 600 600
EXTENT 1.0 1.0 30.0 30.0
LAYER
CONNECTIONTYPE postgis
NAME "Roads"
CONNECTION "user=postgres dbname=testdb"
DATA "geom from roads"
STATUS ON
TYPE LINE
FILTER "gid > 0"
CLASS
EXPRESSION ([gid] > 0)
COLOR 255 0 0
END
END
END # Fim do MapFile
And my html file is following:
My First Test for Mapserver
It seems to be OK for me. But I try to browse the HTML file, it
just show nothing but a square. Could you tell me where I did wrong?
Or tell me how to make sure the Mapserver connect to PostGIS and
retrive data successful?
Thank Your help
Whang Yeong Chong
==================================================================
?????????? http://www.sinamail.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
PC to PC calling with 3-way conferencing. Only
$11.95/yr at CrystalVoice! Free trial. Click Here!
http://us.click.yahoo.com/4SQRwC/RYfDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Wed Jan 2 09:36:29 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Wed, 02 Jan 2002 09:36:29 -0800
Subject: [postgis] mapserver connect to postgis?
References: <20020102075938.12983.qmail@sinamail.com>
Message-ID: <3C33451D.FD120AB8@refractions.net>
Hi,
There are two possible fixes to try right off the bat:
1 - Set your mapserver 'STATUS' line to be 'DEFAULT' instead of 'ON'.
2 - There seems to be an & sign in your URL instead of an actual
ampersand (&).
P.
s8854617 wrote:
>
> Dear Sir:
> I am a student in Taiwan. I have a problem with my mapserver.
> my postgis table is following:
> testdb=# \d roads
> Table "roads"
> Attribute | Type | Modifier
> -----------+----------+----------
> gid | integer |
> geom | geometry |
> Indices: roads_idx1,
> roads_idx2
> My data is following:
> testdb=# select * from roads;
> gid | geom
> -----+-----------------------------------
> 1 | SRID=-1;LINESTRING(1 1,5 5,11 20)
> (1 row)
> My map file is following:
> NAME EX3
> SIZE 600 600
> EXTENT 1.0 1.0 30.0 30.0
> LAYER
> CONNECTIONTYPE postgis
> NAME "Roads"
> CONNECTION "user=postgres dbname=testdb"
> DATA "geom from roads"
> STATUS ON
> TYPE LINE
> FILTER "gid > 0"
> CLASS
> EXPRESSION ([gid] > 0)
> COLOR 255 0 0
> END
> END
> END # Fim do MapFile
>
> And my html file is following:
>
>
> My First Test for Mapserver
>
>
>
>
>
>
> It seems to be OK for me. But I try to browse the HTML file, it
> just show nothing but a square. Could you tell me where I did wrong?
> Or tell me how to make sure the Mapserver connect to PostGIS and
> retrive data successful?
>
> Thank Your help
> Whang Yeong Chong
> ==================================================================
> ?s?????D?K?O?q?l?H?c http://www.sinamail.com
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Thu Jan 3 15:31:56 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Thu, 03 Jan 2002 15:31:56 -0800
Subject: [postgis] new function max_distance(line,line)
References: <3C236C98.503D104C@refractions.net> <3C23B451.EA7A833F@refractions.net>
Message-ID: <3C34E9EC.72F9F562@refractions.net>
I've added a simple function to the CVS version.
max_distance(geometry, geometry)
returns NULL if both geometries are not linestrings
Otherwise,
For each point in line 1
Find the line-to-point distance to line 2
Return max distance
Note: max_distance(line1, line2) is different than
max_distance(line2,line1);
The result is a bit difficult to interpret, but it does contain a lot of
information.
dave
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From torodedutoesdraiato at yahoo.it Fri Jan 4 03:49:01 2002
From: torodedutoesdraiato at yahoo.it (Silvio)
Date: Fri, 4 Jan 2002 12:49:01 +0100
Subject: [postgis] Problem with GeometryFromText function of chapter 3 Postgis
Message-ID: <002101c19516$8b298de0$0501a8c0@comai04>
Hi all,
I have follow example of PostGis manual in the chapter 3 point 2:
2. How do I insert a GIS object into the database?
First, you need to create a table with a column of type "geometry" to hold your GIS data. Connect to your database with "psql" and try the following SQL:
CREATE TABLE gtest ( ID int4, NAME varchar(20) );
SELECT AddGeometryColumn('dbname','gtest','geom',-1,'LINESTRING',2);
If the table creation fails, you probably have not loaded the PostGIS functions and objects into this database. See the installation instructions.
Then, you can insert a geometry into the table using a SQL insert statement. The GIS object itself is formatted using the OpenGIS Consortium "well-known text" format:
INSERT INTO gtest (ID, NAME, GEOM)
VALUES (1, 'First Geometry', GeometryFromText('LINESTRING(2 3,4 5,6 5,7 8)', -1));
but when I do this I will have:
mydb=# INSERT INTO gtest (ID,NAME,GEOM) VALUES (1,'First Geometry',GeometryFrom
Test('LINESTRING(2 3,4 5,6 5,7 8)', -1));
ERROR: Function 'geometryfromtest(unknown, int4)' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts
What's the problem for this error?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jeffloun at refractions.net Fri Jan 4 08:47:07 2002
From: jeffloun at refractions.net (jeff lounsbury)
Date: Fri, 04 Jan 2002 08:47:07 -0800
Subject: [postgis] Problem with GeometryFromText function of chapter 3
Postgis
References: <002101c19516$8b298de0$0501a8c0@comai04>
Message-ID: <3C35DC8B.4D1474B2@refractions.net>
> >ERROR: Function 'geometryfromtest(unknown, int4)' does not exist
> > Unable to identify a function that satisfies the given
> argument types
> > You may need to add explicit typecasts
>
> geometryfromTEST?? just a spelling error possibly?
> -Jeff
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dgraham at i3.com Fri Jan 4 15:45:28 2002
From: dgraham at i3.com (David Graham)
Date: Fri, 04 Jan 2002 16:45:28 -0700
Subject: [postgis] JDBC with Postgis 0.6.2
References: <002101c19516$8b298de0$0501a8c0@comai04> <3C35DC8B.4D1474B2@refractions.net>
Message-ID: <3C363E98.1020004@i3.com>
Hello,
Have been using JDBC with the 0.2 PostGIS. Now I have upgraded to 0.6.2
and it does not work.
Here is the problem: the new introduction of the SRID.
I looked at the JDBC code released with 0.6.2 and it is the same old
code that will not run with 0.6.2.
Questions:
Has anyone fixed this yet?
If not is anyone interested in a hack that totally ignores the SRID?
Dave Graham
information integration and imaging, LLC
dgraham at i3.com
http://www.i3.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 4 15:53:49 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 04 Jan 2002 15:53:49 -0800
Subject: [postgis] JDBC with Postgis 0.6.2
References: <002101c19516$8b298de0$0501a8c0@comai04> <3C35DC8B.4D1474B2@refractions.net> <3C363E98.1020004@i3.com>
Message-ID: <3C36408D.BCC362E3@refractions.net>
How about a hack which takes it into account? :)
David Graham wrote:
>
> Have been using JDBC with the 0.2 PostGIS. Now I have upgraded to 0.6.2
> and it does not work.
>
> Here is the problem: the new introduction of the SRID.
>
> I looked at the JDBC code released with 0.6.2 and it is the same old
> code that will not run with 0.6.2.
>
> Questions:
>
> Has anyone fixed this yet?
>
> If not is anyone interested in a hack that totally ignores the SRID?
>
> Dave Graham
> information integration and imaging, LLC
> dgraham at i3.com
> http://www.i3.com
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 4 16:00:01 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 04 Jan 2002 16:00:01 -0800
Subject: [postgis] JDBC with Postgis 0.6.2
References: <002101c19516$8b298de0$0501a8c0@comai04> <3C35DC8B.4D1474B2@refractions.net> <3C363E98.1020004@i3.com>
Message-ID: <3C364201.5A0A4FC8@refractions.net>
Oh, the reason it does not work now, is *probably* because your SQL is
not strictly speaking OpenGIS compliant. OpenGIS says (quietly) that if
you do a "select geom from mytable" you will get the canonical form,
which could be absolutely anything. In our case, it is the funny form
with SRID=1; prepended to it. If you want normal, nice geometries, which
the JDBC objects can understand, ask for "select AsText(geom) as geom
from mytable" and all should work just as before.
David Graham wrote:
>
> Have been using JDBC with the 0.2 PostGIS. Now I have upgraded to 0.6.2
> and it does not work.
>
> Here is the problem: the new introduction of the SRID.
>
> I looked at the JDBC code released with 0.6.2 and it is the same old
> code that will not run with 0.6.2.
>
> Questions:
>
> Has anyone fixed this yet?
>
> If not is anyone interested in a hack that totally ignores the SRID?
>
> Dave Graham
> information integration and imaging, LLC
> dgraham at i3.com
> http://www.i3.com
>
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From m.tondorf at online.de Fri Jan 4 16:06:33 2002
From: m.tondorf at online.de (mtondorf2002)
Date: Sat, 05 Jan 2002 00:06:33 -0000
Subject: [postgis] JDBC Problem
Message-ID:
I am trying to load PGgeometry objects from a Postgis table but I always get an exeption (java.lang.String) in line (PGgeometry pgeom = (PGgeometry)ors.getObject(1);)
try {
String query = "SELECT AsText(geometrie) as geometrie, ID_"+jTextField_tableName.getText()+" FROM "+ jTextField_tableName.getText();
Statement stm = conn.createStatement();
ResultSet ors = stm.executeQuery(query);
while (ors.next()) {
PGgeometry pgeom = (PGgeometry)ors.getObject(1);
int aktID = ors.getInt(2);
}
stm.close();
}
catch (Exception de) {
jTextArea_Error.setText(de.getMessage());
jLabel_Status.setText("Konnte Daten nicht auslesen.");
}
Where is my mistake?
Markus Tondorf
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dgraham at i3.com Fri Jan 4 16:24:46 2002
From: dgraham at i3.com (David Graham)
Date: Fri, 04 Jan 2002 17:24:46 -0700
Subject: [postgis] JDBC with Postgis 0.6.2
References: <002101c19516$8b298de0$0501a8c0@comai04> <3C35DC8B.4D1474B2@refractions.net> <3C363E98.1020004@i3.com> <3C36408D.BCC362E3@refractions.net>
Message-ID: <3C3647CE.1090303@i3.com>
Paul Ramsey wrote:
>How about a hack which takes it into account? :)
>
I thought about it. It is really not much work to capture the value.
Would the SRID be an member of the Geometry class or the PGgeometry
class? It seems that you would want to push it all the way to the
Geometry class.
Then that brings up the question of inserting it into the database with
the getValue() method. I have never used these SRID entries until
today. Can you simply set them on an insert statement by prepending
them the same way they come out?
Dave
>
>David Graham wrote:
>
>>Have been using JDBC with the 0.2 PostGIS. Now I have upgraded to 0.6.2
>>and it does not work.
>>
>>Here is the problem: the new introduction of the SRID.
>>
>>I looked at the JDBC code released with 0.6.2 and it is the same old
>>code that will not run with 0.6.2.
>>
>>Questions:
>>
>>Has anyone fixed this yet?
>>
>>If not is anyone interested in a hack that totally ignores the SRID?
>>
>>Dave Graham
>>information integration and imaging, LLC
>>dgraham at i3.com
>>http://www.i3.com
>>
>>
>>To unsubscribe from this group, send an email to:
>>postgis-unsubscribe at yahoogroups.com
>>
>>
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dgraham at i3.com Mon Jan 7 08:47:14 2002
From: dgraham at i3.com (David Graham)
Date: Mon, 07 Jan 2002 09:47:14 -0700
Subject: [postgis] JDBC Problem
References:
Message-ID: <3C39D112.5060805@i3.com>
It may be in initializing your connection (conn) variable. By default
the postgresql driver does not know what a PGgeometry is.
Did you include:
/*
* Add the geometry types to the connection. Note that you
* must cast the connection to the pgsql-specific connection * implementation before calling the addDataType() method.
*/
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeometry");
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d");
after you got your connection?
mtondorf2002 wrote:
>I am trying to load PGgeometry objects from a Postgis table but I always get an exeption (java.lang.String) in line (PGgeometry pgeom = (PGgeometry)ors.getObject(1);)
>
>try {
>String query = "SELECT AsText(geometrie) as geometrie, ID_"+jTextField_tableName.getText()+" FROM "+ jTextField_tableName.getText();
>
>Statement stm = conn.createStatement();
>ResultSet ors = stm.executeQuery(query);
>while (ors.next()) {
> PGgeometry pgeom = (PGgeometry)ors.getObject(1);
> int aktID = ors.getInt(2);
>}
>stm.close();
>}
>catch (Exception de) {
>jTextArea_Error.setText(de.getMessage());
>jLabel_Status.setText("Konnte Daten nicht auslesen.");
>}
>
>Where is my mistake?
>
>Markus Tondorf
>
>
>
>To unsubscribe from this group, send an email to:
>postgis-unsubscribe at yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From plancashire at columbia.com Mon Jan 7 11:54:15 2002
From: plancashire at columbia.com (colmpdx)
Date: Mon, 07 Jan 2002 19:54:15 -0000
Subject: [postgis] Install test failure
Message-ID:
Postgres 7.1.3
Postgis 0.6.2
When running
psql -f /software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql -d db
Got the following NOTICES:
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:34: NOTICE: CREATE TABLE/PRIMARY KEY will create
implicit index 'spatial_ref_sys_pkey' for table 'spatial_ref_sys'
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:47: NOTICE: CREATE TABLE/PRIMARY KEY will create
implicit index 'gc_pk' for table 'geometry_columns'
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:213: NOTICE: ProcedureCreate: type 'box3d' is not
yet defined
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:223: NOTICE: ProcedureCreate: type 'spheroid' is
not yet defined
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:247: NOTICE: ProcedureCreate: type 'wkb' is not
yet defined
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:265: NOTICE: ProcedureCreate: type 'chip' is not
yet defined
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:286: NOTICE: ProcedureCreate: type 'geometry' is
not yet defined
psql:/software/src/postgresql-7.1.3/contrib/postgis-
0.6.2/postgis.sql:323: NOTICE: ProcedureCreate: return
type 'geometry' is only a shell
Then in trying out the USAGE section of the README.postgis file
I created a database called "db".
Edited the SQL to remove tabs etc. Espically the
INSERT INTO SPATIAL_REF_SYS ...
Everything works up to ...
INSERT INTO geotest (id, name, geopoint) VALUES (1, 'Olympia',
GeometryFromText('POINT(-122.90,46.97)',1));
Gives me the error message ..
ERROR: couldnt parse object in GEOMETRY
Did I miss something ?
Thanks
-pete
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Mon Jan 7 13:11:14 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Mon, 07 Jan 2002 13:11:14 -0800
Subject: [postgis] Install test failure
References:
Message-ID: <3C3A0EF2.3D6161A2@refractions.net>
colmpdx wrote:
>
> Got the following NOTICES:
Notices are okay; it a chicken and egg problem. To define a type, you
have to have a function that creates an object of that type. To have
that function, you have to have previously defined the type...
> Edited the SQL to remove tabs etc. Espically the
> INSERT INTO SPATIAL_REF_SYS ...
>
> Everything works up to ...
>
> INSERT INTO geotest (id, name, geopoint) VALUES (1, 'Olympia',
> GeometryFromText('POINT(-122.90,46.97)',1));
It should be 'POINT(-122.90 46.97)' (no comma).
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From mj_vermeij at yahoo.com Tue Jan 8 03:18:36 2002
From: mj_vermeij at yahoo.com (mj_vermeij)
Date: Tue, 08 Jan 2002 11:18:36 -0000
Subject: [postgis] truly_inside
Message-ID:
Is there already a way to check whether polygon A intersects
(overlaps) with polygon B? Both polygons can have arbitrary shapes.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From torodedutoesdraiato at yahoo.it Tue Jan 8 07:47:24 2002
From: torodedutoesdraiato at yahoo.it (Silvio)
Date: Tue, 8 Jan 2002 16:47:24 +0100
Subject: [postgis] ClassCastException with PostGis Example
References:
Message-ID: <001001c1985c$1875a1a0$0501a8c0@comai04>
Hi,
I have just installed PostGis with PostGreSql but the PostGis Example
doesn't work.
This is the example (http://postgis.refractions.net/docs/x441.html)
import java.sql.*;
import java.util.*;
import java.lang.*;
import org.postgis.*;
public class JavaGIS {
public static void main(String[] args)
{
java.sql.Connection conn;
try
{
/*
* Load the JDBC driver and establish a connection.
*/
Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://localhost:5432/database";
conn = DriverManager.getConnection(url, "postgres", "");
/*
* Add the geometry types to the connection. Note that you
* must cast the connection to the pgsql-specific connection *
implementation before calling the addDataType() method.
*/
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeom
etry");
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d")
;
/*
* Create a statement and execute a select query.
*/
Statement s = conn.createStatement();
ResultSet r = s.executeQuery("select AsText(geom) as geom,id from
geomtable");
while( r.next() )
{
/*
* Retrieve the geometry as an object then cast it to the geometry
type.
* Print things out.
*/
PGgeometry geom = (PGgeometry)r.getObject(1);
********************CAST ERROR*****************
int id = r.getInt(2);
System.out.println("Row " + id + ":");
System.out.println(geom.toString());
}
s.close();
conn.close();
}
catch( Exception e )
{
e.printStackTrace();
}
}
}
The compiling phase is ok
After, when I try to run the class I get the following error:
java.lang.ClassCastException: java.lang.String
at PostGis.main(PostGis.java:42)
(the error is referred to the line 42 where I have written "CAST ERROR")
I hope that somebody can help me!!
Thanks in advance.
Silvio B.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Tue Jan 8 08:42:48 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Tue, 08 Jan 2002 08:42:48 -0800
Subject: [postgis] truly_inside
References:
Message-ID: <3C3B2188.3E3E8E69@refractions.net>
Nope, on the To Do list, definately, but not currently implemented.
P.
mj_vermeij wrote:
>
> Is there already a way to check whether polygon A intersects
> (overlaps) with polygon B? Both polygons can have arbitrary shapes.
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From plancashire at columbia.com Tue Jan 8 08:47:54 2002
From: plancashire at columbia.com (colmpdx)
Date: Tue, 08 Jan 2002 16:47:54 -0000
Subject: [postgis] Re: Install test failure
In-Reply-To: <3C3A0EF2.3D6161A2@refractions.net>
Message-ID:
--- In postgis at y..., Dave Blasby wrote:
> colmpdx wrote:
> >
> > Got the following NOTICES:
>
> Notices are okay; it a chicken and egg problem.
Figured that .. but sometimes :)
> > INSERT INTO SPATIAL_REF_SYS ...
> >
> > Everything works up to ...
> >
> > INSERT INTO geotest (id, name, geopoint) VALUES (1, 'Olympia',
> > GeometryFromText('POINT(-122.90,46.97)',1));
>
> It should be 'POINT(-122.90 46.97)' (no comma).
Paul, update for the README file ..
Thanks all !!
Now time to show how PostgreSQL&PostGIS on an old PC running Linux
can do a lot better the the $Soft VBA solution being proposed !!
-pete
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Tue Jan 8 08:55:22 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Tue, 08 Jan 2002 08:55:22 -0800
Subject: [postgis] Re: Install test failure
References:
Message-ID: <3C3B247A.BE10DE74@refractions.net>
> > It should be 'POINT(-122.90 46.97)' (no comma).
>
> Paul, update for the README file ..
Doh.
Fixed and committed.
P.
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Tue Jan 8 09:34:48 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Tue, 08 Jan 2002 09:34:48 -0800
Subject: [postgis] truly_inside
References: <3C3B2188.3E3E8E69@refractions.net>
Message-ID: <3C3B2DB8.CC8CCAC0@refractions.net>
Paul Ramsey wrote:
>
> Nope, on the To Do list, definately, but not currently implemented.
> P.
mj_vermeij wrote:
>
> Is there already a way to check whether polygon A intersects
> (overlaps) with polygon B? Both polygons can have arbitrary shapes.
On the contrary, you can use distance(POLY1,POLY2) = 0.
NOTE: this method isnt robust. If the two geometries are really really
close (but not overlapping) you could get
a distance of 0. If they just barely barely overlap, you could get a
value just greater than zero.
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Tue Jan 8 11:27:23 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Tue, 08 Jan 2002 11:27:23 -0800
Subject: [postgis] ClassCastException with PostGis Example
References: <001001c1985c$1875a1a0$0501a8c0@comai04>
Message-ID: <3C3B481B.218F2832@refractions.net>
Some tests might help see where things are breaking:
- Print out obj.toString() before casting it.
- Retrieve the geometry column as a String and print that out too.
Silvio wrote:
>
> Hi,
>
> I have just installed PostGis with PostGreSql but the PostGis Example
> doesn't work.
>
> This is the example (http://postgis.refractions.net/docs/x441.html)
>
> import java.sql.*;
> import java.util.*;
> import java.lang.*;
> import org.postgis.*;
>
> public class JavaGIS {
> public static void main(String[] args)
> {
> java.sql.Connection conn;
> try
> {
> /*
> * Load the JDBC driver and establish a connection.
> */
> Class.forName("org.postgresql.Driver");
> String url = "jdbc:postgresql://localhost:5432/database";
> conn = DriverManager.getConnection(url, "postgres", "");
>
> /*
> * Add the geometry types to the connection. Note that you
> * must cast the connection to the pgsql-specific connection *
> implementation before calling the addDataType() method.
> */
>
> ((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeom
> etry");
>
> ((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d")
> ;
>
> /*
> * Create a statement and execute a select query.
> */
> Statement s = conn.createStatement();
> ResultSet r = s.executeQuery("select AsText(geom) as geom,id from
> geomtable");
> while( r.next() )
> {
> /*
> * Retrieve the geometry as an object then cast it to the geometry
> type.
> * Print things out.
> */
>
> PGgeometry geom = (PGgeometry)r.getObject(1);
> ********************CAST ERROR*****************
>
> int id = r.getInt(2);
> System.out.println("Row " + id + ":");
> System.out.println(geom.toString());
> }
> s.close();
> conn.close();
> }
> catch( Exception e )
> {
> e.printStackTrace();
> }
> }
> }
>
> The compiling phase is ok
> After, when I try to run the class I get the following error:
>
> java.lang.ClassCastException: java.lang.String
> at PostGis.main(PostGis.java:42)
>
> (the error is referred to the line 42 where I have written "CAST ERROR")
>
> I hope that somebody can help me!!
>
> Thanks in advance.
>
> Silvio B.
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From torodedutoesdraiato at yahoo.it Wed Jan 9 04:36:42 2002
From: torodedutoesdraiato at yahoo.it (Silvio)
Date: Wed, 9 Jan 2002 13:36:42 +0100
Subject: [postgis] ClassCastException with PostGis Example
References: <001001c1985c$1875a1a0$0501a8c0@comai04> <3C3B481B.218F2832@refractions.net>
Message-ID: <000a01c1990a$4aa7d400$0501a8c0@comai04>
Yes, all is ok!
If I try to retrieve the geometry column as a String and print it the
example works.
But, what does strange situation means?
The database where the program gets the data has three objects. I have
inserted this object with geometryFromText function.
Now, this function should record a geometry object on the database but
instead it records a String object!!!?
Is this a bug? I don't think this but can somebody say me where is the
error?
Buffa S.
----- Original Message -----
From: "Paul Ramsey"
To:
Sent: Tuesday, January 08, 2002 8:27 PM
Subject: Re: [postgis] ClassCastException with PostGis Example
> Some tests might help see where things are breaking:
> - Print out obj.toString() before casting it.
> - Retrieve the geometry column as a String and print that out too.
>
> Silvio wrote:
> >
> > Hi,
> >
> > I have just installed PostGis with PostGreSql but the PostGis Example
> > doesn't work.
> >
> > This is the example (http://postgis.refractions.net/docs/x441.html)
> >
> > import java.sql.*;
> > import java.util.*;
> > import java.lang.*;
> > import org.postgis.*;
> >
> > public class JavaGIS {
> > public static void main(String[] args)
> > {
> > java.sql.Connection conn;
> > try
> > {
> > /*
> > * Load the JDBC driver and establish a connection.
> > */
> > Class.forName("org.postgresql.Driver");
> > String url = "jdbc:postgresql://localhost:5432/database";
> > conn = DriverManager.getConnection(url, "postgres", "");
> >
> > /*
> > * Add the geometry types to the connection. Note that you
> > * must cast the connection to the pgsql-specific connection *
> > implementation before calling the addDataType() method.
> > */
> >
> >
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeom
> > etry");
> >
> >
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d")
> > ;
> >
> > /*
> > * Create a statement and execute a select query.
> > */
> > Statement s = conn.createStatement();
> > ResultSet r = s.executeQuery("select AsText(geom) as geom,id
from
> > geomtable");
> > while( r.next() )
> > {
> > /*
> > * Retrieve the geometry as an object then cast it to the
geometry
> > type.
> > * Print things out.
> > */
> >
> > PGgeometry geom = (PGgeometry)r.getObject(1);
> > ********************CAST ERROR*****************
> >
> > int id = r.getInt(2);
> > System.out.println("Row " + id + ":");
> > System.out.println(geom.toString());
> > }
> > s.close();
> > conn.close();
> > }
> > catch( Exception e )
> > {
> > e.printStackTrace();
> > }
> > }
> > }
> >
> > The compiling phase is ok
> > After, when I try to run the class I get the following error:
> >
> > java.lang.ClassCastException: java.lang.String
> > at PostGis.main(PostGis.java:42)
> >
> > (the error is referred to the line 42 where I have written "CAST ERROR")
> >
> > I hope that somebody can help me!!
> >
> > Thanks in advance.
> >
> > Silvio B.
> >
> >
> > To unsubscribe from this group, send an email to:
> > postgis-unsubscribe at yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
> --
> __
> /
> | Paul Ramsey
> | Refractions Research
> | Email: pramsey at refractions.net
> | Phone: (250) 885-0632
> \_
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Wed Jan 9 09:01:47 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Wed, 09 Jan 2002 09:01:47 -0800
Subject: [postgis] ClassCastException with PostGis Example
References: <001001c1985c$1875a1a0$0501a8c0@comai04> <3C3B481B.218F2832@refractions.net> <000a01c1990a$4aa7d400$0501a8c0@comai04>
Message-ID: <3C3C777B.714DC63F@refractions.net>
Silvio wrote:
>
> Yes, all is ok!
> If I try to retrieve the geometry column as a String and print it the
> example works.
> But, what does strange situation means?
> The database where the program gets the data has three objects. I have
> inserted this object with geometryFromText function.
> Now, this function should record a geometry object on the database but
> instead it records a String object!!!?
This is what happens with JDBC. All the database objects transit from
the db to the JDBC client as text strings. Then, if they are complex
objects, the driver parses the text into object structures. This is how
the internal geometry objects work, and I modelled the extension objects
after them.
If anyone can debug this I would be grateful. I do not have time to do
any PostGIS work for the next month at least.
> Is this a bug? I don't think this but can somebody say me where is the
> error?
>
> Buffa S.
>
> ----- Original Message -----
> From: "Paul Ramsey"
> To:
> Sent: Tuesday, January 08, 2002 8:27 PM
> Subject: Re: [postgis] ClassCastException with PostGis Example
>
> > Some tests might help see where things are breaking:
> > - Print out obj.toString() before casting it.
> > - Retrieve the geometry column as a String and print that out too.
> >
> > Silvio wrote:
> > >
> > > Hi,
> > >
> > > I have just installed PostGis with PostGreSql but the PostGis Example
> > > doesn't work.
> > >
> > > This is the example (http://postgis.refractions.net/docs/x441.html)
> > >
> > > import java.sql.*;
> > > import java.util.*;
> > > import java.lang.*;
> > > import org.postgis.*;
> > >
> > > public class JavaGIS {
> > > public static void main(String[] args)
> > > {
> > > java.sql.Connection conn;
> > > try
> > > {
> > > /*
> > > * Load the JDBC driver and establish a connection.
> > > */
> > > Class.forName("org.postgresql.Driver");
> > > String url = "jdbc:postgresql://localhost:5432/database";
> > > conn = DriverManager.getConnection(url, "postgres", "");
> > >
> > > /*
> > > * Add the geometry types to the connection. Note that you
> > > * must cast the connection to the pgsql-specific connection *
> > > implementation before calling the addDataType() method.
> > > */
> > >
> > >
> ((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeom
> > > etry");
> > >
> > >
> ((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d")
> > > ;
> > >
> > > /*
> > > * Create a statement and execute a select query.
> > > */
> > > Statement s = conn.createStatement();
> > > ResultSet r = s.executeQuery("select AsText(geom) as geom,id
> from
> > > geomtable");
> > > while( r.next() )
> > > {
> > > /*
> > > * Retrieve the geometry as an object then cast it to the
> geometry
> > > type.
> > > * Print things out.
> > > */
> > >
> > > PGgeometry geom = (PGgeometry)r.getObject(1);
> > > ********************CAST ERROR*****************
> > >
> > > int id = r.getInt(2);
> > > System.out.println("Row " + id + ":");
> > > System.out.println(geom.toString());
> > > }
> > > s.close();
> > > conn.close();
> > > }
> > > catch( Exception e )
> > > {
> > > e.printStackTrace();
> > > }
> > > }
> > > }
> > >
> > > The compiling phase is ok
> > > After, when I try to run the class I get the following error:
> > >
> > > java.lang.ClassCastException: java.lang.String
> > > at PostGis.main(PostGis.java:42)
> > >
> > > (the error is referred to the line 42 where I have written "CAST ERROR")
> > >
> > > I hope that somebody can help me!!
> > >
> > > Thanks in advance.
> > >
> > > Silvio B.
> > >
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From rmann at coastnet.com Wed Jan 9 11:58:29 2002
From: rmann at coastnet.com (Rosemary Mann/Nedjo Rogers)
Date: Wed, 9 Jan 2002 11:58:29 -0800
Subject: [postgis] GML generation scripts and question
Message-ID: <000801c19948$040c6220$8e763cc7@mann>
Attached is a preliminary script for generating Geography Markup Language
(GML) 2.0 content from well-known text (WKT) representations of the sort
generated by PostGIS (i.e., that of the OpenGIS Simple Features
Specification for SQL).
The script is called "convertgeom.php"; "example.php" is an example file.
To use, save both in a php-enabled web directory and open example.php.
For maximum portability (and, perhaps, lower server overhead), I've chosen
to convert the raw WKT instead of using a series of queries to extract
sub-geometries (e.g., rings of polygons or elements of MULTI geometries).
But the GML polygon format requires a distinction between the "outer" and
any "inner" rings. In this script, I've assumed the first ring given in the
WKT is the outer one.
Is this a valid assumption--or is the order of the rings arbitrary? (If the
latter, a test would be necessary to determine order.)
Nedjo Rogers
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From nedjo at miningwatch.org Wed Jan 9 12:03:52 2002
From: nedjo at miningwatch.org (Nedjo Rogers)
Date: Wed, 9 Jan 2002 12:03:52 -0800
Subject: [postgis] GML generation scripts and question: attachments
Message-ID: <001a01c19948$c4076ac0$8e763cc7@mann>
[this time with attachments!]
Attached is a preliminary script for generating Geography Markup Language
(GML) 2.0 content from well-known text (WKT) representations of the sort
generated by PostGIS (i.e., that of the OpenGIS Simple Features
Specification for SQL).
The script is called "convertgeom.php"; "example.php" is an example file.
To use, save both in a php-enabled web directory and open example.php.
For maximum portability (and, perhaps, lower server overhead), I've chosen
to convert the raw WKT instead of using a series of queries to extract
sub-geometries (e.g., rings of polygons or elements of MULTI geometries).
But the GML polygon format requires a distinction between the "outer" and
any "inner" rings. In this script, I've assumed the first ring given in the
WKT is the outer one.
Is this a valid assumption--or is the order of the rings arbitrary? (If the
latter, a test would be necessary to determine order.)
Nedjo Rogers
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convertgeom.php
Type: application/octet-stream
Size: 5065 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.php
Type: application/octet-stream
Size: 859 bytes
Desc: not available
URL:
From jeffloun at refractions.net Wed Jan 9 12:34:09 2002
From: jeffloun at refractions.net (jeff lounsbury)
Date: Wed, 09 Jan 2002 12:34:09 -0800
Subject: [postgis] GML generation scripts and question: attachments
References: <001a01c19948$c4076ac0$8e763cc7@mann>
Message-ID: <3C3CA941.B573D779@refractions.net>
> Is this a valid assumption--or is the order of the rings arbitrary? (If the
> latter, a test would be necessary to determine order.)
>
This is correct, both PostGIS and the WKT spec require the first ring in a
polygon to be the outer ring.
-Jeff
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From gispmpf at yahoo.com.br Thu Jan 10 04:30:17 2002
From: gispmpf at yahoo.com.br (gispmpf)
Date: Thu, 10 Jan 2002 12:30:17 -0000
Subject: [postgis] pl/pgsql support
Message-ID:
hello all
I'm istalling postgis 0.6.2 but , i'm stuck with the pl/pgsql support.
I had install postgreSQL 7.1.3 but i don't found plpgsql.so in the
/usr/local/pgsql/lib.
i just found this: /postgresql-7.1.3/src/pl/plpgsql/src/libplpgsql.so
what should i do to fix this and continue with the instalattion?
also
after this fix what i have to do is:
psql mydbGIS
mydbGIS# CREATE FUNCTION plpgsql_call_handler() RETURNS OPAQUE AS
'/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';
mydbGIS#CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER
plpgsql_call_handler LANCOMPILER 'PL/pgSQL';
#\q
postgres$ psql -f postgis.sql -d mydbGIS
is this correct?
Thanks
Jo?o.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From gispmpf at yahoo.com.br Thu Jan 10 04:31:58 2002
From: gispmpf at yahoo.com.br (gispmpf)
Date: Thu, 10 Jan 2002 12:31:58 -0000
Subject: [postgis] pl/pgsql support
Message-ID:
hello all
I'm istalling postgis 0.6.2 but , i'm stuck with the pl/pgsql support.
I had install postgreSQL 7.1.3 but i don't found plpgsql.so in the
/usr/local/pgsql/lib.
i just found this: /postgresql-7.1.3/src/pl/plpgsql/src/libplpgsql.so
what should i do to fix this and continue with the instalattion?
also
after this fix what i have to do is:
psql mydbGIS
mydbGIS# CREATE FUNCTION plpgsql_call_handler() RETURNS OPAQUE AS
'/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';
mydbGIS#CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER
plpgsql_call_handler LANCOMPILER 'PL/pgSQL';
#\q
postgres$ psql -f postgis.sql -d mydbGIS
is this correct?
Thanks
Jo?o.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From Eric.Faurot at info.unicaen.fr Thu Jan 10 07:42:32 2002
From: Eric.Faurot at info.unicaen.fr (Eric Faurot)
Date: Thu, 10 Jan 2002 16:42:32 +0100
Subject: [postgis] pl/pgsql support
In-Reply-To:
References:
Message-ID: <15421.46696.35840.224651@zimzum.info.unicaen.fr>
gispmpf writes:
> hello all
>
> I'm istalling postgis 0.6.2 but , i'm stuck with the pl/pgsql support.
>
> I had install postgreSQL 7.1.3 but i don't found plpgsql.so in the
> /usr/local/pgsql/lib.
>
> i just found this: /postgresql-7.1.3/src/pl/plpgsql/src/libplpgsql.so
This is weird... It should be installed correctly with 'make install'.
> what should i do to fix this and continue with the instalattion?
>
> also
>
> after this fix what i have to do is:
>
> psql mydbGIS
>
> mydbGIS# CREATE FUNCTION plpgsql_call_handler() RETURNS OPAQUE AS
> '/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';
^^^^^^^^^^^^^^^^^^^^^
You'll have to change the path here.
> mydbGIS#CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER
> plpgsql_call_handler LANCOMPILER 'PL/pgSQL';
>
> #\q
>
Simpler: you can use:
$ createlang plpgsql yourdbGIS
Add '-L path/to/your/plpgsql/so/file' if it doesn't work, but it
should if postgres is correctly installed. Then:
$ psql -f postgis.sql -d yourdbGIS
Eric.
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From hi-ono at mn.xdsl.ne.jp Thu Jan 10 07:17:02 2002
From: hi-ono at mn.xdsl.ne.jp (Hisaji ONO)
Date: Fri, 11 Jan 2002 00:17:02 +0900
Subject: [postgis] GML generation scripts and question: attachments
References: <001a01c19948$c4076ac0$8e763cc7@mann>
Message-ID: <007c01c199e9$db274c60$650202c0@vip>
Hello, Mr. Rogers.
Thank you for your nice php script.
I've uploaded WKT-to-SVG php script. Howeber compared to you script, my
script was too complicated and ugly. Too many usages of PostGIS functions.
So I'd like to improve my script to refer your script.
Regards.
----- Original Message -----
From: "Nedjo Rogers"
To:
Sent: Thursday, January 10, 2002 5:03 AM
Subject: [postgis] GML generation scripts and question: attachments
> [this time with attachments!]
>
> Attached is a preliminary script for generating Geography Markup Language
> (GML) 2.0 content from well-known text (WKT) representations of the sort
> generated by PostGIS (i.e., that of the OpenGIS Simple Features
> Specification for SQL).
>
> The script is called "convertgeom.php"; "example.php" is an example file.
> To use, save both in a php-enabled web directory and open example.php.
>
> For maximum portability (and, perhaps, lower server overhead), I've chosen
> to convert the raw WKT instead of using a series of queries to extract
> sub-geometries (e.g., rings of polygons or elements of MULTI geometries).
> But the GML polygon format requires a distinction between the "outer" and
> any "inner" rings. In this script, I've assumed the first ring given in
the
> WKT is the outer one.
>
> Is this a valid assumption--or is the order of the rings arbitrary? (If
the
> latter, a test would be necessary to determine order.)
>
> Nedjo Rogers
>
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From nicolasb at maich.gr Fri Jan 11 04:28:41 2002
From: nicolasb at maich.gr (Nicolas Boretos)
Date: Fri, 11 Jan 2002 14:28:41 +0200
Subject: [postgis] Where is projects.h???
Message-ID: <3C3EDA79.80503D21@maich.gr>
Hi,
Trying to compile postgis from cvs on cygwn.
Make fails compiling post_transform.c being unable to find projects.h
Thanx,
nicolas Boretos
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From Eric.Faurot at info.unicaen.fr Fri Jan 11 08:23:16 2002
From: Eric.Faurot at info.unicaen.fr (Eric Faurot)
Date: Fri, 11 Jan 2002 17:23:16 +0100
Subject: [postgis] postgis 0.7?
Message-ID: <15423.4468.108431.978009@zimzum.info.unicaen.fr>
Hi,
A few months ago Dave talked about a major redesign for postgis 0.7.
Is there any work done, or is it stuck in the planning phase?
Just a remark: IMHO using WKB for storing geometries is interesting,
but we would have to say farewell to the 3D support.
Eric.
--
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 11 08:29:19 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 11 Jan 2002 08:29:19 -0800
Subject: [postgis] Where is projects.h???
References: <3C3EDA79.80503D21@maich.gr>
Message-ID: <3C3F12DF.DA3E2CB3@refractions.net>
This is Dave's projection support. You'll need Proj4 installed.
Nicolas Boretos wrote:
>
> Hi,
> Trying to compile postgis from cvs on cygwn.
> Make fails compiling post_transform.c being unable to find projects.h
>
> Thanx,
> nicolas Boretos
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From nhv at cape.com Fri Jan 11 08:40:33 2002
From: nhv at cape.com (Norman Vine)
Date: Fri, 11 Jan 2002 11:40:33 -0500
Subject: [postgis] Where is projects.h???
In-Reply-To: <3C3EDA79.80503D21@maich.gr>
Message-ID: <005401c19abe$b13fd9a0$a300a8c0@nhv>
Nicolas Boretos writes
>
>Make fails compiling post_transform.c being unable to find projects.h
>
You need the proj4 library
http://www.remotesensing.org/proj/
Cheers
Norman VIne
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 11 08:36:37 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 11 Jan 2002 08:36:37 -0800
Subject: [postgis] postgis 0.7?
References: <15423.4468.108431.978009@zimzum.info.unicaen.fr>
Message-ID: <3C3F1495.B33C6F88@refractions.net>
The major re-design is linked to the integration of JTS code into
PostGIS. IE: we need a new db object structure (maybe) to most
efficiently use an external library of C++ geometry operators, which JTS
will be turned into. Since the JTS porting has not started yet, neither
has the redesign.
In any event, do not expect any great things from us over the next three
months -- Jan-Mar are the three months we make more consulting money
than any others, and that means everyone in the company is flat out on
billing projects. The money we make now supports us in the quiet times
doing things like free work on PostGIS.
If someone wants to volunteer, one obvious Thing To Do is a release
based on the code currently in CVS, which has numerous new features. The
items to do are: documenting all new functionality, creating an autoconf
mechanism for determining library locations (proj4) and flagging support
for library capabilities on or off, updating README etc. The difference
between CVS and release is that CVS code is guaranteed to work on Dave's
machine, while release code has to compile and install cleanly and
easily on as many other people's machines as possible (and have
meaningful instructions). Based on my past experience with getting a
consistent release out (and people have found inconsistencies even then)
it is about 4-5 full days of work. Since we promised the redesign in
0.7, it would be 0.6.3.
Eric Faurot wrote:
>
> A few months ago Dave talked about a major redesign for postgis 0.7.
> Is there any work done, or is it stuck in the planning phase?
>
> Just a remark: IMHO using WKB for storing geometries is interesting,
> but we would have to say farewell to the 3D support.
>
> Eric.
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Fri Jan 11 09:03:36 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Fri, 11 Jan 2002 09:03:36 -0800
Subject: [postgis] Where is projects.h???
References: <3C3EDA79.80503D21@maich.gr>
Message-ID: <3C3F1AE8.E5DC6A22@refractions.net>
Nicolas Boretos wrote:
>
> Hi,
> Trying to compile postgis from cvs on cygwn.
> Make fails compiling post_transform.c being unable to find projects.h
As other people have said, you have to have proj4 installed in order to
compile it.
If you dont want to do this, then you can tell it not to have proj4
support:
In the Makefile, find the line:
override CPPFLAGS := -g -I$(srcdir) $(CPPFLAGS) -DFRONTEND
-DSYSCONFDIR='"$(sysconfdir
)"' -DWANT_PROJECTION
Remove the "-DWANT_PROJECTION". And find the line:
SHLIB_LINK = $(filter -L%, $(LDFLAGS)) -lproj
and remove the "-lproj".
It should compile in do nothing stubs so everything *should* work.
dave
ps. I had to make a minor change to postgis_proj.c so you might want to
get the
very latest CVS version.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From gispmpf at yahoo.com.br Fri Jan 11 10:33:53 2002
From: gispmpf at yahoo.com.br (gispmpf)
Date: Fri, 11 Jan 2002 18:33:53 -0000
Subject: [postgis] functions examples
Message-ID:
Hello,
Is possible write some SQL examples for PostGIS OpenGIS functions and
Other functions in the on-line documentation?
thanks
Joao
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 11 10:39:26 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 11 Jan 2002 10:39:26 -0800
Subject: [postgis] Online Documentation
Message-ID: <3C3F315E.AD825BB2@refractions.net>
If anyone wants to add to and improve the documentation (things like
examples, etc, that are mentioned) there is a source file in
docs/postgis.xml which is the parent of all the online HTML
documentation. Set up CVS, checkout the archive, do your additions etc,
and send me a diff. I'll happily apply documentation diffs, and the
online documentation automatically tracks the postgis.xml file in the
CVS archive. If people are deluging me with diffs I'll just give them
CVS write access.
Paul
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From mj_vermeij at yahoo.com Mon Jan 14 02:49:19 2002
From: mj_vermeij at yahoo.com (mj_vermeij)
Date: Mon, 14 Jan 2002 10:49:19 -0000
Subject: [postgis] without islossy
Message-ID:
Sorry, simple question here,
Is it allowed to create an indexing whilst ommitting the
'with (ISLOSSY)' statement?
example
create index boundary_0b on boundary
using GIST (shape GIST_GEOMETRY_OPS);
with shape created by:
SELECT AddGeometryColumn ('lki5','boundary','shape',-
1,'LINESTRING',2);
I did this and got no error messages, but I can't get PostgreSQL to do
select count (*) from boundary where truly_inside ( GeometryFromText
('POLYGON ((78550000 457900000,78550000 458025000,78650000
458025000,78650000 457900000,78550000 457900000))' ,-1 ) , bbox );
without using a Seq Scan even with 'set enable_seqscan=off;'. Or is
this correct?
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 14 16:10:54 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 14 Jan 2002 16:10:54 -0800
Subject: [postgis] AddGeometryColumn fails -- pgsql 7.1.3 and postgis 0.6.2 okay?
Message-ID:
Hi listers, I'm trying postgis out for the first time, following the docs
closely (I think), but after all is said and done I cannot use the
AddGeometryColumn function (see end of log below). Is it because of the
versions I am running:
Postgresql - 7.1.3 - installed from sources
PostGIS - 0.6.2 - moved to pg/contrib folder and ran make; make install
fine
When I try to do the "SELECT AddGeometryColumn...." from the example in the
docs it obviously can't find it.
Yet it tells me I've got everything I need. Can you look at my stuff below
and help me?
Tyler
----------------------------------------------------------------------
[me at myserver postgis-0.6.2]# createlang plpgsql testgis
createlang: 'plpgsql' is already installed in database testgis
----------------------------------------------------------------------
testgis=# \i postgis.sql
BEGIN
message
----------------------
plpgsql is installed
(1 row)
CREATE
psql:postgis.sql:34: NOTICE: CREATE TABLE/PRIMARY KEY will create implicit
index 'spatial_ref_sys_pkey' for table 'spatial_ref_sys'
CREATE
psql:postgis.sql:47: NOTICE: CREATE TABLE/PRIMARY KEY will create implicit
index 'gc_pk' for table 'geometry_columns'
CREATE
...
CREATE
psql:postgis.sql:213: NOTICE: ProcedureCreate: type 'box3d' is not yet
defined
CREATE
CREATE
psql:postgis.sql:223: NOTICE: ProcedureCreate: type 'spheroid' is not yet
defined
CREATE
...
CREATE
psql:postgis.sql:247: NOTICE: ProcedureCreate: type 'wkb' is not yet
defined
CREATE
CREATE
CREATE
psql:postgis.sql:265: NOTICE: ProcedureCreate: type 'chip' is not yet
defined
CREATE
CREATE
CREATE
psql:postgis.sql:286: NOTICE: ProcedureCreate: type 'geometry' is not yet
defined
CREATE
...
CREATE
psql:postgis.sql:323: NOTICE: ProcedureCreate: return type 'geometry' is
only a shell
CREATE
...
CREATE
psql:postgis.sql:753: ERROR: pg_opclass: Permission denied.
psql:postgis.sql:761: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:768: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:775: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:782: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:789: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:796: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:803: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:810: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:817: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:819: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:827: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:833: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:839: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:845: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:851: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:857: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:863: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:866: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
psql:postgis.sql:867: NOTICE: current transaction is aborted, queries
ignored until end of transaction block
*ABORT STATE*
COMMIT
----------------------------------------------------------------------
testgis=# drop table gtest;
DROP
testgis=# create table gtest (ID int4, NAME varchar(20) );
CREATE
testgis=# SELECT AddGeometryColumn('testgis','gtest','geom',
-1,'LINESTRING',2);
ERROR: Function 'addgeometrycolumn(unknown, unknown, unknown, int4,
unknown, int4)' does not exist
Unable to identify a function that satisfies the given argument
types
You may need to add explicit typecasts
testgis=#
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Mon Jan 14 17:47:45 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Mon, 14 Jan 2002 17:47:45 -0800
Subject: [postgis] AddGeometryColumn fails -- pgsql 7.1.3 and postgis 0.6.2
okay?
References:
Message-ID: <3C438A41.433E9161@refractions.net>
Ah.
Took me two looks to see it.
In your postgis.sql upload, note that it failed 1/2 way through, when
you try to alter the opclass. The user you are uploading postgis.sql
with does not have system privileges. Try uploading postgis.sql as the
postgres user, or give your user system privs. If the postgis.sql upload
fails you get none of the necessary function defs, and hence, no
functionality.
Paul
Tyler Mitchell wrote:
>
> Hi listers, I'm trying postgis out for the first time, following the docs
> closely (I think), but after all is said and done I cannot use the
> AddGeometryColumn function (see end of log below). Is it because of the
> versions I am running:
> Postgresql - 7.1.3 - installed from sources
> PostGIS - 0.6.2 - moved to pg/contrib folder and ran make; make install
> fine
>
> When I try to do the "SELECT AddGeometryColumn...." from the example in the
> docs it obviously can't find it.
> Yet it tells me I've got everything I need. Can you look at my stuff below
> and help me?
>
> Tyler
>
> ----------------------------------------------------------------------
> [me at myserver postgis-0.6.2]# createlang plpgsql testgis
> createlang: 'plpgsql' is already installed in database testgis
> ----------------------------------------------------------------------
> testgis=# \i postgis.sql
> BEGIN
> message
> ----------------------
> plpgsql is installed
> (1 row)
>
> CREATE
> psql:postgis.sql:34: NOTICE: CREATE TABLE/PRIMARY KEY will create implicit
> index 'spatial_ref_sys_pkey' for table 'spatial_ref_sys'
> CREATE
> psql:postgis.sql:47: NOTICE: CREATE TABLE/PRIMARY KEY will create implicit
> index 'gc_pk' for table 'geometry_columns'
> CREATE
> ...
> CREATE
> psql:postgis.sql:213: NOTICE: ProcedureCreate: type 'box3d' is not yet
> defined
> CREATE
> CREATE
> psql:postgis.sql:223: NOTICE: ProcedureCreate: type 'spheroid' is not yet
> defined
> CREATE
> ...
> CREATE
> psql:postgis.sql:247: NOTICE: ProcedureCreate: type 'wkb' is not yet
> defined
> CREATE
> CREATE
> CREATE
> psql:postgis.sql:265: NOTICE: ProcedureCreate: type 'chip' is not yet
> defined
> CREATE
> CREATE
> CREATE
> psql:postgis.sql:286: NOTICE: ProcedureCreate: type 'geometry' is not yet
> defined
> CREATE
> ...
> CREATE
> psql:postgis.sql:323: NOTICE: ProcedureCreate: return type 'geometry' is
> only a shell
> CREATE
> ...
> CREATE
> psql:postgis.sql:753: ERROR: pg_opclass: Permission denied.
> psql:postgis.sql:761: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:768: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:775: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:782: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:789: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:796: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:803: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:810: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:817: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:819: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:827: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:833: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:839: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:845: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:851: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:857: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:863: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:866: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:867: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> COMMIT
> ----------------------------------------------------------------------
> testgis=# drop table gtest;
> DROP
> testgis=# create table gtest (ID int4, NAME varchar(20) );
> CREATE
> testgis=# SELECT AddGeometryColumn('testgis','gtest','geom',
> -1,'LINESTRING',2);
> ERROR: Function 'addgeometrycolumn(unknown, unknown, unknown, int4,
> unknown, int4)' does not exist
> Unable to identify a function that satisfies the given argument
> types
> You may need to add explicit typecasts
> testgis=#
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From simon.mercier at fadq.qc.ca Tue Jan 15 10:58:35 2002
From: simon.mercier at fadq.qc.ca (simon mercier)
Date: Tue, 15 Jan 2002 13:58:35 -0500
Subject: [postgis] pgsql2shp
Message-ID: <3C447BDB.FD491497@fadq.qc.ca>
Hi all
Maybe it's more a c question but...I try anyway. I add a -s option in
the pgsql2shp to allows specify sql to extract data from postgresql. It
work fine with a simple sql like:
pgsql2shp -s 'select * from pclp_s WHERE nop=45893' -f /tmp/pclp_s test
pclp_s
But if I need to use the function GeometryFromText(), I need the <'>
character, the getopt() function in pgsql2shp.c return error...
pgsql2shp -s 'SELECT * FROM pclp_s WHERE the_geom &&
GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372
46.836388)'::BOX3D,-1)' -f /tmp/pclp_s test pclp_s
=
bash: syntax error near unexpected token `GeometryFromText('BOX3D(-'
I try a lot with no result. Is there a way to skip this character or any
suggestion to pass my sql string?
ps: I try postgres function chr(39) to skip <'>(i.e
...GeometryFromText((select chr(39))BOX3D... ) but dont work.
--
Simon Mercier
http://www.financiereagricole.qc.ca/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Tue Jan 15 08:22:14 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Tue, 15 Jan 2002 08:22:14 -0800
Subject: [postgis] AddGeometryColumn fails -- pgsql 7.1.3 and postgis 0.6.2
okay?
Message-ID:
I can see how the difference you caught was subtle. It have done
everything as postgres user and it appears to have at least got me past the
addgeometry hurdle - though my logs didn't look much different at all. Now
onto getting it some shapefile data and working with mapserver....
Thanks Paul.
Paul Ramsey
cc:
Fax to:
01/14/2002 Subject: Re: [postgis] AddGeometryColumn fails -- pgsql 7.1.3 and
05:47 PM postgis 0.6.2 okay?
Please respond
to postgis
Ah.
Took me two looks to see it.
In your postgis.sql upload, note that it failed 1/2 way through, when
you try to alter the opclass. The user you are uploading postgis.sql
with does not have system privileges. Try uploading postgis.sql as the
postgres user, or give your user system privs. If the postgis.sql upload
fails you get none of the necessary function defs, and hence, no
functionality.
Paul
Tyler Mitchell wrote:
>
> Hi listers, I'm trying postgis out for the first time, following the docs
> closely (I think), but after all is said and done I cannot use the
> AddGeometryColumn function (see end of log below). Is it because of the
> versions I am running:
> Postgresql - 7.1.3 - installed from sources
> PostGIS - 0.6.2 - moved to pg/contrib folder and ran make; make install
> fine
>
> When I try to do the "SELECT AddGeometryColumn...." from the example in
the
> docs it obviously can't find it.
> Yet it tells me I've got everything I need. Can you look at my stuff
below
> and help me?
>
> Tyler
>
> ----------------------------------------------------------------------
> [me at myserver postgis-0.6.2]# createlang plpgsql testgis
> createlang: 'plpgsql' is already installed in database testgis
> ----------------------------------------------------------------------
> testgis=# \i postgis.sql
> BEGIN
> message
> ----------------------
> plpgsql is installed
> (1 row)
>
> CREATE
> psql:postgis.sql:34: NOTICE: CREATE TABLE/PRIMARY KEY will create
implicit
> index 'spatial_ref_sys_pkey' for table 'spatial_ref_sys'
> CREATE
> psql:postgis.sql:47: NOTICE: CREATE TABLE/PRIMARY KEY will create
implicit
> index 'gc_pk' for table 'geometry_columns'
> CREATE
> ...
> CREATE
> psql:postgis.sql:213: NOTICE: ProcedureCreate: type 'box3d' is not yet
> defined
> CREATE
> CREATE
> psql:postgis.sql:223: NOTICE: ProcedureCreate: type 'spheroid' is not
yet
> defined
> CREATE
> ...
> CREATE
> psql:postgis.sql:247: NOTICE: ProcedureCreate: type 'wkb' is not yet
> defined
> CREATE
> CREATE
> CREATE
> psql:postgis.sql:265: NOTICE: ProcedureCreate: type 'chip' is not yet
> defined
> CREATE
> CREATE
> CREATE
> psql:postgis.sql:286: NOTICE: ProcedureCreate: type 'geometry' is not
yet
> defined
> CREATE
> ...
> CREATE
> psql:postgis.sql:323: NOTICE: ProcedureCreate: return type 'geometry' is
> only a shell
> CREATE
> ...
> CREATE
> psql:postgis.sql:753: ERROR: pg_opclass: Permission denied.
> psql:postgis.sql:761: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:768: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:775: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:782: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:789: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:796: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:803: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:810: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:817: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:819: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:827: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:833: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:839: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:845: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:851: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:857: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:863: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:866: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> psql:postgis.sql:867: NOTICE: current transaction is aborted, queries
> ignored until end of transaction block
> *ABORT STATE*
> COMMIT
> ----------------------------------------------------------------------
> testgis=# drop table gtest;
> DROP
> testgis=# create table gtest (ID int4, NAME varchar(20) );
> CREATE
> testgis=# SELECT AddGeometryColumn('testgis','gtest','geom',
> -1,'LINESTRING',2);
> ERROR: Function 'addgeometrycolumn(unknown, unknown, unknown, int4,
> unknown, int4)' does not exist
> Unable to identify a function that satisfies the given argument
> types
> You may need to add explicit typecasts
> testgis=#
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Tue Jan 15 11:05:46 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Tue, 15 Jan 2002 11:05:46 -0800
Subject: [postgis] Postgis and Arcinfo AML/Generate
Message-ID:
Hi guys,
Has anyone got an AML script they could share that takes postgis queries
and creates coverages from them. I assume it should be fairly simple for
some of you who are familiar with the generate command in Arcinfo.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Tue Jan 15 13:09:56 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Tue, 15 Jan 2002 13:09:56 -0800
Subject: [postgis] pgsql2shp
References: <3C447BDB.FD491497@fadq.qc.ca>
Message-ID: <3C449AA4.C2D3E6EC@refractions.net>
simon mercier wrote:
> But if I need to use the function GeometryFromText(), I need the <'>
> character, the getopt() function in pgsql2shp.c return error...
>
> pgsql2shp -s 'SELECT * FROM pclp_s WHERE the_geom &&
> GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372
> 46.836388)'::BOX3D,-1)' -f /tmp/pclp_s test pclp_s
> =
> bash: syntax error near unexpected token `GeometryFromText('BOX3D(-'
Try using the full quote (") instead of the single quote (') around
the sql:
pgsql2shp -s "SELECT * FROM pclp_s WHERE the_geom &&
GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372
46.836388)'::BOX3D,-1)" -f /tmp/pclp_s test pclp_s
If that doesnt work, then you could try to escape the innner quotes.
The 'bash' man page should have details on how to do this.
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From m.tondorf at online.de Tue Jan 15 00:39:47 2002
From: m.tondorf at online.de (mtondorf2002)
Date: Tue, 15 Jan 2002 08:39:47 -0000
Subject: [postgis] ERROR: geometry_columns: Permission denied
Message-ID:
I get this error every time I try to use SELECT AddGeometryTable.
- I am logged in to the system as "markus"
- psql -U postgres
CREATE USER markus WITH PASSWORD 'abc' CREATEDB;
- createdb markusgeom
- psql -U postgres -d markusgeom -f postgis.sql
- psql -d markusgeom -f radwege.sql
radwege.sql is created by the shapefile-coverter
select DropGeometryColumn('markusgeom','testdaten3','the_geom');
drop table testdaten3;
create table testdaten3 (gid int4 , ID int4, INDEX varchar,
RAD_NAM3 varchar, RAD_NAM2 varchar, RAD_NAM1 varchar,
KLASSE varchar, VERKEHR float8, STEIGUNG float8, BESCHREI varchar);
select AddGeometryColumn(
'markusgeom','testdaten3','the_geom','-1','MULTILINESTRING',2);
Wich permissions do I have to change? GRANT to ???
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From s8854617 at yahoo.com.tw Wed Jan 16 01:21:08 2002
From: s8854617 at yahoo.com.tw (s8854617)
Date: Wed, 16 Jan 2002 09:21:08 -0000
Subject: [postgis] How to use EXPRESSION string?
Message-ID:
Dear Sir:
When I try to use mapserver+postgis, there is a problem that
I can't resolve. my table is following:
post_map
aa48 char(4)
aa49 char(4)
shape geometry
aa08 char(1)
I want to draw my map like following:
(my map file)
..
DATA "shape from post_map"
STATUS DEFAULT
TYPE POLYGON
CLASS
EXPRESSION ([aa08] = 'F')
COLOR 0 255 255
OUTLINECOLOR 0 255 255
END
....
Is the "EXPRESSION ([aa08] = 'F') correct?
My mapserver can't handle this judgement, could anybody tell
me how to use EXPRESSION with string comparision?
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Wed Jan 16 08:33:09 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Wed, 16 Jan 2002 08:33:09 -0800
Subject: [postgis] Is a sample map file for the itasca demo available?
Message-ID:
I'm just getting around to trying out postgis, but I can't get anything to
draw.
I've reviewed the docs re: postgis, but wondered if anyone has a sample map
file to draw a layer from the itasca demo data.
I can do the shp2pgsql for a given layer no problem.
BTW - does mapserv return messages somewhere saying why a layer doesn't
draw (there's nothing in my error_log)?
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From simon.mercier at fadq.qc.ca Wed Jan 16 10:42:14 2002
From: simon.mercier at fadq.qc.ca (simon mercier)
Date: Wed, 16 Jan 2002 13:42:14 -0500
Subject: [postgis] pgsql2shp
References: <3C447BDB.FD491497@fadq.qc.ca> <3C449AA4.C2D3E6EC@refractions.net>
Message-ID: <3C45C986.A3B943C1@fadq.qc.ca>
tank's dave
the answer is: \' BETWEEN single quote...
>>pgsql2shp -s 'select * from pclp_s WHERE the_geom && Geome
tryFromText('\''BOX3D(-71.593372 46.788388,-71.545372
46.836388)'\''::BOX3D,-1)'
-f /tmp/pclp_s test test
Dave Blasby a ?crit :
> simon mercier wrote:
> > But if I need to use the function GeometryFromText(), I need the <'>
> > character, the getopt() function in pgsql2shp.c return error...
> >
> > pgsql2shp -s 'SELECT * FROM pclp_s WHERE the_geom &&
> > GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372
> > 46.836388)'::BOX3D,-1)' -f /tmp/pclp_s test pclp_s
> > =
> > bash: syntax error near unexpected token `GeometryFromText('BOX3D(-'
>
> Try using the full quote (") instead of the single quote (') around
> the sql:
>
> pgsql2shp -s "SELECT * FROM pclp_s WHERE the_geom &&
> GeometryFromText('BOX3D(-71.593372 46.788388,-71.545372
> 46.836388)'::BOX3D,-1)" -f /tmp/pclp_s test pclp_s
>
> If that doesnt work, then you could try to escape the innner quotes.
>
> The 'bash' man page should have details on how to do this.
>
> dave
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
Simon Mercier
Technicien en G?omatique
Direction des technologies de l'information
La Financi?re agricole du Qu?bec
5825, rue Saint-Georges
L?vis, Qu?bec,Canada G6V 4L2
http://www.financiereagricole.qc.ca/
Tel:(418)-838-5614 ext:6043
Fax:(418)-833-6145
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Wed Jan 16 19:18:25 2002
From: pramsey at refractions.net (pwramsey3)
Date: Thu, 17 Jan 2002 03:18:25 -0000
Subject: [postgis] Re: Is a sample map file for the itasca demo available?
In-Reply-To:
Message-ID:
--- In postgis at y..., "Tyler Mitchell" wrote:
> I'm just getting around to trying out postgis, but I can't get
anything to draw.
> I've reviewed the docs re: postgis, but wondered if anyone has a
sample map file to draw a layer from the itasca demo data.
> I can do the shp2pgsql for a given layer no problem.
> BTW - does mapserv return messages somewhere saying why a layer
doesn't draw (there's nothing in my error_log)?
Posting your map file will provide some clues to us...
P.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From raanders at tincan.org Thu Jan 17 18:07:14 2002
From: raanders at tincan.org (Roderick A. Anderson)
Date: Thu, 17 Jan 2002 18:07:14 -0800 (PST)
Subject: [postgis] postgis 0.7?
In-Reply-To: <3C3F1495.B33C6F88@refractions.net>
Message-ID:
On Fri, 11 Jan 2002, Paul Ramsey wrote:
> The major re-design is linked to the integration of JTS code into
> PostGIS. IE: we need a new db object structure (maybe) to most
> efficiently use an external library of C++ geometry operators, which JTS
> will be turned into. Since the JTS porting has not started yet, neither
> has the redesign.
In the mean time - I don't remember seeing anything on the list - does
0.6.2(?) or the CVS version work with PostgreSQL 7.2bX? I'm getting
ready to bring a test server online with 7.2 and would like to have
PostGIS installed at the same time.
Best,
Rod
--
Let Accuracy Triumph Over Victory
Zetetic Institute
"David's Sling"
Marc Stiegler
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From raanders at tincan.org Thu Jan 17 18:15:23 2002
From: raanders at tincan.org (Roderick A. Anderson)
Date: Thu, 17 Jan 2002 18:15:23 -0800 (PST)
Subject: [postgis] Demo using PostGIS ...
Message-ID:
I'm bringing a new PostgreSQL testbed server online in the next few
days. Since I can't seem to find the time to get good PostGIS data and
learn the fun parts of mapserver I'd like to offer access to the server
for the data for a demo using PostGIS and mapserver. I'll learn by
copying the work of great minds.
I'm thinking a readonly database and I may have to throttle it some
if it starts eating too much bandwidth.
This make sense and is there any interest with these caveats?
Cheers,
Rod
--
Let Accuracy Triumph Over Victory
Zetetic Institute
"David's Sling"
Marc Stiegler
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From bernhard at intevation.de Fri Jan 18 04:01:31 2002
From: bernhard at intevation.de (Bernhard Reiter)
Date: Fri, 18 Jan 2002 13:01:31 +0100
Subject: [postgis] postgis 0.7?
In-Reply-To:
References: <3C3F1495.B33C6F88@refractions.net>
Message-ID: <20020118120131.GJ4284@intevation.de>
On Thu, Jan 17, 2002 at 06:07:14PM -0800, Roderick A. Anderson wrote:
> In the mean time - I don't remember seeing anything on the list - does
> 0.6.2(?) or the CVS version work with PostgreSQL 7.2bX?
There is a recent (2001/12/17 ) news entry on the webpage
that says it does not.
--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
URL:
From steve.lime at dnr.state.mn.us Fri Jan 18 07:27:27 2002
From: steve.lime at dnr.state.mn.us (Steve Lime)
Date: Fri, 18 Jan 2002 09:27:27 -0600
Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
Message-ID:
It would be interesting to have a postGIS ready version of the
shapefiles used in
the itasca demo. Perhaps someone could prepare that? It could be
distributed,
along with a PostGIS version of the map file as part of the main demo.
I'd take
care of that part if the data were somehow available.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "Roderick A. Anderson" 01/17/02 08:15PM >>>
I'm bringing a new PostgreSQL testbed server online in the next few
days. Since I can't seem to find the time to get good PostGIS data
and
learn the fun parts of mapserver I'd like to offer access to the
server
for the data for a demo using PostGIS and mapserver. I'll learn by
copying the work of great minds.
I'm thinking a readonly database and I may have to throttle it some
if it starts eating too much bandwidth.
This make sense and is there any interest with these caveats?
Cheers,
Rod
--
Let Accuracy Triumph Over Victory
Zetetic
Institute
"David's
Sling"
Marc Stiegler
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Fri Jan 18 09:17:34 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Fri, 18 Jan 2002 09:17:34 -0800
Subject: [postgis] postgis 0.7?
References: <3C3F1495.B33C6F88@refractions.net> <20020118120131.GJ4284@intevation.de>
Message-ID: <3C4858AE.D8FDF2AD@refractions.net>
Bernhard Reiter wrote:
>
> On Thu, Jan 17, 2002 at 06:07:14PM -0800, Roderick A. Anderson wrote:
>
> > In the mean time - I don't remember seeing anything on the list - does
> > 0.6.2(?) or the CVS version work with PostgreSQL 7.2bX?
>
> There is a recent (2001/12/17 ) news entry on the webpage
> that says it does not.
Correct - the GiST indexing has undergone big changes in 7.2, so I
have to re-write it. Unfortunately, that means there will be a
code split: one for 7.1 and one for 7.2.
Hopefully this will be a minor problem - just #ifdef all the gist
code to choose the correct version to compile.
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 21 11:54:25 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 21 Jan 2002 11:54:25 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
Message-ID:
Okay, I've used shp2pgsql to put the ctybdpy2.shp into a table with the
same name. But I don't get any information on my map. I've compiled
postgresql and postgis from source and successfully compiled mapserver to
support it.
Here are my various settings - can you spy a problem?
BTW - the only thing I have in my error_log is: gd-png warning: alpha
channel not supported which I think is some other problem (I think it's
from my conversion of gif->png I did earlier).
-----------------------
Here's the layer in the map file (it's the first layer):
LAYER
CONNECTIONTYPE postgis
NAME "ctybdpy2"
CONNECTION "dbname=testgis"
DATA "the_geom from ctybdpy2"
TYPE POLYGON
STATUS ON
CLASS
EXPRESSION ([cty_name] = 'Itasca')
OUTLINECOLOR 128 128 128
COLOR 225 225 185
END
CLASS # every other county in the state
EXPRESSION /./
OUTLINECOLOR 128 128 128
COLOR 255 255 255
END
METADATA
WMS_TITLE "County Boundary"
WMS_ABSTRACT "Itasca County boundary shapefile. See
http://deli.dnr.state.mn
WMS_SRS "EPSG:26915"
END
END
-----------------------
Here are the various listings from pgsql. Is it a permissions problem? I
put in permissions for nobody, is that necessary?
testgis=# \dp
Access permissions for database "testgis"
Relation | Access permissions
------------------+-------------------------------------------
ctybdpy2 | {"=r","mitchtj=r","root=arwR","nobody=r"}
geometry_columns |
spatial_ref_sys |
(7 rows)
testgis=# \d ctybdpy2
Table "ctybdpy2"
Attribute | Type | Modifier
-----------+-------------------+----------
gid | integer |
area | double precision |
perimeter | double precision |
cty_name | character varying |
coun | integer |
cty_abbr | character varying |
island | character varying |
cty_fips | integer |
recno | integer |
the_geom | geometry |
Constraints: (srid(the_geom) = -1)
((geometrytype(the_geom) = 'MULTIPOLYGON'::text) OR (the_geom
ISNULL))
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Mon Jan 21 12:14:55 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Mon, 21 Jan 2002 12:14:55 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
References:
Message-ID: <3C4C76BF.2C277892@refractions.net>
Change your STATUS to DEFAULT and see if that helps.
P.
Tyler Mitchell wrote:
>
> Okay, I've used shp2pgsql to put the ctybdpy2.shp into a table with the
> same name. But I don't get any information on my map. I've compiled
> postgresql and postgis from source and successfully compiled mapserver to
> support it.
>
> Here are my various settings - can you spy a problem?
>
> BTW - the only thing I have in my error_log is: gd-png warning: alpha
> channel not supported which I think is some other problem (I think it's
> from my conversion of gif->png I did earlier).
> -----------------------
> Here's the layer in the map file (it's the first layer):
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "ctybdpy2"
> CONNECTION "dbname=testgis"
> DATA "the_geom from ctybdpy2"
> TYPE POLYGON
> STATUS ON
> CLASS
> EXPRESSION ([cty_name] = 'Itasca')
> OUTLINECOLOR 128 128 128
> COLOR 225 225 185
> END
> CLASS # every other county in the state
> EXPRESSION /./
> OUTLINECOLOR 128 128 128
> COLOR 255 255 255
> END
> METADATA
> WMS_TITLE "County Boundary"
> WMS_ABSTRACT "Itasca County boundary shapefile. See
> http://deli.dnr.state.mn
> WMS_SRS "EPSG:26915"
> END
> END
> -----------------------
> Here are the various listings from pgsql. Is it a permissions problem? I
> put in permissions for nobody, is that necessary?
>
> testgis=# \dp
> Access permissions for database "testgis"
> Relation | Access permissions
> ------------------+-------------------------------------------
> ctybdpy2 | {"=r","mitchtj=r","root=arwR","nobody=r"}
> geometry_columns |
> spatial_ref_sys |
> (7 rows)
>
> testgis=# \d ctybdpy2
> Table "ctybdpy2"
> Attribute | Type | Modifier
> -----------+-------------------+----------
> gid | integer |
> area | double precision |
> perimeter | double precision |
> cty_name | character varying |
> coun | integer |
> cty_abbr | character varying |
> island | character varying |
> cty_fips | integer |
> recno | integer |
> the_geom | geometry |
> Constraints: (srid(the_geom) = -1)
> ((geometrytype(the_geom) = 'MULTIPOLYGON'::text) OR (the_geom
> ISNULL))
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 21 13:25:45 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 21 Jan 2002 13:25:45 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
Message-ID:
No change. I get all the other shapefile layers showing just fine, but
none from this file.
All I've done was run the shp2pgsql, load the sql that it generated, then
"grant select on ctybdpy to public".
Then made my changes in the map file according to the online postgis docs.
Is there any projection stuff I need to do?
Has anyone else went through this process, or have a database table that I
could load to try this with. I'm not convinced I loaded postgis right -
but I did it by the book and didn't get any errors. Anything I should
check?
Paul Ramsey
cc:
Fax to:
01/21/2002 Subject: Re: [postgis] Viewing mapserver itasca demo layer using
12:14 PM postgis
Please respond
to postgis
Change your STATUS to DEFAULT and see if that helps.
P.
Tyler Mitchell wrote:
>
> Okay, I've used shp2pgsql to put the ctybdpy2.shp into a table with the
> same name. But I don't get any information on my map. I've compiled
> postgresql and postgis from source and successfully compiled mapserver to
> support it.
>
> Here are my various settings - can you spy a problem?
>
> BTW - the only thing I have in my error_log is: gd-png warning: alpha
> channel not supported which I think is some other problem (I think it's
> from my conversion of gif->png I did earlier).
> -----------------------
> Here's the layer in the map file (it's the first layer):
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "ctybdpy2"
> CONNECTION "dbname=testgis"
> DATA "the_geom from ctybdpy2"
> TYPE POLYGON
> STATUS ON
> CLASS
> EXPRESSION ([cty_name] = 'Itasca')
> OUTLINECOLOR 128 128 128
> COLOR 225 225 185
> END
> CLASS # every other county in the state
> EXPRESSION /./
> OUTLINECOLOR 128 128 128
> COLOR 255 255 255
> END
> METADATA
> WMS_TITLE "County Boundary"
> WMS_ABSTRACT "Itasca County boundary shapefile. See
> http://deli.dnr.state.mn
> WMS_SRS "EPSG:26915"
> END
> END
> -----------------------
> Here are the various listings from pgsql. Is it a permissions problem?
I
> put in permissions for nobody, is that necessary?
>
> testgis=# \dp
> Access permissions for database "testgis"
> Relation | Access permissions
> ------------------+-------------------------------------------
> ctybdpy2 | {"=r","mitchtj=r","root=arwR","nobody=r"}
> geometry_columns |
> spatial_ref_sys |
> (7 rows)
>
> testgis=# \d ctybdpy2
> Table "ctybdpy2"
> Attribute | Type | Modifier
> -----------+-------------------+----------
> gid | integer |
> area | double precision |
> perimeter | double precision |
> cty_name | character varying |
> coun | integer |
> cty_abbr | character varying |
> island | character varying |
> cty_fips | integer |
> recno | integer |
> the_geom | geometry |
> Constraints: (srid(the_geom) = -1)
> ((geometrytype(the_geom) = 'MULTIPOLYGON'::text) OR
(the_geom
> ISNULL))
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Mon Jan 21 13:44:53 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Mon, 21 Jan 2002 13:44:53 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
References:
Message-ID: <3C4C8BD5.F1D9F23E@refractions.net>
Tyler Mitchell wrote:
>
> No change. I get all the other shapefile layers showing just fine, but
> none from this file.
> All I've done was run the shp2pgsql, load the sql that it generated, then
> "grant select on ctybdpy to public".
> Then made my changes in the map file according to the online postgis docs.
> Is there any projection stuff I need to do?
> Has anyone else went through this process, or have a database table that I
> could load to try this with. I'm not convinced I loaded postgis right -
> but I did it by the book and didn't get any errors. Anything I should
> check?
Perhaps you should try to use it as the postgresql superuser to ensure
that
this isnt a permission problem.
On the other hand, it should be giving you an error if there's a problem
like that.
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From dblasby at refractions.net Mon Jan 21 13:53:00 2002
From: dblasby at refractions.net (Dave Blasby)
Date: Mon, 21 Jan 2002 13:53:00 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
References:
Message-ID: <3C4C8DBC.58C69170@refractions.net>
Try a "select * from geometry_columns;" to make sure the geometry column
is properly referenced.
You should see your table/column referenced in the result.
dave
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 21 14:15:31 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 21 Jan 2002 14:15:31 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
Message-ID:
I think I figured it out! I did not enter in a user value for the
connection information! I had assumed that it would try to use "nobody" at
run-time. Now I'm getting somewhere! Thanks guys.
But now I'm working on expressions. What's wrong with this:
EXPRESSION ([cty_name] = 'Itasca')
It doesn't draw anything. When I comment it out the features draw, but I
can't figure out if the syntax is wrong here or not. I get a bit confused
with the FILTER and EXPRESSION syntax differences - is that an issue here?
Dave Blasby
cc:
Fax to:
01/21/2002 Subject: Re: [postgis] Viewing mapserver itasca demo layer using
01:44 PM postgis
Please respond
to postgis
Tyler Mitchell wrote:
>
> No change. I get all the other shapefile layers showing just fine, but
> none from this file.
> All I've done was run the shp2pgsql, load the sql that it generated, then
> "grant select on ctybdpy to public".
> Then made my changes in the map file according to the online postgis
docs.
> Is there any projection stuff I need to do?
> Has anyone else went through this process, or have a database table that
I
> could load to try this with. I'm not convinced I loaded postgis right -
> but I did it by the book and didn't get any errors. Anything I should
> check?
Perhaps you should try to use it as the postgresql superuser to ensure
that
this isnt a permission problem.
On the other hand, it should be giving you an error if there's a problem
like that.
dave
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Mon Jan 21 14:20:02 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Mon, 21 Jan 2002 14:20:02 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
References:
Message-ID: <3C4C9412.A744AA7D@refractions.net>
The 'FILTER' is applied to the actual database by appending it to the
SQL statement. So the 'FILTER' must be a valid chuck of SQL logic. The
'EXPRESSION' is applied by mapserver once the dataset is already
retrieved, so it follows mapserver expression rules, as given in the
mapserver doco. For your example, you are doing a string comparison. The
mapserver doco seems to indicate (and do not hate me for telling you
this, yes, it is really obscure) that ('[cty_name]' eq 'Itasca') will
work.
Paul
Tyler Mitchell wrote:
>
> No change. I get all the other shapefile layers showing just fine, but
> none from this file.
> All I've done was run the shp2pgsql, load the sql that it generated, then
> "grant select on ctybdpy to public".
> Then made my changes in the map file according to the online postgis docs.
> Is there any projection stuff I need to do?
> Has anyone else went through this process, or have a database table that I
> could load to try this with. I'm not convinced I loaded postgis right -
> but I did it by the book and didn't get any errors. Anything I should
> check?
>
>
> Paul Ramsey
> tions.net> cc:
> Fax to:
> 01/21/2002 Subject: Re: [postgis] Viewing mapserver itasca demo layer using
> 12:14 PM postgis
> Please respond
> to postgis
>
>
>
> Change your STATUS to DEFAULT and see if that helps.
> P.
>
> Tyler Mitchell wrote:
> >
> > Okay, I've used shp2pgsql to put the ctybdpy2.shp into a table with the
> > same name. But I don't get any information on my map. I've compiled
> > postgresql and postgis from source and successfully compiled mapserver to
> > support it.
> >
> > Here are my various settings - can you spy a problem?
> >
> > BTW - the only thing I have in my error_log is: gd-png warning: alpha
> > channel not supported which I think is some other problem (I think it's
> > from my conversion of gif->png I did earlier).
> > -----------------------
> > Here's the layer in the map file (it's the first layer):
> >
> > LAYER
> > CONNECTIONTYPE postgis
> > NAME "ctybdpy2"
> > CONNECTION "dbname=testgis"
> > DATA "the_geom from ctybdpy2"
> > TYPE POLYGON
> > STATUS ON
> > CLASS
> > EXPRESSION ([cty_name] = 'Itasca')
> > OUTLINECOLOR 128 128 128
> > COLOR 225 225 185
> > END
> > CLASS # every other county in the state
> > EXPRESSION /./
> > OUTLINECOLOR 128 128 128
> > COLOR 255 255 255
> > END
> > METADATA
> > WMS_TITLE "County Boundary"
> > WMS_ABSTRACT "Itasca County boundary shapefile. See
> > http://deli.dnr.state.mn
> > WMS_SRS "EPSG:26915"
> > END
> > END
> > -----------------------
> > Here are the various listings from pgsql. Is it a permissions problem?
> I
> > put in permissions for nobody, is that necessary?
> >
> > testgis=# \dp
> > Access permissions for database "testgis"
> > Relation | Access permissions
> > ------------------+-------------------------------------------
> > ctybdpy2 | {"=r","mitchtj=r","root=arwR","nobody=r"}
> > geometry_columns |
> > spatial_ref_sys |
> > (7 rows)
> >
> > testgis=# \d ctybdpy2
> > Table "ctybdpy2"
> > Attribute | Type | Modifier
> > -----------+-------------------+----------
> > gid | integer |
> > area | double precision |
> > perimeter | double precision |
> > cty_name | character varying |
> > coun | integer |
> > cty_abbr | character varying |
> > island | character varying |
> > cty_fips | integer |
> > recno | integer |
> > the_geom | geometry |
> > Constraints: (srid(the_geom) = -1)
> > ((geometrytype(the_geom) = 'MULTIPOLYGON'::text) OR
> (the_geom
> > ISNULL))
> >
> >
> > To unsubscribe from this group, send an email to:
> > postgis-unsubscribe at yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
> --
> __
> /
> | Paul Ramsey
> | Refractions Research
> | Email: pramsey at refractions.net
> | Phone: (250) 885-0632
> \_
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 21 15:18:50 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 21 Jan 2002 15:18:50 -0800
Subject: [postgis] Viewing mapserver itasca demo layer using postgis
Message-ID:
Good explanation thank you.
The final syntax you gave me for the expression statement worked perfectly!
You should update: http://postgis.refractions.net/docs/x324.html#AEN357
since it doesn't include the single quotes around the field name. That's
what prevented me from getting it to work.
Paul Ramsey
cc:
Fax to:
01/21/2002 Subject: Re: [postgis] Viewing mapserver itasca demo layer using
02:20 PM postgis
Please respond
to postgis
The 'FILTER' is applied to the actual database by appending it to the
SQL statement. So the 'FILTER' must be a valid chuck of SQL logic. The
'EXPRESSION' is applied by mapserver once the dataset is already
retrieved, so it follows mapserver expression rules, as given in the
mapserver doco. For your example, you are doing a string comparison. The
mapserver doco seems to indicate (and do not hate me for telling you
this, yes, it is really obscure) that ('[cty_name]' eq 'Itasca') will
work.
Paul
Tyler Mitchell wrote:
>
> No change. I get all the other shapefile layers showing just fine, but
> none from this file.
> All I've done was run the shp2pgsql, load the sql that it generated, then
> "grant select on ctybdpy to public".
> Then made my changes in the map file according to the online postgis
docs.
> Is there any projection stuff I need to do?
> Has anyone else went through this process, or have a database table that
I
> could load to try this with. I'm not convinced I loaded postgis right -
> but I did it by the book and didn't get any errors. Anything I should
> check?
>
>
> Paul Ramsey
> tions.net> cc:
> Fax to:
> 01/21/2002 Subject: Re: [postgis]
Viewing mapserver itasca demo layer using
> 12:14 PM postgis
> Please respond
> to postgis
>
>
>
> Change your STATUS to DEFAULT and see if that helps.
> P.
>
> Tyler Mitchell wrote:
> >
> > Okay, I've used shp2pgsql to put the ctybdpy2.shp into a table with the
> > same name. But I don't get any information on my map. I've compiled
> > postgresql and postgis from source and successfully compiled mapserver
to
> > support it.
> >
> > Here are my various settings - can you spy a problem?
> >
> > BTW - the only thing I have in my error_log is: gd-png warning: alpha
> > channel not supported which I think is some other problem (I think it's
> > from my conversion of gif->png I did earlier).
> > -----------------------
> > Here's the layer in the map file (it's the first layer):
> >
> > LAYER
> > CONNECTIONTYPE postgis
> > NAME "ctybdpy2"
> > CONNECTION "dbname=testgis"
> > DATA "the_geom from ctybdpy2"
> > TYPE POLYGON
> > STATUS ON
> > CLASS
> > EXPRESSION ([cty_name] = 'Itasca')
> > OUTLINECOLOR 128 128 128
> > COLOR 225 225 185
> > END
> > CLASS # every other county in the state
> > EXPRESSION /./
> > OUTLINECOLOR 128 128 128
> > COLOR 255 255 255
> > END
> > METADATA
> > WMS_TITLE "County Boundary"
> > WMS_ABSTRACT "Itasca County boundary shapefile. See
> > http://deli.dnr.state.mn
> > WMS_SRS "EPSG:26915"
> > END
> > END
> > -----------------------
> > Here are the various listings from pgsql. Is it a permissions problem?
> I
> > put in permissions for nobody, is that necessary?
> >
> > testgis=# \dp
> > Access permissions for database "testgis"
> > Relation | Access permissions
> > ------------------+-------------------------------------------
> > ctybdpy2 | {"=r","mitchtj=r","root=arwR","nobody=r"}
> > geometry_columns |
> > spatial_ref_sys |
> > (7 rows)
> >
> > testgis=# \d ctybdpy2
> > Table "ctybdpy2"
> > Attribute | Type | Modifier
> > -----------+-------------------+----------
> > gid | integer |
> > area | double precision |
> > perimeter | double precision |
> > cty_name | character varying |
> > coun | integer |
> > cty_abbr | character varying |
> > island | character varying |
> > cty_fips | integer |
> > recno | integer |
> > the_geom | geometry |
> > Constraints: (srid(the_geom) = -1)
> > ((geometrytype(the_geom) = 'MULTIPOLYGON'::text) OR
> (the_geom
> > ISNULL))
> >
> >
> > To unsubscribe from this group, send an email to:
> > postgis-unsubscribe at yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
> --
> __
> /
> | Paul Ramsey
> | Refractions Research
> | Email: pramsey at refractions.net
> | Phone: (250) 885-0632
> \_
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Mon Jan 21 17:06:35 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Mon, 21 Jan 2002 17:06:35 -0800
Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
Message-ID:
I've imported all the shapefiles into a postgis database called "itasca"
(imagine that :).
I'm new to postgresql, but have managed to dump out this database into some
sort of file.
Can someone please comment on the best way to dump this database, so that
others could import the demo data quickly and easily?
I'll make a tar.gz and forward it to you Steve, along with a new demo.map,
but need some help on the syntax of the pg_dump command.
Here's what I did - will it suffice?
pg_dump -C --file=itasca_dump.sql.tar --format t -a --superuser=postgres
itasca
and here are the files it produced:
16.dat 19.dat 22.dat 25.dat 28.dat 31.dat
17.dat 20.dat 23.dat 26.dat 29.dat restore.sql
18.dat 21.dat 24.dat 27.dat 30.dat toc.dat
"Steve Lime"
, ,
ate.mn.us>
cc:
01/18/2002 07:27 Fax to:
AM Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
Please respond to
postgis
It would be interesting to have a postGIS ready version of the
shapefiles used in
the itasca demo. Perhaps someone could prepare that? It could be
distributed,
along with a PostGIS version of the map file as part of the main demo.
I'd take
care of that part if the data were somehow available.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "Roderick A. Anderson" 01/17/02 08:15PM >>>
I'm bringing a new PostgreSQL testbed server online in the next few
days. Since I can't seem to find the time to get good PostGIS data
and
learn the fun parts of mapserver I'd like to offer access to the
server
for the data for a demo using PostGIS and mapserver. I'll learn by
copying the work of great minds.
I'm thinking a readonly database and I may have to throttle it some
if it starts eating too much bandwidth.
This make sense and is there any interest with these caveats?
Cheers,
Rod
--
Let Accuracy Triumph Over Victory
Zetetic
Institute
"David's
Sling"
Marc Stiegler
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Tue Jan 22 09:09:20 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Tue, 22 Jan 2002 09:09:20 -0800
Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
References:
Message-ID: <3C4D9CC0.8D98CE4E@refractions.net>
Tyler Mitchell wrote:
>
> I've imported all the shapefiles into a postgis database called "itasca"
> (imagine that :).
> I'm new to postgresql, but have managed to dump out this database into some
> sort of file.
> Can someone please comment on the best way to dump this database, so that
> others could import the demo data quickly and easily?
pg_dump --inserts -C -t itasca itasca > itasca.sql
then edit the sql file so that (a) the table creation is done by first
creating the attribute table then running AddGeometryColumn and (b)
wrapping the inserts with BEGIN and END transaction blocks. You might
also want to ensure that the geometries have an explicit SRID and that
an appropriate row exists in SPATIAL_REF_SYS. IE, make it so that
loading the dump will result in a perfect PostGIS db, requiring no
fiddling at all.
> I'll make a tar.gz and forward it to you Steve, along with a new demo.map,
> but need some help on the syntax of the pg_dump command.
> Here's what I did - will it suffice?
>
> pg_dump -C --file=itasca_dump.sql.tar --format t -a --superuser=postgres
> itasca
>
> and here are the files it produced:
>
> 16.dat 19.dat 22.dat 25.dat 28.dat 31.dat
> 17.dat 20.dat 23.dat 26.dat 29.dat restore.sql
> 18.dat 21.dat 24.dat 27.dat 30.dat toc.dat
>
>
> "Steve Lime"
> , ,
> ate.mn.us>
> cc:
> 01/18/2002 07:27 Fax to:
> AM Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
> Please respond to
> postgis
>
>
>
> It would be interesting to have a postGIS ready version of the
> shapefiles used in
> the itasca demo. Perhaps someone could prepare that? It could be
> distributed,
> along with a PostGIS version of the map file as part of the main demo.
> I'd take
> care of that part if the data were somehow available.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> "Roderick A. Anderson" 01/17/02 08:15PM >>>
> I'm bringing a new PostgreSQL testbed server online in the next few
> days. Since I can't seem to find the time to get good PostGIS data
> and
> learn the fun parts of mapserver I'd like to offer access to the
> server
> for the data for a demo using PostGIS and mapserver. I'll learn by
> copying the work of great minds.
>
> I'm thinking a readonly database and I may have to throttle it some
> if it starts eating too much bandwidth.
>
> This make sense and is there any interest with these caveats?
>
> Cheers,
> Rod
> --
> Let Accuracy Triumph Over Victory
>
> Zetetic
> Institute
> "David's
> Sling"
> Marc Stiegler
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Tue Jan 22 09:29:53 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Tue, 22 Jan 2002 09:29:53 -0800
Subject: [postgis] Re: [mapserver-users] Demo using PostGIS ...
Message-ID:
>pg_dump --inserts -C -t itasca itasca > itasca.sql
This will only dump an individual table right? Is that what you recommend?
I would like to dump the whole user. Would that make it so that I could by
pass your other setup steps?
>then edit the sql file so that (a) the table creation is done by first
>creating the attribute table then running AddGeometryColumn and (b)
>wrapping the inserts with BEGIN and END transaction blocks. You might
>also want to ensure that the geometries have an explicit SRID and that
>an appropriate row exists in SPATIAL_REF_SYS. IE, make it so that
>loading the dump will result in a perfect PostGIS db, requiring no
>fiddling at all.
Tyler
Paul Ramsey
cc:
Fax to:
01/22/2002 Subject: Re: [postgis] Re: [mapserver-users] Demo using PostGIS ...
09:09 AM
Please respond
to postgis
pg_dump --inserts -C -t itasca itasca > itasca.sql
then edit the sql file so that (a) the table creation is done by first
creating the attribute table then running AddGeometryColumn and (b)
wrapping the inserts with BEGIN and END transaction blocks. You might
also want to ensure that the geometries have an explicit SRID and that
an appropriate row exists in SPATIAL_REF_SYS. IE, make it so that
loading the dump will result in a perfect PostGIS db, requiring no
fiddling at all.
> I'll make a tar.gz and forward it to you Steve, along with a new
demo.map,
> but need some help on the syntax of the pg_dump command.
> Here's what I did - will it suffice?
>
> pg_dump -C --file=itasca_dump.sql.tar --format t -a --superuser=postgres
> itasca
>
> and here are the files it produced:
>
> 16.dat 19.dat 22.dat 25.dat 28.dat 31.dat
> 17.dat 20.dat 23.dat 26.dat 29.dat restore.sql
> 18.dat 21.dat 24.dat 27.dat 30.dat toc.dat
>
>
> "Steve Lime"
> , ,
> ate.mn.us>
> cc:
> 01/18/2002 07:27 Fax to:
> AM Subject: [postgis] Re:
[mapserver-users] Demo using PostGIS ...
> Please respond to
> postgis
>
>
>
> It would be interesting to have a postGIS ready version of the
> shapefiles used in
> the itasca demo. Perhaps someone could prepare that? It could be
> distributed,
> along with a PostGIS version of the map file as part of the main demo.
> I'd take
> care of that part if the data were somehow available.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> "Roderick A. Anderson" 01/17/02 08:15PM >>>
> I'm bringing a new PostgreSQL testbed server online in the next few
> days. Since I can't seem to find the time to get good PostGIS data
> and
> learn the fun parts of mapserver I'd like to offer access to the
> server
> for the data for a demo using PostGIS and mapserver. I'll learn by
> copying the work of great minds.
>
> I'm thinking a readonly database and I may have to throttle it some
> if it starts eating too much bandwidth.
>
> This make sense and is there any interest with these caveats?
>
> Cheers,
> Rod
> --
> Let Accuracy Triumph Over Victory
>
> Zetetic
> Institute
> "David's
> Sling"
> Marc Stiegler
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/WoOlbB/7.PDAA/ySSFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From mjfan823 at yahoo.com Wed Jan 23 02:02:12 2002
From: mjfan823 at yahoo.com (mjfan823)
Date: Wed, 23 Jan 2002 10:02:12 -0000
Subject: [postgis] Re: Installation on Windows 2000 using Cygwin
In-Reply-To:
Message-ID:
Im also trying to install PostGreSql on Windows 2000 using Cygwin,
but I had a different problem, I followed the follwing steps
described by Mr. Kevin Lo:
1. Download PostgreSQL 7.1.2 sourcecode in /usr/src.
2. tar zxvf postgresql-7.1.2.tar.gz
3. mkdir -p /usr/local/pgsql/{bin,include,lib,data}
4. cd /usr/src/postgresql-7.1.2, then run './configure'
5. make; make install
6. cp/usr/local/pgsql/lib/pq.dll /usr/local/pgsql/bin
7. Usingany editor to create .bashrc in / directory as belows:
PATH=$PATH:/usr/local/pgsql/bin:/usr/local/bin
PGDATA=/usr/local/pgsql/data
PGLIB=/usr/local/pgsql/lib
LD_LIBRARY_PATH=/usr/local/pgsql/lib:/usr/local/lib
export LD_LIBRARY_PATH PATH PGDATA PGLIB
8. source /.bashrc, then run ``ipc-daemon &''
9. initdb
Note that the owner of the DB system have to be different from
root/administrator
10. Editthe file /usr/local/pgsql/data/pg_hba.conf, such as:
host all 211.21.80.132 255.255.255.0 trust
11. postmaster-i&
12. Run 'psql -h host_name template1'. It's easy, huh :-)
I had some problems during running the make file:
/usr/lib/gcc -lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-
cygwin/bin/ld:cannot find -lcrypt
collect2: ld returned 1 exit status
make[2]: *** [postgres] Error 1
make[2]: Leaving directory '/usr/src/postgresql-7.1.3/src/backend'
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/src/postgresql-7.1.3/src'
make: *** [install] Error 2
Could anyone show me what I'm missing, I read a reply in one of the
forums saying that he was able to install the postgresql properly by
following the said instructions to the letter. Thanks in advance!
Raymond
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From simon.mercier at fadq.qc.ca Wed Jan 23 11:59:11 2002
From: simon.mercier at fadq.qc.ca (simon mercier)
Date: Wed, 23 Jan 2002 14:59:11 -0500
Subject: [postgis] polygon intersection function
Message-ID: <3C4F160F.E3970DA7@fadq.qc.ca>
hi
I need a function that give area from intersection of polygon geometry
in Postgres. From previous comment of Dave B., we see that polygon
overlay function is style in the TODO list... :( Is there someone
already work on this type of function? I find in mapserver list
archive(from Stephen Lime) a C library to do this function.
http://www.cs.man.ac.uk/aig/staff/alan/software/gpc.html
Is there other library to do this or anything else to help me?
--
Simon Mercier
Direction des technologies de l'information
La Financi?re agricole du Qu?bec
5825, rue Saint-Georges
L?vis, Qu?bec,Canada G6V 4L2
http://www.financiereagricole.qc.ca/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/kWSNbC/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From acuster at nature.berkeley.edu Wed Jan 23 12:11:09 2002
From: acuster at nature.berkeley.edu (Adrian Custer)
Date: 23 Jan 2002 12:11:09 -0800
Subject: [postgis] polygon intersection function
In-Reply-To: <3C4F160F.E3970DA7@fadq.qc.ca>
References: <3C4F160F.E3970DA7@fadq.qc.ca>
Message-ID: <1011816669.13646.6.camel@tsetse.lab-net>
Wohoo Computational Geometry,
So the Java Topology Suite is one cannonical Free Software source of
information:
http://www.vividsolutions.com/jts/jtshome.htm
Apparently the PostGIS team is going to port this as it's in Java. Last
I understood it was going to be ported to C++ (but I've been ignoring
this list as much as I could stand to while Gnumeric was on the way to
1.0).
For other information search the FreeGIS web site:
http://www.freegis.org/
good luck,
adrian
acuster at nature.berkeley.educational (you know what to drop)
On Wed, 2002-01-23 at 11:59, simon mercier wrote:
> hi
>
> I need a function that give area from intersection of polygon geometry
> in Postgres. From previous comment of Dave B., we see that polygon
> overlay function is style in the TODO list... :( Is there someone
> already work on this type of function? I find in mapserver list
> archive(from Stephen Lime) a C library to do this function.
>
> http://www.cs.man.ac.uk/aig/staff/alan/software/gpc.html
>
> Is there other library to do this or anything else to help me?
>
> --
> Simon Mercier
> Direction des technologies de l'information
> La Financi?re agricole du Qu?bec
> 5825, rue Saint-Georges
> L?vis, Qu?bec,Canada G6V 4L2
> http://www.financiereagricole.qc.ca/
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/lWSNbC/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Wed Jan 23 13:54:48 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Wed, 23 Jan 2002 13:54:48 -0800
Subject: [postgis] polygon intersection function
References: <3C4F160F.E3970DA7@fadq.qc.ca>
Message-ID: <3C4F3128.FAC897C0@refractions.net>
Hi Simon,
GPC looks nice, but we have not bothered to evaluate it since it is not
GPL compatible (free for non-commercial). As long as the terms are
acceptable for your project, you should go for it.
We are not currently in active development on this, although it is
certainly a feature which is slated for addition to PostGIS.
Paul
simon mercier wrote:
>
> hi
>
> I need a function that give area from intersection of polygon geometry
> in Postgres. From previous comment of Dave B., we see that polygon
> overlay function is style in the TODO list... :( Is there someone
> already work on this type of function? I find in mapserver list
> archive(from Stephen Lime) a C library to do this function.
>
> http://www.cs.man.ac.uk/aig/staff/alan/software/gpc.html
>
> Is there other library to do this or anything else to help me?
>
> --
> Simon Mercier
> Direction des technologies de l'information
> La Financi?re agricole du Qu?bec
> 5825, rue Saint-Georges
> L?vis, Qu?bec,Canada G6V 4L2
> http://www.financiereagricole.qc.ca/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From bsilv at inwind.it Thu Jan 24 00:34:01 2002
From: bsilv at inwind.it (Silvio)
Date: Thu, 24 Jan 2002 09:34:01 +0100
Subject: [postgis] Bellissime
Message-ID: <002901c1a4b1$e04f3ae0$0501a8c0@comai04>
>
> > > Una mortadella guarda dritto negli occhi un coltello e gli chiede:
> > > "Ma tu nei miei confronti cosa provi?"
> > > Il coltello risponde:
> > > "Affetto..."
> > >
> > > "Vorrei una camicia."
> > > "La taglia ?"
> > > "No, la porto via intera." ;-)
> > >
> > >
> > > Il marinaio spiego' le vele al vento, ma il vento non le capi'.
> > >
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/oCuuSA/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From torodedutoesdraiato at yahoo.it Thu Jan 24 01:06:10 2002
From: torodedutoesdraiato at yahoo.it (Silvio)
Date: Thu, 24 Jan 2002 10:06:10 +0100
Subject: [postgis] Sorry for previous email
Message-ID: <000801c1a4b6$5e2068f0$0501a8c0@comai04>
Sorry for previous e-mail, I have mistake the destination address in the previous email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bernhard at intevation.de Thu Jan 24 03:59:56 2002
From: bernhard at intevation.de (Bernhard Reiter)
Date: Thu, 24 Jan 2002 12:59:56 +0100
Subject: [postgis] polygon intersection function
In-Reply-To: <3C4F3128.FAC897C0@refractions.net>
References: <3C4F160F.E3970DA7@fadq.qc.ca> <3C4F3128.FAC897C0@refractions.net>
Message-ID: <20020124115956.GC9566@intevation.de>
On Wed, Jan 23, 2002 at 01:54:48PM -0800, Paul Ramsey wrote:
> GPC looks nice, but we have not bothered to evaluate it since it is not
> GPL compatible (free for non-commercial).
To make the complete statement:
It does not even fullfill the criteria for being Free Software.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
URL:
From coyotesinger at yahoo.com Fri Jan 25 11:46:25 2002
From: coyotesinger at yahoo.com (coyotesinger)
Date: Fri, 25 Jan 2002 19:46:25 -0000
Subject: [postgis] TIGR import tool?
Message-ID:
Before I spend too much time on this, has anyone written a TIGR import
tool? The data is a bit dated, but it's free (as in beer) coverage of
the entire continental US.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From coyotesinger at yahoo.com Fri Jan 25 11:34:20 2002
From: coyotesinger at yahoo.com (coyotesinger)
Date: Fri, 25 Jan 2002 19:34:20 -0000
Subject: [postgis] Re: anyone tried packaging for debian?
In-Reply-To: <3C2C2FEE.9090403@uow.edu.au>
Message-ID:
The standard way of doing this, given the nature of the patch, is for
the Debian maintainer for PostgreSQL to modify his build process to
build PostGIS as well, then package it separately.
Unfortunately the current release is frozen so if the maintainer
hasn't already done this it can't be done until the next release.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/kWSNbC/XdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Fri Jan 25 14:57:20 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Fri, 25 Jan 2002 14:57:20 -0800
Subject: [postgis] TIGR import tool?
References:
Message-ID: <3C51E2D0.E5CDCEF5@refractions.net>
Nope. But if you can go TGIR->Shape you can load from there using the
conventional shape loader.
coyotesinger wrote:
>
> Before I spend too much time on this, has anyone written a TIGR import
> tool? The data is a bit dated, but it's free (as in beer) coverage of
> the entire continental US.
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/vCuuSA/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From root at offsite.refractions.net Fri Jan 25 15:00:09 2002
From: root at offsite.refractions.net (root)
Date: Fri, 25 Jan 2002 15:00:09 -0800 (PST)
Subject: Cron /home/postgis/update_cvs
Message-ID: <20020125230009.8DA374346A@offsite.refractions.net>
jade:/home/postgis/cvs/postgis-cvs/doc/postgis.xml:122:15:E: end tag for "PARA" omitted, but OMITTAG NO was specified
jade:/home/postgis/cvs/postgis-cvs/doc/postgis.xml:113:12: start tag was here
From warmerdam at pobox.com Fri Jan 25 13:36:56 2002
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Fri, 25 Jan 2002 16:36:56 -0500
Subject: [postgis] TIGR import tool?
References:
Message-ID: <3C51CFF8.8090500@pobox.com>
coyotesinger wrote:
> Before I spend too much time on this, has anyone written a TIGR import
> tool? The data is a bit dated, but it's free (as in beer) coverage of
> the entire continental US.
Coyote Singer,
The ogr2ogr utility from the GDAL/OGR distribution can be used to load
tiger line data into PostGIS. Note that it doesn't currently reconstruct
the polygons. More information at:
http://gdal.velocet.ca/projects/opengis
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From lczub at t-online.de Sun Jan 27 14:44:55 2002
From: lczub at t-online.de (lczub)
Date: Sun, 27 Jan 2002 23:44:55 +0100
Subject: [postgis] ERROR: geometry_columns: Permission denied
References:
Message-ID: <3C5482E7.8E0EAC91@t-online.de>
Moin Markus,
I played a little bit with GRANT. To create a new table with geometry fields,
the user needs INSERT-Access to the table geomtry_columns.
You find in the attachment a sql-script, which creates three groups with default
user and an insert-rule on geomtry_columns, which automaticly add the new table
to this groups.
Group pgis_admins should be used to create new table with geometry fields
Group pgis_users could insert / manipulate data in tables with geometry fields
Group pgis_webusers could evaluate such tables like webusers
(could be used for connect-specifications in configuration-file of
mapserver (demo.map))
Names of the default user are: pgis_admin, pgis_user, mapserv
After calling
' psql -f postgis_groups.sql markusgeom postgres '
you could install your new table calling
' psql -f radweg.sql markusgeom pgis_admin'
See please also the comment lines in the top of postgis_groups.sql and (sorry)
be careful, cause these are my first steps in sql. Hope it functions. My own
tests were successful.
PS: pgis_admin could not use DropGeometryColumn(), case this function works an
pg_attribute, so system rights are needed.
>
> I get this error every time I try to use SELECT AddGeometryTable.
>
> - I am logged in to the system as "markus"
> - psql -U postgres
> CREATE USER markus WITH PASSWORD 'abc' CREATEDB;
> - createdb markusgeom
> - psql -U postgres -d markusgeom -f postgis.sql
> - psql -d markusgeom -f radwege.sql
> radwege.sql is created by the shapefile-coverter
> select DropGeometryColumn('markusgeom','testdaten3','the_geom');
> drop table testdaten3;
> create table testdaten3 (gid int4 , ID int4, INDEX varchar,
> RAD_NAM3 varchar, RAD_NAM2 varchar, RAD_NAM1 varchar,
> KLASSE varchar, VERKEHR float8, STEIGUNG float8, BESCHREI varchar);
> select AddGeometryColumn(
> 'markusgeom','testdaten3','the_geom','-1','MULTILINESTRING',2);
>
> Wich permissions do I have to change? GRANT to ???
>
--
Gru? Luiko Czub
______________________________________________________
Luiko Czub
St?rtzelstra?e 1 Tel.: ++49-761/8098-240
D-79106 Freiburg Email: lczub at t-online.de
______________________________________________________
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/uCuuSA/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-------------- next part --------------
-- defines following groups with different access to posgis tables
-- pgis_admins people, which creates new tables with geomtry columns
-- a) right ALL on spatial_ref_sys, geometry_columns
-- b) rigth ALL on every table with geomtry columns
-- pgis_users people, which manipulate data in tables with geomtry columns
-- a) rigth SELECT on spatial_ref_sys, geometry_columns
-- b) rigth INSERT,UPDATE,DELETE on every table with geomtry columns
-- pgis_webusers people, which only looks an gis data like webuser
-- a) rigth SELECT on spatial_ref_sys, geometry_columns
-- b) rigth SELECT on every table with geomtry columns
-- (if webuser should be able to manipulte data, the admin must
-- add this right seratly)
--
-- We get the rigth b) by implemantate
-- 1) a function SetPgisTableRights(a_table_name)
-- it creates three new GRANT Rules for the table A_TABLE_NAME
-- 2) an insert-RULE on geometry_columns, which calls this function everytime,
-- a new entry is inserted into geometry_columns. , the trigger creates
--
-- defines following default users
-- pgis_admin member of pgis_admins
-- pgis_user member of pgis_users
-- mapserv member of webuser, could be used for the connect-specification
-- in the configuration-file of mapserver (z.B. demo.map)
--
-- open problem: DropGeometryColumn() needs system rights, cause it changed something
-- in the table pg_attribute
-- the script shp2pgsql creates lines like
-- select DropGeometryColumn('geomtest','radweg','the_geom');
-- drop table radweg ;
-- maybe, if the hole table will be droped, it would be better to say
-- DELETE FROM geometry_columns WHERE f_table_name = 'radweg';
-- DROP TABLE radweg ;
-- we only need DropGeometryColumn(), if the table should be alive, after removing
-- the geometry field, but the shp2psql wants to throw away the old structure
--
-- by lczub at t-online.de (Luiko Czub, Freiburg) 27.012002, postgis-0.6.2
-- (sorry for my bad english, hope you understand, what I'am doing)
-- default users for postgis
CREATE USER pgis_admin;
CREATE USER pgis_user;
CREATE USER mapserv;
-- Group pgis_webusers, pgis_users, pgis_webusers
CREATE GROUP pgis_admins WITH USER pgis_admin;
CREATE GROUP pgis_users WITH USER pgis_user;
CREATE GROUP pgis_webusers WITH USER mapserv;
-- rights for group pgis_webusers
GRANT SELECT ON spatial_ref_sys, geometry_columns TO GROUP pgis_webusers;
GRANT SELECT ON spatial_ref_sys, geometry_columns TO GROUP pgis_users;
GRANT ALL ON spatial_ref_sys, geometry_columns TO GROUP pgis_admins;
-- Function, which adds the specific PostGIs Rigths for a new table
CREATE FUNCTION SetPgisTableRights(varchar) RETURNS text AS '
DECLARE
table_name alias for $1;
BEGIN
EXECUTE ''GRANT ALL ON '' || table_name || '' TO GROUP pgis_admins '';
EXECUTE ''GRANT SELECT, INSERT, UPDATE, DELETE ON '' || table_name || '' TO GROUP pgis_users '';
EXECUTE ''GRANT SELECT ON '' || table_name || '' TO GROUP pgis_webusers '';
return ''PostGis-Rights set for table '' || table_name;
END;
' LANGUAGE 'plpgsql';
-- RULE on geometry_columns, which set the GRAND Rights, we need
CREATE RULE SetPgisTableRights AS ON INSERT
TO geometry_columns
DO SELECT SetPgisTableRights(new.f_table_name);
-------------- next part --------------
-- drops special postgis groups, default users,
-- the function SetPgisTableRights() and the rule SetPgisTableRights
-- by lczub at t-online.de (Luiko Czub, Freiburg) 27.01.2002, postgis-0.6.2
-- the default users
DROP USER mapserv;
DROP USER pgis_user;
DROP USER pgis_admin;
-- the postgis groups
DROP GROUP pgis_webusers;
DROP GROUP pgis_users;
DROP GROUP pgis_admins;
-- the function
DROP FUNCTION SetPgisTableRights(varchar);
-- the rule
DROP RULE SetPgisTableRights;
From waldonion at yahoo.com Tue Jan 29 10:12:29 2002
From: waldonion at yahoo.com (waldonion)
Date: Tue, 29 Jan 2002 18:12:29 -0000
Subject: [postgis] Query a zone
Message-ID:
Hie..
I have to query a zone insert a box like
((x,y),(x+10,y), etc.. etc...))
But I read a lot but I cant saw a sentence like
Select the_geom from xxx
where the_geom Intersects (polygon((x,y),(x+10,y)....etc)
how can I do that?
Thanks a lot
Pd: Sorry for my english
Ahora en castellano
Hola:
La verdad es que quiero consultar a este gran grupo, como puedo hacer
para recuperar una zona determinada de una tabla espacial...
P.E: Quiero recuperar una "caja" o box de una base de datos espacial
Revise que en Oracle ocupan una sentencia llamada window o algo
?Como se puede hacer esto??
Select the_geom from xxx
where the_geom Intersects (polygon((x,y),(x+10,y)....etc)
Gracias de antemano
Eugenio
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From tmitchell at lignum.com Tue Jan 29 11:17:08 2002
From: tmitchell at lignum.com (Tyler Mitchell)
Date: Tue, 29 Jan 2002 11:17:08 -0800
Subject: [postgis] Itasca demo data in postgis
Message-ID:
Hi guys,
I've imported all the itasca demo shape files into a postgis db.
Would anyone like a copy of it? Are you interested in trying to load it
into your system?
If so, let me know and I'll arrange to get you the data.
Tyler
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From jgreid at uow.edu.au Wed Jan 30 15:33:08 2002
From: jgreid at uow.edu.au (John Reid)
Date: Thu, 31 Jan 2002 10:33:08 +1100
Subject: [postgis] Itasca demo data in postgis
References:
Message-ID: <3C5882B4.1050701@uow.edu.au>
Yes please :-) Is there any problem with hosting it on the PostGIS site
(assuming the kind folk from Refractions agree)?
Tyler Mitchell wrote:
>Hi guys,
>I've imported all the itasca demo shape files into a postgis db.
>Would anyone like a copy of it? Are you interested in trying to load it
>into your system?
>If so, let me know and I'll arrange to get you the data.
>
>Tyler
>
----------------------------------------------------------------------
john reid e-mail jgreid at uow.edu.au
uproot your questions from their ground and the dangling roots will be
seen. more questions!
-mentat zensufi
apply standard disclaimers as desired...
----------------------------------------------------------------------
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/lWSNbC/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From pramsey at refractions.net Wed Jan 30 17:37:47 2002
From: pramsey at refractions.net (Paul Ramsey)
Date: Wed, 30 Jan 2002 17:37:47 -0800
Subject: [postgis] Itasca demo data in postgis
References: <3C5882B4.1050701@uow.edu.au>
Message-ID: <3C589FEB.47EDC227@refractions.net>
No policy problem, just a time problem. We're completely swamped right
now, so all non-project postgis activities are curtailed.
John Reid wrote:
>
> Yes please :-) Is there any problem with hosting it on the PostGIS site
> (assuming the kind folk from Refractions agree)?
>
> Tyler Mitchell wrote:
>
> >Hi guys,
> >I've imported all the itasca demo shape files into a postgis db.
> >Would anyone like a copy of it? Are you interested in trying to load it
> >into your system?
> >If so, let me know and I'll arrange to get you the data.
> >
> >Tyler
> >
> ----------------------------------------------------------------------
> john reid e-mail jgreid at uow.edu.au
>
> uproot your questions from their ground and the dangling roots will be
> seen. more questions!
> -mentat zensufi
>
> apply standard disclaimers as desired...
> ----------------------------------------------------------------------
>
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From nicolasb at maich.gr Thu Jan 31 00:23:38 2002
From: nicolasb at maich.gr (Nicolas Boretos)
Date: Thu, 31 Jan 2002 10:23:38 +0200
Subject: [postgis] Itasca demo data in postgis
References:
Message-ID: <3C58FF0A.FCCCA235@maich.gr>
Hi,
I would be interested in a copy....
Any notes of how you did it?
tia,
nicolas boretos
Tyler Mitchell wrote:
>
> Hi guys,
> I've imported all the itasca demo shape files into a postgis db.
> Would anyone like a copy of it? Are you interested in trying to load it
> into your system?
> If so, let me know and I'll arrange to get you the data.
>
> Tyler
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/lWSNbC/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From jmmichia at ciudad.com.ar Thu Jan 31 00:26:12 2002
From: jmmichia at ciudad.com.ar (=?ISO-8859-1?Q?Jos=E9=20Mar=EDa?= Michia)
Date: Thu, 31 Jan 2002 05:26:12 -0300
Subject: [postgis] ERROR: parser: parse error at or near "with"
Message-ID: <3C58FFA4.3070401@ciudad.com.ar>
Espa?ol:
Hola!
Cuando ejecuto "psql -f postgis.sql -d databasename" obtengo los
siguientes errores:
1- ERROR: parser: parse error at or near "with"
2- ERROR: parser: parse error at or near ","
Estos errores se repiten muchas veces.
Edite el archivo postgis.sql y elimine todos los with(.........) y todos
los ,'.......' que traian problemas. Luego:
psql -f postgis.sql -d databasename OK
CREATE TABLE geom_test ( gid int4, geom geometry,name varchar(25) );
OK
INSERT INTO geom_test ( gid, geom, name ) VALUES ( 1, 'POLYGON((0 0 0,0
5 0,5 5 0,5 0 0,0 0 0))', '3D Square'); ERROR
ERROR: Load of file /usr/local/pgsql/lib/contrib/libpostgis.so.0.6
failed: /usr/local/pgsql/lib/contrib/libpostgis.so.0.6: undefined
symbol: LocalBufferBlockPointers
Gracias
---------------------------------------
ENGLISH???
Hello!
# "psql -f postgis.sql -d databasename"
1- ERROR: parser: parse error at or near "with" (many times)
2- ERROR: parser: parse error at or near "," (many times)
In postgis.sql, delete every occurrence of [with(...)] and [,'........']
try again:
psql -f postgis.sql -d databasename OK
CREATE TABLE geom_test ( gid int4, geom geometry,name varchar(25) );
OK
INSERT INTO geom_test ( gid, geom, name ) VALUES ( 1, 'POLYGON((0 0 0,0
5 0,5 5 0,5 0 0,0 0 0))', '3D Square'); ERROR
ERROR: Load of file /usr/local/pgsql/lib/contrib/libpostgis.so.0.6
failed: /usr/local/pgsql/lib/contrib/libpostgis.so.0.6: undefined
symbol: LocalBufferBlockPointers
Thanks
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/iWSNbC/VdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From ertz at eivd.ch Thu Jan 31 05:49:01 2002
From: ertz at eivd.ch (ERTZ Olivier)
Date: Thu, 31 Jan 2002 14:49:01 +0100
Subject: [postgis] SELECT in multipolygon geometry
References: <3C58FFA4.3070401@ciudad.com.ar>
Message-ID: <009701c1aa5e$0af5e760$0100a8c0@girafe>
Hello,
I'm a newbie in PostGIS, could someone give me some informations about
querying a multipolygon geometry. I would like to query each polygon of the
multipolygon geometry and after all points of each polygon. Is it possible
with the PostGIS functions ?
Thanx a lot.
Olivier.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From ertz at eivd.ch Thu Jan 31 06:53:54 2002
From: ertz at eivd.ch (ERTZ Olivier)
Date: Thu, 31 Jan 2002 15:53:54 +0100
Subject: [postgis] SELECT in multipolygon geometry
References: <3C58FFA4.3070401@ciudad.com.ar> <009701c1aa5e$0af5e760$0100a8c0@girafe>
Message-ID: <00a601c1aa67$1aff31d0$0100a8c0@girafe>
Hello again, sorry for the beginner's question, I can now answer myself
after finding the right documentation !!! I mean OpenGIS Simple Features
Specification For SQL :
http://www.opengis.org/techno/specs/99-049.pdf
(can be useful in search archive for beginners).
Bye. Olivier
----- Original Message -----
From: "ERTZ Olivier"
To:
Sent: Thursday, January 31, 2002 2:49 PM
Subject: [postgis] SELECT in multipolygon geometry
> Hello,
> I'm a newbie in PostGIS, could someone give me some informations about
> querying a multipolygon geometry. I would like to query each polygon of
the
> multipolygon geometry and after all points of each polygon. Is it possible
> with the PostGIS functions ?
>
> Thanx a lot.
>
> Olivier.
>
>
>
> To unsubscribe from this group, send an email to:
> postgis-unsubscribe at yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
From ldviveros at lycos.com Thu Jan 31 06:56:56 2002
From: ldviveros at lycos.com (Luis Viveros)
Date: Thu, 31 Jan 2002 06:56:56 -0800
Subject: [postgis] ERROR: parser: parse error at or near "with"
Message-ID:
Jos? Maria:
dentro del archivo postgis.sql estan las instrucciones que lo que tienes que hacer antes de ejecutar las instrucciones sql.
--- you might have to define the plpgsql language something like;
-- CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
-- '/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C';
--
-- CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
-- HANDLER plpgsql_call_handler
-- LANCOMPILER 'PL/pgSQL';
-- here's some hockey code to test to see if plpgsql is installed
-- if it is, you get a message "plpgsql is installed"
-- otherwise it will give a big error message
Luis Viveros
--
On Thu, 31 Jan 2002 05:26:12
Jos? Mar?a Michia wrote:
>Espa?ol:
>
>Hola!
>
>Cuando ejecuto "psql -f postgis.sql -d databasename" obtengo los
>siguientes errores:
>
>1- ERROR: parser: parse error at or near "with"
>
>2- ERROR: parser: parse error at or near ","
>
>Estos errores se repiten muchas veces.
>
>Edite el archivo postgis.sql y elimine todos los with(.........) y todos
>los ,'.......' que traian problemas. Luego:
>
>psql -f postgis.sql -d databasename OK
>
>CREATE TABLE geom_test ( gid int4, geom geometry,name varchar(25) );
> OK
>
>INSERT INTO geom_test ( gid, geom, name ) VALUES ( 1, 'POLYGON((0 0 0,0
>5 0,5 5 0,5 0 0,0 0 0))', '3D Square'); ERROR
>
>ERROR: Load of file /usr/local/pgsql/lib/contrib/libpostgis.so.0.6
>failed: /usr/local/pgsql/lib/contrib/libpostgis.so.0.6: undefined
>symbol: LocalBufferBlockPointers
>
>Gracias
>
>---------------------------------------
>
>ENGLISH???
>
>Hello!
>
># "psql -f postgis.sql -d databasename"
>
>1- ERROR: parser: parse error at or near "with" (many times)
>
>2- ERROR: parser: parse error at or near "," (many times)
>
>In postgis.sql, delete every occurrence of [with(...)] and [,'........']
>
>try again:
>
>psql -f postgis.sql -d databasename OK
>
>CREATE TABLE geom_test ( gid int4, geom geometry,name varchar(25) );
> OK
>
>INSERT INTO geom_test ( gid, geom, name ) VALUES ( 1, 'POLYGON((0 0 0,0
>5 0,5 5 0,5 0 0,0 0 0))', '3D Square'); ERROR
>
>ERROR: Load of file /usr/local/pgsql/lib/contrib/libpostgis.so.0.6
>failed: /usr/local/pgsql/lib/contrib/libpostgis.so.0.6: undefined
>symbol: LocalBufferBlockPointers
>
>Thanks
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/lWSNbC/WdiDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/