update import to public name
parent
51b0c2ef4e
commit
e520b515ab
|
@ -4,7 +4,7 @@ import (
|
|||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
pq "github.com/olt/pqbulk"
|
||||
pq "github.com/olt/pq"
|
||||
"goposm/database"
|
||||
"goposm/logging"
|
||||
"goposm/mapping"
|
||||
|
@ -50,8 +50,8 @@ func createTable(tx *sql.Tx, spec TableSpec) error {
|
|||
if geomType == "POLYGON" {
|
||||
geomType = "GEOMETRY" // for multipolygon support
|
||||
}
|
||||
sql = fmt.Sprintf("SELECT AddGeometryColumn('%s', '%s', 'geometry', %d, '%s', 2);",
|
||||
spec.Schema, spec.Name, 0, geomType)
|
||||
sql = fmt.Sprintf("SELECT AddGeometryColumn('%s', '%s', 'geometry', -1, '%s', 2);",
|
||||
spec.Schema, spec.Name, geomType)
|
||||
row := tx.QueryRow(sql)
|
||||
var void interface{}
|
||||
err = row.Scan(&void)
|
||||
|
|
Loading…
Reference in New Issue