django-raster icon indicating copy to clipboard operation
django-raster copied to clipboard

Problems with `addrasterconstraints()`

Open djq opened this issue 12 years ago • 3 comments

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.

djq avatar Oct 13 '14 15:10 djq

Not sure where that comes from. Did you run the tests locally?

yellowcap avatar Oct 14 '14 16:10 yellowcap

Yes, tests all run ok! What's strange is that it can drop the constraints fine, but it can't add them.

djq avatar Nov 02 '14 15:11 djq

hmm, nevermind! I pulled in the most recent changes and it worked fine.

djq avatar Nov 02 '14 15:11 djq