Vizzuality/cartodb — Issue #356: PGError: ERROR: AddGeometryColumns()
Author: eightysteele
Created: 2011-11-26 02:34:55+00:00
State: open

Hey Guys,

I'm seeing some strange behavior in commit @6413687 in both development and production mode (with a PostGIS upgrade to r8242 for ST_GeomFromGeoJSON) when trying to create a new table via the UI:

```
PGError: ERROR: AddGeometryColumns() - invalid SRID CONTEXT: SQL statement "SELECT AddGeometryColumn('','',$1,$2,$3,$4,$5, $6)" PL/pgSQL function "addgeometrycolumn" line 5 at SQL statement
```

This happens when trying to create a new empty table (point, line, or polygon) and when uploading data. Does anyone have a workaround? What PostGIS revision is hosted CartoDB running?

Thanks!