Outdated version of the documentation. Find the latest one here.

` `

OGR miscellaneous

Execute SQL

Descrição

<Inserir a descrição do algoritmo aqui>

Parâmetros

Input layer [vector: any]

<insira a descrição do parâmetro aqui>

SQL [string]

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Saídas

SQL result [vector]

<insira a descrição da saída aqui>

Uso do console

processing.runalg('gdalogr:executesql', input, sql, output)

Veja tambem

Importar vetor para base de dados PostGIS (conexões dispiníveis)

Descrição

Imports vector layers inside a PostGIS database on the basis of an available connection. The connection has to be defined properly with the ‘Add PostGIS Table(s)’ dialog before. Use the ‘Edit’ button to define the connection. Be aware that the checkboxes ‘Save Username’ and ‘Save Password’ are activated. Then you can use the algorithm. The algorithm is derived from the ogr2ogr utility .

Parâmetros

Database (connection name) [selection]

Requires the database (connection) name.

Opções:

  • 0 — local

Padrão: 0

Input layer [vector: any]
Any OGR-supported vector layer loaded into the QGIS map canvas.
`“Tipo do raster de saída” [seleção]

Defines the output geometry type. By default this is Polygon.

Opções:

  • 0 —
  • 1 — NENHUM

  • 2 — GEOMETRIA

  • 3 — PONTO

  • 4 — LINESTRING
  • 5 — POLÍGONO

  • 6 — GEOMETRYCOLLECTION
  • 7 — MULTIPOINT
  • 8 — MULTIPOLYGON
  • 9 — MULTILINESTRING

Padrão: 5

Input CRS (EPSG Code) [crs]

CRS of the input vector layer.

Padrão: EPSG:4326

Output CRS (EPSG Code) [crs]

Defines the output CRS of the database table.

Padrão: EPSG:4326

Schema name [string]

Opcional.

Defines the schema to which the database table will be assigned to. By default, ‘public’ is chosen.

Default: public

Table name, leave blank to use input name [string]

Opcional.

Defines a name for the table that will be imported into the database. By default the table name is the name of the input vector file.

Padrão: (não definido)

Primary Key [string]

Opcional.

Defines which attribute field will be the primary key of the database table. By default this is ‘id’.

Padrão: id

Geometry column name [string]

Opcional.

Defines in which attribute field of the database there will be the geometry information. By default it will be taken from the ‘geom’ column.

Padrão: geom

Vector dimensions [selection]

Defines if the vector file to be imported has 2-D or 3-D data.

Opções:

  • 0 — 2
  • 1 — 3

Padrão: 0

Distance tolerance for simplification [string]

Opcional.

Defines a distance tolerance for the simplification of the vector geometries to be imported. By default no simplification there is no simplification.

Padrão: (não definido)

Maximum distance between 2 nodes (densification) [string]

Opcional.

The maximum distance between two nodes. Used to create intermediate points. By default there is no maximum distance.

Padrão: (não definido)

Select features by extent (defined in input layer CRS) [extent]

You can select features from a given extent that will be in the output table.

Padrão: 0,1,0,1

Clip the input layer using the above (rectangle) extent [boolean]

The input layer will be clipped by the extent you defined before.

Padrão: Falso

Select features using a SQL "WHERE" statement (Ex: column="value") [string]

Opcional.

Defines with a SQL “WHERE” statement which features should be selected for the output table.

Padrão: (não definido)

Group "n" features per transaction (Default: 20000) [string]

Opcional.

You can group the input features in transactions where “n” defines the size. By default “n” limits the transaction size to 20000 features.

Padrão: (não definido)

Overwrite existing table? [boolean]

If there is a table with the same name in the database, it won’t be overwritten. By default this takes place.

Padrão: True

Append to existing table? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Append and add new fields to existing table? [boolean]

If activated the vector data will be appended to an existing table, there won’t be created a new table. By default a new table will be created.

Padrão: Falso

Do not launder columns/table name/s? [boolean]

With this option you can prevent processing from converting column names to lowercase, from removing spaces and other invalid characters.

Padrão: Falso

Do not create Spatial Index? [boolean]

Prevents that a spatial index in the output table will be created.

Padrão: Falso

Continue after a failure, skipping the failed feature [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Additional creation options [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Saídas

Uso do console

processing.runalg('gdalogr:importvectorintopostgisdatabaseavailableconnections', database, input_layer, gtype, s_srs, t_srs, schema, table, pk, geocolumn, dim, simplify, segmentize, spat, clip, where, gt, overwrite, append, addfields, launder, index, skipfailures, options)

Veja tambem

Importar vetor para base de dados PostGIS (nova conexão)

Descrição

Imports vector layers inside a PostGIS database. A new connection to the PostGIS database must be created. The algorithm is derived from the ogr2ogr utility .

Parâmetros

Input layer [vector: any]

<insira a descrição do parâmetro aqui>

`“Tipo do raster de saída” [seleção]

