+ create table if not exists

+ use OGC_FID instead of PK_UID
This commit is contained in:
Artem Pavlenko 2009-02-23 23:44:42 +00:00
parent 2cb4265091
commit 9b4b249555

View file

@ -161,7 +161,7 @@ namespace mapnik {
unsigned num_fields = cursor->getNumFields();
std::ostringstream create_sql;
create_sql << "create table " << output_table_name << "(PK_UID INTEGER PRIMARY KEY AUTOINCREMENT,";
create_sql << "create table if not exists" << output_table_name << "(OGC_FID INTEGER PRIMARY KEY AUTOINCREMENT,";
int geometry_oid = -1;