Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVImporter ¶
type CSVImporter struct {
// contains filtered or unexported fields
}
csvimport covers the entire import
func NewCSVImporter ¶
func NewCSVImporter(schema string) *CSVImporter
func (*CSVImporter) Import ¶
func (a *CSVImporter) Import(n string, r io.ReadCloser) error
CSVImport handles the importing of CSV data into a table. If the inbound data has a pair of columns called "Easting","Northing" or "Longitude","Latitude" then it will also handle populating a geom column with a point, using EPSG:2700 or EPSG:4326 accordingly.
func (*CSVImporter) Name ¶
func (a *CSVImporter) Name() string
type SchemaImport ¶
type SchemaImport struct {
// contains filtered or unexported fields
}
SchemaImport is a Kernel service which will configure a PostgreSQL/PostGIS database if a specified schema does not exist.
func NewSchemaImport ¶
func (*SchemaImport) Installed ¶
func (a *SchemaImport) Installed() bool
Installed returns true if the database was initialised
func (*SchemaImport) Name ¶
func (a *SchemaImport) Name() string
func (*SchemaImport) SchemaExists ¶
func (a *SchemaImport) SchemaExists(schema string) (bool, error)
SchemaExists returns true if a schema exists, false if not
func (*SchemaImport) Start ¶
func (a *SchemaImport) Start() error
Click to show internal directories.
Click to hide internal directories.