1# SOME DESCRIPTIVE TITLE. 2# 3# Translators: 4# Dauro Lima Sobrinho <daurolima@gmail.com>, 2013 5# Poliana Palhares <p.palhares@plamu.com.br>, 2016 6# Thiago lima santos leão <th1agol1ma12@gmail.com>, 2013 7msgid "" 8msgstr "" 9"Project-Id-Version: PostGIS\n" 10"Report-Msgid-Bugs-To: https://bugs.kde.org\n" 11"POT-Creation-Date: 2020-02-01 19:38+0000\n" 12"PO-Revision-Date: 2016-11-16 19:50+0000\n" 13"Last-Translator: Poliana Palhares <p.palhares@plamu.com.br>\n" 14"Language-Team: Portuguese (Brazil) (http://www.transifex.com/postgis/postgis/" 15"language/pt_BR/)\n" 16"Language: pt_BR\n" 17"MIME-Version: 1.0\n" 18"Content-Type: text/plain; charset=UTF-8\n" 19"Content-Transfer-Encoding: 8bit\n" 20"Plural-Forms: nplurals=2; plural=(n > 1);\n" 21 22#. Tag: title 23#: extras_historytable.xml:3 24#, no-c-format 25msgid "History Tracking" 26msgstr "Histórico de Rastreamento" 27 28#. Tag: para 29#: extras_historytable.xml:6 30#, no-c-format 31msgid "" 32"Suppose you have a table of data that represents the current state of a " 33"particular geographic feature. A parcels table, or a roads table, or a fruit " 34"trees table, whatever. Generally, GIS tools understand a table as a single " 35"entity into which they can update, insert and delete rows from. How you do " 36"allow common GIS tools to work against your data, while maintaining an audit " 37"trail of what changes have been made, by whom, and what the past state of " 38"the data is?" 39msgstr "" 40"Suponha que você tenha uma tabela que representa o estado atual de uma " 41"funcionalidade geográfica em particular. Uma tabela de parcelas, or uma " 42"tabela de estradas, or uma tabela de árvores frutíferas, seja o que for. " 43"Geralmente, ferramentas SIG entendem uma tabela como uma entidade única que " 44"pode atualizar, inserir e apagar registros. Como você permite que " 45"ferramentas SIG comuns a trabalhar com os seus dados, mantendo uma trilha de " 46"auditoria de que mudanças foram feitas, por quem, e em que estado o dado " 47"estava?" 48 49#. Tag: para 50#: extras_historytable.xml:10 51#, no-c-format 52msgid "" 53"This <varname>history_table</varname> extra module provides some utility " 54"functions for creating and maintaining history." 55msgstr "" 56"Este <varname>history_table</varname> módulo extra oferece algumas " 57"funcionalidade úteis para criar e manter histórico." 58 59#. Tag: para 60#: extras_historytable.xml:14 61#, no-c-format 62msgid "" 63"The <varname>history_table</varname> was also packaged in PostGIS 1.5, but " 64"added to the documentation in PostGIS 2.0. This package is written in " 65"plpgsql and located in the <varname>extras/history_table</varname> of " 66"PostGIS source tar balls and source repository." 67msgstr "" 68"A <varname>history_table</varname> também foi empacotada no PostGIS 1.5, mas " 69"adicionada a documentação no PostGIS 2.0. Esse pacote é escrito em plpgsql e " 70"está localizado em <varname>extras/history_table</varname> do código fonte e " 71"do repositório PostGIS." 72 73#. Tag: para 74#: extras_historytable.xml:15 75#, no-c-format 76msgid "" 77"If you have a table 'roads', this module will maintain a 'roads_history' " 78"side table, which contains all the columns of the parent table, and the " 79"following additional columns:" 80msgstr "" 81"Se você tem a tabela 'roads', este módulo manterá a 'roads_history' " 82"lateralmente, que contém todas as colunas da tabela pai, e as colunas " 83"adicionais abaixo:" 84 85#. Tag: programlisting 86#: extras_historytable.xml:16 87#, no-c-format 88msgid "" 89"history_id | integer | not null default\n" 90" date_added | timestamp without time zone | not null default now()\n" 91" date_deleted | timestamp without time zone |\n" 92" last_operation | character varying(30) | not null\n" 93" active_user | character varying(90) | not null default " 94"\"current_user\"()\n" 95" current_version | text | not null" 96msgstr "" 97"history_id | integer | not null default\n" 98" date_added | timestamp without time zone | not null default now()\n" 99" date_deleted | timestamp without time zone |\n" 100" last_operation | character varying(30) | not null\n" 101" active_user | character varying(90) | not null default " 102"\"current_user\"()\n" 103" current_version | text | not null" 104 105#. Tag: para 106#: extras_historytable.xml:20 107#, no-c-format 108msgid "" 109"When you insert a new record into 'roads' a record is automatically inserted " 110"into 'roads_history', with the 'date_added' filled in the 'date_deleted' set " 111"to NULL, a unique 'history_id', a 'last_operation' of 'INSERT' and " 112"'active_user' set." 113msgstr "" 114"Quando você insere um novo registro em 'roads' uma gravação é " 115"automativamente inserida em 'roads_history', com a 'date_added' preenchido, " 116"a 'date_deleted' com NULL, um único 'history_id', uma 'last_operation' de " 117"'INSERT' e 'active_user' set." 118 119#. Tag: para 120#: extras_historytable.xml:23 121#, no-c-format 122msgid "" 123"When you delete a record in 'roads', the record in the history table is " 124"*not* deleted, but the 'date_deleted' is set to the current date." 125msgstr "" 126"Quando você apaga uma gravação em 'roads', a gravação na tabela histórica " 127"*não* é apagada, mas a 'date_deleted' e determinada com a data atual." 128 129#. Tag: para 130#: extras_historytable.xml:26 131#, no-c-format 132msgid "" 133"When you update a record in 'roads', the current record has 'date_deleted' " 134"filled in and a new record is created with the 'date_added' set and " 135"'date_deleted' NULL." 136msgstr "" 137"Quando você atualização uma gravação em 'roads', a gravação atual tem " 138"'date_deleted' preenchido e uma nova gravação é criada com determinação da " 139"'date-added' e 'date_deleted' NULL." 140 141#. Tag: para 142#: extras_historytable.xml:30 143#, no-c-format 144msgid "" 145"With this information maintained, it is possible to retrieve the history of " 146"any record in the roads table:" 147msgstr "" 148"Com essas informações mantidas, é possível recuperar o histórico de qualquer " 149"gravação na tabela roads:" 150 151#. Tag: programlisting 152#: extras_historytable.xml:31 153#, no-c-format 154msgid "SELECT * FROM roads_history WHERE roads_pk = 111;" 155msgstr "SELECT * FROM roads_history WHERE roads_pk = 111;" 156 157#. Tag: para 158#: extras_historytable.xml:33 159#, no-c-format 160msgid "Or, to retrieve a view of the roads table at any point in the past:" 161msgstr "Ou, recuperar uma visão da table roads em qualquer ponto do passado:" 162 163#. Tag: programlisting 164#: extras_historytable.xml:34 165#, no-c-format 166msgid "" 167"SELECT * FROM roads_history\n" 168" WHERE date_added < 'January 1, 2001' AND\n" 169" ( date_deleted >= 'January 1, 2001' OR date_deleted IS NULL );" 170msgstr "" 171"SELECT * FROM roads_history\n" 172" WHERE date_added < 'January 1, 2001' AND\n" 173" ( date_deleted >= 'January 1, 2001' OR date_deleted IS NULL );" 174 175#. Tag: refname 176#: extras_historytable.xml:38 177#, no-c-format 178msgid "Postgis_Install_History" 179msgstr "Postgis_Install_History" 180 181#. Tag: refpurpose 182#: extras_historytable.xml:39 183#, no-c-format 184msgid "" 185"Creates a table that will hold some interesting values for managing history " 186"tables." 187msgstr "" 188"Cria uma tabela que irá armazenar alguns valores interessantes para o " 189"gerenciamento de tabelas de histórico." 190 191#. Tag: funcprototype 192#: extras_historytable.xml:44 193#, no-c-format 194msgid "" 195"<funcdef>void <function>Postgis_Install_History</function></funcdef> " 196"<paramdef></paramdef>" 197msgstr "" 198"<funcdef>void <function>Postgis_Install_History</function></funcdef> " 199"<paramdef></paramdef>" 200 201#. Tag: title 202#: extras_historytable.xml:52 extras_historytable.xml:92 203#, no-c-format 204msgid "Description" 205msgstr "Descrição" 206 207#. Tag: para 208#: extras_historytable.xml:54 209#, no-c-format 210msgid "" 211"Creates a table that will hold some interesting values for managing history " 212"tables. Creates a table called <varname>historic_information</varname>" 213msgstr "" 214"Cria uma tabela que irá armazenar alguns valores interessantes para o " 215"gerenciamento de tabelas de histórico.\n" 216"Cria uma tabela chamada <varname>historic_information</varname>" 217 218#. Tag: para 219#: extras_historytable.xml:58 extras_historytable.xml:100 220#, no-c-format 221msgid "Availability: 1.5.0" 222msgstr "Disponibilidade: 1.5.0" 223 224#. Tag: title 225#: extras_historytable.xml:63 extras_historytable.xml:105 226#, no-c-format 227msgid "Examples" 228msgstr "Exemplos" 229 230#. Tag: programlisting 231#: extras_historytable.xml:65 232#, no-c-format 233msgid "SELECT postgis_install_history();" 234msgstr "SELECT postgis_install_history();" 235 236#. Tag: title 237#: extras_historytable.xml:71 extras_historytable.xml:113 238#, no-c-format 239msgid "See Also" 240msgstr "Veja também." 241 242#. Tag: refname 243#: extras_historytable.xml:77 244#, no-c-format 245msgid "Postgis_Enable_History" 246msgstr "Postgis_Enable_History" 247 248#. Tag: refpurpose 249#: extras_historytable.xml:78 250#, no-c-format 251msgid "" 252"Registers a tablein the history_information table for tracking and also adds " 253"in side line history table and insert, update, delete rules on the table." 254msgstr "" 255"Registra na tabela history_information para rastreamento e também para " 256"adicionar na tabela history e inserir, atualizar e apagar regras na tabela." 257 258#. Tag: funcprototype 259#: extras_historytable.xml:83 260#, no-c-format 261msgid "" 262"<funcdef>boolean <function>Postgis_Enable_History</function></funcdef> " 263"<paramdef><type>text </type> <parameter>p_schema</parameter></paramdef> " 264"<paramdef><type>text </type> <parameter>p_table</parameter></paramdef>" 265msgstr "" 266"<funcdef>boolean <function>Postgis_Enable_History</function></funcdef> " 267"<paramdef><type>text </type> <parameter>p_schema</parameter></paramdef> " 268"<paramdef><type>text </type> <parameter>p_table</parameter></paramdef>" 269 270#. Tag: para 271#: extras_historytable.xml:94 272#, no-c-format 273msgid "" 274"Registers a table in the history_information table for tracking and also " 275"adds in side line history table with same name as table but prefixed with " 276"<varname>history</varname> in the same schema as the original table. Puts in " 277"insert, update, delete rules on the table. Any inserts,updates,deletes of " 278"the geometry are recorded in the history table." 279msgstr "" 280"Registra na table history_information para rastreamento e também para " 281"adicionar na tabela history com o mesmo nome da tabela, mas com o prefixo " 282"<varname>history</varname> no mesmo esquema como tabela original. Coloca nas " 283"regras de inserção, atualização e deleção na tabela. Qualquer inserção, " 284"atualização e deleção de uma geometria são gravadas na tabela de histórico." 285 286#. Tag: para 287#: extras_historytable.xml:97 288#, no-c-format 289msgid "" 290"This function currently relies on a geometry column being registered in " 291"<varname>geometry_columns</varname> and fails if the geometry column is not " 292"present in <varname>geometry_columns</varname> table." 293msgstr "" 294"Esta função atualmente depende da coluna geometria sendo registrada em " 295"<varname>geometry_columns</varname> e falhas se a coluna geometria não " 296"estiver presente na table <varname>geometry_columns</varname>." 297 298#. Tag: programlisting 299#: extras_historytable.xml:107 300#, no-c-format 301msgid "" 302"CREATE TABLE roads(gid SERIAL PRIMARY KEY, road_name varchar(150));\n" 303"SELECT AddGeometryColumn('roads', 'geom', 26986, 'LINESTRING', 2);\n" 304"\n" 305"SELECT postgis_enable_history('public', 'roads', 'geom') As register_table;\n" 306"register_table\n" 307"--------------\n" 308"t\n" 309"\n" 310"INSERT INTO roads(road_name, geom)\n" 311" VALUES('Test Street', ST_GeomFromText('LINESTRING(231660.5 832170,231647 " 312"832202,231627.5 832250.5)',26986));\n" 313"\n" 314"-- check transaction detail --\n" 315"SELECT date_added, last_operation, current_version\n" 316"FROM roads_history\n" 317"WHERE road_name = 'Test Street' ORDER BY date_added DESC;\n" 318"\n" 319" date_added | last_operation | current_version\n" 320"------------------------+----------------+-----------------\n" 321" 2011-02-07 12:44:36.92 | INSERT | 2" 322msgstr "" 323"CREATE TABLE roads(gid SERIAL PRIMARY KEY, road_name varchar(150));\n" 324"SELECT AddGeometryColumn('roads', 'geom', 26986, 'LINESTRING', 2);\n" 325"\n" 326"SELECT postgis_enable_history('public', 'roads', 'geom') As register_table;\n" 327"register_table\n" 328"--------------\n" 329"t\n" 330"\n" 331"INSERT INTO roads(road_name, geom)\n" 332" VALUES('Test Street', ST_GeomFromText('LINESTRING(231660.5 832170,231647 " 333"832202,231627.5 832250.5)',26986));\n" 334"\n" 335"-- check transaction detail --\n" 336"SELECT date_added, last_operation, current_version\n" 337"FROM roads_history\n" 338"WHERE road_name = 'Test Street' ORDER BY date_added DESC;\n" 339"\n" 340" date_added | last_operation | current_version\n" 341"------------------------+----------------+-----------------\n" 342" 2011-02-07 12:44:36.92 | INSERT | 2" 343