SAGA-GIS Module Library Documentation (v2.3.0)

Module Export Shapes to PostGIS

Exports shapes to a PostGIS database.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesShapes (input)SHAPES--
OptionsHostTextPG_HOSTPassword-
PortIntegerPG_PORT-Minimum: 0
Default: 5432
DatabaseTextPG_NAMEDatabase Name-
UserTextPG_USERUser Name-
PasswordTextPG_PWDPassword-
Available ConnectionsChoiceCONNECTION-Available Choices:
[0]
Default: 0
Primary KeyTable fieldsSHAPES_PK--
Not NullTable fieldsSHAPES_NN--
UniqueTable fieldsSHAPES_UQ--
Table NameTextNAMEif empty shapes layers's name is used as table name-
If table exists...ChoiceEXISTS-Available Choices:
[0] abort export
[1] replace existing table
[2] append records, if table structure allows
Default: 0
EPSG CodeIntegerCRS_EPSG-Minimum: -1
Default: -1

Command-line

Usage: saga_cmd db_pgsql 21 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>] [-SHAPES <str>] [-SHAPES_PK <str>] [-SHAPES_NN <str>] [-SHAPES_UQ <str>] [-NAME <str>] [-EXISTS <str>] [-CRS_EPSG <num>]
  -PG_HOST:<str>  	Host
	Text
  -PG_PORT:<num>  	Port
	Integer
	Minimum: 0
	Default: 5432
  -PG_NAME:<str>  	Database
	Text
  -PG_USER:<str>  	User
	Text
  -PG_PWD:<str>   	Password
	Text
  -SHAPES:<str>   	Shapes
	Shapes (input)
  -SHAPES_PK:<str>	Primary Key
	Table fields
  -SHAPES_NN:<str>	Not Null
	Table fields
  -SHAPES_UQ:<str>	Unique
	Table fields
  -NAME:<str>     	Table Name
	Text
  -EXISTS:<str>   	If table exists...
	Choice
	Available Choices:
	[0] abort export
	[1] replace existing table
	[2] append records, if table structure allows
	Default: 0
  -CRS_EPSG:<num> 	EPSG Code
	Integer
	Minimum: -1
	Default: -1