Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vectorstorer: AddGeometryColumn error #235

Open
howff opened this issue Dec 1, 2017 · 0 comments
Open

vectorstorer: AddGeometryColumn error #235

howff opened this issue Dec 1, 2017 · 0 comments

Comments

@howff
Copy link

howff commented Dec 1, 2017

When vectorstorer tries to import a vector resource it gives the error
ProgrammingError: function addgeometrycolumn(unknown, unknown, integer, unknown, integer) does not exist
LINE 1: SELECT AddGeometryColumn ('aa5230d5-d4a1-44c2-96b5-398cd3f1f...

I see this comes from the code:
publicamundi/storers/vector/db_helpers.py calls
"SELECT AddGeometryColumn ('%s','the_geom',%s,'%s',%s);" %
(table_name, srs, geometry, coordinate_dimension))

How does it need to be modified to work correctly?

(I am using the recommended publicamundi installation on centos7 which has:
postgresql-9.3-postgis-2.1
postgresql-9.3-postgis-2.3
postgresql-9.3-postgis-2.3-scripts
postgresql-9.3-postgis-scripts
)

@howff howff changed the title AddGeometryColumn error vectorstorer: AddGeometryColumn error Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant