Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't create new table with Geometry, "Error type modeified for geometry not allowed" #50
I have to say I'm impressed with GeoAlchemy2. Unfortunately, when I try and create a table with a geometry column I get the following error:
"sqlalchemy.exc.ProgrammingError: (ProgrammingError) type modifier is not allowed for type "geometry"
Any ideas how I can fix this?
I'm using PostGIS 1.5 (which I guess might be the problem?),PostgreSQL 9.1 and GeoAlchemy2 0.2
You can use the GeoAlchemy google group for questions: https://groups.google.com/forum/?fromgroups#!forum/geoalchemy.
With PostGIS 1.5 you need to set management to True in your Geometry. See https://geoalchemy-2.readthedocs.org/en/0.2/types.html#geoalchemy2.types._GISType and https://github.com/geoalchemy/geoalchemy2/blob/master/geoalchemy2/tests/test_functional.py#L31.
If that still does not work, please show what your model class looks like.