0

I've just installed GeoDjango (yay) and now I'm trying to follow these instructions to set up an existing GeoDjango project, which needs OSGB36:

After you've installed and got a PostGIS template, log
in to it and update the proj4text column of SRID 27700 to include
+datum=OSGB36, and update SRID 29902 to have +datum=ire65.

However. If I connect to the postgis_template created as part of the GeoDjango install, it doesn't appear to have any rows or columns at all:

domesday=# \c template_postgis
psql (8.4.4)
You are now connected to database "template_postgis".
template_postgis=# \d
No relations found.

How do I make the edits necessary to update SRID 27700 and SRID 29902 as described here? Have I created template_postgis wrong? I didn't see any errors during install.

4

1 回答 1

0

你应该看到的是:

template_postgis=# \d
              List of relations
 Schema |       Name       | Type  |  Owner   
--------+------------------+-------+----------
 public | geometry_columns | table | postgres
 public | spatial_ref_sys  | table | postgres
(2 rows)

既然你不是,你可能在运行时遇到了问题:

$ psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql

在我的 (Ubuntu+PG8.3) 系统上,该文件实际上称为 lwpostgis.sql。我第一次安装时遇到了类似的问题。

于 2010-08-01T22:22:08.837 回答