Marcus,
 
This is a common problem.  It sounds like you don't have the postgis functions 
loaded in your database.  The easiest way to remedy are
 
1) If you are starting with a new database and you have a database called 
template_postgis  - create a new database and choose the template_postgis as 
your template
 
OR
 
2) If you already have a database with tables, spatially enable your database 
by running the following SQL files
Postgresql\8.2\share\contrib\lwpostgis.sql 
Postgresql\8.2\share\contrib\spatial_ref_sys.sql
 
 
 
________________________________

From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 9/18/2007 2:33 PM
To: [email protected]
Subject: [postgis-users] Error "select AddGeometryColumn"



Hello PostGIS-Users,

I am a new PostGIS-User.

I try to create a geodatabase with following software (OpenJump 1.2 D, PostGIS 
- PostgreSQL Version 1.6.3).
It was no problem to create my tables in pgAdminIIIQuery like

"create table baeume (bID INT NOT NULL, kurz_bez varchar(30) NOT NULL, PRIMARY 
KEY ( bID );"

but if try to create the geometry column like

"select AddGeometryColumn ( 'baeume', 'geom', -1, 'POINT', 2);"

then I get follwing message.

ERROR: function addgeometrycolumn("unknown", "unknown", integer, "unknown", 
integer) does not exist SQL Status:42883
Hinweis:No function matches the given name and argument types. You may need to 
add explicit type casts.
Zeichen:33

It seems that the table or column "baeume" does not exist but if I do

"select * from baeume;"

then the table appear.
What is the problem? Could somebody help me please?



Regards

Marcus
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users





-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to