Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.6.0
-
Fix Version/s: None
-
Component/s: PostGIS
-
Labels:None
-
Environment:Linux
-
Number of attachments :
Description
Only installation instructions seem to be within the Versioning download, in data_dir/README.txt.
1. Instructions do not state that "spearfish" database must be converted from PostgreSQL to PostGIS.
2. When converting to PostGIS with the lwpostgis.sql script errors occur:
...
CREATE FUNCTION
lwpostgis.sql:1257: ERROR: unterminated quoted string at or near "'
BEGIN
EXECUTE ''SET local search_path = ''||$2||'',public'';"
LINE 12: AS '
^
lwpostgis.sql:1258: ERROR: syntax error at or near "RETURN"
LINE 3: RETURN public.build_histogram2d($1,$3,$4);
^
... etc.
Maybe a phpPgAdmin character set problem is involved in the quoted string error? The error happened when feeding lwpostgis.sql through phpPgAdmin as an uploaded script. Same error happened with the database as LATIN1 or as SQL_ASCII (which is mentioned within the spearfish sql).
The "spearfish" database was created successfully when using the command line psql command as a postgres superuser: first within the database using "CREATE LANGUAGE plpgsql", then adding postGIS to the database with: psql -d spearfish < /usr/share/postgresql-8.2-postgis/lwpostgis.sql