<insira a descrição do parâmetro aqui>

Opções:

  • 0 —
  • 1 — NENHUM

  • 2 — GEOMETRIA

  • 3 — PONTO

  • 4 — LINESTRING
  • 5 — POLÍGONO

  • 6 — GEOMETRYCOLLECTION
  • 7 — MULTIPOINT
  • 8 — MULTIPOLYGON
  • 9 — MULTILINESTRING

Padrão: 5

Input CRS (EPSG Code) [crs]

<insira a descrição do parâmetro aqui>

Padrão: EPSG:4326

Output CRS (EPSG Code) [crs]

<insira a descrição do parâmetro aqui>

Padrão: EPSG:4326

Host [string]

<insira a descrição do parâmetro aqui>

Default: localhost

Port [string]

<insira a descrição do parâmetro aqui>

Padrão: 5432

Username [string]

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Database Name [string]

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Password [string]

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Schema name [string]

Opcional.

<insira a descrição do parâmetro aqui>

Default: public

Table name, leave blank to use input name [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Primary Key [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: id

Geometry column name [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: geom

Vector dimensions [selection]

<insira a descrição do parâmetro aqui>

Opções:

  • 0 — 2
  • 1 — 3

Padrão: 0

Distance tolerance for simplification [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Maximum distance between 2 nodes (densification) [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Select features by extent (defined in input layer CRS) [extent]

<insira a descrição do parâmetro aqui>

Padrão: 0,1,0,1

Clip the input layer using the above (rectangle) extent [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Select features using a SQL "WHERE" statement (Ex: column="value") [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Group "n" features per transaction (Default: 20000) [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Overwrite existing table? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: True

Append to existing table? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Append and add new fields to existing table? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Do not launder columns/table name/s? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Do not create Spatial Index? [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Continue after a failure, skipping the failed feature [boolean]

<insira a descrição do parâmetro aqui>

Padrão: Falso

Additional creation options [string]

Opcional.

<insira a descrição do parâmetro aqui>

Padrão: (não definido)

Saídas

Uso do console

processing.runalg('gdalogr:importvectorintopostgisdatabasenewconnection', input_layer, gtype, s_srs, t_srs, host, port, user, dbname, password, schema, table, pk, geocolumn, dim, simplify, segmentize, spat, clip, where, gt, overwrite, append, addfields, launder, index, skipfailures, options)

Veja tambem

Informação

Descrição

Creates an information file that lists information about an OGR-supported data source. The output will be shown in a ‘Result’ window and can be written into a HTML-file. The information includes the geometry type, feature count, the spatial extent, the projection information and many more.

Parâmetros

Input layer [vector: any]
Input vector layer.

Saídas

“Informação da camada” [html]
Name of the output HTML-file that includes the file information. If no HTML-file is defined the output will be written into a temporary file.

Uso do console

processing.runalg('gdalogr:information', input, output)

Veja tambem