<HTML dir=ltr><HEAD><TITLE>[postgis-users] Error "select AddGeometryColumn"</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText6681 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Marcus,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>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</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>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</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>OR</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>2) If you already have a database with tables, spatially enable your database by running the following SQL files</FONT></DIV>
<DIV dir=ltr>Postgresql\8.2\share\contrib\lwpostgis.sql </DIV>
<DIV dir=ltr>Postgresql\8.2\share\contrib\spatial_ref_sys.sql</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> postgis-users-bounces@postgis.refractions.net on behalf of marcus@rump-online.net<BR><B>Sent:</B> Tue 9/18/2007 2:33 PM<BR><B>To:</B> postgis-users@postgis.refractions.net<BR><B>Subject:</B> [postgis-users] Error "select AddGeometryColumn"<BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>Hello PostGIS-Users,<BR><BR>I am a new PostGIS-User.<BR><BR>I try to create a geodatabase with following software (OpenJump 1.2 D, PostGIS - PostgreSQL Version 1.6.3).<BR>It was no problem to create my tables in pgAdminIIIQuery like<BR><BR>“create table baeume (bID INT NOT NULL, kurz_bez varchar(30) NOT NULL, PRIMARY KEY ( bID );”<BR><BR>but if try to create the geometry column like<BR><BR>“select AddGeometryColumn ( 'baeume', 'geom', -1, 'POINT', 2);”<BR><BR>then I get follwing message.<BR><BR>ERROR: function addgeometrycolumn("unknown", "unknown", integer, "unknown", integer) does not exist SQL Status:42883<BR>Hinweis:No function matches the given name and argument types. You may need to add explicit type casts.<BR>Zeichen:33<BR><BR>It seems that the table or column „baeume” does not exist but if I do<BR><BR>“select * from baeume;“<BR><BR>then the table appear.<BR>What is the problem? Could somebody help me please?<BR><BR><BR><BR>Regards<BR><BR>Marcus<BR>_______________________________________________<BR>postgis-users mailing list<BR>postgis-users@postgis.refractions.net<BR><A href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</A><BR></FONT></P></DIV></BODY></HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
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.
</STRONG></P></BODY></HTML>