django-raster
django-raster copied to clipboard
Problems with `addrasterconstraints()`
When adding a raster I am getting the following error:
InternalError at /admin/raster/rasterlayer/add/
None of the constraints specified could be added. Is the schema name, table name or column name incorrect?
CONTEXT: PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/raster/rasterlayer/add/
Django Version: 1.7
Exception Type: InternalError
Exception Value:
None of the constraints specified could be added. Is the schema name, table name or column name incorrect?
CONTEXT: PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN
I've connected to the database I am using with pgAdmin, and run
SELECT DropRasterConstraints('raster_rastertile'::name,'rast'::name);
SELECT AddRasterConstraints('raster_rastertile'::name,'rast'::name);
This runs fine; any thoughts on why it is breaking within django? I've tried including 'public'::name, as an additional parameter, incase it was a schema issues, but that does not make a difference.
Not sure where that comes from. Did you run the tests locally?
Yes, tests all run ok! What's strange is that it can drop the constraints fine, but it can't add them.
hmm, nevermind! I pulled in the most recent changes and it worked fine.