1# SOME DESCRIPTIVE TITLE. 2# 3# Translators: 4# georgersilva <georger.silva@gmail.com>, 2016 5# georgersilva <georger.silva@gmail.com>, 2016-2017 6# Poliana Palhares <p.palhares@plamu.com.br>, 2016-2017 7msgid "" 8msgstr "" 9"Project-Id-Version: PostGIS\n" 10"Report-Msgid-Bugs-To: http://bugs.kde.org\n" 11"POT-Creation-Date: 2019-10-06 23:49+0000\n" 12"PO-Revision-Date: 2018-07-23 18:02+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#: reference_raster.xml:3 24#, no-c-format 25msgid "Raster Reference" 26msgstr "Referência Raster" 27 28#. Tag: para 29#: reference_raster.xml:5 30#, no-c-format 31msgid "" 32"The functions given below are the ones which a user of PostGIS Raster is " 33"likely to need and which are currently available in PostGIS Raster. There " 34"are other functions which are required support functions to the raster " 35"objects which are not of use to a general user." 36msgstr "" 37"As funções abaixo são as que um usuário do PostGIS Raster vai precisar e que " 38"estão disponíveis no momento no PostGIS Raster. Existem outras funções que " 39"precisam das funções suporte para os objetos raster que não são de uso geral." 40 41#. Tag: para 42#: reference_raster.xml:9 43#, no-c-format 44msgid "" 45"<varname>raster</varname> is a new PostGIS type for storing and analyzing " 46"raster data." 47msgstr "" 48"<varname>raster</varname> é um novo tipo PostGIS para armazenar e analizar " 49"dados raster." 50 51#. Tag: para 52#: reference_raster.xml:10 53#, no-c-format 54msgid "" 55"For loading rasters from raster files please refer to <xref linkend=" 56"\"RT_Loading_Rasters\"/>" 57msgstr "" 58"Para carregar rasters de arquivos raster, por favor, vá para <xref linkend=" 59"\"RT_Loading_Rasters\"/>" 60 61#. Tag: para 62#: reference_raster.xml:12 63#, no-c-format 64msgid "" 65"For the examples in this reference we will be using a raster table of dummy " 66"rasters - Formed with the following code" 67msgstr "" 68"Para os exemplos nessa referência, nós usaremos uma table raster de rasters " 69"simulados - Formados com o seguinte código " 70 71#. Tag: programlisting 72#: reference_raster.xml:13 73#, no-c-format 74msgid "" 75"CREATE TABLE dummy_rast(rid integer, rast raster);\n" 76"INSERT INTO dummy_rast(rid, rast)\n" 77"VALUES (1,\n" 78"('01' -- little endian (uint8 ndr)\n" 79"||\n" 80"'0000' -- version (uint16 0)\n" 81"||\n" 82"'0000' -- nBands (uint16 0)\n" 83"||\n" 84"'0000000000000040' -- scaleX (float64 2)\n" 85"||\n" 86"'0000000000000840' -- scaleY (float64 3)\n" 87"||\n" 88"'000000000000E03F' -- ipX (float64 0.5)\n" 89"||\n" 90"'000000000000E03F' -- ipY (float64 0.5)\n" 91"||\n" 92"'0000000000000000' -- skewX (float64 0)\n" 93"||\n" 94"'0000000000000000' -- skewY (float64 0)\n" 95"||\n" 96"'00000000' -- SRID (int32 0)\n" 97"||\n" 98"'0A00' -- width (uint16 10)\n" 99"||\n" 100"'1400' -- height (uint16 20)\n" 101")::raster\n" 102"),\n" 103"-- Raster: 5 x 5 pixels, 3 bands, PT_8BUI pixel type, NODATA = 0\n" 104"(2, ('01000003009A9999999999A93F9A9999999999A9BF000000E02B274A' ||\n" 105"'41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' " 106"||\n" 107"'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::" 108"raster);" 109msgstr "" 110"CREATE TABLE dummy_rast(rid integer, rast raster);\n" 111"INSERT INTO dummy_rast(rid, rast)\n" 112"VALUES (1,\n" 113"('01' -- little endian (uint8 ndr)\n" 114"||\n" 115"'0000' -- version (uint16 0)\n" 116"||\n" 117"'0000' -- nBands (uint16 0)\n" 118"||\n" 119"'0000000000000040' -- scaleX (float64 2)\n" 120"||\n" 121"'0000000000000840' -- scaleY (float64 3)\n" 122"||\n" 123"'000000000000E03F' -- ipX (float64 0.5)\n" 124"||\n" 125"'000000000000E03F' -- ipY (float64 0.5)\n" 126"||\n" 127"'0000000000000000' -- skewX (float64 0)\n" 128"||\n" 129"'0000000000000000' -- skewY (float64 0)\n" 130"||\n" 131"'00000000' -- SRID (int32 0)\n" 132"||\n" 133"'0A00' -- width (uint16 10)\n" 134"||\n" 135"'1400' -- height (uint16 20)\n" 136")::raster\n" 137"),\n" 138"-- Raster: 5 x 5 pixels, 3 bands, PT_8BUI pixel type, NODATA = 0\n" 139"(2, ('01000003009A9999999999A93F9A9999999999A9BF000000E02B274A' ||\n" 140"'41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' " 141"||\n" 142"'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::" 143"raster);" 144 145#. Tag: para 146#: reference_raster.xml:17 147#, no-c-format 148msgid "" 149"This section lists the PostgreSQL data types specifically created to support " 150"raster functionality." 151msgstr "" 152"Essa seção lista os tipos de dados PostgreSQL criados especificamente para " 153"suportar a funcionalidade raster." 154 155#. Tag: title 156#: reference_raster.xml:20 157#, no-c-format 158msgid "Raster Support Data types" 159msgstr "Tipos de suporte de dados raster" 160 161#. Tag: refname 162#: reference_raster.xml:24 163#, no-c-format 164msgid "geomval" 165msgstr "geomval" 166 167#. Tag: refpurpose 168#: reference_raster.xml:25 169#, no-c-format 170msgid "" 171"A spatial datatype with two fields - geom (holding a geometry object) and " 172"val (holding a double precision pixel value from a raster band)." 173msgstr "" 174"Um tipo de dado espacial com dois campos - geom (possuindo objeto " 175"geométrico) e val (possuindo um valor de pixel de precisão dupla de uma " 176"banda raster)." 177 178#. Tag: title 179#: reference_raster.xml:30 reference_raster.xml:49 reference_raster.xml:121 180#: reference_raster.xml:171 reference_raster.xml:211 reference_raster.xml:257 181#: reference_raster.xml:354 reference_raster.xml:535 reference_raster.xml:709 182#: reference_raster.xml:776 reference_raster.xml:845 reference_raster.xml:888 183#: reference_raster.xml:923 reference_raster.xml:960 reference_raster.xml:1003 184#: reference_raster.xml:1064 reference_raster.xml:1109 185#: reference_raster.xml:1224 reference_raster.xml:1433 186#: reference_raster.xml:1520 reference_raster.xml:1606 187#: reference_raster.xml:1663 reference_raster.xml:1730 188#: reference_raster.xml:1795 reference_raster.xml:1837 189#: reference_raster.xml:1887 reference_raster.xml:1926 190#: reference_raster.xml:1960 reference_raster.xml:1997 191#: reference_raster.xml:2040 reference_raster.xml:2075 192#: reference_raster.xml:2109 reference_raster.xml:2159 193#: reference_raster.xml:2213 reference_raster.xml:2250 194#: reference_raster.xml:2290 reference_raster.xml:2345 195#: reference_raster.xml:2400 reference_raster.xml:2446 196#: reference_raster.xml:2481 reference_raster.xml:2517 197#: reference_raster.xml:2553 reference_raster.xml:2588 198#: reference_raster.xml:2627 reference_raster.xml:2661 199#: reference_raster.xml:2695 reference_raster.xml:2739 200#: reference_raster.xml:2801 reference_raster.xml:2856 201#: reference_raster.xml:2902 reference_raster.xml:2964 202#: reference_raster.xml:3006 reference_raster.xml:3057 203#: reference_raster.xml:3092 reference_raster.xml:3128 204#: reference_raster.xml:3162 reference_raster.xml:3237 205#: reference_raster.xml:3280 reference_raster.xml:3326 206#: reference_raster.xml:3388 reference_raster.xml:3431 207#: reference_raster.xml:3486 reference_raster.xml:3529 208#: reference_raster.xml:3605 reference_raster.xml:3692 209#: reference_raster.xml:3779 reference_raster.xml:3867 210#: reference_raster.xml:3952 reference_raster.xml:4078 211#: reference_raster.xml:4175 reference_raster.xml:4227 212#: reference_raster.xml:4275 reference_raster.xml:4318 213#: reference_raster.xml:4365 reference_raster.xml:4409 214#: reference_raster.xml:4447 reference_raster.xml:4522 215#: reference_raster.xml:4591 reference_raster.xml:4659 216#: reference_raster.xml:4736 reference_raster.xml:4808 217#: reference_raster.xml:4887 reference_raster.xml:4995 218#: reference_raster.xml:5030 reference_raster.xml:5077 219#: reference_raster.xml:5130 reference_raster.xml:5205 220#: reference_raster.xml:5270 reference_raster.xml:5383 221#: reference_raster.xml:5504 reference_raster.xml:5570 222#: reference_raster.xml:5649 reference_raster.xml:5795 223#: reference_raster.xml:5837 reference_raster.xml:5880 224#: reference_raster.xml:5934 reference_raster.xml:5987 225#: reference_raster.xml:6039 reference_raster.xml:6134 226#: reference_raster.xml:6225 reference_raster.xml:6313 227#: reference_raster.xml:6424 reference_raster.xml:6617 228#: reference_raster.xml:6856 reference_raster.xml:6999 229#: reference_raster.xml:7148 reference_raster.xml:7478 230#: reference_raster.xml:7684 reference_raster.xml:7808 231#: reference_raster.xml:8134 reference_raster.xml:8252 232#: reference_raster.xml:8365 reference_raster.xml:8507 233#: reference_raster.xml:8593 reference_raster.xml:8665 234#: reference_raster.xml:8729 reference_raster.xml:8800 235#: reference_raster.xml:8875 reference_raster.xml:8958 236#: reference_raster.xml:9029 reference_raster.xml:9085 237#: reference_raster.xml:9160 reference_raster.xml:9231 238#: reference_raster.xml:9315 reference_raster.xml:9407 239#: reference_raster.xml:9489 reference_raster.xml:9543 240#: reference_raster.xml:9617 reference_raster.xml:9665 241#: reference_raster.xml:9717 reference_raster.xml:9759 242#: reference_raster.xml:9807 reference_raster.xml:9858 243#: reference_raster.xml:9906 reference_raster.xml:9948 244#: reference_raster.xml:10022 reference_raster.xml:10067 245#: reference_raster.xml:10111 reference_raster.xml:10156 246#: reference_raster.xml:10225 reference_raster.xml:10272 247#: reference_raster.xml:10345 reference_raster.xml:10413 248#: reference_raster.xml:10502 reference_raster.xml:10587 249#: reference_raster.xml:10668 reference_raster.xml:10749 250#: reference_raster.xml:10878 reference_raster.xml:10962 251#: reference_raster.xml:11042 reference_raster.xml:11161 252#: reference_raster.xml:11208 reference_raster.xml:11280 253#: reference_raster.xml:11377 reference_raster.xml:11470 254#, no-c-format 255msgid "Description" 256msgstr "Descrição" 257 258#. Tag: para 259#: reference_raster.xml:31 260#, no-c-format 261msgid "" 262"geomval is a compound data type consisting of a geometry object referenced " 263"by the .geom field and val, a double precision value that represents the " 264"pixel value at a particular geometric location in a raster band. It is used " 265"by the ST_DumpAsPolygon and Raster intersection family of functions as an " 266"output type to explode a raster band into geometry polygons." 267msgstr "" 268"geomval é uma mistura de tipo de dados que consiste em um objeto de " 269"geometria referenciado pelo campo .geom e val, um valor de precisão dupla " 270"que representa o valor do pixel em uma localização específica de geometria " 271"em uma banda raster. É usado por ST_DumpAsPolygon e a família de interseção " 272"raster de funções como um tipo de saída para explodir uma banda raster em " 273"polígonos. " 274 275#. Tag: title 276#: reference_raster.xml:37 reference_raster.xml:107 reference_raster.xml:157 277#: reference_raster.xml:200 reference_raster.xml:245 reference_raster.xml:340 278#: reference_raster.xml:389 reference_raster.xml:583 reference_raster.xml:724 279#: reference_raster.xml:802 reference_raster.xml:862 reference_raster.xml:898 280#: reference_raster.xml:935 reference_raster.xml:973 reference_raster.xml:1028 281#: reference_raster.xml:1079 reference_raster.xml:1138 282#: reference_raster.xml:1268 reference_raster.xml:1485 283#: reference_raster.xml:1575 reference_raster.xml:1620 284#: reference_raster.xml:1683 reference_raster.xml:1759 285#: reference_raster.xml:1810 reference_raster.xml:1858 286#: reference_raster.xml:1905 reference_raster.xml:1939 287#: reference_raster.xml:1975 reference_raster.xml:2018 288#: reference_raster.xml:2054 reference_raster.xml:2088 289#: reference_raster.xml:2132 reference_raster.xml:2192 290#: reference_raster.xml:2229 reference_raster.xml:2267 291#: reference_raster.xml:2312 reference_raster.xml:2371 292#: reference_raster.xml:2425 reference_raster.xml:2460 293#: reference_raster.xml:2496 reference_raster.xml:2532 294#: reference_raster.xml:2567 reference_raster.xml:2601 295#: reference_raster.xml:2640 reference_raster.xml:2674 296#: reference_raster.xml:2709 reference_raster.xml:2759 297#: reference_raster.xml:2816 reference_raster.xml:2871 298#: reference_raster.xml:2942 reference_raster.xml:2977 299#: reference_raster.xml:3032 reference_raster.xml:3070 300#: reference_raster.xml:3215 reference_raster.xml:3252 301#: reference_raster.xml:3294 reference_raster.xml:3356 302#: reference_raster.xml:3399 reference_raster.xml:3454 303#: reference_raster.xml:3497 reference_raster.xml:3552 304#: reference_raster.xml:3627 reference_raster.xml:3717 305#: reference_raster.xml:3811 reference_raster.xml:3882 306#: reference_raster.xml:4031 reference_raster.xml:4097 307#: reference_raster.xml:4253 reference_raster.xml:4288 308#: reference_raster.xml:4337 reference_raster.xml:4382 309#: reference_raster.xml:4422 reference_raster.xml:4460 310#: reference_raster.xml:4552 reference_raster.xml:4617 311#: reference_raster.xml:4686 reference_raster.xml:4764 312#: reference_raster.xml:4838 reference_raster.xml:4960 313#: reference_raster.xml:5008 reference_raster.xml:5049 314#: reference_raster.xml:5102 reference_raster.xml:5155 315#: reference_raster.xml:5226 reference_raster.xml:5287 316#: reference_raster.xml:5418 reference_raster.xml:5519 317#: reference_raster.xml:5606 reference_raster.xml:5666 318#: reference_raster.xml:5813 reference_raster.xml:5854 319#: reference_raster.xml:5897 reference_raster.xml:5962 320#: reference_raster.xml:6010 reference_raster.xml:6088 321#: reference_raster.xml:6179 reference_raster.xml:6270 322#: reference_raster.xml:6350 reference_raster.xml:6580 323#: reference_raster.xml:6814 reference_raster.xml:6923 324#: reference_raster.xml:7058 reference_raster.xml:7409 325#: reference_raster.xml:7645 reference_raster.xml:7758 326#: reference_raster.xml:8050 reference_raster.xml:8209 327#: reference_raster.xml:8332 reference_raster.xml:8465 328#: reference_raster.xml:8536 reference_raster.xml:8624 329#: reference_raster.xml:8697 reference_raster.xml:8767 330#: reference_raster.xml:8836 reference_raster.xml:8918 331#: reference_raster.xml:8997 reference_raster.xml:9052 332#: reference_raster.xml:9121 reference_raster.xml:9192 333#: reference_raster.xml:9267 reference_raster.xml:9360 334#: reference_raster.xml:9457 reference_raster.xml:9500 335#: reference_raster.xml:9585 reference_raster.xml:9633 336#: reference_raster.xml:9684 reference_raster.xml:9734 337#: reference_raster.xml:9779 reference_raster.xml:9832 338#: reference_raster.xml:9878 reference_raster.xml:9921 339#: reference_raster.xml:9960 reference_raster.xml:10170 340#: reference_raster.xml:10238 reference_raster.xml:10291 341#: reference_raster.xml:10357 reference_raster.xml:10448 342#: reference_raster.xml:10533 reference_raster.xml:10614 343#: reference_raster.xml:10695 reference_raster.xml:10779 344#: reference_raster.xml:10908 reference_raster.xml:10989 345#: reference_raster.xml:11069 reference_raster.xml:11182 346#: reference_raster.xml:11226 reference_raster.xml:11313 347#: reference_raster.xml:11408 reference_raster.xml:11501 348#, no-c-format 349msgid "See Also" 350msgstr "Veja também" 351 352#. Tag: refname 353#: reference_raster.xml:44 354#, no-c-format 355msgid "addbandarg" 356msgstr "addbandarg" 357 358#. Tag: refpurpose 359#: reference_raster.xml:45 360#, no-c-format 361msgid "" 362"<refpurpose>A composite type used as input into the ST_AddBand function " 363"defining the attributes and initial value of the new band.</refpurpose>" 364msgstr "" 365"<refpurpose>Um tipo composto usado como entrada na função ST_AddBand " 366"definindo os atributos e valor inicial da nova banda.</refpurpose>" 367 368#. Tag: para 369#: reference_raster.xml:50 370#, no-c-format 371msgid "" 372"<para>A composite type used as input into the ST_AddBand function defining " 373"the attributes and initial value of the new band.</para>" 374msgstr "" 375"<para>Um tipo composto usado como entrada na função ST_AddBand definindo os " 376"atributos e valor inicial da nova banda.</para>" 377 378#. Tag: term 379#: reference_raster.xml:55 380#, no-c-format 381msgid "<parameter>index </parameter> <type>integer</type>" 382msgstr "<parameter>index </parameter> <type>integer</type>" 383 384#. Tag: para 385#: reference_raster.xml:60 386#, no-c-format 387msgid "" 388"1-based value indicating the position where the new band will be added " 389"amongst the raster's bands. If NULL, the new band will be added at the end " 390"of the raster's bands." 391msgstr "" 392"Valor de 1-base indicando a posição onde a nova banda será adicionada no " 393"meio das bandas do raster. Se NULO, a nova banda será adicionada no fim das " 394"bandas do raster. " 395 396#. Tag: term 397#: reference_raster.xml:67 398#, no-c-format 399msgid "<parameter>pixeltype </parameter> <type>text</type>" 400msgstr "<parameter>pixeltype </parameter> <type>text</type>" 401 402#. Tag: para 403#: reference_raster.xml:72 404#, no-c-format 405msgid "" 406"Pixel type of the new band. One of defined pixel types as described in <xref " 407"linkend=\"RT_ST_BandPixelType\"/>." 408msgstr "" 409"tipo do pixel da nova banda. Um dos tipos de pixel definidos como descrito " 410"em: <xref linkend=\"RT_ST_BandPixelType\"/>." 411 412#. Tag: term 413#: reference_raster.xml:79 414#, no-c-format 415msgid "<parameter>initialvalue </parameter> <type>double precision</type>" 416msgstr "<parameter>initialvalue </parameter> <type>double precision</type>" 417 418#. Tag: para 419#: reference_raster.xml:84 420#, no-c-format 421msgid "Initial value that all pixels of new band will be set to." 422msgstr "Valor inicial que todos os pixels da nova banda serão definidos. " 423 424#. Tag: term 425#: reference_raster.xml:91 426#, no-c-format 427msgid "<parameter>nodataval </parameter> <type>double precision</type>" 428msgstr "<parameter>nodataval </parameter> <type>double precision</type>" 429 430#. Tag: para 431#: reference_raster.xml:96 432#, no-c-format 433msgid "" 434"NODATA value of the new band. If NULL, the new band will not have a NODATA " 435"value assigned." 436msgstr "" 437"Valor NODATA da nova banda. Se NULA, a nova banda terá uma valor NODATA " 438"assinado. " 439 440#. Tag: refname 441#: reference_raster.xml:116 442#, no-c-format 443msgid "rastbandarg" 444msgstr "rastbandarg" 445 446#. Tag: refpurpose 447#: reference_raster.xml:117 448#, no-c-format 449msgid "" 450"<refpurpose>A composite type for use when needing to express a raster and a " 451"band index of that raster.</refpurpose>" 452msgstr "" 453"<refpurpose>Um tipo composto para usar quando for preciso expressar um " 454"raster e um índice de banda desse raster.</refpurpose>" 455 456#. Tag: para 457#: reference_raster.xml:122 458#, no-c-format 459msgid "" 460"<para>A composite type for use when needing to express a raster and a band " 461"index of that raster.</para>" 462msgstr "" 463"<para>Um tipo composto para usar quando for preciso expressar um raster e um " 464"índice de banda desse raster.</para>" 465 466#. Tag: term 467#: reference_raster.xml:128 468#, no-c-format 469msgid "<parameter>rast </parameter> <type>raster</type>" 470msgstr "<parameter>rast </parameter> <type>raster</type>" 471 472#. Tag: para 473#: reference_raster.xml:133 474#, no-c-format 475msgid "The raster in question/" 476msgstr "O raster em questão/" 477 478#. Tag: term 479#: reference_raster.xml:140 reference_raster.xml:360 480#, no-c-format 481msgid "<parameter>nband </parameter> <type>integer</type>" 482msgstr "<parameter>nband </parameter> <type>integer</type>" 483 484#. Tag: para 485#: reference_raster.xml:145 486#, no-c-format 487msgid "1-based value indicating the band of raster" 488msgstr "Valor 1-base indicando a banda do raster" 489 490#. Tag: refname 491#: reference_raster.xml:166 492#, no-c-format 493msgid "raster" 494msgstr "raster" 495 496#. Tag: refpurpose 497#: reference_raster.xml:167 498#, no-c-format 499msgid "raster spatial data type." 500msgstr "raster spatial data type." 501 502#. Tag: para 503#: reference_raster.xml:172 504#, no-c-format 505msgid "" 506"raster is a spatial data type used to represent raster data such as those " 507"imported from JPEGs, TIFFs, PNGs, digital elevation models. Each raster has " 508"1 or more bands each having a set of pixel values. Rasters can be " 509"georeferenced." 510msgstr "" 511 512#. Tag: para 513#: reference_raster.xml:175 514#, no-c-format 515msgid "" 516"Requires PostGIS be compiled with GDAL support. Currently rasters can be " 517"implicitly converted to geometry type, but the conversion returns the <xref " 518"linkend=\"RT_ST_ConvexHull\"/> of the raster. This auto casting may be " 519"removed in the near future so don't rely on it." 520msgstr "" 521"Requer que o PostGIS esteja compilado com o suporte GDAL. Os rasters, " 522"atualmente, podem ser convertidos implicitamente para geometria, mas a " 523"conversão retorna a <xref linkend=\"RT_ST_ConvexHull\"/> do raster. Este " 524"auto casting pode ser removido em futuro próximo, então não confie muito " 525"nisto. " 526 527#. Tag: title 528#: reference_raster.xml:181 529#, no-c-format 530msgid "Casting Behavior" 531msgstr "Comportamento Casting" 532 533#. Tag: para 534#: reference_raster.xml:182 535#, no-c-format 536msgid "" 537"This section lists the automatic as well as explicit casts allowed for this " 538"data type" 539msgstr "" 540"Essa seção lista os casts automáticos bem como os explícitos permitidos para " 541"esse tipo de dados " 542 543#. Tag: entry 544#: reference_raster.xml:187 545#, no-c-format 546msgid "Cast To" 547msgstr "Cast To" 548 549#. Tag: entry 550#: reference_raster.xml:188 551#, no-c-format 552msgid "Behavior" 553msgstr "Comportamento " 554 555#. Tag: entry 556#: reference_raster.xml:191 557#, no-c-format 558msgid "geometry" 559msgstr "geometria" 560 561#. Tag: entry 562#: reference_raster.xml:192 563#, no-c-format 564msgid "automatic" 565msgstr "automático" 566 567#. Tag: refname 568#: reference_raster.xml:207 569#, no-c-format 570msgid "reclassarg" 571msgstr "reclassarg" 572 573#. Tag: refpurpose 574#: reference_raster.xml:208 575#, no-c-format 576msgid "" 577"<refpurpose>A composite type used as input into the ST_Reclass function " 578"defining the behavior of reclassification.</refpurpose>" 579msgstr "" 580"<refpurpose>Um tipo composto usado como entrada dentro da função ST_Reclass " 581"definindo o comportamento da reclassificação.</refpurpose>" 582 583#. Tag: para 584#: reference_raster.xml:212 585#, no-c-format 586msgid "" 587"<para>A composite type used as input into the ST_Reclass function defining " 588"the behavior of reclassification.</para>" 589msgstr "" 590"<para>Um tipo composto usado como entrada dentro da função ST_Reclass " 591"definindo o comportamento da reclassificação.</para>" 592 593#. Tag: term 594#: reference_raster.xml:215 595#, no-c-format 596msgid "<parameter>nband </parameter><type>integer</type>" 597msgstr "<parameter>nband </parameter><type>integer</type>" 598 599#. Tag: para 600#: reference_raster.xml:216 601#, no-c-format 602msgid "The band number of band to reclassify." 603msgstr "O número banda para banda para reclassificar. " 604 605#. Tag: term 606#: reference_raster.xml:219 607#, no-c-format 608msgid "<parameter>reclassexpr </parameter><type>text</type>" 609msgstr "<parameter>reclassexpr </parameter><type>text</type>" 610 611#. Tag: para 612#: reference_raster.xml:220 613#, no-c-format 614msgid "" 615"range expression consisting of comma delimited range:map_range mappings. : " 616"to define mapping that defines how to map old band values to new band " 617"values. ( means >, ) means less than, ] < or equal, [ means > or " 618"equal" 619msgstr "" 620"expressão de variação consistindo em mapeamentos range:map_range delimitados " 621"por vírgulas. : para definir mapeamento que esclarece como mapear valores " 622"antigos de banda para novos. ( means >, ) significa menor que, ] < ou " 623"igual, [ significa > ou igual" 624 625#. Tag: programlisting 626#: reference_raster.xml:221 627#, no-c-format 628msgid "" 629"1. [a-b] = a <= x <= b\n" 630"\n" 631"2. (a-b] = a < x <= b\n" 632"\n" 633"3. [a-b) = a <= x < b\n" 634"\n" 635"4. (a-b) = a < x < b" 636msgstr "" 637"1. [a-b] = a <= x <= b\n" 638"\n" 639"2. (a-b] = a < x <= b\n" 640"\n" 641"3. [a-b) = a <= x < b\n" 642"\n" 643"4. (a-b) = a < x < b" 644 645#. Tag: para 646#: reference_raster.xml:222 647#, no-c-format 648msgid "( notation is optional so a-b means the same as (a-b)" 649msgstr "( notação é opcional então a-b significa o mesmo que (a-b)" 650 651#. Tag: term 652#: reference_raster.xml:227 653#, no-c-format 654msgid "<parameter>pixeltype </parameter><type>text</type>" 655msgstr "<parameter>pixeltype </parameter><type>text</type>" 656 657#. Tag: para 658#: reference_raster.xml:228 659#, no-c-format 660msgid "" 661"One of defined pixel types as described in <xref linkend=" 662"\"RT_ST_BandPixelType\"/>" 663msgstr "" 664"Um dos tipos de pixel definidos como descrito em: <xref linkend=" 665"\"RT_ST_BandPixelType\"/>" 666 667#. Tag: term 668#: reference_raster.xml:231 669#, no-c-format 670msgid "<parameter>nodataval </parameter><type>double precision</type>" 671msgstr "<parameter>nodataval </parameter><type>double precision</type>" 672 673#. Tag: para 674#: reference_raster.xml:232 675#, no-c-format 676msgid "" 677"Value to treat as no data. For image outputs that support transparency, " 678"these will be blank." 679msgstr "" 680"Valor para tratar como sem dados. Para saídas de imagens que suportam " 681"transparência, essas serão em branco. " 682 683#. Tag: title 684#: reference_raster.xml:237 685#, no-c-format 686msgid "Example: Reclassify band 2 as an 8BUI where 255 is nodata value" 687msgstr "" 688"Exemplo: Reclassificar banda 2 como um 8BUI onde 255 é o valor sem dados" 689 690#. Tag: programlisting 691#: reference_raster.xml:238 692#, no-c-format 693msgid "" 694"SELECT ROW(2, '0-100:1-10, 101-500:11-150,501 - 10000: 151-254', '8BUI', " 695"255)::reclassarg;" 696msgstr "" 697"SELECT ROW(2, '0-100:1-10, 101-500:11-150,501 - 10000: 151-254', '8BUI', " 698"255)::reclassarg;" 699 700#. Tag: title 701#: reference_raster.xml:241 702#, no-c-format 703msgid "Example: Reclassify band 1 as an 1BB and no nodata value defined" 704msgstr "" 705"Exemplo: Reclassificar banda 1 como um 1BB e nenhum valor sem dados definido" 706 707#. Tag: programlisting 708#: reference_raster.xml:242 709#, no-c-format 710msgid "SELECT ROW(1, '0-100]:0, (100-255:1', '1BB', NULL)::reclassarg;" 711msgstr "SELECT ROW(1, '0-100]:0, (100-255:1', '1BB', NULL)::reclassarg;" 712 713#. Tag: refname 714#: reference_raster.xml:252 715#, no-c-format 716msgid "summarystats" 717msgstr "summarystats" 718 719#. Tag: refpurpose 720#: reference_raster.xml:253 721#, no-c-format 722msgid "" 723"A composite type returned by the ST_SummaryStats and ST_SummaryStatsAgg " 724"functions." 725msgstr "" 726"Um tipo composto retornado pelas funções ST_SummaryStats e " 727"ST_SummaryStatsAgg. " 728 729#. Tag: para 730#: reference_raster.xml:258 731#, no-c-format 732msgid "" 733"A composite type returned by the <xref linkend=\"RT_ST_SummaryStats\"/> and " 734"<xref linkend=\"RT_ST_SummaryStatsAgg\"/> functions." 735msgstr "" 736"Um tipo composto retornado pelas funções <xref linkend=\"RT_ST_SummaryStats" 737"\"/> e <xref linkend=\"RT_ST_SummaryStatsAgg\"/>." 738 739#. Tag: term 740#: reference_raster.xml:263 741#, no-c-format 742msgid "<parameter>count </parameter> <type>integer</type>" 743msgstr "<parameter>count </parameter> <type>integer</type>" 744 745#. Tag: para 746#: reference_raster.xml:268 747#, no-c-format 748msgid "Number of pixels counted for the summary statistics." 749msgstr "Número de pixels contados para as estatísticas resumo." 750 751#. Tag: term 752#: reference_raster.xml:275 753#, no-c-format 754msgid "<parameter>sum </parameter> <type>double precision</type>" 755msgstr "<parameter>sum </parameter> <type>double precision</type>" 756 757#. Tag: para 758#: reference_raster.xml:280 759#, no-c-format 760msgid "Sum of all counted pixel values." 761msgstr "Resumo de todos os valores contados de pixels. " 762 763#. Tag: term 764#: reference_raster.xml:287 765#, no-c-format 766msgid "<parameter>mean </parameter> <type>double precision</type>" 767msgstr "<parameter>mean </parameter> <type>double precision</type>" 768 769#. Tag: para 770#: reference_raster.xml:292 771#, no-c-format 772msgid "Arithmetic mean of all counted pixel values." 773msgstr "Significado aritmético de todos os valores de pixels. " 774 775#. Tag: term 776#: reference_raster.xml:299 777#, no-c-format 778msgid "<parameter>stddev </parameter> <type>double precision</type>" 779msgstr "<parameter>stddev </parameter> <type>double precision</type>" 780 781#. Tag: para 782#: reference_raster.xml:304 783#, no-c-format 784msgid "Standard deviation of all counted pixel values." 785msgstr "Divergência parão de todos os valores contados de pixels." 786 787#. Tag: term 788#: reference_raster.xml:311 789#, no-c-format 790msgid "<parameter>min </parameter> <type>double precision</type>" 791msgstr "<parameter>min </parameter> <type>double precision</type>" 792 793#. Tag: para 794#: reference_raster.xml:316 795#, no-c-format 796msgid "Minimum value of counted pixel values." 797msgstr "Valor mínimo dos valores dos pixeis contados. " 798 799#. Tag: term 800#: reference_raster.xml:323 801#, no-c-format 802msgid "<parameter>max </parameter> <type>double precision</type>" 803msgstr "<parameter>max </parameter> <type>double precision</type>" 804 805#. Tag: para 806#: reference_raster.xml:328 807#, no-c-format 808msgid "Maximum value of counted pixel values." 809msgstr "Valor máximo dos valores dos pixeis contados. " 810 811#. Tag: para 812#: reference_raster.xml:341 813#, no-c-format 814msgid ", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>" 815msgstr ", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>" 816 817#. Tag: refname 818#: reference_raster.xml:349 819#, no-c-format 820msgid "unionarg" 821msgstr "unionarg" 822 823#. Tag: refpurpose 824#: reference_raster.xml:350 825#, no-c-format 826msgid "" 827"<refpurpose>A composite type used as input into the ST_Union function " 828"defining the bands to be processed and behavior of the UNION operation.</" 829"refpurpose>" 830msgstr "" 831"<refpurpose>Um tipo composto usado como entrada dentro da função ST_Union " 832"definindo as bandas a serem processadas e o comportamento da operação UNIÃO." 833"</refpurpose>" 834 835#. Tag: para 836#: reference_raster.xml:355 837#, no-c-format 838msgid "" 839"<para>A composite type used as input into the ST_Union function defining the " 840"bands to be processed and behavior of the UNION operation.</para>" 841msgstr "" 842"<para>Um tipo composto usado como entrada dentro da função ST_Union " 843"definindo as bandas a serem processadas e o comportamento da operação UNIÃO." 844"</para>" 845 846#. Tag: para 847#: reference_raster.xml:365 848#, no-c-format 849msgid "1-based value indicating the band of each input raster to be processed." 850msgstr "" 851"Valor 1-baseado indicando a banda de cada raster de entrada a ser " 852"processado. " 853 854#. Tag: term 855#: reference_raster.xml:372 856#, no-c-format 857msgid "<parameter>uniontype </parameter> <type>text</type>" 858msgstr "<parameter>uniontype </parameter> <type>text</type>" 859 860#. Tag: para 861#: reference_raster.xml:377 862#, no-c-format 863msgid "" 864"Type of UNION operation. One of defined types as described in <xref linkend=" 865"\"RT_ST_Union\"/>." 866msgstr "" 867"Tipo de operação de UNIÃO. Um dos tipos definidos como descritos em <xref " 868"linkend=\"RT_ST_Union\"/>." 869 870#. Tag: title 871#: reference_raster.xml:399 872#, no-c-format 873msgid "Raster Management" 874msgstr "Gerenciamento Raster" 875 876#. Tag: refname 877#: reference_raster.xml:402 878#, no-c-format 879msgid "AddRasterConstraints" 880msgstr "AddRasterConstraints" 881 882#. Tag: refpurpose 883#: reference_raster.xml:404 884#, no-c-format 885msgid "" 886"Adds raster constraints to a loaded raster table for a specific column that " 887"constrains spatial ref, scaling, blocksize, alignment, bands, band type and " 888"a flag to denote if raster column is regularly blocked. The table must be " 889"loaded with data for the constraints to be inferred. Returns true if the " 890"constraint setting was accomplished and issues a notice otherwise." 891msgstr "" 892 893#. Tag: funcsynopsis 894#: reference_raster.xml:408 895#, fuzzy, no-c-format 896msgid "" 897"<funcprototype> <funcdef>boolean <function>AddRasterConstraints</function></" 898"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></" 899"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></" 900"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 901"<parameter>srid=true</parameter></paramdef> <paramdef choice=\"opt" 902"\"><type>boolean </type> <parameter>scale_x=true</parameter></paramdef> " 903"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_y=true</" 904"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 905"<parameter>blocksize_x=true</parameter></paramdef> <paramdef choice=\"opt" 906"\"><type>boolean </type> <parameter>blocksize_y=true</parameter></paramdef> " 907"<paramdef choice=\"opt\"><type>boolean </type> " 908"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt" 909"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></" 910"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 911"<parameter>num_bands=true</parameter> </paramdef> <paramdef choice=\"opt" 912"\"><type>boolean </type> <parameter>pixel_types=true</parameter> </paramdef> " 913"<paramdef choice=\"opt\"><type>boolean </type> " 914"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt" 915"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 916"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 917"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 918"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 919"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 920"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 921"type> <parameter>VARIADIC constraints</parameter></paramdef> </" 922"funcprototype> <funcprototype> <funcdef>boolean " 923"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 924"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 925"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 926"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 927"type> <parameter>VARIADIC constraints</parameter></paramdef> </" 928"funcprototype> <funcprototype> <funcdef>boolean " 929"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 930"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 931"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 932"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt" 933"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> " 934"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_x=true</" 935"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 936"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt" 937"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> " 938"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</" 939"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 940"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt" 941"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></" 942"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 943"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 944"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 945"<paramdef choice=\"opt\"><type>boolean </type> " 946"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt" 947"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 948"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 949"parameter> </paramdef> </funcprototype>" 950msgstr "" 951"<funcprototype> <funcdef>boolean <function>AddRasterConstraints</function></" 952"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></" 953"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></" 954"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></" 955"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></" 956"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></" 957"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</" 958"parameter></paramdef> <paramdef><type>boolean </type> " 959"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </" 960"type> <parameter>same_alignment</parameter></paramdef> " 961"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></" 962"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 963"<parameter>num_bands=true</parameter> </paramdef> <paramdef choice=\"opt" 964"\"><type>boolean </type> <parameter>pixel_types=true</parameter> </paramdef> " 965"<paramdef choice=\"opt\"><type>boolean </type> " 966"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt" 967"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 968"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 969"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 970"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 971"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 972"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 973"type> <parameter>VARIADIC constraints</parameter></paramdef> </" 974"funcprototype> <funcprototype> <funcdef>boolean " 975"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 976"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 977"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 978"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 979"type> <parameter>VARIADIC constraints</parameter></paramdef> </" 980"funcprototype> <funcprototype> <funcdef>boolean " 981"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </" 982"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 983"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 984"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt" 985"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> " 986"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_x=true</" 987"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 988"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt" 989"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> " 990"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</" 991"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 992"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt" 993"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></" 994"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 995"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 996"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 997"<paramdef choice=\"opt\"><type>boolean </type> " 998"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt" 999"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 1000"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 1001"parameter> </paramdef> </funcprototype>" 1002 1003#. Tag: para 1004#: reference_raster.xml:537 1005#, no-c-format 1006msgid "" 1007"Generates constraints on a raster column that are used to display " 1008"information in the <varname>raster_columns</varname> raster catalog. The " 1009"<varname>rastschema</varname> is the name of the table schema the table " 1010"resides in. The <varname>srid</varname> must be an integer value reference " 1011"to an entry in the SPATIAL_REF_SYS table." 1012msgstr "" 1013"Gera restrições em uma coluna raster que são usadas para expor informação no " 1014"catálogo raster <varname>raster_columns</varname>. O <varname>rastschema</" 1015"varname> é o nome da tabela esquema que a tabela está. O <varname>srid</" 1016"varname> deve ser um valor inteiro referência a uma entrada na tabela " 1017"SPATIAL_REF_SYS." 1018 1019#. Tag: para 1020#: reference_raster.xml:542 1021#, no-c-format 1022msgid "" 1023"<varname>raster2pgsql</varname> loader uses this function to register raster " 1024"tables" 1025msgstr "" 1026"<varname>raster2pgsql</varname> o carregador usa esta função para registrar " 1027"tabelas raster" 1028 1029#. Tag: para 1030#: reference_raster.xml:543 1031#, no-c-format 1032msgid "" 1033"Valid constraint names to pass in: refer to <xref linkend=\"RT_Raster_Columns" 1034"\"/> for more details." 1035msgstr "" 1036"Valida nomes restritos para passar: recorra a <xref linkend=" 1037"\"RT_Raster_Columns\"/> para mais detalhes. " 1038 1039#. Tag: para 1040#: reference_raster.xml:545 1041#, no-c-format 1042msgid "<varname>blocksize</varname> sets both X and Y blocksize" 1043msgstr "<varname>blocksize</varname> coloca X e Y blocksize" 1044 1045#. Tag: para 1046#: reference_raster.xml:546 1047#, no-c-format 1048msgid "" 1049"<varname>blocksize_x</varname> sets X tile (width in pixels of each tile)" 1050msgstr "" 1051"<varname>blocksize_x</varname> coloca tile X (largura em pixeis de cada tile)" 1052 1053#. Tag: para 1054#: reference_raster.xml:547 1055#, no-c-format 1056msgid "" 1057"<varname>blocksize_y</varname> sets Y tile (height in pixels of each tile)" 1058msgstr "" 1059"<varname>blocksize_y</varname> coloca tile Y (altura em pixeis de cada tile)" 1060 1061#. Tag: para 1062#: reference_raster.xml:548 1063#, no-c-format 1064msgid "" 1065"<varname>extent</varname> computes extent of whole table and applys " 1066"constraint all rasters must be within that extent" 1067msgstr "" 1068"<varname>extent</varname> calcula a extensão da tabela toda e aplica " 1069"restrições, todos os rasters devem estar dentro da extensão" 1070 1071#. Tag: para 1072#: reference_raster.xml:550 1073#, no-c-format 1074msgid "<varname>num_bands</varname> number of bands" 1075msgstr "<varname>num_bands</varname> número de bandas " 1076 1077#. Tag: para 1078#: reference_raster.xml:551 1079#, no-c-format 1080msgid "" 1081"<varname>pixel_types</varname> reads array of pixel types for each band " 1082"ensure all band n have same pixel type" 1083msgstr "" 1084"<varname>pixel_types</varname> lê arranjo de tipos de pixeis para cada banda " 1085"garantir que todas as bandas n tenham o mesmo tipo de pixel " 1086 1087#. Tag: para 1088#: reference_raster.xml:552 1089#, no-c-format 1090msgid "" 1091"<varname>regular_blocking</varname> sets spatially unique (no two rasters " 1092"can be spatially the same) and coverage tile (raster is aligned to a " 1093"coverage) constraints" 1094msgstr "" 1095"<varname>regular_blocking</varname> espacialmente único (dois rasters não " 1096"podem ser espacialmente iguais) e restrições de tile de cobertura (raster é " 1097"alinhado a uma cobertura)" 1098 1099#. Tag: para 1100#: reference_raster.xml:553 1101#, no-c-format 1102msgid "" 1103"<varname>same_alignment</varname> ensures they all have same alignment " 1104"meaning any two tiles you compare will return true for. Refer to <xref " 1105"linkend=\"RT_ST_SameAlignment\"/>." 1106msgstr "" 1107 1108#. Tag: para 1109#: reference_raster.xml:554 1110#, no-c-format 1111msgid "<varname>srid</varname> ensures all have same srid" 1112msgstr "<varname>srid</varname> assegura que todos tenham o mesmo srid" 1113 1114#. Tag: para 1115#: reference_raster.xml:555 1116#, no-c-format 1117msgid "More -- any listed as inputs into the above functions" 1118msgstr "Mais -- qualquer um listado como entrada dentro das funções acima" 1119 1120#. Tag: para 1121#: reference_raster.xml:558 1122#, no-c-format 1123msgid "" 1124"This function infers the constraints from the data already present in the " 1125"table. As such for it to work, you must create the raster column first and " 1126"then load it with data." 1127msgstr "" 1128"Esta função infere as restrições dos dados já presentes na tabela. Assim " 1129"como para que ela funcione, você deve criar a coluna raster primeiro e então " 1130"carregá-la com dados." 1131 1132#. Tag: para 1133#: reference_raster.xml:563 1134#, no-c-format 1135msgid "" 1136"If you need to load more data in your tables after you have already applied " 1137"constraints, you may want to run the DropRasterConstraints if the extent of " 1138"your data has changed." 1139msgstr "" 1140"Se você precisar carregar mais dados nas suas tabelas depois de ter aplicado " 1141"suas restrições, talvez queira executar as DropRasterConstraints se a " 1142"extensão dos seus dados mudou. " 1143 1144#. Tag: para 1145#: reference_raster.xml:567 reference_raster.xml:716 reference_raster.xml:792 1146#: reference_raster.xml:858 reference_raster.xml:1526 reference_raster.xml:1964 1147#: reference_raster.xml:3014 reference_raster.xml:3241 1148#: reference_raster.xml:3284 reference_raster.xml:3345 1149#: reference_raster.xml:5038 reference_raster.xml:5209 1150#: reference_raster.xml:5404 reference_raster.xml:5508 1151#: reference_raster.xml:5578 reference_raster.xml:5800 1152#: reference_raster.xml:6438 reference_raster.xml:7704 1153#: reference_raster.xml:7903 reference_raster.xml:8167 1154#: reference_raster.xml:8286 reference_raster.xml:8415 1155#: reference_raster.xml:8513 reference_raster.xml:8601 1156#: reference_raster.xml:8685 reference_raster.xml:8824 1157#: reference_raster.xml:8899 reference_raster.xml:8986 1158#: reference_raster.xml:9109 reference_raster.xml:9180 1159#: reference_raster.xml:9255 reference_raster.xml:9341 1160#: reference_raster.xml:9437 reference_raster.xml:9565 1161#: reference_raster.xml:10029 reference_raster.xml:10280 1162#: reference_raster.xml:10352 reference_raster.xml:11171 1163#, no-c-format 1164msgid "Availability: 2.0.0" 1165msgstr "Disponibilidade: 2.0.0" 1166 1167#. Tag: title 1168#: reference_raster.xml:571 1169#, no-c-format 1170msgid "Examples: Apply all possible constraints on column based on data" 1171msgstr "" 1172"Exemplos: Aplica todas as restrições possíveis em uma coluna baseada em dados" 1173 1174#. Tag: programlisting 1175#: reference_raster.xml:573 1176#, no-c-format 1177msgid "" 1178"CREATE TABLE myrasters(rid SERIAL primary key, rast raster);\n" 1179"INSERT INTO myrasters(rast)\n" 1180"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, " 1181"0,4326), 1, '8BSI'::text, -129, NULL);\n" 1182"\n" 1183"SELECT AddRasterConstraints('myrasters'::name, 'rast'::name);\n" 1184"\n" 1185"\n" 1186"-- verify if registered correctly in the raster_columns view --\n" 1187"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, " 1188"pixel_types, nodata_values\n" 1189" FROM raster_columns\n" 1190" WHERE r_table_name = 'myrasters';\n" 1191"\n" 1192" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | " 1193"pixel_types| nodata_values\n" 1194"------+---------+---------+-------------+-------------+-----------" 1195"+-------------+---------------\n" 1196" 4326 | 2 | 2 | 1000 | 1000 | 1 | " 1197"{8BSI} | {0}" 1198msgstr "" 1199"CREATE TABLE myrasters(rid SERIAL primary key, rast raster);\n" 1200"INSERT INTO myrasters(rast)\n" 1201"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, " 1202"0,4326), 1, '8BSI'::text, -129, NULL);\n" 1203"\n" 1204"SELECT AddRasterConstraints('myrasters'::name, 'rast'::name);\n" 1205"\n" 1206"\n" 1207"-- verify if registered correctly in the raster_columns view --\n" 1208"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, " 1209"pixel_types, nodata_values\n" 1210" FROM raster_columns\n" 1211" WHERE r_table_name = 'myrasters';\n" 1212"\n" 1213" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | " 1214"pixel_types| nodata_values\n" 1215"------+---------+---------+-------------+-------------+-----------" 1216"+-------------+---------------\n" 1217" 4326 | 2 | 2 | 1000 | 1000 | 1 | " 1218"{8BSI} | {0}" 1219 1220#. Tag: title 1221#: reference_raster.xml:577 1222#, no-c-format 1223msgid "Examples: Apply single constraint" 1224msgstr "Exemplos: Aplica uma única restrição" 1225 1226#. Tag: programlisting 1227#: reference_raster.xml:579 1228#, no-c-format 1229msgid "" 1230"CREATE TABLE public.myrasters2(rid SERIAL primary key, rast raster);\n" 1231"INSERT INTO myrasters2(rast)\n" 1232"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, " 1233"0,4326), 1, '8BSI'::text, -129, NULL);\n" 1234"\n" 1235"SELECT AddRasterConstraints('public'::name, 'myrasters2'::name, 'rast'::" 1236"name,'regular_blocking', 'blocksize');\n" 1237"-- get notice--\n" 1238"NOTICE: Adding regular blocking constraint\n" 1239"NOTICE: Adding blocksize-X constraint\n" 1240"NOTICE: Adding blocksize-Y constraint" 1241msgstr "" 1242"CREATE TABLE public.myrasters2(rid SERIAL primary key, rast raster);\n" 1243"INSERT INTO myrasters2(rast)\n" 1244"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, " 1245"0,4326), 1, '8BSI'::text, -129, NULL);\n" 1246"\n" 1247"SELECT AddRasterConstraints('public'::name, 'myrasters2'::name, 'rast'::" 1248"name,'regular_blocking', 'blocksize');\n" 1249"-- get notice--\n" 1250"NOTICE: Adding regular blocking constraint\n" 1251"NOTICE: Adding blocksize-X constraint\n" 1252"NOTICE: Adding blocksize-Y constraint" 1253 1254#. Tag: para 1255#: reference_raster.xml:585 1256#, no-c-format 1257msgid "" 1258", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_MakeEmptyRaster\"/" 1259">, <xref linkend=\"RT_DropRasterConstraints\"/>, <xref linkend=" 1260"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_SRID\"/>" 1261msgstr "" 1262", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_MakeEmptyRaster\"/" 1263">, <xref linkend=\"RT_DropRasterConstraints\"/>, <xref linkend=" 1264"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_SRID\"/>" 1265 1266#. Tag: refname 1267#: reference_raster.xml:591 1268#, no-c-format 1269msgid "DropRasterConstraints" 1270msgstr "DropRasterConstraints" 1271 1272#. Tag: refpurpose 1273#: reference_raster.xml:593 1274#, no-c-format 1275msgid "" 1276"Drops PostGIS raster constraints that refer to a raster table column. Useful " 1277"if you need to reload data or update your raster column data." 1278msgstr "" 1279"Derruba as restrições raster PostGIS que se referem a uma tabela de coluna " 1280"raster. É útil se você precisar recarregar dados ou atualizar os dados da " 1281"sua coluna raster. " 1282 1283#. Tag: funcsynopsis 1284#: reference_raster.xml:597 1285#, no-c-format 1286msgid "" 1287"<funcprototype> <funcdef>boolean <function>DropRasterConstraints</function></" 1288"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></" 1289"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></" 1290"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></" 1291"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></" 1292"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></" 1293"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</" 1294"parameter></paramdef> <paramdef><type>boolean </type> " 1295"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </" 1296"type> <parameter>same_alignment</parameter></paramdef> " 1297"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></" 1298"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1299"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 1300"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 1301"<paramdef choice=\"opt\"><type>boolean </type> " 1302"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt" 1303"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 1304"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 1305"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1306"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </" 1307"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 1308"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 1309"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt" 1310"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> " 1311"<paramdef><type>boolean </type> <parameter>scale_x=true</parameter></" 1312"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1313"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt" 1314"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> " 1315"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</" 1316"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1317"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt" 1318"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></" 1319"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1320"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 1321"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 1322"<paramdef choice=\"opt\"><type>boolean </type> " 1323"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt" 1324"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 1325"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 1326"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1327"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </" 1328"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 1329"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 1330"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 1331"type> <parameter>constraints</parameter></paramdef> </funcprototype>" 1332msgstr "" 1333"<funcprototype> <funcdef>boolean <function>DropRasterConstraints</function></" 1334"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></" 1335"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></" 1336"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></" 1337"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></" 1338"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></" 1339"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</" 1340"parameter></paramdef> <paramdef><type>boolean </type> " 1341"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </" 1342"type> <parameter>same_alignment</parameter></paramdef> " 1343"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></" 1344"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1345"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 1346"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 1347"<paramdef choice=\"opt\"><type>boolean </type> " 1348"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt" 1349"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 1350"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 1351"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1352"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </" 1353"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 1354"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 1355"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt" 1356"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> " 1357"<paramdef><type>boolean </type> <parameter>scale_x=true</parameter></" 1358"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1359"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt" 1360"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> " 1361"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</" 1362"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1363"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt" 1364"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></" 1365"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 1366"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt" 1367"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> " 1368"<paramdef choice=\"opt\"><type>boolean </type> " 1369"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt" 1370"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> " 1371"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</" 1372"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1373"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </" 1374"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </" 1375"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </" 1376"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </" 1377"type> <parameter>constraints</parameter></paramdef> </funcprototype>" 1378 1379#. Tag: para 1380#: reference_raster.xml:710 1381#, no-c-format 1382msgid "" 1383"Drops PostGIS raster constraints that refer to a raster table column that " 1384"were added by <xref linkend=\"RT_AddRasterConstraints\"/>. Useful if you " 1385"need to load more data or update your raster column data. You do not need to " 1386"do this if you want to get rid of a raster table or a raster column." 1387msgstr "" 1388"Derruba as restrições raster PostGIS que se referem a uma tabela de coluna " 1389"raster que foram adicionadas pela <xref linkend=\"RT_AddRasterConstraints\"/" 1390">. É útil se você precisar recarregar dados ou atualizar os dados da sua " 1391"coluna raster. Não é necessário fazer isso se quiser livrar-se de uma tabela " 1392"ou coluna raster. " 1393 1394#. Tag: para 1395#: reference_raster.xml:712 1396#, no-c-format 1397msgid "To drop a raster table use the standard" 1398msgstr "Para derrubar uma tabela raster use o padrão" 1399 1400#. Tag: programlisting 1401#: reference_raster.xml:712 1402#, no-c-format 1403msgid "DROP TABLE mytable" 1404msgstr "DROP TABLE mytable" 1405 1406#. Tag: para 1407#: reference_raster.xml:713 1408#, no-c-format 1409msgid "" 1410"To drop just a raster column and leave the rest of the table, use standard " 1411"SQL" 1412msgstr "" 1413"Para derrubar uma coluna raster e deixar o resto da tabela, use o SQL padrão" 1414 1415#. Tag: programlisting 1416#: reference_raster.xml:713 1417#, no-c-format 1418msgid "ALTER TABLE mytable DROP COLUMN rast" 1419msgstr "ALTER TABLE mytable DROP COLUMN rast" 1420 1421#. Tag: para 1422#: reference_raster.xml:714 1423#, no-c-format 1424msgid "" 1425"the table will disappear from the <varname>raster_columns</varname> catalog " 1426"if the column or table is dropped. However if only the constraints are " 1427"dropped, the raster column will still be listed in the " 1428"<varname>raster_columns</varname> catalog, but there will be no other " 1429"information about it aside from the column name and table." 1430msgstr "" 1431"a tabela desparecerá do catálogo <varname>raster_columns</varname> se a " 1432"coluna ou tabela for derrubada. Entretanto, se somente as restrições forem " 1433"derrubadas, a coluna raster continuará sendo listada no catálogo " 1434"<varname>raster_columns</varname>, mas não haverá nenhuma outra informação " 1435"sobre isso à parte do nome da coluna e da tabela. " 1436 1437#. Tag: title 1438#: reference_raster.xml:719 reference_raster.xml:796 reference_raster.xml:893 1439#: reference_raster.xml:929 reference_raster.xml:967 reference_raster.xml:1530 1440#: reference_raster.xml:1676 reference_raster.xml:1750 1441#: reference_raster.xml:1851 reference_raster.xml:1899 1442#: reference_raster.xml:1932 reference_raster.xml:1968 1443#: reference_raster.xml:2011 reference_raster.xml:2047 1444#: reference_raster.xml:2081 reference_raster.xml:2221 1445#: reference_raster.xml:2259 reference_raster.xml:2302 1446#: reference_raster.xml:2361 reference_raster.xml:2415 1447#: reference_raster.xml:2453 reference_raster.xml:2488 1448#: reference_raster.xml:2524 reference_raster.xml:2560 1449#: reference_raster.xml:2596 reference_raster.xml:2633 1450#: reference_raster.xml:2667 reference_raster.xml:2701 1451#: reference_raster.xml:2752 reference_raster.xml:2809 1452#: reference_raster.xml:2864 reference_raster.xml:2970 1453#: reference_raster.xml:3025 reference_raster.xml:3063 1454#: reference_raster.xml:3103 reference_raster.xml:3138 1455#: reference_raster.xml:3208 reference_raster.xml:3245 1456#: reference_raster.xml:3289 reference_raster.xml:3351 1457#: reference_raster.xml:3394 reference_raster.xml:3449 1458#: reference_raster.xml:3492 reference_raster.xml:3547 1459#: reference_raster.xml:3614 reference_raster.xml:3708 1460#: reference_raster.xml:3800 reference_raster.xml:3875 1461#: reference_raster.xml:4088 reference_raster.xml:4184 1462#: reference_raster.xml:4247 reference_raster.xml:4281 1463#: reference_raster.xml:4329 reference_raster.xml:4372 1464#: reference_raster.xml:4453 reference_raster.xml:4546 1465#: reference_raster.xml:4610 reference_raster.xml:4678 1466#: reference_raster.xml:4756 reference_raster.xml:4833 1467#: reference_raster.xml:4912 reference_raster.xml:5001 1468#: reference_raster.xml:5042 reference_raster.xml:5097 1469#: reference_raster.xml:5150 reference_raster.xml:5220 1470#: reference_raster.xml:5282 reference_raster.xml:5512 1471#: reference_raster.xml:5661 reference_raster.xml:5804 1472#: reference_raster.xml:5847 reference_raster.xml:5890 1473#: reference_raster.xml:5955 reference_raster.xml:6003 1474#: reference_raster.xml:6262 reference_raster.xml:6703 1475#: reference_raster.xml:7708 reference_raster.xml:8171 1476#: reference_raster.xml:8419 reference_raster.xml:8690 1477#: reference_raster.xml:8762 reference_raster.xml:8829 1478#: reference_raster.xml:8991 reference_raster.xml:9047 1479#: reference_raster.xml:9114 reference_raster.xml:9185 1480#: reference_raster.xml:9260 reference_raster.xml:9495 1481#: reference_raster.xml:9628 reference_raster.xml:9679 1482#: reference_raster.xml:9728 reference_raster.xml:9771 1483#: reference_raster.xml:9827 reference_raster.xml:9872 1484#: reference_raster.xml:9916 reference_raster.xml:9955 1485#: reference_raster.xml:10033 reference_raster.xml:10077 1486#: reference_raster.xml:10122 reference_raster.xml:10285 1487#: reference_raster.xml:10441 reference_raster.xml:10528 1488#: reference_raster.xml:10609 reference_raster.xml:10690 1489#: reference_raster.xml:10771 reference_raster.xml:10903 1490#: reference_raster.xml:10984 reference_raster.xml:11064 1491#: reference_raster.xml:11221 reference_raster.xml:11308 1492#: reference_raster.xml:11403 reference_raster.xml:11496 1493#, no-c-format 1494msgid "Examples" 1495msgstr "Exemplos" 1496 1497#. Tag: programlisting 1498#: reference_raster.xml:721 1499#, no-c-format 1500msgid "" 1501"SELECT DropRasterConstraints ('myrasters','rast');\n" 1502"----RESULT output ---\n" 1503"t\n" 1504"\n" 1505"-- verify change in raster_columns --\n" 1506"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, " 1507"pixel_types, nodata_values\n" 1508" FROM raster_columns\n" 1509" WHERE r_table_name = 'myrasters';\n" 1510"\n" 1511" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | " 1512"pixel_types| nodata_values\n" 1513"------+---------+---------+-------------+-------------+-----------" 1514"+-------------+---------------\n" 1515" 0 | | | | | " 1516"| |" 1517msgstr "" 1518"SELECT DropRasterConstraints ('myrasters','rast');\n" 1519"----RESULT output ---\n" 1520"t\n" 1521"\n" 1522"-- verify change in raster_columns --\n" 1523"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, " 1524"pixel_types, nodata_values\n" 1525" FROM raster_columns\n" 1526" WHERE r_table_name = 'myrasters';\n" 1527"\n" 1528" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | " 1529"pixel_types| nodata_values\n" 1530"------+---------+---------+-------------+-------------+-----------" 1531"+-------------+---------------\n" 1532" 0 | | | | | " 1533"| |" 1534 1535#. Tag: refname 1536#: reference_raster.xml:732 1537#, no-c-format 1538msgid "AddOverviewConstraints" 1539msgstr "AddOverviewConstraints" 1540 1541#. Tag: refpurpose 1542#: reference_raster.xml:734 1543#, no-c-format 1544msgid "Tag a raster column as being an overview of another." 1545msgstr "Marca uma coluna raster como sendo um resumo de outra. " 1546 1547#. Tag: funcsynopsis 1548#: reference_raster.xml:738 1549#, no-c-format 1550msgid "" 1551"<funcprototype> <funcdef>boolean <function>AddOverviewConstraints</" 1552"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</" 1553"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</" 1554"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</" 1555"parameter></paramdef> <paramdef><type>name </type> <parameter>refschema</" 1556"parameter></paramdef> <paramdef><type>name </type> <parameter>reftable</" 1557"parameter></paramdef> <paramdef><type>name </type> <parameter>refcolumn</" 1558"parameter></paramdef> <paramdef><type>int </type> <parameter>ovfactor</" 1559"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1560"<function>AddOverviewConstraints</function></funcdef> <paramdef><type>name </" 1561"type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </type> " 1562"<parameter>ovcolumn</parameter></paramdef> <paramdef><type>name </type> " 1563"<parameter>reftable</parameter></paramdef> <paramdef><type>name </type> " 1564"<parameter>refcolumn</parameter></paramdef> <paramdef><type>int </type> " 1565"<parameter>ovfactor</parameter></paramdef> </funcprototype>" 1566msgstr "" 1567"<funcprototype> <funcdef>boolean <function>AddOverviewConstraints</" 1568"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</" 1569"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</" 1570"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</" 1571"parameter></paramdef> <paramdef><type>name </type> <parameter>refschema</" 1572"parameter></paramdef> <paramdef><type>name </type> <parameter>reftable</" 1573"parameter></paramdef> <paramdef><type>name </type> <parameter>refcolumn</" 1574"parameter></paramdef> <paramdef><type>int </type> <parameter>ovfactor</" 1575"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1576"<function>AddOverviewConstraints</function></funcdef> <paramdef><type>name </" 1577"type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </type> " 1578"<parameter>ovcolumn</parameter></paramdef> <paramdef><type>name </type> " 1579"<parameter>reftable</parameter></paramdef> <paramdef><type>name </type> " 1580"<parameter>refcolumn</parameter></paramdef> <paramdef><type>int </type> " 1581"<parameter>ovfactor</parameter></paramdef> </funcprototype>" 1582 1583#. Tag: para 1584#: reference_raster.xml:778 1585#, no-c-format 1586msgid "" 1587"Adds constraints on a raster column that are used to display information in " 1588"the <varname>raster_overviews</varname> raster catalog." 1589msgstr "" 1590"Adiciona restrições em uma coluna raster que são usadas para expor " 1591"informações no catálogo <varname>raster_overviews</varname> raster." 1592 1593#. Tag: para 1594#: reference_raster.xml:782 1595#, no-c-format 1596msgid "" 1597"The <varname>ovfactor</varname> parameter represents the scale multiplier in " 1598"the overview column: higher overview factors have lower resolution." 1599msgstr "" 1600"O parâmetro <varname>ovfactor</varname> representa a escala multiplicadora " 1601"na coluna resumo: fatores resumo mais altos possuem uma resolução menor. " 1602 1603#. Tag: para 1604#: reference_raster.xml:786 1605#, no-c-format 1606msgid "" 1607"When the <varname>ovschema</varname> and <varname>refschema</varname> " 1608"parameters are omitted, the first table found scanning the " 1609"<varname>search_path</varname> will be used." 1610msgstr "" 1611"Quando os parâmetros <varname>ovschema</varname> e <varname>refschema</" 1612"varname> são omitidos, a primeira tabela encontrada escaneando o " 1613"<varname>search_path</varname> será utilizada. " 1614 1615#. Tag: programlisting 1616#: reference_raster.xml:798 1617#, no-c-format 1618msgid "" 1619"CREATE TABLE res1 AS SELECT\n" 1620"ST_AddBand(\n" 1621" ST_MakeEmptyRaster(1000, 1000, 0, 0, 2),\n" 1622" 1, '8BSI'::text, -129, NULL\n" 1623") r1;\n" 1624"\n" 1625"CREATE TABLE res2 AS SELECT\n" 1626"ST_AddBand(\n" 1627" ST_MakeEmptyRaster(500, 500, 0, 0, 4),\n" 1628" 1, '8BSI'::text, -129, NULL\n" 1629") r2;\n" 1630"\n" 1631"SELECT AddOverviewConstraints('res2', 'r2', 'res1', 'r1', 2);\n" 1632"\n" 1633"-- verify if registered correctly in the raster_overviews view --\n" 1634"SELECT o_table_name ot, o_raster_column oc,\n" 1635" r_table_name rt, r_raster_column rc,\n" 1636" overview_factor f\n" 1637"FROM raster_overviews WHERE o_table_name = 'res2';\n" 1638" ot | oc | rt | rc | f\n" 1639"------+----+------+----+---\n" 1640" res2 | r2 | res1 | r1 | 2\n" 1641"(1 row)" 1642msgstr "" 1643"CREATE TABLE res1 AS SELECT\n" 1644"ST_AddBand(\n" 1645" ST_MakeEmptyRaster(1000, 1000, 0, 0, 2),\n" 1646" 1, '8BSI'::text, -129, NULL\n" 1647") r1;\n" 1648"\n" 1649"CREATE TABLE res2 AS SELECT\n" 1650"ST_AddBand(\n" 1651" ST_MakeEmptyRaster(500, 500, 0, 0, 4),\n" 1652" 1, '8BSI'::text, -129, NULL\n" 1653") r2;\n" 1654"\n" 1655"SELECT AddOverviewConstraints('res2', 'r2', 'res1', 'r1', 2);\n" 1656"\n" 1657"-- verify if registered correctly in the raster_overviews view --\n" 1658"SELECT o_table_name ot, o_raster_column oc,\n" 1659" r_table_name rt, r_raster_column rc,\n" 1660" overview_factor f\n" 1661"FROM raster_overviews WHERE o_table_name = 'res2';\n" 1662" ot | oc | rt | rc | f\n" 1663"------+----+------+----+---\n" 1664" res2 | r2 | res1 | r1 | 2\n" 1665"(1 row)" 1666 1667#. Tag: para 1668#: reference_raster.xml:804 1669#, no-c-format 1670msgid "" 1671", <xref linkend=\"RT_DropOverviewConstraints\"/>, <xref linkend=" 1672"\"RT_CreateOverview\"/>, <xref linkend=\"RT_AddRasterConstraints\"/>" 1673msgstr "" 1674", <xref linkend=\"RT_DropOverviewConstraints\"/>, <xref linkend=" 1675"\"RT_CreateOverview\"/>, <xref linkend=\"RT_AddRasterConstraints\"/>" 1676 1677#. Tag: refname 1678#: reference_raster.xml:815 1679#, no-c-format 1680msgid "DropOverviewConstraints" 1681msgstr "DropOverviewConstraints" 1682 1683#. Tag: refpurpose 1684#: reference_raster.xml:817 1685#, no-c-format 1686msgid "Untag a raster column from being an overview of another." 1687msgstr "Desmarca uma coluna raster de ser um resumo de outra. " 1688 1689#. Tag: funcsynopsis 1690#: reference_raster.xml:821 1691#, no-c-format 1692msgid "" 1693"<funcprototype> <funcdef>boolean <function>DropOverviewConstraints</" 1694"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</" 1695"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</" 1696"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</" 1697"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1698"<function>DropOverviewConstraints</function></funcdef> <paramdef><type>name " 1699"</type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </" 1700"type> <parameter>ovcolumn</parameter></paramdef> </funcprototype>" 1701msgstr "" 1702"<funcprototype> <funcdef>boolean <function>DropOverviewConstraints</" 1703"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</" 1704"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</" 1705"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</" 1706"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 1707"<function>DropOverviewConstraints</function></funcdef> <paramdef><type>name " 1708"</type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </" 1709"type> <parameter>ovcolumn</parameter></paramdef> </funcprototype>" 1710 1711#. Tag: para 1712#: reference_raster.xml:847 1713#, no-c-format 1714msgid "" 1715"Remove from a raster column the constraints used to show it as being an " 1716"overview of another in the <varname>raster_overviews</varname> raster " 1717"catalog." 1718msgstr "" 1719"Remove as restrições de uma coluna raster usadas para apresentá-la como um " 1720"resumo de outra no catálogo <varname>raster_overviews</varname> raster. " 1721 1722#. Tag: para 1723#: reference_raster.xml:852 1724#, no-c-format 1725msgid "" 1726"When the <varname>ovschema</varname> parameter is omitted, the first table " 1727"found scanning the <varname>search_path</varname> will be used." 1728msgstr "" 1729"Quando o parâmetro <varname>ovschema</varname> é omitido, a primeira tabela " 1730"encontradas escaneando o <varname>search_path</varname> será utilizada. " 1731 1732#. Tag: para 1733#: reference_raster.xml:864 1734#, no-c-format 1735msgid "" 1736", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend=" 1737"\"RT_DropRasterConstraints\"/>" 1738msgstr "" 1739", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend=" 1740"\"RT_DropRasterConstraints\"/>" 1741 1742#. Tag: refname 1743#: reference_raster.xml:874 1744#, no-c-format 1745msgid "PostGIS_GDAL_Version" 1746msgstr "PostGIS_GDAL_Version" 1747 1748#. Tag: refpurpose 1749#: reference_raster.xml:875 1750#, no-c-format 1751msgid "Reports the version of the GDAL library in use by PostGIS." 1752msgstr "Relata a versão da biblioteca GDAL em uso pelo PostGIS" 1753 1754#. Tag: funcprototype 1755#: reference_raster.xml:880 1756#, no-c-format 1757msgid "" 1758"<funcdef>text <function>PostGIS_GDAL_Version</function></funcdef> " 1759"<paramdef></paramdef>" 1760msgstr "" 1761"<funcdef>text <function>PostGIS_GDAL_Version</function></funcdef> " 1762"<paramdef></paramdef>" 1763 1764#. Tag: para 1765#: reference_raster.xml:889 1766#, no-c-format 1767msgid "" 1768"Reports the version of the GDAL library in use by PostGIS. Will also check " 1769"and report if GDAL can find its data files." 1770msgstr "" 1771"Relata a versão da biblioteca em uso pelo PostGIS. Também irá verificar e " 1772"reportar se GDAL pode encontrar os dados de seus arquivos. " 1773 1774#. Tag: programlisting 1775#: reference_raster.xml:894 1776#, no-c-format 1777msgid "" 1778"SELECT PostGIS_GDAL_Version();\n" 1779" postgis_gdal_version\n" 1780"-----------------------------------\n" 1781" GDAL 1.11dev, released 2013/04/13" 1782msgstr "" 1783"SELECT PostGIS_GDAL_Version();\n" 1784" postgis_gdal_version\n" 1785"-----------------------------------\n" 1786" GDAL 1.11dev, released 2013/04/13" 1787 1788#. Tag: refname 1789#: reference_raster.xml:907 1790#, no-c-format 1791msgid "PostGIS_Raster_Lib_Build_Date" 1792msgstr "PostGIS_Raster_Lib_Build_Date" 1793 1794#. Tag: refpurpose 1795#: reference_raster.xml:909 1796#, no-c-format 1797msgid "Reports full raster library build date." 1798msgstr "Relata a data da biblioteca raster construída completa. " 1799 1800#. Tag: funcprototype 1801#: reference_raster.xml:914 1802#, no-c-format 1803msgid "" 1804"<funcdef>text <function>PostGIS_Raster_Lib_Build_Date</function></funcdef> " 1805"<paramdef></paramdef>" 1806msgstr "" 1807"<funcdef>text <function>PostGIS_Raster_Lib_Build_Date</function></funcdef> " 1808"<paramdef></paramdef>" 1809 1810#. Tag: para 1811#: reference_raster.xml:925 1812#, no-c-format 1813msgid "Reports raster build date" 1814msgstr "Relata a data de construção raster" 1815 1816#. Tag: programlisting 1817#: reference_raster.xml:931 1818#, no-c-format 1819msgid "" 1820"SELECT PostGIS_Raster_Lib_Build_Date();\n" 1821"postgis_raster_lib_build_date\n" 1822"-----------------------------\n" 1823"2010-04-28 21:15:10" 1824msgstr "" 1825"SELECT PostGIS_Raster_Lib_Build_Date();\n" 1826"postgis_raster_lib_build_date\n" 1827"-----------------------------\n" 1828"2010-04-28 21:15:10" 1829 1830#. Tag: refname 1831#: reference_raster.xml:943 1832#, no-c-format 1833msgid "PostGIS_Raster_Lib_Version" 1834msgstr "PostGIS_Raster_Lib_Version" 1835 1836#. Tag: refpurpose 1837#: reference_raster.xml:945 1838#, no-c-format 1839msgid "" 1840"<refpurpose>Reports full raster version and build configuration infos.</" 1841"refpurpose>" 1842msgstr "" 1843"<refpurpose>Relata a versão raster completa e constrói informações de " 1844"configuração.</refpurpose>" 1845 1846#. Tag: funcprototype 1847#: reference_raster.xml:951 1848#, no-c-format 1849msgid "" 1850"<funcdef>text <function>PostGIS_Raster_Lib_Version</function></funcdef> " 1851"<paramdef></paramdef>" 1852msgstr "" 1853"<funcdef>text <function>PostGIS_Raster_Lib_Version</function></funcdef> " 1854"<paramdef></paramdef>" 1855 1856#. Tag: para 1857#: reference_raster.xml:962 1858#, no-c-format 1859msgid "<para>Reports full raster version and build configuration infos.</para>" 1860msgstr "" 1861"<para>Relata a versão raster completa e constrói informações de configuração." 1862"</para>" 1863 1864#. Tag: programlisting 1865#: reference_raster.xml:969 1866#, no-c-format 1867msgid "" 1868"SELECT PostGIS_Raster_Lib_Version();\n" 1869"postgis_raster_lib_version\n" 1870"-----------------------------\n" 1871" 2.0.0" 1872msgstr "" 1873"SELECT PostGIS_Raster_Lib_Version();\n" 1874"postgis_raster_lib_version\n" 1875"-----------------------------\n" 1876" 2.0.0" 1877 1878#. Tag: refname 1879#: reference_raster.xml:983 1880#, no-c-format 1881msgid "ST_GDALDrivers" 1882msgstr "ST_GDALDrivers" 1883 1884#. Tag: refpurpose 1885#: reference_raster.xml:985 1886#, no-c-format 1887msgid "" 1888"Returns a list of raster formats supported by PostGIS through GDAL. Only " 1889"those formats with can_write=True can be used by ST_AsGDALRaster" 1890msgstr "" 1891 1892#. Tag: funcprototype 1893#: reference_raster.xml:990 1894#, no-c-format 1895msgid "" 1896"<funcdef>setof record <function>ST_GDALDrivers</function></funcdef> " 1897"<paramdef><type>integer </type> <parameter>OUT idx</parameter></paramdef> " 1898"<paramdef><type>text </type> <parameter>OUT short_name</parameter></" 1899"paramdef> <paramdef><type>text </type> <parameter>OUT long_name</parameter></" 1900"paramdef> <paramdef><type>text </type> <parameter>OUT can_read</parameter></" 1901"paramdef> <paramdef><type>text </type> <parameter>OUT can_write</parameter></" 1902"paramdef> <paramdef><type>text </type> <parameter>OUT create_options</" 1903"parameter></paramdef>" 1904msgstr "" 1905 1906#. Tag: para 1907#: reference_raster.xml:1005 1908#, no-c-format 1909msgid "" 1910"Returns a list of raster formats short_name,long_name and creator options of " 1911"each format supported by GDAL. Use the short_name as input in the " 1912"<varname>format</varname> parameter of <xref linkend=\"RT_ST_AsGDALRaster\"/" 1913">. Options vary depending on what drivers your libgdal was compiled with. " 1914"<varname>create_options</varname> returns an xml formatted set of " 1915"CreationOptionList/Option consisting of name and optional <varname>type</" 1916"varname>, <varname>description</varname> and set of <varname>VALUE</varname> " 1917"for each creator option for the specific driver." 1918msgstr "" 1919 1920#. Tag: para 1921#: reference_raster.xml:1010 1922#, no-c-format 1923msgid "Changed: 2.5.0 - add can_read and can_write columns." 1924msgstr "" 1925 1926#. Tag: para 1927#: reference_raster.xml:1011 1928#, no-c-format 1929msgid "" 1930"Changed: 2.0.6, 2.1.3 - by default no drivers are enabled, unless GUC or " 1931"Environment variable gdal_enabled_drivers is set." 1932msgstr "" 1933"Alterações: 2.0.6, 2.1.3 - por padrão nenhum driver é ativado, a menos que " 1934"GUC ou a variável ambiental gdal_enabled_drivers estejam colocadas." 1935 1936#. Tag: para 1937#: reference_raster.xml:1012 reference_raster.xml:1453 1938#: reference_raster.xml:6059 reference_raster.xml:6167 1939#: reference_raster.xml:6258 reference_raster.xml:6338 1940#, no-c-format 1941msgid "Availability: 2.0.0 - requires GDAL >= 1.6.0." 1942msgstr "Disponibilidade: 2.0.0 - requer GDAL >= 1.6.0." 1943 1944#. Tag: title 1945#: reference_raster.xml:1017 1946#, no-c-format 1947msgid "Examples: List of Drivers" 1948msgstr "Exemplos: Lista de Dispositivos" 1949 1950#. Tag: programlisting 1951#: reference_raster.xml:1019 1952#, no-c-format 1953msgid "" 1954"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n" 1955"SELECT short_name, long_name, can_write\n" 1956"FROM st_gdaldrivers()\n" 1957"ORDER BY short_name;\n" 1958"\n" 1959" short_name | " 1960"long_name | can_write\n" 1961"-----------------" 1962"+-------------------------------------------------------------+-----------\n" 1963" AAIGrid | Arc/Info ASCII " 1964"Grid | t\n" 1965" ACE2 | " 1966"ACE2 | f\n" 1967" ADRG | ARC Digitized Raster " 1968"Graphics | f\n" 1969" AIG | Arc/Info Binary " 1970"Grid | f\n" 1971" AirSAR | AirSAR Polarimetric " 1972"Image | f\n" 1973" ARG | Azavea Raster Grid " 1974"format | t\n" 1975" BAG | Bathymetry Attributed " 1976"Grid | f\n" 1977" BIGGIF | Graphics Interchange Format (." 1978"gif) | f\n" 1979" BLX | Magellan topo (." 1980"blx) | t\n" 1981" BMP | MS Windows Device Independent " 1982"Bitmap | f\n" 1983" BSB | Maptech BSB Nautical " 1984"Charts | f\n" 1985" PAux | PCI .aux " 1986"Labelled | f\n" 1987" PCIDSK | PCIDSK Database " 1988"File | f\n" 1989" PCRaster | PCRaster Raster " 1990"File | f\n" 1991" PDF | Geospatial " 1992"PDF | f\n" 1993" PDS | NASA Planetary Data " 1994"System | f\n" 1995" PDS4 | NASA Planetary Data System " 1996"4 | t\n" 1997" PLMOSAIC | Planet Labs Mosaics " 1998"API | f\n" 1999" PLSCENES | Planet Labs Scenes " 2000"API | f\n" 2001" PNG | Portable Network " 2002"Graphics | t\n" 2003" PNM | Portable Pixmap Format " 2004"(netpbm) | f\n" 2005" PRF | Racurs PHOTOMOD " 2006"PRF | f\n" 2007" R | R Object Data " 2008"Store | t\n" 2009" Rasterlite | " 2010"Rasterlite | t\n" 2011" RDA | DigitalGlobe Raster Data Access " 2012"driver | f\n" 2013" RIK | Swedish Grid RIK (." 2014"rik) | f\n" 2015" RMF | Raster Matrix " 2016"Format | f\n" 2017" ROI_PAC | ROI_PAC " 2018"raster | f\n" 2019" RPFTOC | Raster Product Format TOC " 2020"format | f\n" 2021" RRASTER | R " 2022"Raster | f\n" 2023" RS2 | RadarSat 2 XML " 2024"Product | f\n" 2025" RST | Idrisi Raster " 2026"A.1 | t\n" 2027" SAFE | Sentinel-1 SAR SAFE " 2028"Product | f\n" 2029" SAGA | SAGA GIS Binary Grid (.sdat, .sg-grd-" 2030"z) | t\n" 2031" SAR_CEOS | CEOS SAR " 2032"Image | f\n" 2033" SDTS | SDTS " 2034"Raster | f\n" 2035" SENTINEL2 | Sentinel " 2036"2 | f\n" 2037" SGI | SGI Image File Format " 2038"1.0 | f\n" 2039" SNODAS | Snow Data Assimilation " 2040"System | f\n" 2041" SRP | Standard Raster Product (ASRP/" 2042"USRP) | f\n" 2043" SRTMHGT | SRTMHGT File " 2044"Format | t\n" 2045" Terragen | Terragen " 2046"heightfield | f\n" 2047" TIL | EarthWatch ." 2048"TIL | f\n" 2049" TSX | TerraSAR-X " 2050"Product | f\n" 2051" USGSDEM | USGS Optional ASCII DEM (and " 2052"CDED) | t\n" 2053" VICAR | MIPL VICAR " 2054"file | f\n" 2055" VRT | Virtual " 2056"Raster | t\n" 2057" WCS | OGC Web Coverage " 2058"Service | f\n" 2059" WMS | OGC Web Map " 2060"Service | t\n" 2061" WMTS | OGC Web Map Tile " 2062"Service | t\n" 2063" XPM | X11 PixMap " 2064"Format | t\n" 2065" XYZ | ASCII Gridded " 2066"XYZ | t\n" 2067" ZMap | ZMap Plus " 2068"Grid | t" 2069msgstr "" 2070 2071#. Tag: title 2072#: reference_raster.xml:1021 2073#, no-c-format 2074msgid "Example: List of options for each driver" 2075msgstr "Exemplo: Lista de opções para cada dispositivo" 2076 2077#. Tag: programlisting 2078#: reference_raster.xml:1022 2079#, no-c-format 2080msgid "" 2081"-- Output the create options XML column of JPEG as a table --\n" 2082"-- Note you can use these creator options in ST_AsGDALRaster options " 2083"argument\n" 2084"SELECT (xpath('@name', g.opt))[1]::text As oname,\n" 2085" (xpath('@type', g.opt))[1]::text As otype,\n" 2086" (xpath('@description', g.opt))[1]::text As descrip\n" 2087"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::" 2088"xml)) As opt\n" 2089"FROM st_gdaldrivers()\n" 2090"WHERE short_name = 'JPEG') As g;\n" 2091"\n" 2092" oname | otype | descrip\n" 2093"--------------------+---------" 2094"+-------------------------------------------------\n" 2095" PROGRESSIVE | boolean | whether to generate a progressive JPEG\n" 2096" QUALITY | int | good=100, bad=0, default=75\n" 2097" WORLDFILE | boolean | whether to geneate a worldfile\n" 2098" INTERNAL_MASK | boolean | whether to generate a validity mask\n" 2099" COMMENT | string | Comment\n" 2100" SOURCE_ICC_PROFILE | string | ICC profile encoded in Base64\n" 2101" EXIF_THUMBNAIL | boolean | whether to generate an EXIF " 2102"thumbnail(overview).\n" 2103" By default its max dimension will be 128\n" 2104" THUMBNAIL_WIDTH | int | Forced thumbnail width\n" 2105" THUMBNAIL_HEIGHT | int | Forced thumbnail height\n" 2106"(9 rows)" 2107msgstr "" 2108"-- Output the create options XML column of JPEG as a table --\n" 2109"-- Note you can use these creator options in ST_AsGDALRaster options " 2110"argument\n" 2111"SELECT (xpath('@name', g.opt))[1]::text As oname,\n" 2112" (xpath('@type', g.opt))[1]::text As otype,\n" 2113" (xpath('@description', g.opt))[1]::text As descrip\n" 2114"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::" 2115"xml)) As opt\n" 2116"FROM st_gdaldrivers()\n" 2117"WHERE short_name = 'JPEG') As g;\n" 2118"\n" 2119" oname | otype | descrip\n" 2120"--------------------+---------" 2121"+-------------------------------------------------\n" 2122" PROGRESSIVE | boolean | whether to generate a progressive JPEG\n" 2123" QUALITY | int | good=100, bad=0, default=75\n" 2124" WORLDFILE | boolean | whether to geneate a worldfile\n" 2125" INTERNAL_MASK | boolean | whether to generate a validity mask\n" 2126" COMMENT | string | Comment\n" 2127" SOURCE_ICC_PROFILE | string | ICC profile encoded in Base64\n" 2128" EXIF_THUMBNAIL | boolean | whether to generate an EXIF " 2129"thumbnail(overview).\n" 2130" By default its max dimension will be 128\n" 2131" THUMBNAIL_WIDTH | int | Forced thumbnail width\n" 2132" THUMBNAIL_HEIGHT | int | Forced thumbnail height\n" 2133"(9 rows)" 2134 2135#. Tag: programlisting 2136#: reference_raster.xml:1024 2137#, no-c-format 2138msgid "" 2139"-- raw xml output for creator options for GeoTiff --\n" 2140"SELECT create_options\n" 2141"FROM st_gdaldrivers()\n" 2142"WHERE short_name = 'GTiff';\n" 2143"\n" 2144"<![CDATA[<CreationOptionList>\n" 2145" <Option name=\"COMPRESS\" type=\"string-select\">\n" 2146" <Value>NONE</Value>\n" 2147" <Value>LZW</Value>\n" 2148" <Value>PACKBITS</Value>\n" 2149" <Value>JPEG</Value>\n" 2150" <Value>CCITTRLE</Value>\n" 2151" <Value>CCITTFAX3</Value>\n" 2152" <Value>CCITTFAX4</Value>\n" 2153" <Value>DEFLATE</Value>\n" 2154" </Option>\n" 2155" <Option name=\"PREDICTOR\" type=\"int\" description=\"Predictor Type\"/" 2156">\n" 2157" <Option name=\"JPEG_QUALITY\" type=\"int\" description=\"JPEG quality " 2158"1-100\" default=\"75\"/>\n" 2159" <Option name=\"ZLEVEL\" type=\"int\" description=\"DEFLATE compression " 2160"level 1-9\" default=\"6\"/>\n" 2161" <Option name=\"NBITS\" type=\"int\" description=\"BITS for sub-byte " 2162"files (1-7), sub-uint16 (9-15), sub-uint32 (17-31)\"/>\n" 2163" <Option name=\"INTERLEAVE\" type=\"string-select\" default=\"PIXEL\">\n" 2164" <Value>BAND</Value>\n" 2165" <Value>PIXEL</Value>\n" 2166" </Option>\n" 2167" <Option name=\"TILED\" type=\"boolean\" description=\"Switch to tiled " 2168"format\"/>\n" 2169" <Option name=\"TFW\" type=\"boolean\" description=\"Write out world file" 2170"\"/>\n" 2171" <Option name=\"RPB\" type=\"boolean\" description=\"Write out .RPB (RPC) " 2172"file\"/>\n" 2173" <Option name=\"BLOCKXSIZE\" type=\"int\" description=\"Tile Width\"/>\n" 2174" <Option name=\"BLOCKYSIZE\" type=\"int\" description=\"Tile/Strip Height" 2175"\"/>\n" 2176" <Option name=\"PHOTOMETRIC\" type=\"string-select\">\n" 2177" <Value>MINISBLACK</Value>\n" 2178" <Value>MINISWHITE</Value>\n" 2179" <Value>PALETTE</Value>\n" 2180" <Value>RGB</Value>\n" 2181" <Value>CMYK</Value>\n" 2182" <Value>YCBCR</Value>\n" 2183" <Value>CIELAB</Value>\n" 2184" <Value>ICCLAB</Value>\n" 2185" <Value>ITULAB</Value>\n" 2186" </Option>\n" 2187" <Option name=\"SPARSE_OK\" type=\"boolean\" description=\"Can newly " 2188"created files have missing blocks?\" default=\"FALSE\"/>\n" 2189" <Option name=\"ALPHA\" type=\"boolean\" description=\"Mark first " 2190"extrasample as being alpha\"/>\n" 2191" <Option name=\"PROFILE\" type=\"string-select\" default=\"GDALGeoTIFF" 2192"\">\n" 2193" <Value>GDALGeoTIFF</Value>\n" 2194" <Value>GeoTIFF</Value>\n" 2195" <Value>BASELINE</Value>\n" 2196" </Option>\n" 2197" <Option name=\"PIXELTYPE\" type=\"string-select\">\n" 2198" <Value>DEFAULT</Value>\n" 2199" <Value>SIGNEDBYTE</Value>\n" 2200" </Option>\n" 2201" <Option name=\"BIGTIFF\" type=\"string-select\" description=\"Force " 2202"creation of BigTIFF file\">\n" 2203" <Value>YES</Value>\n" 2204" <Value>NO</Value>\n" 2205" <Value>IF_NEEDED</Value>\n" 2206" <Value>IF_SAFER</Value>\n" 2207" </Option>\n" 2208" <Option name=\"ENDIANNESS\" type=\"string-select\" default=\"NATIVE\" " 2209"description=\"Force endianness of created file. For DEBUG purpose mostly\">\n" 2210" <Value>NATIVE</Value>\n" 2211" <Value>INVERTED</Value>\n" 2212" <Value>LITTLE</Value>\n" 2213" <Value>BIG</Value>\n" 2214" </Option>\n" 2215" <Option name=\"COPY_SRC_OVERVIEWS\" type=\"boolean\" default=\"NO\" " 2216"description=\"Force copy of overviews of source dataset (CreateCopy())\"/>\n" 2217"</CreationOptionList>]]>\n" 2218"\n" 2219"-- Output the create options XML column for GTiff as a table --\n" 2220"SELECT (xpath('@name', g.opt))[1]::text As oname,\n" 2221" (xpath('@type', g.opt))[1]::text As otype,\n" 2222" (xpath('@description', g.opt))[1]::text As descrip,\n" 2223" array_to_string(xpath('Value/text()', g.opt),', ') As vals\n" 2224"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::" 2225"xml)) As opt\n" 2226"FROM st_gdaldrivers()\n" 2227"WHERE short_name = 'GTiff') As g;\n" 2228"\n" 2229" oname | otype | " 2230"descrip | " 2231"vals\n" 2232"--------------------+---------------" 2233"+----------------------------------------------------------------------" 2234"+---------------------------------------------------------------------------\n" 2235" COMPRESS | string-select " 2236"| | " 2237"NONE, LZW, PACKBITS, JPEG, CCITTRLE, CCITTFAX3, CCITTFAX4, DEFLATE\n" 2238" PREDICTOR | int | Predictor " 2239"Type |\n" 2240" JPEG_QUALITY | int | JPEG quality " 2241"1-100 |\n" 2242" ZLEVEL | int | DEFLATE compression level " 2243"1-9 |\n" 2244" NBITS | int | BITS for sub-byte files (1-7), sub-" 2245"uint16 (9-15), sub-uint32 (17-31) |\n" 2246" INTERLEAVE | string-select " 2247"| | " 2248"BAND, PIXEL\n" 2249" TILED | boolean | Switch to tiled " 2250"format |\n" 2251" TFW | boolean | Write out world " 2252"file |\n" 2253" RPB | boolean | Write out .RPB (RPC) " 2254"file |\n" 2255" BLOCKXSIZE | int | Tile " 2256"Width |\n" 2257" BLOCKYSIZE | int | Tile/Strip " 2258"Height |\n" 2259" PHOTOMETRIC | string-select " 2260"| | " 2261"MINISBLACK, MINISWHITE, PALETTE, RGB, CMYK, YCBCR, CIELAB, ICCLAB, ITULAB\n" 2262" SPARSE_OK | boolean | Can newly created files have missing " 2263"blocks? |\n" 2264" ALPHA | boolean | Mark first extrasample as being " 2265"alpha |\n" 2266" PROFILE | string-select " 2267"| | " 2268"GDALGeoTIFF, GeoTIFF, BASELINE\n" 2269" PIXELTYPE | string-select " 2270"| | " 2271"DEFAULT, SIGNEDBYTE\n" 2272" BIGTIFF | string-select | Force creation of BigTIFF " 2273"file | YES, NO, IF_NEEDED, IF_SAFER\n" 2274" ENDIANNESS | string-select | Force endianness of created file. For " 2275"DEBUG purpose mostly | NATIVE, INVERTED, LITTLE, BIG\n" 2276" COPY_SRC_OVERVIEWS | boolean | Force copy of overviews of source " 2277"dataset (CreateCopy()) |\n" 2278"(19 rows)" 2279msgstr "" 2280"-- raw xml output for creator options for GeoTiff --\n" 2281"SELECT create_options\n" 2282"FROM st_gdaldrivers()\n" 2283"WHERE short_name = 'GTiff';\n" 2284"\n" 2285"<![CDATA[<CreationOptionList>\n" 2286" <Option name=\"COMPRESS\" type=\"string-select\">\n" 2287" <Value>NONE</Value>\n" 2288" <Value>LZW</Value>\n" 2289" <Value>PACKBITS</Value>\n" 2290" <Value>JPEG</Value>\n" 2291" <Value>CCITTRLE</Value>\n" 2292" <Value>CCITTFAX3</Value>\n" 2293" <Value>CCITTFAX4</Value>\n" 2294" <Value>DEFLATE</Value>\n" 2295" </Option>\n" 2296" <Option name=\"PREDICTOR\" type=\"int\" description=\"Predictor Type\"/" 2297">\n" 2298" <Option name=\"JPEG_QUALITY\" type=\"int\" description=\"JPEG quality " 2299"1-100\" default=\"75\"/>\n" 2300" <Option name=\"ZLEVEL\" type=\"int\" description=\"DEFLATE compression " 2301"level 1-9\" default=\"6\"/>\n" 2302" <Option name=\"NBITS\" type=\"int\" description=\"BITS for sub-byte " 2303"files (1-7), sub-uint16 (9-15), sub-uint32 (17-31)\"/>\n" 2304" <Option name=\"INTERLEAVE\" type=\"string-select\" default=\"PIXEL\">\n" 2305" <Value>BAND</Value>\n" 2306" <Value>PIXEL</Value>\n" 2307" </Option>\n" 2308" <Option name=\"TILED\" type=\"boolean\" description=\"Switch to tiled " 2309"format\"/>\n" 2310" <Option name=\"TFW\" type=\"boolean\" description=\"Write out world file" 2311"\"/>\n" 2312" <Option name=\"RPB\" type=\"boolean\" description=\"Write out .RPB (RPC) " 2313"file\"/>\n" 2314" <Option name=\"BLOCKXSIZE\" type=\"int\" description=\"Tile Width\"/>\n" 2315" <Option name=\"BLOCKYSIZE\" type=\"int\" description=\"Tile/Strip Height" 2316"\"/>\n" 2317" <Option name=\"PHOTOMETRIC\" type=\"string-select\">\n" 2318" <Value>MINISBLACK</Value>\n" 2319" <Value>MINISWHITE</Value>\n" 2320" <Value>PALETTE</Value>\n" 2321" <Value>RGB</Value>\n" 2322" <Value>CMYK</Value>\n" 2323" <Value>YCBCR</Value>\n" 2324" <Value>CIELAB</Value>\n" 2325" <Value>ICCLAB</Value>\n" 2326" <Value>ITULAB</Value>\n" 2327" </Option>\n" 2328" <Option name=\"SPARSE_OK\" type=\"boolean\" description=\"Can newly " 2329"created files have missing blocks?\" default=\"FALSE\"/>\n" 2330" <Option name=\"ALPHA\" type=\"boolean\" description=\"Mark first " 2331"extrasample as being alpha\"/>\n" 2332" <Option name=\"PROFILE\" type=\"string-select\" default=\"GDALGeoTIFF" 2333"\">\n" 2334" <Value>GDALGeoTIFF</Value>\n" 2335" <Value>GeoTIFF</Value>\n" 2336" <Value>BASELINE</Value>\n" 2337" </Option>\n" 2338" <Option name=\"PIXELTYPE\" type=\"string-select\">\n" 2339" <Value>DEFAULT</Value>\n" 2340" <Value>SIGNEDBYTE</Value>\n" 2341" </Option>\n" 2342" <Option name=\"BIGTIFF\" type=\"string-select\" description=\"Force " 2343"creation of BigTIFF file\">\n" 2344" <Value>YES</Value>\n" 2345" <Value>NO</Value>\n" 2346" <Value>IF_NEEDED</Value>\n" 2347" <Value>IF_SAFER</Value>\n" 2348" </Option>\n" 2349" <Option name=\"ENDIANNESS\" type=\"string-select\" default=\"NATIVE\" " 2350"description=\"Force endianness of created file. For DEBUG purpose mostly\">\n" 2351" <Value>NATIVE</Value>\n" 2352" <Value>INVERTED</Value>\n" 2353" <Value>LITTLE</Value>\n" 2354" <Value>BIG</Value>\n" 2355" </Option>\n" 2356" <Option name=\"COPY_SRC_OVERVIEWS\" type=\"boolean\" default=\"NO\" " 2357"description=\"Force copy of overviews of source dataset (CreateCopy())\"/>\n" 2358"</CreationOptionList>]]>\n" 2359"\n" 2360"-- Output the create options XML column for GTiff as a table --\n" 2361"SELECT (xpath('@name', g.opt))[1]::text As oname,\n" 2362" (xpath('@type', g.opt))[1]::text As otype,\n" 2363" (xpath('@description', g.opt))[1]::text As descrip,\n" 2364" array_to_string(xpath('Value/text()', g.opt),', ') As vals\n" 2365"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::" 2366"xml)) As opt\n" 2367"FROM st_gdaldrivers()\n" 2368"WHERE short_name = 'GTiff') As g;\n" 2369"\n" 2370" oname | otype | " 2371"descrip | " 2372"vals\n" 2373"--------------------+---------------" 2374"+----------------------------------------------------------------------" 2375"+---------------------------------------------------------------------------\n" 2376" COMPRESS | string-select " 2377"| | " 2378"NONE, LZW, PACKBITS, JPEG, CCITTRLE, CCITTFAX3, CCITTFAX4, DEFLATE\n" 2379" PREDICTOR | int | Predictor " 2380"Type |\n" 2381" JPEG_QUALITY | int | JPEG quality " 2382"1-100 |\n" 2383" ZLEVEL | int | DEFLATE compression level " 2384"1-9 |\n" 2385" NBITS | int | BITS for sub-byte files (1-7), sub-" 2386"uint16 (9-15), sub-uint32 (17-31) |\n" 2387" INTERLEAVE | string-select " 2388"| | " 2389"BAND, PIXEL\n" 2390" TILED | boolean | Switch to tiled " 2391"format |\n" 2392" TFW | boolean | Write out world " 2393"file |\n" 2394" RPB | boolean | Write out .RPB (RPC) " 2395"file |\n" 2396" BLOCKXSIZE | int | Tile " 2397"Width |\n" 2398" BLOCKYSIZE | int | Tile/Strip " 2399"Height |\n" 2400" PHOTOMETRIC | string-select " 2401"| | " 2402"MINISBLACK, MINISWHITE, PALETTE, RGB, CMYK, YCBCR, CIELAB, ICCLAB, ITULAB\n" 2403" SPARSE_OK | boolean | Can newly created files have missing " 2404"blocks? |\n" 2405" ALPHA | boolean | Mark first extrasample as being " 2406"alpha |\n" 2407" PROFILE | string-select " 2408"| | " 2409"GDALGeoTIFF, GeoTIFF, BASELINE\n" 2410" PIXELTYPE | string-select " 2411"| | " 2412"DEFAULT, SIGNEDBYTE\n" 2413" BIGTIFF | string-select | Force creation of BigTIFF " 2414"file | YES, NO, IF_NEEDED, IF_SAFER\n" 2415" ENDIANNESS | string-select | Force endianness of created file. For " 2416"DEBUG purpose mostly | NATIVE, INVERTED, LITTLE, BIG\n" 2417" COPY_SRC_OVERVIEWS | boolean | Force copy of overviews of source " 2418"dataset (CreateCopy()) |\n" 2419"(19 rows)" 2420 2421#. Tag: para 2422#: reference_raster.xml:1030 2423#, no-c-format 2424msgid "" 2425", <xref linkend=\"ST_SRID\"/>, <xref linkend=\"postgis_gdal_enabled_drivers" 2426"\"/>" 2427msgstr "" 2428", <xref linkend=\"ST_SRID\"/>, <xref linkend=\"postgis_gdal_enabled_drivers" 2429"\"/>" 2430 2431#. Tag: refname 2432#: reference_raster.xml:1036 2433#, no-c-format 2434msgid "UpdateRasterSRID" 2435msgstr "UpdateRasterSRID" 2436 2437#. Tag: refpurpose 2438#: reference_raster.xml:1037 2439#, no-c-format 2440msgid "Change the SRID of all rasters in the user-specified column and table." 2441msgstr "" 2442"Altera o SRID de todos os rasters na coluna e tabela do usuário " 2443"especificado. " 2444 2445#. Tag: funcsynopsis 2446#: reference_raster.xml:1043 2447#, no-c-format 2448msgid "" 2449"<funcprototype> <funcdef>raster <function>UpdateRasterSRID</function></" 2450"funcdef> <paramdef><type>name </type> <parameter>schema_name</parameter></" 2451"paramdef> <paramdef><type>name </type> <parameter>table_name</parameter></" 2452"paramdef> <paramdef><type>name </type> <parameter>column_name</parameter></" 2453"paramdef> <paramdef><type>integer </type> <parameter>new_srid</parameter></" 2454"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 2455"<function>UpdateRasterSRID</function></funcdef> <paramdef><type>name </type> " 2456"<parameter>table_name</parameter></paramdef> <paramdef><type>name </type> " 2457"<parameter>column_name</parameter></paramdef> <paramdef><type>integer </" 2458"type> <parameter>new_srid</parameter></paramdef> </funcprototype>" 2459msgstr "" 2460"<funcprototype> <funcdef>raster <function>UpdateRasterSRID</function></" 2461"funcdef> <paramdef><type>name </type> <parameter>schema_name</parameter></" 2462"paramdef> <paramdef><type>name </type> <parameter>table_name</parameter></" 2463"paramdef> <paramdef><type>name </type> <parameter>column_name</parameter></" 2464"paramdef> <paramdef><type>integer </type> <parameter>new_srid</parameter></" 2465"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 2466"<function>UpdateRasterSRID</function></funcdef> <paramdef><type>name </type> " 2467"<parameter>table_name</parameter></paramdef> <paramdef><type>name </type> " 2468"<parameter>column_name</parameter></paramdef> <paramdef><type>integer </" 2469"type> <parameter>new_srid</parameter></paramdef> </funcprototype>" 2470 2471#. Tag: para 2472#: reference_raster.xml:1066 2473#, no-c-format 2474msgid "" 2475"Change the SRID of all rasters in the user-specified column and table. The " 2476"function will drop all appropriate column constraints (extent, alignment and " 2477"SRID) before changing the SRID of the specified column's rasters." 2478msgstr "" 2479"Altera o SRID de todos os rasters na coluna e tabela do usuário " 2480"especificado. A função irá derrubar todas as restrições de colunas " 2481"apropriadas (extensão, alinhamento e SRID) antes de modificar o SRID dos " 2482"rasters específicos da coluna. " 2483 2484#. Tag: para 2485#: reference_raster.xml:1071 2486#, no-c-format 2487msgid "" 2488"The data (band pixel values) of the rasters are not touched by this " 2489"function. Only the raster's metadata is changed." 2490msgstr "" 2491"Os dados (banda valores pixel) dos rasters não são mexidos por esta função. " 2492"Somente os metadados do restar são alterados. " 2493 2494#. Tag: para 2495#: reference_raster.xml:1076 reference_raster.xml:1746 2496#: reference_raster.xml:1847 reference_raster.xml:2297 2497#: reference_raster.xml:2592 reference_raster.xml:2747 2498#: reference_raster.xml:3390 reference_raster.xml:3444 2499#: reference_raster.xml:3488 reference_raster.xml:3542 2500#: reference_raster.xml:3699 reference_raster.xml:3796 2501#: reference_raster.xml:3981 reference_raster.xml:4084 2502#: reference_raster.xml:4181 reference_raster.xml:6699 2503#: reference_raster.xml:7293 reference_raster.xml:7484 2504#: reference_raster.xml:8758 reference_raster.xml:9043 2505#: reference_raster.xml:9491 reference_raster.xml:9624 2506#: reference_raster.xml:9675 reference_raster.xml:9912 2507#: reference_raster.xml:10165 reference_raster.xml:10437 2508#: reference_raster.xml:10524 reference_raster.xml:10605 2509#: reference_raster.xml:10686 reference_raster.xml:10767 2510#: reference_raster.xml:10980 reference_raster.xml:11060 2511#: reference_raster.xml:11217 reference_raster.xml:11304 2512#: reference_raster.xml:11399 reference_raster.xml:11492 2513#, no-c-format 2514msgid "Availability: 2.1.0" 2515msgstr "Disponibilidade: 2.1.0" 2516 2517#. Tag: refname 2518#: reference_raster.xml:1088 2519#, no-c-format 2520msgid "ST_CreateOverview" 2521msgstr "ST_CreateOverview" 2522 2523#. Tag: refpurpose 2524#: reference_raster.xml:1089 2525#, no-c-format 2526msgid "Create an reduced resolution version of a given raster coverage." 2527msgstr "Cria uma resolução de versão reduzida de uma dada cobertura raster." 2528 2529#. Tag: funcprototype 2530#: reference_raster.xml:1097 2531#, no-c-format 2532msgid "" 2533"<funcdef>regclass <function>ST_CreateOverview</function></funcdef> " 2534"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> " 2535"<paramdef><type>name </type> <parameter>col</parameter></paramdef> " 2536"<paramdef><type>int </type> <parameter>factor</parameter></paramdef> " 2537"<paramdef choice=\"opt\"><type>text </type> " 2538"<parameter>algo='NearestNeighbor'</parameter></paramdef>" 2539msgstr "" 2540"<funcdef>regclass <function>ST_CreateOverview</function></funcdef> " 2541"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> " 2542"<paramdef><type>name </type> <parameter>col</parameter></paramdef> " 2543"<paramdef><type>int </type> <parameter>factor</parameter></paramdef> " 2544"<paramdef choice=\"opt\"><type>text </type> " 2545"<parameter>algo='NearestNeighbor'</parameter></paramdef>" 2546 2547#. Tag: para 2548#: reference_raster.xml:1111 2549#, no-c-format 2550msgid "" 2551"Create an overview table with resampled tiles from the source table. Output " 2552"tiles will have the same size of input tiles and cover the same spatial " 2553"extent with a lower resolution (pixel size will be 1/<varname>factor</" 2554"varname> of the original in both directions)." 2555msgstr "" 2556"Cria uma tabela panorama com resampled tiles da tabela fonte. AS tiles de " 2557"saída terão o mesmo tamanho das de entrada e cobrirão a mesma extensão " 2558"espacial com uma resolução mais baixa (tamanho do pixel será 1/" 2559"<varname>factor</varname> do original em ambas direções). " 2560 2561#. Tag: para 2562#: reference_raster.xml:1118 2563#, no-c-format 2564msgid "" 2565"The overview table will be made available in the <varname>raster_overviews</" 2566"varname> catalog and will have raster constraints enforced." 2567msgstr "" 2568"A tabela panorama se tronará disponível no catálogo " 2569"<varname>raster_overviews</varname> e terá restrições raster executadas. " 2570 2571#. Tag: para 2572#: reference_raster.xml:1124 reference_raster.xml:1805 2573#: reference_raster.xml:4891 2574#, no-c-format 2575msgid "" 2576"Algorithm options are: 'NearestNeighbor', 'Bilinear', 'Cubic', " 2577"'CubicSpline', and 'Lanczos'. Refer to: <ulink url=\"http://www.gdal.org/" 2578"gdalwarp.html\">GDAL Warp resampling methods</ulink> for more details." 2579msgstr "" 2580"As opções de algorítimo são: 'NearestNeighbor', 'Bilinear', 'Cubic', " 2581"'CubicSpline', e 'Lanczos'. Recorra a: <ulink url=\"http://www.gdal.org/" 2582"gdalwarp.html\">GDAL Warp resampling methods</ulink> para mais detalhes." 2583 2584#. Tag: para 2585#: reference_raster.xml:1126 reference_raster.xml:1807 2586#: reference_raster.xml:2006 reference_raster.xml:5278 2587#: reference_raster.xml:5657 2588#, no-c-format 2589msgid "Availability: 2.2.0" 2590msgstr "Disponibilidade: 2.2.0" 2591 2592#. Tag: title 2593#: reference_raster.xml:1129 2594#, no-c-format 2595msgid "Example" 2596msgstr "Exemplo" 2597 2598#. Tag: para 2599#: reference_raster.xml:1130 2600#, no-c-format 2601msgid "Output to generally better quality but slower to product format" 2602msgstr "" 2603 2604#. Tag: programlisting 2605#: reference_raster.xml:1131 2606#, no-c-format 2607msgid "" 2608"SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2, 'Lanczos');" 2609msgstr "" 2610 2611#. Tag: para 2612#: reference_raster.xml:1133 2613#, no-c-format 2614msgid "Output to faster to process default nearest neighbor" 2615msgstr "" 2616 2617#. Tag: programlisting 2618#: reference_raster.xml:1134 2619#, no-c-format 2620msgid "SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2);" 2621msgstr "" 2622 2623#. Tag: para 2624#: reference_raster.xml:1139 2625#, no-c-format 2626msgid "" 2627", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend=" 2628"\"RT_AddRasterConstraints\"/>, <xref linkend=\"RT_Raster_Overviews\"/>" 2629msgstr "" 2630", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend=" 2631"\"RT_AddRasterConstraints\"/>, <xref linkend=\"RT_Raster_Overviews\"/>" 2632 2633#. Tag: title 2634#: reference_raster.xml:1150 2635#, no-c-format 2636msgid "Raster Constructors" 2637msgstr "Construtores Raster" 2638 2639#. Tag: refname 2640#: reference_raster.xml:1154 2641#, no-c-format 2642msgid "ST_AddBand" 2643msgstr "ST_AddBand" 2644 2645#. Tag: refpurpose 2646#: reference_raster.xml:1155 2647#, no-c-format 2648msgid "" 2649"Returns a raster with the new band(s) of given type added with given initial " 2650"value in the given index location. If no index is specified, the band is " 2651"added to the end." 2652msgstr "" 2653"Retorna um raster com nova banda(s) do tipo dado adicionado com o valor " 2654"inicial com a localização do índice. Se nenhum índice for especificado, a " 2655"banda é adicionada ao final. " 2656 2657#. Tag: funcsynopsis 2658#: reference_raster.xml:1161 2659#, no-c-format 2660msgid "" 2661"<funcprototype> <funcdef>(1) raster <function>ST_AddBand</function></" 2662"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 2663"paramdef> <paramdef><type>addbandarg[] </type> <parameter>addbandargset</" 2664"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) raster " 2665"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2666"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 2667"<parameter>index</parameter></paramdef> <paramdef><type>text </type> " 2668"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt" 2669"\"><type>double precision </type> <parameter>initialvalue=0</parameter></" 2670"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 2671"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 2672"<funcprototype> <funcdef>(3) raster <function>ST_AddBand</function></" 2673"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 2674"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 2675"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 2676"<parameter>initialvalue=0</parameter></paramdef> <paramdef choice=\"opt" 2677"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 2678"paramdef> </funcprototype> <funcprototype> <funcdef>(4) raster " 2679"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2680"<parameter>torast</parameter></paramdef> <paramdef><type>raster </type> " 2681"<parameter>fromrast</parameter></paramdef> <paramdef choice=\"opt" 2682"\"><type>integer </type> <parameter>fromband=1</parameter></paramdef> " 2683"<paramdef choice=\"opt\"><type>integer </type> " 2684"<parameter>torastindex=at_end</parameter></paramdef> </funcprototype> " 2685"<funcprototype> <funcdef>(5) raster <function>ST_AddBand</function></" 2686"funcdef> <paramdef><type>raster </type> <parameter>torast</parameter></" 2687"paramdef> <paramdef><type>raster[] </type> <parameter>fromrasts</parameter></" 2688"paramdef> <paramdef choice=\"opt\"><type>integer </type> " 2689"<parameter>fromband=1</parameter></paramdef> <paramdef choice=\"opt" 2690"\"><type>integer </type> <parameter>torastindex=at_end</parameter></" 2691"paramdef> </funcprototype> <funcprototype> <funcdef>(6) raster " 2692"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2693"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 2694"<parameter>index</parameter></paramdef> <paramdef><type>text </type> " 2695"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </" 2696"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt" 2697"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 2698"paramdef> </funcprototype> <funcprototype> <funcdef>(7) raster " 2699"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2700"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> " 2701"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </" 2702"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt" 2703"\"><type>integer </type> <parameter>index=at_end</parameter></paramdef> " 2704"<paramdef choice=\"opt\"><type>double precision </type> " 2705"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>" 2706msgstr "" 2707"<funcprototype> <funcdef>(1) raster <function>ST_AddBand</function></" 2708"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 2709"paramdef> <paramdef><type>addbandarg[] </type> <parameter>addbandargset</" 2710"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) raster " 2711"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2712"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 2713"<parameter>index</parameter></paramdef> <paramdef><type>text </type> " 2714"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt" 2715"\"><type>double precision </type> <parameter>initialvalue=0</parameter></" 2716"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 2717"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 2718"<funcprototype> <funcdef>(3) raster <function>ST_AddBand</function></" 2719"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 2720"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 2721"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 2722"<parameter>initialvalue=0</parameter></paramdef> <paramdef choice=\"opt" 2723"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 2724"paramdef> </funcprototype> <funcprototype> <funcdef>(4) raster " 2725"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2726"<parameter>torast</parameter></paramdef> <paramdef><type>raster </type> " 2727"<parameter>fromrast</parameter></paramdef> <paramdef choice=\"opt" 2728"\"><type>integer </type> <parameter>fromband=1</parameter></paramdef> " 2729"<paramdef choice=\"opt\"><type>integer </type> " 2730"<parameter>torastindex=at_end</parameter></paramdef> </funcprototype> " 2731"<funcprototype> <funcdef>(5) raster <function>ST_AddBand</function></" 2732"funcdef> <paramdef><type>raster </type> <parameter>torast</parameter></" 2733"paramdef> <paramdef><type>raster[] </type> <parameter>fromrasts</parameter></" 2734"paramdef> <paramdef choice=\"opt\"><type>integer </type> " 2735"<parameter>fromband=1</parameter></paramdef> <paramdef choice=\"opt" 2736"\"><type>integer </type> <parameter>torastindex=at_end</parameter></" 2737"paramdef> </funcprototype> <funcprototype> <funcdef>(6) raster " 2738"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2739"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 2740"<parameter>index</parameter></paramdef> <paramdef><type>text </type> " 2741"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </" 2742"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt" 2743"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 2744"paramdef> </funcprototype> <funcprototype> <funcdef>(7) raster " 2745"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> " 2746"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> " 2747"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </" 2748"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt" 2749"\"><type>integer </type> <parameter>index=at_end</parameter></paramdef> " 2750"<paramdef choice=\"opt\"><type>double precision </type> " 2751"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>" 2752 2753#. Tag: para 2754#: reference_raster.xml:1226 2755#, no-c-format 2756msgid "" 2757"Returns a raster with a new band added in given position (index), of given " 2758"type, of given initial value, and of given nodata value. If no index is " 2759"specified, the band is added to the end. If no <varname>fromband</varname> " 2760"is specified, band 1 is assumed. Pixel type is a string representation of " 2761"one of the pixel types specified in <xref linkend=\"RT_ST_BandPixelType\"/>. " 2762"If an existing index is specified all subsequent bands >= that index are " 2763"incremented by 1. If an initial value greater than the max of the pixel type " 2764"is specified, then the initial value is set to the highest value allowed by " 2765"the pixel type." 2766msgstr "" 2767"Retorna um raster com uma nova banda adicionada na posição (índice), do dado " 2768"tipo, do valor inicial, e do dado valor nodata. Se nenhu índice for " 2769"especificado, a banda é adicionada ao final. Se nenhum <varname>fromband</" 2770"varname> for especificado, banda 1 é assumida. O tipo pixel é uma " 2771"representação de string de um dos tipos de pixel especificados em <xref " 2772"linkend=\"RT_ST_BandPixelType\"/>. Se um índice existente for especificado " 2773"todas as bandas subsequentes >= aquele índice é incrementado por 1. Se um " 2774"valor inicial maior que o máximo do tipo pixel for especificado, então ele é " 2775"estabelecido como o maior valor permitido pelo tipo pixel. " 2776 2777#. Tag: para 2778#: reference_raster.xml:1230 2779#, no-c-format 2780msgid "" 2781"For the variant that takes an array of <xref linkend=\"addbandarg\"/> " 2782"(Variant 1), a specific addbandarg's index value is relative to the raster " 2783"at the time when the band described by that addbandarg is being added to the " 2784"raster. See the Multiple New Bands example below." 2785msgstr "" 2786"Para a variante que pega um arranjo de <xref linkend=\"addbandarg\"/> " 2787"(Variante 1), um valor de índice addbandarg's específico é relativo ao " 2788"raster no mesmo tempo que a banda é descrita por aquele addbandarg's está " 2789"sendo adicionada ao raster. Veja o exemplo abaixo. " 2790 2791#. Tag: para 2792#: reference_raster.xml:1234 2793#, no-c-format 2794msgid "" 2795"For the variant that takes an array of rasters (Variant 5), if " 2796"<varname>torast</varname> is NULL then the <varname>fromband</varname> band " 2797"of each raster in the array is accumulated into a new raster." 2798msgstr "" 2799"Para a variante que pega um arranjo de rasters (Variante 5), se " 2800"<varname>torast</varname> é NULO então a <varname>fromband</varname> banda " 2801"de cada raster no arranjo está acumulada dentro de um novo raster. " 2802 2803#. Tag: para 2804#: reference_raster.xml:1238 2805#, no-c-format 2806msgid "" 2807"For the variants that take <varname>outdbfile</varname> (Variants 6 and 7), " 2808"the value must include the full path to the raster file. The file must also " 2809"be accessible to the postgres server process." 2810msgstr "" 2811"Para as variantes que pegam <varname>outdbfile</varname> (Variantes 6 e 7), " 2812"o valor deve incluir o caminho completo para o arquivo raster. O arquivo " 2813"deve ser acessível também pata o processo do servidor postgres." 2814 2815#. Tag: para 2816#: reference_raster.xml:1242 2817#, no-c-format 2818msgid "Enhanced: 2.1.0 support for addbandarg added." 2819msgstr "Melhorias: 2.1.0 suporte para addbandarg adicionado." 2820 2821#. Tag: para 2822#: reference_raster.xml:1243 2823#, no-c-format 2824msgid "Enhanced: 2.1.0 support for new out-db bands added." 2825msgstr "Melhorias: 2.1.0 suporte para novas bandas out-db adicionado. " 2826 2827#. Tag: title 2828#: reference_raster.xml:1247 2829#, no-c-format 2830msgid "Examples: Single New Band" 2831msgstr "Exemplos: Nova banda única" 2832 2833#. Tag: programlisting 2834#: reference_raster.xml:1249 2835#, no-c-format 2836msgid "" 2837"-- Add another band of type 8 bit unsigned integer with pixels initialized " 2838"to 200\n" 2839"UPDATE dummy_rast\n" 2840" SET rast = ST_AddBand(rast,'8BUI'::text,200)\n" 2841"WHERE rid = 1;" 2842msgstr "" 2843"-- Add another band of type 8 bit unsigned integer with pixels initialized " 2844"to 200\n" 2845"UPDATE dummy_rast\n" 2846" SET rast = ST_AddBand(rast,'8BUI'::text,200)\n" 2847"WHERE rid = 1;" 2848 2849#. Tag: programlisting 2850#: reference_raster.xml:1251 2851#, no-c-format 2852msgid "" 2853"-- Create an empty raster 100x100 units, with upper left right at 0, add 2 " 2854"bands (band 1 is 0/1 boolean bit switch, band2 allows values 0-15)\n" 2855"-- uses addbandargs\n" 2856"INSERT INTO dummy_rast(rid,rast)\n" 2857" VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, " 2858"0),\n" 2859" ARRAY[\n" 2860" ROW(1, '1BB'::text, 0, NULL),\n" 2861" ROW(2, '4BUI'::text, 0, NULL)\n" 2862" ]::addbandarg[]\n" 2863" )\n" 2864" );\n" 2865"\n" 2866"-- output meta data of raster bands to verify all is right --\n" 2867"SELECT (bmd).*\n" 2868"FROM (SELECT ST_BandMetaData(rast,generate_series(1,2)) As bmd\n" 2869" FROM dummy_rast WHERE rid = 10) AS foo;\n" 2870" --result --\n" 2871" pixeltype | nodatavalue | isoutdb | path\n" 2872"-----------+----------------+-------------+---------+------\n" 2873" 1BB | | f |\n" 2874" 4BUI | | f |\n" 2875"\n" 2876"\n" 2877"-- output meta data of raster -\n" 2878"SELECT (rmd).width, (rmd).height, (rmd).numbands\n" 2879"FROM (SELECT ST_MetaData(rast) As rmd\n" 2880" FROM dummy_rast WHERE rid = 10) AS foo;\n" 2881"-- result --\n" 2882" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy " 2883"| srid | numbands\n" 2884"------------+------------+-------+--------+------------+------------+-------" 2885"+-------+------+----------\n" 2886" 0 | 0 | 100 | 100 | 1 | -1 | 0 | 0 " 2887"| 0 | 2" 2888msgstr "" 2889"-- Create an empty raster 100x100 units, with upper left right at 0, add 2 " 2890"bands (band 1 is 0/1 boolean bit switch, band2 allows values 0-15)\n" 2891"-- uses addbandargs\n" 2892"INSERT INTO dummy_rast(rid,rast)\n" 2893" VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, " 2894"0),\n" 2895" ARRAY[\n" 2896" ROW(1, '1BB'::text, 0, NULL),\n" 2897" ROW(2, '4BUI'::text, 0, NULL)\n" 2898" ]::addbandarg[]\n" 2899" )\n" 2900" );\n" 2901"\n" 2902"-- output meta data of raster bands to verify all is right --\n" 2903"SELECT (bmd).*\n" 2904"FROM (SELECT ST_BandMetaData(rast,generate_series(1,2)) As bmd\n" 2905" FROM dummy_rast WHERE rid = 10) AS foo;\n" 2906" --result --\n" 2907" pixeltype | nodatavalue | isoutdb | path\n" 2908"-----------+----------------+-------------+---------+------\n" 2909" 1BB | | f |\n" 2910" 4BUI | | f |\n" 2911"\n" 2912"\n" 2913"-- output meta data of raster -\n" 2914"SELECT (rmd).width, (rmd).height, (rmd).numbands\n" 2915"FROM (SELECT ST_MetaData(rast) As rmd\n" 2916" FROM dummy_rast WHERE rid = 10) AS foo;\n" 2917"-- result --\n" 2918" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy " 2919"| srid | numbands\n" 2920"------------+------------+-------+--------+------------+------------+-------" 2921"+-------+------+----------\n" 2922" 0 | 0 | 100 | 100 | 1 | -1 | 0 | 0 " 2923"| 0 | 2" 2924 2925#. Tag: title 2926#: reference_raster.xml:1255 2927#, no-c-format 2928msgid "Examples: Multiple New Bands" 2929msgstr "Exemplos: Várias bandas novas" 2930 2931#. Tag: programlisting 2932#: reference_raster.xml:1257 2933#, no-c-format 2934msgid "" 2935"SELECT\n" 2936" *\n" 2937"FROM ST_BandMetadata(\n" 2938" ST_AddBand(\n" 2939" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n" 2940" ARRAY[\n" 2941" ROW(NULL, '8BUI', 255, 0),\n" 2942" ROW(NULL, '16BUI', 1, 2),\n" 2943" ROW(2, '32BUI', 100, 12),\n" 2944" ROW(2, '32BF', 3.14, -1)\n" 2945" ]::addbandarg[]\n" 2946" ),\n" 2947" ARRAY[]::integer[]\n" 2948");\n" 2949"\n" 2950" bandnum | pixeltype | nodatavalue | isoutdb | path\n" 2951"---------+-----------+-------------+---------+------\n" 2952" 1 | 8BUI | 0 | f |\n" 2953" 2 | 32BF | -1 | f |\n" 2954" 3 | 32BUI | 12 | f |\n" 2955" 4 | 16BUI | 2 | f |" 2956msgstr "" 2957"SELECT\n" 2958" *\n" 2959"FROM ST_BandMetadata(\n" 2960" ST_AddBand(\n" 2961" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n" 2962" ARRAY[\n" 2963" ROW(NULL, '8BUI', 255, 0),\n" 2964" ROW(NULL, '16BUI', 1, 2),\n" 2965" ROW(2, '32BUI', 100, 12),\n" 2966" ROW(2, '32BF', 3.14, -1)\n" 2967" ]::addbandarg[]\n" 2968" ),\n" 2969" ARRAY[]::integer[]\n" 2970");\n" 2971"\n" 2972" bandnum | pixeltype | nodatavalue | isoutdb | path\n" 2973"---------+-----------+-------------+---------+------\n" 2974" 1 | 8BUI | 0 | f |\n" 2975" 2 | 32BF | -1 | f |\n" 2976" 3 | 32BUI | 12 | f |\n" 2977" 4 | 16BUI | 2 | f |" 2978 2979#. Tag: programlisting 2980#: reference_raster.xml:1259 2981#, no-c-format 2982msgid "" 2983"-- Aggregate the 1st band of a table of like rasters into a single raster\n" 2984"-- with as many bands as there are test_types and as many rows (new rasters) " 2985"as there are mice\n" 2986"-- NOTE: The ORDER BY test_type is only supported in PostgreSQL 9.0+\n" 2987"-- for 8.4 and below it usually works to order your data in a subselect (but " 2988"not guaranteed)\n" 2989"-- The resulting raster will have a band for each test_type alphabetical by " 2990"test_type\n" 2991"-- For mouse lovers: No mice were harmed in this exercise\n" 2992"SELECT\n" 2993" mouse,\n" 2994" ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1) As rast\n" 2995"FROM mice_studies\n" 2996"GROUP BY mouse;" 2997msgstr "" 2998"-- Aggregate the 1st band of a table of like rasters into a single raster\n" 2999"-- with as many bands as there are test_types and as many rows (new rasters) " 3000"as there are mice\n" 3001"-- NOTE: The ORDER BY test_type is only supported in PostgreSQL 9.0+\n" 3002"-- for 8.4 and below it usually works to order your data in a subselect (but " 3003"not guaranteed)\n" 3004"-- The resulting raster will have a band for each test_type alphabetical by " 3005"test_type\n" 3006"-- For mouse lovers: No mice were harmed in this exercise\n" 3007"SELECT\n" 3008" mouse,\n" 3009" ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1) As rast\n" 3010"FROM mice_studies\n" 3011"GROUP BY mouse;" 3012 3013#. Tag: title 3014#: reference_raster.xml:1263 3015#, no-c-format 3016msgid "Examples: New Out-db band" 3017msgstr "Exemplos: Nova banda out-db" 3018 3019#. Tag: programlisting 3020#: reference_raster.xml:1264 3021#, no-c-format 3022msgid "" 3023"SELECT\n" 3024" *\n" 3025"FROM ST_BandMetadata(\n" 3026" ST_AddBand(\n" 3027" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n" 3028" '/home/raster/mytestraster.tif'::text, NULL::int[]\n" 3029" ),\n" 3030" ARRAY[]::integer[]\n" 3031");\n" 3032"\n" 3033" bandnum | pixeltype | nodatavalue | isoutdb | path\n" 3034"---------+-----------+-------------+---------+------\n" 3035" 1 | 8BUI | | t | /home/raster/mytestraster." 3036"tif\n" 3037" 2 | 8BUI | | t | /home/raster/mytestraster." 3038"tif\n" 3039" 3 | 8BUI | | t | /home/raster/mytestraster.tif" 3040msgstr "" 3041"SELECT\n" 3042" *\n" 3043"FROM ST_BandMetadata(\n" 3044" ST_AddBand(\n" 3045" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n" 3046" '/home/raster/mytestraster.tif'::text, NULL::int[]\n" 3047" ),\n" 3048" ARRAY[]::integer[]\n" 3049");\n" 3050"\n" 3051" bandnum | pixeltype | nodatavalue | isoutdb | path\n" 3052"---------+-----------+-------------+---------+------\n" 3053" 1 | 8BUI | | t | /home/raster/mytestraster." 3054"tif\n" 3055" 2 | 8BUI | | t | /home/raster/mytestraster." 3056"tif\n" 3057" 3 | 8BUI | | t | /home/raster/mytestraster.tif" 3058 3059#. Tag: para 3060#: reference_raster.xml:1269 3061#, no-c-format 3062msgid "" 3063", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=" 3064"\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"RT_ST_MetaData\"/>, <xref " 3065"linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>" 3066msgstr "" 3067", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=" 3068"\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"RT_ST_MetaData\"/>, <xref " 3069"linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>" 3070 3071#. Tag: refname 3072#: reference_raster.xml:1282 3073#, no-c-format 3074msgid "ST_AsRaster" 3075msgstr "ST_AsRaster" 3076 3077#. Tag: refpurpose 3078#: reference_raster.xml:1283 3079#, no-c-format 3080msgid "Converts a PostGIS geometry to a PostGIS raster." 3081msgstr "Converte uma geometria PostGIS para um raster PostGIS. " 3082 3083#. Tag: funcsynopsis 3084#: reference_raster.xml:1287 3085#, no-c-format 3086msgid "" 3087"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3088"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3089"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> " 3090"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3091"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3092"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3093"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3094"\"><type>boolean </type> <parameter>touched=false</parameter></paramdef> </" 3095"funcprototype> <funcprototype> <funcdef>raster <function>ST_AsRaster</" 3096"function></funcdef> <paramdef><type>geometry </type> <parameter>geom</" 3097"parameter></paramdef> <paramdef><type>raster </type> <parameter>ref</" 3098"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 3099"<parameter>pixeltype=ARRAY['8BUI']</parameter></paramdef> <paramdef choice=" 3100"\"opt\"><type>double precision[] </type> <parameter>value=ARRAY[1]</" 3101"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3102"type> <parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=" 3103"\"opt\"><type>boolean </type> <parameter>touched=false</parameter></" 3104"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3105"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3106"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3107"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3108"precision </type> <parameter>scaley</parameter></paramdef> " 3109"<paramdef><type>double precision </type> <parameter>gridx</parameter></" 3110"paramdef> <paramdef><type>double precision </type> <parameter>gridy</" 3111"parameter></paramdef> <paramdef><type>text </type> <parameter>pixeltype</" 3112"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3113"type> <parameter>value=1</parameter></paramdef> <paramdef choice=\"opt" 3114"\"><type>double precision </type> <parameter>nodataval=0</parameter></" 3115"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3116"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3117"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3118"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3119"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3120"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3121"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3122"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3123"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice=" 3124"\"opt\"><type>double precision </type> <parameter>gridx=NULL</parameter></" 3125"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3126"<parameter>gridy=NULL</parameter></paramdef> <paramdef choice=\"opt" 3127"\"><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</parameter></" 3128"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 3129"<parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3130"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3131"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3132"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3133"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3134"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3135"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3136"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3137"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3138"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3139"precision </type> <parameter>scaley</parameter></paramdef> " 3140"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3141"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3142"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3143"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3144"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3145"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3146"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3147"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3148"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3149"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3150"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3151"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3152"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3153"<paramdef><type>double precision </type> <parameter>scalex</parameter></" 3154"paramdef> <paramdef><type>double precision </type> <parameter>scaley</" 3155"parameter></paramdef> <paramdef><type>text[] </type> <parameter>pixeltype</" 3156"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3157"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3158"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3159"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3160"type> <parameter>upperleftx=NULL</parameter></paramdef> <paramdef choice=" 3161"\"opt\"><type>double precision </type> <parameter>upperlefty=NULL</" 3162"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3163"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3164"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3165"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3166"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3167"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3168"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> " 3169"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 3170"<parameter>height</parameter></paramdef> <paramdef><type>double precision </" 3171"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 3172"precision </type> <parameter>gridy</parameter></paramdef> " 3173"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3174"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3175"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3176"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3177"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3178"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3179"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3180"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3181"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3182"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3183"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 3184"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 3185"<paramdef choice=\"opt\"><type>double precision </type> " 3186"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 3187"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 3188"paramdef> <paramdef><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</" 3189"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3190"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3191"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3192"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3193"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3194"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3195"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3196"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3197"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3198"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> " 3199"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 3200"<parameter>height</parameter></paramdef> <paramdef><type>text </type> " 3201"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt" 3202"\"><type>double precision </type> <parameter>value=1</parameter></paramdef> " 3203"<paramdef choice=\"opt\"><type>double precision </type> " 3204"<parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3205"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3206"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3207"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3208"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3209"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3210"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3211"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3212"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3213"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3214"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 3215"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 3216"<paramdef><type>text[] </type> <parameter>pixeltype</parameter></paramdef> " 3217"<paramdef><type>double precision[] </type> <parameter>value=ARRAY[1]</" 3218"parameter></paramdef> <paramdef><type>double precision[] </type> " 3219"<parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=\"opt" 3220"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3221"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3222"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3223"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3224"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3225"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3226"<parameter>touched=false</parameter></paramdef> </funcprototype>" 3227msgstr "" 3228"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3229"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3230"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> " 3231"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3232"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3233"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3234"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3235"\"><type>boolean </type> <parameter>touched=false</parameter></paramdef> </" 3236"funcprototype> <funcprototype> <funcdef>raster <function>ST_AsRaster</" 3237"function></funcdef> <paramdef><type>geometry </type> <parameter>geom</" 3238"parameter></paramdef> <paramdef><type>raster </type> <parameter>ref</" 3239"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 3240"<parameter>pixeltype=ARRAY['8BUI']</parameter></paramdef> <paramdef choice=" 3241"\"opt\"><type>double precision[] </type> <parameter>value=ARRAY[1]</" 3242"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3243"type> <parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=" 3244"\"opt\"><type>boolean </type> <parameter>touched=false</parameter></" 3245"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3246"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3247"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3248"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3249"precision </type> <parameter>scaley</parameter></paramdef> " 3250"<paramdef><type>double precision </type> <parameter>gridx</parameter></" 3251"paramdef> <paramdef><type>double precision </type> <parameter>gridy</" 3252"parameter></paramdef> <paramdef><type>text </type> <parameter>pixeltype</" 3253"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3254"type> <parameter>value=1</parameter></paramdef> <paramdef choice=\"opt" 3255"\"><type>double precision </type> <parameter>nodataval=0</parameter></" 3256"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3257"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3258"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3259"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3260"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3261"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3262"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3263"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3264"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice=" 3265"\"opt\"><type>double precision </type> <parameter>gridx=NULL</parameter></" 3266"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3267"<parameter>gridy=NULL</parameter></paramdef> <paramdef choice=\"opt" 3268"\"><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</parameter></" 3269"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 3270"<parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3271"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3272"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3273"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3274"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3275"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3276"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3277"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3278"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 3279"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 3280"precision </type> <parameter>scaley</parameter></paramdef> " 3281"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3282"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3283"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3284"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3285"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3286"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3287"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3288"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3289"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3290"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3291"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3292"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3293"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3294"<paramdef><type>double precision </type> <parameter>scalex</parameter></" 3295"paramdef> <paramdef><type>double precision </type> <parameter>scaley</" 3296"parameter></paramdef> <paramdef><type>text[] </type> <parameter>pixeltype</" 3297"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3298"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3299"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3300"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3301"type> <parameter>upperleftx=NULL</parameter></paramdef> <paramdef choice=" 3302"\"opt\"><type>double precision </type> <parameter>upperlefty=NULL</" 3303"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3304"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3305"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3306"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3307"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3308"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3309"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> " 3310"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 3311"<parameter>height</parameter></paramdef> <paramdef><type>double precision </" 3312"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 3313"precision </type> <parameter>gridy</parameter></paramdef> " 3314"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 3315"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</" 3316"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3317"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3318"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3319"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3320"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3321"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3322"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3323"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3324"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 3325"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 3326"<paramdef choice=\"opt\"><type>double precision </type> " 3327"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 3328"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 3329"paramdef> <paramdef><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</" 3330"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 3331"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt" 3332"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</" 3333"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 3334"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 3335"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 3336"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</" 3337"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3338"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> " 3339"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> " 3340"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 3341"<parameter>height</parameter></paramdef> <paramdef><type>text </type> " 3342"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt" 3343"\"><type>double precision </type> <parameter>value=1</parameter></paramdef> " 3344"<paramdef choice=\"opt\"><type>double precision </type> " 3345"<parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt" 3346"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3347"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3348"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3349"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3350"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3351"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3352"<parameter>touched=false</parameter></paramdef> </funcprototype> " 3353"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> " 3354"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 3355"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 3356"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 3357"<paramdef><type>text[] </type> <parameter>pixeltype</parameter></paramdef> " 3358"<paramdef><type>double precision[] </type> <parameter>value=ARRAY[1]</" 3359"parameter></paramdef> <paramdef><type>double precision[] </type> " 3360"<parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=\"opt" 3361"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></" 3362"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 3363"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt" 3364"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> " 3365"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</" 3366"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 3367"<parameter>touched=false</parameter></paramdef> </funcprototype>" 3368 3369#. Tag: para 3370#: reference_raster.xml:1435 3371#, no-c-format 3372msgid "" 3373"Converts a PostGIS geometry to a PostGIS raster. The many variants offers " 3374"three groups of possibilities for setting the alignment and pixelsize of the " 3375"resulting raster." 3376msgstr "" 3377"Converte uma geometria PostGIS para um raster PostGIS. As diversas " 3378"variantes oferecem três grupos de possibilidades para configurar o " 3379"alinhamento e o tamanho do pixel do raster resultante. " 3380 3381#. Tag: para 3382#: reference_raster.xml:1437 3383#, no-c-format 3384msgid "" 3385"The first group, composed of the two first variants, produce a raster having " 3386"the same alignment (<varname>scalex</varname>, <varname>scaley</varname>, " 3387"<varname>gridx</varname> and <varname>gridy</varname>), pixel type and " 3388"nodata value as the provided reference raster. You generally pass this " 3389"reference raster by joining the table containing the geometry with the table " 3390"containing the reference raster." 3391msgstr "" 3392"O primeiro grupo, composto pelas duas primeiras variantes, produz um raster " 3393"tendo o mesmo alinhamento (<varname>scalex</varname>, <varname>scaley</" 3394"varname>, <varname>gridx</varname> e <varname>gridy</varname>), tipo pixel e " 3395"valor nodata como foi fornecido pelo raster referência. Você geralmente " 3396"passa este raster referência unindo a tabela que contém a geometria com a " 3397"que contém o raster referência. " 3398 3399#. Tag: para 3400#: reference_raster.xml:1439 3401#, no-c-format 3402msgid "" 3403"The second group, composed of four variants, let you set the dimensions of " 3404"the raster by providing the parameters of a pixel size (<varname>scalex</" 3405"varname> & <varname>scaley</varname> and <varname>skewx</varname> & " 3406"<varname>skewy</varname>). The <varname>width</varname> & " 3407"<varname>height</varname> of the resulting raster will be adjusted to fit " 3408"the extent of the geometry. In most cases, you must cast integer " 3409"<varname>scalex</varname> & <varname>scaley</varname> arguments to " 3410"double precision so that PostgreSQL choose the right variant." 3411msgstr "" 3412"O segundo grupo, composto por quatro variantes, permite que você fixe " 3413"dimensões do raster fornecendo os parâmetros do tamanho de um pixel " 3414"(<varname>scalex</varname> & <varname>scaley</varname> e <varname>skewx</" 3415"varname> & <varname>skewy</varname>). O <varname>width</varname> & " 3416"<varname>height</varname> do raster resultante será ajustado para caber na " 3417"extensão da geometria. Na maioria dos casos, você deve cast integer " 3418"<varname>scalex</varname> & <varname>scaley</varname> argumentos para " 3419"dobrar a precisão para que o PostgreSQL escolha a variante correta. " 3420 3421#. Tag: para 3422#: reference_raster.xml:1441 3423#, no-c-format 3424msgid "" 3425"The third group, composed of four variants, let you fix the dimensions of " 3426"the raster by providing the dimensions of the raster (<varname>width</" 3427"varname> & <varname>height</varname>). The parameters of the pixel size " 3428"(<varname>scalex</varname> & <varname>scaley</varname> and " 3429"<varname>skewx</varname> & <varname>skewy</varname>) of the resulting " 3430"raster will be adjusted to fit the extent of the geometry." 3431msgstr "" 3432"O terceiro grupo, composto por quatro variantes, permite que você conserte " 3433"dimensões do raster fornecendo elas (<varname>width</varname> & " 3434"<varname>height</varname>). Os parâmetros do tamanho do pixel " 3435"(<varname>scalex</varname> & <varname>scaley</varname> and " 3436"<varname>skewx</varname> & <varname>skewy</varname>) do raster " 3437"resultante será ajustado para caber na extensão da geometria. " 3438 3439#. Tag: para 3440#: reference_raster.xml:1443 3441#, no-c-format 3442msgid "" 3443"The two first variants of each of those two last groups let you specify the " 3444"alignment with an arbitrary corner of the alignment grid (<varname>gridx</" 3445"varname> & <varname>gridy</varname>) and the two last variants takes the " 3446"upper left corner (<varname>upperleftx</varname> & <varname>upperlefty</" 3447"varname>)." 3448msgstr "" 3449"As duas primeiras variantes de cada um destes dois últimos grupos permite " 3450"que você especifique o alinhamento com um canto aleatório da rede de " 3451"alinhamento (<varname>gridx</varname> & <varname>gridy</varname>) e as " 3452"duas últimas variantes pegam o canto esquerdo mais alto " 3453"(<varname>upperleftx</varname> & <varname>upperlefty</varname>)." 3454 3455#. Tag: para 3456#: reference_raster.xml:1445 3457#, no-c-format 3458msgid "" 3459"Each group of variant allows producing a one band raster or a multiple bands " 3460"raster. To produce a multiple bands raster, you must provide an array of " 3461"pixel types (<varname>pixeltype[]</varname>), an array of initial values " 3462"(<varname>value</varname>) and an array of nodata values " 3463"(<varname>nodataval</varname>). If not provided pixeltyped defaults to 8BUI, " 3464"values to 1 and nodataval to 0." 3465msgstr "" 3466"Cada grupo de variantes permite a produção de uma ou várias bandas raster. " 3467"Para produzir várias, você deve fornecer um arranjo de tipos pixel " 3468"(<varname>pixeltype[]</varname>), um arranjo de valores iniciais " 3469"(<varname>value</varname>) e um de valores nodata (<varname>nodataval</" 3470"varname>). Se não fornecidos pixeltyped torna-se 8BUI, valores para 1 e " 3471"nodataval para 0." 3472 3473#. Tag: para 3474#: reference_raster.xml:1447 3475#, no-c-format 3476msgid "" 3477"The output raster will be in the same spatial reference as the source " 3478"geometry. The only exception is for variants with a reference raster. In " 3479"this case the resulting raster will get the same SRID as the reference " 3480"raster." 3481msgstr "" 3482"O raster de saída terá a mesma referência espacial que a geometria fonte. A " 3483"única exceção é para variantes com raster referência. Neste caso, o raster " 3484"resultante terá o mesmo SRID do raster referência." 3485 3486#. Tag: para 3487#: reference_raster.xml:1449 3488#, no-c-format 3489msgid "" 3490"The optional <varname>touched</varname> parameter defaults to false and maps " 3491"to the GDAL ALL_TOUCHED rasterization option, which determines if pixels " 3492"touched by lines or polygons will be burned. Not just those on the line " 3493"render path, or whose center point is within the polygon." 3494msgstr "" 3495"O parâmetro opcional <varname>touched</varname> é falso e mapeia a opção " 3496"rasterização GDAL ALL_TOUCHED, a qual determina se pixeis tocados por linhas " 3497"ou polígonos serão queimados. Não apenas aqueles no caminho de renderização " 3498"de linha, ou aqueles cujo ponto central está dentro do polígono. " 3499 3500#. Tag: para 3501#: reference_raster.xml:1451 3502#, no-c-format 3503msgid "" 3504"This is particularly useful for rendering jpegs and pngs of geometries " 3505"directly from the database when using in combination with <xref linkend=" 3506"\"RT_ST_AsPNG\"/> and other <xref linkend=\"RT_ST_AsGDALRaster\"/> family of " 3507"functions." 3508msgstr "" 3509"Isto é particularmente útil para renderizar jpegs e pngs de geometrias " 3510"diretamente do banco de dados quando usando em conjunto com <xref linkend=" 3511"\"RT_ST_AsPNG\"/> e outra família <xref linkend=\"RT_ST_AsGDALRaster\"/> de " 3512"funções." 3513 3514#. Tag: para 3515#: reference_raster.xml:1455 3516#, no-c-format 3517msgid "" 3518"Not yet capable of rendering complex geometry types such as curves, TINS, " 3519"and PolyhedralSurfaces, but should be able too once GDAL can." 3520msgstr "" 3521"Ainda não é capaz de renderizar geometrias complexas como: curvas, TINS, e " 3522"superfícies poliédricas, mas deveria ser, já que GDAL consegue. " 3523 3524#. Tag: title 3525#: reference_raster.xml:1460 3526#, no-c-format 3527msgid "Examples: Output geometries as PNG files" 3528msgstr "Exemplos: Gera geometrias como arquivos PNG" 3529 3530#. Tag: para 3531#: reference_raster.xml:1466 3532#, no-c-format 3533msgid "black circle" 3534msgstr "círculo preto" 3535 3536#. Tag: programlisting 3537#: reference_raster.xml:1469 3538#, no-c-format 3539msgid "" 3540"-- this will output a black circle taking up 150 x 150 pixels --\n" 3541"SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10),150, 150));" 3542msgstr "" 3543 3544#. Tag: para 3545#: reference_raster.xml:1476 3546#, no-c-format 3547msgid "example from buffer rendered with just PostGIS" 3548msgstr "exemplo de buffer renderizado só com o PostGIS" 3549 3550#. Tag: programlisting 3551#: reference_raster.xml:1480 3552#, no-c-format 3553msgid "" 3554"-- the bands map to RGB bands - the value (118,154,118) - teal --\n" 3555"SELECT ST_AsPNG(\n" 3556" ST_AsRaster(\n" 3557" ST_Buffer(\n" 3558" ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), " 3559"10,'join=bevel'),\n" 3560" 200,200,ARRAY['8BUI', '8BUI', '8BUI'], " 3561"ARRAY[118,154,118], ARRAY[0,0,0]));" 3562msgstr "" 3563"-- the bands map to RGB bands - the value (118,154,118) - teal --\n" 3564"SELECT ST_AsPNG(\n" 3565" ST_AsRaster(\n" 3566" ST_Buffer(\n" 3567" ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), " 3568"10,'join=bevel'),\n" 3569" 200,200,ARRAY['8BUI', '8BUI', '8BUI'], " 3570"ARRAY[118,154,118], ARRAY[0,0,0]));" 3571 3572#. Tag: para 3573#: reference_raster.xml:1486 3574#, no-c-format 3575msgid "" 3576", <xref linkend=\"ST_Buffer\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, " 3577"<xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, " 3578"<xref linkend=\"RT_ST_AsJPEG\"/>, <xref linkend=\"RT_ST_SRID\"/>" 3579msgstr "" 3580", <xref linkend=\"ST_Buffer\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, " 3581"<xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, " 3582"<xref linkend=\"RT_ST_AsJPEG\"/>, <xref linkend=\"RT_ST_SRID\"/>" 3583 3584#. Tag: refname 3585#: reference_raster.xml:1492 3586#, no-c-format 3587msgid "ST_Band" 3588msgstr "ST_Band" 3589 3590#. Tag: refpurpose 3591#: reference_raster.xml:1493 3592#, no-c-format 3593msgid "" 3594"Returns one or more bands of an existing raster as a new raster. Useful for " 3595"building new rasters from existing rasters." 3596msgstr "" 3597"Retorna uma ou mais bandas de um raster existente como um novo raster. Útil " 3598"para a construção de novos rasters a partir de rasters existentes. " 3599 3600#. Tag: funcsynopsis 3601#: reference_raster.xml:1497 3602#, no-c-format 3603msgid "" 3604"<funcprototype> <funcdef>raster <function>ST_Band</function></funcdef> " 3605"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 3606"<paramdef choice=\"opt\"><type>integer[] </type> <parameter>nbands = " 3607"ARRAY[1]</parameter></paramdef> </funcprototype> <funcprototype> " 3608"<funcdef>raster <function>ST_Band</function></funcdef> " 3609"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 3610"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> </" 3611"funcprototype> <funcprototype> <funcdef>raster <function>ST_Band</function></" 3612"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 3613"paramdef> <paramdef><type>text </type> <parameter>nbands</parameter></" 3614"paramdef> <paramdef choice=\"opt\"><type>character </type> " 3615"<parameter>delimiter=,</parameter></paramdef> </funcprototype>" 3616msgstr "" 3617"<funcprototype> <funcdef>raster <function>ST_Band</function></funcdef> " 3618"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 3619"<paramdef choice=\"opt\"><type>integer[] </type> <parameter>nbands = " 3620"ARRAY[1]</parameter></paramdef> </funcprototype> <funcprototype> " 3621"<funcdef>raster <function>ST_Band</function></funcdef> " 3622"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 3623"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> </" 3624"funcprototype> <funcprototype> <funcdef>raster <function>ST_Band</function></" 3625"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 3626"paramdef> <paramdef><type>text </type> <parameter>nbands</parameter></" 3627"paramdef> <paramdef choice=\"opt\"><type>character </type> " 3628"<parameter>delimiter=,</parameter></paramdef> </funcprototype>" 3629 3630#. Tag: para 3631#: reference_raster.xml:1522 3632#, no-c-format 3633msgid "" 3634"Returns one or more bands of an existing raster as a new raster. Useful for " 3635"building new rasters from existing rasters or export of only selected bands " 3636"of a raster or rearranging the order of bands in a raster. If no band is " 3637"specified or any of specified bands does not exist in the raster, then all " 3638"bands are returned. Used as a helper function in various functions such as " 3639"for deleting a band." 3640msgstr "" 3641 3642#. Tag: para 3643#: reference_raster.xml:1524 3644#, no-c-format 3645msgid "" 3646"For the <code>nbands</code> as text variant of function, the default " 3647"delimiter is <code>,</code> which means you can ask for <code>'1,2,3'</code> " 3648"and if you wanted to use a different delimeter you would do " 3649"<code>ST_Band(rast, '1@2@3', '@')</code>. For asking for multiple bands, we " 3650"strongly suggest you use the array form of this function e.g. " 3651"<code>ST_Band(rast, '{1,2,3}'::int[]);</code> since the <code>text</code> " 3652"list of bands form may be removed in future versions of PostGIS." 3653msgstr "" 3654"Para as <code>nbands</code> como variantes de textos de função, o " 3655"delimitador padrão é <code>,</code> que significa que você pode pedir por " 3656"<code>'1,2,3'</code> e se quiser usar um delimitador diferente você poderia " 3657"fazer <code>ST_Band(rast, '1@2@3', '@')</code>. Para pedir por várias " 3658"bandas, sugerimos que use a forma de arranjo desta função ex.: " 3659"<code>ST_Band(rast, '{1,2,3}'::int[]);</code> já que a forma de lista de " 3660"banda <code>text</code> pode ser removida em versões futuras do PostGIS. " 3661 3662#. Tag: programlisting 3663#: reference_raster.xml:1532 3664#, no-c-format 3665msgid "" 3666"-- Make 2 new rasters: 1 containing band 1 of dummy, second containing band " 3667"2 of dummy and then reclassified as a 2BUI\n" 3668"SELECT ST_NumBands(rast1) As numb1, ST_BandPixelType(rast1) As pix1,\n" 3669" ST_NumBands(rast2) As numb2, ST_BandPixelType(rast2) As pix2\n" 3670"FROM (\n" 3671" SELECT ST_Band(rast) As rast1, ST_Reclass(ST_Band(rast,3), '100-200):1, " 3672"[200-254:2', '2BUI') As rast2\n" 3673" FROM dummy_rast\n" 3674" WHERE rid = 2) As foo;\n" 3675"\n" 3676" numb1 | pix1 | numb2 | pix2\n" 3677"-------+------+-------+------\n" 3678" 1 | 8BUI | 1 | 2BUI" 3679msgstr "" 3680"-- Make 2 new rasters: 1 containing band 1 of dummy, second containing band " 3681"2 of dummy and then reclassified as a 2BUI\n" 3682"SELECT ST_NumBands(rast1) As numb1, ST_BandPixelType(rast1) As pix1,\n" 3683" ST_NumBands(rast2) As numb2, ST_BandPixelType(rast2) As pix2\n" 3684"FROM (\n" 3685" SELECT ST_Band(rast) As rast1, ST_Reclass(ST_Band(rast,3), '100-200):1, " 3686"[200-254:2', '2BUI') As rast2\n" 3687" FROM dummy_rast\n" 3688" WHERE rid = 2) As foo;\n" 3689"\n" 3690" numb1 | pix1 | numb2 | pix2\n" 3691"-------+------+-------+------\n" 3692" 1 | 8BUI | 1 | 2BUI" 3693 3694#. Tag: programlisting 3695#: reference_raster.xml:1534 3696#, no-c-format 3697msgid "" 3698"-- Return bands 2 and 3. Using array cast syntax\n" 3699"SELECT ST_NumBands(ST_Band(rast, '{2,3}'::int[])) As num_bands\n" 3700" FROM dummy_rast WHERE rid=2;\n" 3701"\n" 3702"num_bands\n" 3703"----------\n" 3704"2\n" 3705"\n" 3706"-- Return bands 2 and 3. Use array to define bands\n" 3707"SELECT ST_NumBands(ST_Band(rast, ARRAY[2,3])) As num_bands\n" 3708" FROM dummy_rast\n" 3709"WHERE rid=2;" 3710msgstr "" 3711"-- Return bands 2 and 3. Using array cast syntax\n" 3712"SELECT ST_NumBands(ST_Band(rast, '{2,3}'::int[])) As num_bands\n" 3713" FROM dummy_rast WHERE rid=2;\n" 3714"\n" 3715"num_bands\n" 3716"----------\n" 3717"2\n" 3718"\n" 3719"-- Return bands 2 and 3. Use array to define bands\n" 3720"SELECT ST_NumBands(ST_Band(rast, ARRAY[2,3])) As num_bands\n" 3721" FROM dummy_rast\n" 3722"WHERE rid=2;" 3723 3724#. Tag: para 3725#: reference_raster.xml:1544 3726#, no-c-format 3727msgid "original (column rast)" 3728msgstr "original (column rast)" 3729 3730#. Tag: para 3731#: reference_raster.xml:1553 3732#, no-c-format 3733msgid "dupe_band" 3734msgstr "dupe_band" 3735 3736#. Tag: para 3737#: reference_raster.xml:1562 3738#, no-c-format 3739msgid "sing_band" 3740msgstr "sing_band" 3741 3742#. Tag: programlisting 3743#: reference_raster.xml:1570 3744#, no-c-format 3745msgid "" 3746"--Make a new raster with 2nd band of original and 1st band repeated twice,\n" 3747"and another with just the third band\n" 3748"SELECT rast, ST_Band(rast, ARRAY[2,1,1]) As dupe_band,\n" 3749" ST_Band(rast, 3) As sing_band\n" 3750"FROM samples.than_chunked\n" 3751"WHERE rid=35;" 3752msgstr "" 3753"--Make a new raster with 2nd band of original and 1st band repeated twice,\n" 3754"and another with just the third band\n" 3755"SELECT rast, ST_Band(rast, ARRAY[2,1,1]) As dupe_band,\n" 3756" ST_Band(rast, 3) As sing_band\n" 3757"FROM samples.than_chunked\n" 3758"WHERE rid=35;" 3759 3760#. Tag: para 3761#: reference_raster.xml:1576 3762#, no-c-format 3763msgid "" 3764", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>, " 3765"<xref linkend=\"RT_reference\"/>" 3766msgstr "" 3767", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>, " 3768"<xref linkend=\"RT_reference\"/>" 3769 3770#. Tag: refname 3771#: reference_raster.xml:1582 3772#, no-c-format 3773msgid "ST_MakeEmptyCoverage" 3774msgstr "" 3775 3776#. Tag: refpurpose 3777#: reference_raster.xml:1583 3778#, no-c-format 3779msgid "Cover georeferenced area with a grid of empty raster tiles." 3780msgstr "" 3781 3782#. Tag: funcprototype 3783#: reference_raster.xml:1588 3784#, no-c-format 3785msgid "" 3786"<funcdef>raster <function>ST_MakeEmptyCoverage</function></funcdef> " 3787"<paramdef><type>integer </type> <parameter>tilewidth</parameter></paramdef> " 3788"<paramdef><type>integer </type> <parameter>tileheight</parameter></paramdef> " 3789"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 3790"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 3791"<paramdef><type>double precision </type> <parameter>upperleftx</parameter></" 3792"paramdef> <paramdef><type>double precision </type> <parameter>upperlefty</" 3793"parameter></paramdef> <paramdef><type>double precision </type> " 3794"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </" 3795"type> <parameter>scaley</parameter></paramdef> <paramdef><type>double " 3796"precision </type> <parameter>skewx</parameter></paramdef> " 3797"<paramdef><type>double precision </type> <parameter>skewy</parameter></" 3798"paramdef> <paramdef choice=\"opt\"><type>integer </type> " 3799"<parameter>srid=unknown</parameter></paramdef>" 3800msgstr "" 3801 3802#. Tag: para 3803#: reference_raster.xml:1608 3804#, no-c-format 3805msgid "" 3806"Create a set of raster tiles with <xref linkend=\"RT_ST_MakeEmptyRaster\"/>. " 3807"Grid dimension is <varname>width</varname> & <varname>height</varname>. " 3808"Tile dimension is <varname>tilewidth</varname> & <varname>tileheight</" 3809"varname>. The covered georeferenced area is from upper left corner " 3810"(<varname>upperleftx</varname>, <varname>upperlefty</varname>) to lower " 3811"right corner (<varname>upperleftx</varname> + <varname>width</varname> * " 3812"<varname>scalex</varname>, <varname>upperlefty</varname> + <varname>height</" 3813"varname> * <varname>scaley</varname>)." 3814msgstr "" 3815 3816#. Tag: para 3817#: reference_raster.xml:1609 3818#, no-c-format 3819msgid "" 3820"Note that scaley is generally negative for rasters and scalex is generally " 3821"positive. So lower right corner will have a lower y value and higher x value " 3822"than the upper left corner." 3823msgstr "" 3824 3825#. Tag: para 3826#: reference_raster.xml:1610 3827#, no-c-format 3828msgid "Availability: 2.4.0" 3829msgstr "" 3830 3831#. Tag: title 3832#: reference_raster.xml:1614 reference_raster.xml:8517 3833#, no-c-format 3834msgid "Examples Basic" 3835msgstr "Exemplos básicos " 3836 3837#. Tag: para 3838#: reference_raster.xml:1615 3839#, no-c-format 3840msgid "" 3841"Create 16 tiles in a 4x4 grid to cover the WGS84 area from upper left corner " 3842"(22, 77) to lower right corner (55, 33)." 3843msgstr "" 3844 3845#. Tag: programlisting 3846#: reference_raster.xml:1616 3847#, no-c-format 3848msgid "" 3849"<![CDATA[SELECT (ST_MetaData(tile)).* FROM ST_MakeEmptyCoverage(1, 1, 4, 4, " 3850"22, 33, (55 - 22)/(4)::float, (33 - 77)/(4)::float, 0., 0., 4326) tile;\n" 3851"\n" 3852" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy " 3853"| srid | numbands\n" 3854"-------------------------------------------------------------------------------------\n" 3855" 22 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3856"| 4326 | 0\n" 3857" 30.25 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3858"| 4326 | 0\n" 3859" 38.5 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3860"| 4326 | 0\n" 3861" 46.75 | 33 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3862"| 4326 | 0\n" 3863" 22 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3864"| 4326 | 0\n" 3865" 30.25 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3866"| 4326 | 0\n" 3867" 38.5 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3868"| 4326 | 0\n" 3869" 46.75 | 22 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3870"| 4326 | 0\n" 3871" 22 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3872"| 4326 | 0\n" 3873" 30.25 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3874"| 4326 | 0\n" 3875" 38.5 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3876"| 4326 | 0\n" 3877" 46.75 | 11 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3878"| 4326 | 0\n" 3879" 22 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3880"| 4326 | 0\n" 3881" 30.25 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3882"| 4326 | 0\n" 3883" 38.5 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3884"| 4326 | 0\n" 3885" 46.75 | 0 | 1 | 1 | 8.25 | -11 | 0 | 0 " 3886"| 4326 | 0]]>" 3887msgstr "" 3888 3889#. Tag: refname 3890#: reference_raster.xml:1629 3891#, no-c-format 3892msgid "ST_MakeEmptyRaster" 3893msgstr "ST_MakeEmptyRaster" 3894 3895#. Tag: refpurpose 3896#: reference_raster.xml:1630 3897#, no-c-format 3898msgid "" 3899"Returns an empty raster (having no bands) of given dimensions (width & " 3900"height), upperleft X and Y, pixel size and rotation (scalex, scaley, skewx " 3901"& skewy) and reference system (srid). If a raster is passed in, returns " 3902"a new raster with the same size, alignment and SRID. If srid is left out, " 3903"the spatial ref is set to unknown (0)." 3904msgstr "" 3905"Retorna um raster vazio (sem bandas) das dimensões dadas (width & " 3906"height), o X e Y do superior esquerdo, tamanho de pixel e rotação (scalex, " 3907"scaley, skewx & skewy) e sistema de referência (srid). Se um raster " 3908"passar, retorna um novo raster com o mesmo tamanho, alinhamento e SRID. Se o " 3909"srid é deixado de fora, a referência espacial se torna desconhecida (0)." 3910 3911#. Tag: funcsynopsis 3912#: reference_raster.xml:1634 3913#, no-c-format 3914msgid "" 3915"<funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</function></" 3916"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 3917"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3918"<function>ST_MakeEmptyRaster</function></funcdef> <paramdef><type>integer </" 3919"type> <parameter>width</parameter></paramdef> <paramdef><type>integer </" 3920"type> <parameter>height</parameter></paramdef> <paramdef><type>float8 </" 3921"type> <parameter>upperleftx</parameter></paramdef> <paramdef><type>float8 </" 3922"type> <parameter>upperlefty</parameter></paramdef> <paramdef><type>float8 </" 3923"type> <parameter>scalex</parameter></paramdef> <paramdef><type>float8 </" 3924"type> <parameter>scaley</parameter></paramdef> <paramdef><type>float8 </" 3925"type> <parameter>skewx</parameter></paramdef> <paramdef><type>float8 </type> " 3926"<parameter>skewy</parameter></paramdef> <paramdef choice=\"opt" 3927"\"><type>integer </type> <parameter>srid=unknown</parameter></paramdef> </" 3928"funcprototype> <funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</" 3929"function></funcdef> <paramdef><type>integer </type> <parameter>width</" 3930"parameter></paramdef> <paramdef><type>integer </type> <parameter>height</" 3931"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperleftx</" 3932"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperlefty</" 3933"parameter></paramdef> <paramdef><type>float8 </type> <parameter>pixelsize</" 3934"parameter></paramdef> </funcprototype>" 3935msgstr "" 3936"<funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</function></" 3937"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 3938"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 3939"<function>ST_MakeEmptyRaster</function></funcdef> <paramdef><type>integer </" 3940"type> <parameter>width</parameter></paramdef> <paramdef><type>integer </" 3941"type> <parameter>height</parameter></paramdef> <paramdef><type>float8 </" 3942"type> <parameter>upperleftx</parameter></paramdef> <paramdef><type>float8 </" 3943"type> <parameter>upperlefty</parameter></paramdef> <paramdef><type>float8 </" 3944"type> <parameter>scalex</parameter></paramdef> <paramdef><type>float8 </" 3945"type> <parameter>scaley</parameter></paramdef> <paramdef><type>float8 </" 3946"type> <parameter>skewx</parameter></paramdef> <paramdef><type>float8 </type> " 3947"<parameter>skewy</parameter></paramdef> <paramdef choice=\"opt" 3948"\"><type>integer </type> <parameter>srid=unknown</parameter></paramdef> </" 3949"funcprototype> <funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</" 3950"function></funcdef> <paramdef><type>integer </type> <parameter>width</" 3951"parameter></paramdef> <paramdef><type>integer </type> <parameter>height</" 3952"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperleftx</" 3953"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperlefty</" 3954"parameter></paramdef> <paramdef><type>float8 </type> <parameter>pixelsize</" 3955"parameter></paramdef> </funcprototype>" 3956 3957#. Tag: para 3958#: reference_raster.xml:1664 3959#, no-c-format 3960msgid "" 3961"Returns an empty raster (having no band) of given dimensions (width & " 3962"height) and georeferenced in spatial (or world) coordinates with upper left " 3963"X (upperleftx), upper left Y (upperlefty), pixel size and rotation (scalex, " 3964"scaley, skewx & skewy) and reference system (srid)." 3965msgstr "" 3966"Retorna um raster vazio (sem bandas) das dimensões dadas (width & " 3967"height) e georeferenciado nas coordenadas espaciais (ou mundo) com o X " 3968"esquerdo superior (upperleftx), Y superior esquerdo (upperlefty), tamanho de " 3969"pixel e rotação (scalex, scaley, skewx & skewy) e sistema de referência " 3970"(srid)." 3971 3972#. Tag: para 3973#: reference_raster.xml:1667 3974#, no-c-format 3975msgid "" 3976"The last version use a single parameter to specify the pixel size " 3977"(pixelsize). scalex is set to this argument and scaley is set to the " 3978"negative value of this argument. skewx and skewy are set to 0." 3979msgstr "" 3980"A última versão usa um único parâmetro para especificar o tamanho do pixel " 3981"(pixelsize). scalex é estabelecida neste argumento e scaley é estabelecida " 3982"no valor negativo deste argumento. skewx e skewy são 0. " 3983 3984#. Tag: para 3985#: reference_raster.xml:1669 3986#, no-c-format 3987msgid "" 3988"If an existing raster is passed in, it returns a new raster with the same " 3989"meta data settings (without the bands)." 3990msgstr "" 3991"Se um raster existente passar, ele retorna um novo raster com as mesmas " 3992"configurações de meta dados (sem as bandas)." 3993 3994#. Tag: para 3995#: reference_raster.xml:1671 3996#, no-c-format 3997msgid "" 3998"If no srid is specified it defaults to 0. After you create an empty raster " 3999"you probably want to add bands to it and maybe edit it. Refer to <xref " 4000"linkend=\"RT_ST_AddBand\"/> to define bands and <xref linkend=" 4001"\"RT_ST_SetValue\"/> to set initial pixel values." 4002msgstr "" 4003"Se nenhum srid é especificado, é 0. Depois que você criou um raster vazio " 4004"talvez queira adicionar bandas a ele e editá-lo. Recorra a <xref linkend=" 4005"\"RT_ST_AddBand\"/> para definir bandas e <xref linkend=\"RT_ST_SetValue\"/> " 4006"para valores iniciais de pixel. " 4007 4008#. Tag: programlisting 4009#: reference_raster.xml:1678 4010#, no-c-format 4011msgid "" 4012"INSERT INTO dummy_rast(rid,rast)\n" 4013"VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, " 4014"4326) );\n" 4015"\n" 4016"--use an existing raster as template for new raster\n" 4017"INSERT INTO dummy_rast(rid,rast)\n" 4018"SELECT 4, ST_MakeEmptyRaster(rast)\n" 4019"FROM dummy_rast WHERE rid = 3;\n" 4020"\n" 4021"-- output meta data of rasters we just added\n" 4022"SELECT rid, (md).*\n" 4023"FROM (SELECT rid, ST_MetaData(rast) As md\n" 4024" FROM dummy_rast\n" 4025" WHERE rid IN(3,4)) As foo;\n" 4026"\n" 4027"-- output --\n" 4028" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 4029"skewy | srid | numbands\n" 4030"-----+------------+------------+-------+--------+------------+------------" 4031"+-------+-------+------+----------\n" 4032" 3 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 " 4033"| 0 | 0 | 4326 | 0\n" 4034" 4 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 " 4035"| 0 | 0 | 4326 | 0" 4036msgstr "" 4037"INSERT INTO dummy_rast(rid,rast)\n" 4038"VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, " 4039"4326) );\n" 4040"\n" 4041"--use an existing raster as template for new raster\n" 4042"INSERT INTO dummy_rast(rid,rast)\n" 4043"SELECT 4, ST_MakeEmptyRaster(rast)\n" 4044"FROM dummy_rast WHERE rid = 3;\n" 4045"\n" 4046"-- output meta data of rasters we just added\n" 4047"SELECT rid, (md).*\n" 4048"FROM (SELECT rid, ST_MetaData(rast) As md\n" 4049" FROM dummy_rast\n" 4050" WHERE rid IN(3,4)) As foo;\n" 4051"\n" 4052"-- output --\n" 4053" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 4054"skewy | srid | numbands\n" 4055"-----+------------+------------+-------+--------+------------+------------" 4056"+-------+-------+------+----------\n" 4057" 3 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 " 4058"| 0 | 0 | 4326 | 0\n" 4059" 4 | 0.0005 | 0.0005 | 100 | 100 | 1 | 1 " 4060"| 0 | 0 | 4326 | 0" 4061 4062#. Tag: para 4063#: reference_raster.xml:1684 4064#, no-c-format 4065msgid "" 4066", <xref linkend=\"RT_ST_MetaData\"/>, <xref linkend=\"RT_ST_ScaleX\"/>, " 4067"<xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_SetValue\"/>, <xref " 4068"linkend=\"RT_ST_SkewX\"/>, , <xref linkend=\"RT_ST_SkewY\"/>" 4069msgstr "" 4070", <xref linkend=\"RT_ST_MetaData\"/>, <xref linkend=\"RT_ST_ScaleX\"/>, " 4071"<xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_SetValue\"/>, <xref " 4072"linkend=\"RT_ST_SkewX\"/>, , <xref linkend=\"RT_ST_SkewY\"/>" 4073 4074#. Tag: refname 4075#: reference_raster.xml:1691 4076#, no-c-format 4077msgid "ST_Tile" 4078msgstr "ST_Tile" 4079 4080#. Tag: refpurpose 4081#: reference_raster.xml:1692 4082#, no-c-format 4083msgid "" 4084"<refpurpose>Returns a set of rasters resulting from the split of the input " 4085"raster based upon the desired dimensions of the output rasters.</refpurpose>" 4086msgstr "" 4087"<refpurpose>Retorna um conjunto de rasters resultante de uma divisão do " 4088"raster de entrada baseado nas dimensões desejadas nos rasters de saída.</" 4089"refpurpose>" 4090 4091#. Tag: funcsynopsis 4092#: reference_raster.xml:1696 4093#, no-c-format 4094msgid "" 4095"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> " 4096"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4097"<paramdef><type>int[] </type> <parameter>nband</parameter></paramdef> " 4098"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 4099"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 4100"<paramdef choice=\"opt\"><type>boolean </type> " 4101"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt" 4102"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 4103"paramdef> </funcprototype> <funcprototype> <funcdef>setof raster " 4104"<function>ST_Tile</function></funcdef> <paramdef><type>raster </type> " 4105"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 4106"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 4107"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 4108"<parameter>height</parameter></paramdef> <paramdef choice=\"opt" 4109"\"><type>boolean </type> <parameter>padwithnodata=FALSE</parameter></" 4110"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 4111"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 4112"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> " 4113"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4114"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 4115"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 4116"<paramdef choice=\"opt\"><type>boolean </type> " 4117"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt" 4118"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 4119"paramdef> </funcprototype>" 4120msgstr "" 4121"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> " 4122"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4123"<paramdef><type>int[] </type> <parameter>nband</parameter></paramdef> " 4124"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 4125"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 4126"<paramdef choice=\"opt\"><type>boolean </type> " 4127"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt" 4128"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 4129"paramdef> </funcprototype> <funcprototype> <funcdef>setof raster " 4130"<function>ST_Tile</function></funcdef> <paramdef><type>raster </type> " 4131"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 4132"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 4133"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 4134"<parameter>height</parameter></paramdef> <paramdef choice=\"opt" 4135"\"><type>boolean </type> <parameter>padwithnodata=FALSE</parameter></" 4136"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 4137"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 4138"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> " 4139"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4140"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 4141"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 4142"<paramdef choice=\"opt\"><type>boolean </type> " 4143"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt" 4144"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></" 4145"paramdef> </funcprototype>" 4146 4147#. Tag: para 4148#: reference_raster.xml:1732 4149#, no-c-format 4150msgid "" 4151"<para>Returns a set of rasters resulting from the split of the input raster " 4152"based upon the desired dimensions of the output rasters.</para>" 4153msgstr "" 4154"<para>Retorna um conjunto de rasters resultante de uma divisão do raster de " 4155"entrada baseado nas dimensões desejadas nos rasters de saída.</para>" 4156 4157#. Tag: para 4158#: reference_raster.xml:1736 4159#, no-c-format 4160msgid "" 4161"If <varname>padwithnodata</varname> = FALSE, edge tiles on the right and " 4162"bottom sides of the raster may have different dimensions than the rest of " 4163"the tiles. If <varname>padwithnodata</varname> = TRUE, all tiles will have " 4164"the same dimensions with the possibility that edge tiles being padded with " 4165"NODATA values. If raster band(s) do not have NODATA value(s) specified, one " 4166"can be specified by setting <varname>nodataval</varname>." 4167msgstr "" 4168"Se <varname>padwithnodata</varname> = FALSO, tiles limite no lado direito e " 4169"inferior do raster podem ter dimensões diferentes do resto das tiles. Se " 4170"<varname>padwithnodata</varname> = VERDADEIRO, todas as tiles terão a mesma " 4171"dimensão com a possibilidade das tiles limites serem preenchidas com valores " 4172"NODATA. Se a banda(s) não possui valor(es) NODATA especificado, pode ser " 4173"especificado por <varname>nodataval</varname>." 4174 4175#. Tag: para 4176#: reference_raster.xml:1741 4177#, no-c-format 4178msgid "" 4179"If a specified band of the input raster is out-of-db, the corresponding band " 4180"in the output rasters will also be out-of-db." 4181msgstr "" 4182"Se uma banda especificada do raster de entrada estiver out-of-db, a banda " 4183"correspondente nos rasters de saída também estará. " 4184 4185#. Tag: programlisting 4186#: reference_raster.xml:1752 4187#, no-c-format 4188msgid "" 4189"WITH foo AS (\n" 4190" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 4191"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n" 4192" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, " 4193"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n" 4194" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, " 4195"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n" 4196"\n" 4197" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, " 4198"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n" 4199" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, " 4200"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n" 4201" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, " 4202"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n" 4203"\n" 4204" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, " 4205"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n" 4206" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, " 4207"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n" 4208" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, " 4209"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n" 4210"), bar AS (\n" 4211" SELECT ST_Union(rast) AS rast FROM foo\n" 4212"), baz AS (\n" 4213" SELECT ST_Tile(rast, 3, 3, TRUE) AS rast FROM bar\n" 4214")\n" 4215"SELECT\n" 4216" ST_DumpValues(rast)\n" 4217"FROM baz;\n" 4218"\n" 4219" st_dumpvalues\n" 4220"------------------------------------------\n" 4221" (1,\"{{1,1,1},{1,1,1},{1,1,1}}\")\n" 4222" (2,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n" 4223" (1,\"{{2,2,2},{2,2,2},{2,2,2}}\")\n" 4224" (2,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n" 4225" (1,\"{{3,3,3},{3,3,3},{3,3,3}}\")\n" 4226" (2,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n" 4227" (1,\"{{4,4,4},{4,4,4},{4,4,4}}\")\n" 4228" (2,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n" 4229" (1,\"{{5,5,5},{5,5,5},{5,5,5}}\")\n" 4230" (2,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n" 4231" (1,\"{{6,6,6},{6,6,6},{6,6,6}}\")\n" 4232" (2,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n" 4233" (1,\"{{7,7,7},{7,7,7},{7,7,7}}\")\n" 4234" (2,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n" 4235" (1,\"{{8,8,8},{8,8,8},{8,8,8}}\")\n" 4236" (2,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n" 4237" (1,\"{{9,9,9},{9,9,9},{9,9,9}}\")\n" 4238" (2,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n" 4239"(18 rows)" 4240msgstr "" 4241"WITH foo AS (\n" 4242" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 4243"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n" 4244" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, " 4245"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n" 4246" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, " 4247"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n" 4248"\n" 4249" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, " 4250"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n" 4251" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, " 4252"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n" 4253" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, " 4254"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n" 4255"\n" 4256" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, " 4257"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n" 4258" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, " 4259"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n" 4260" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, " 4261"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n" 4262"), bar AS (\n" 4263" SELECT ST_Union(rast) AS rast FROM foo\n" 4264"), baz AS (\n" 4265" SELECT ST_Tile(rast, 3, 3, TRUE) AS rast FROM bar\n" 4266")\n" 4267"SELECT\n" 4268" ST_DumpValues(rast)\n" 4269"FROM baz;\n" 4270"\n" 4271" st_dumpvalues\n" 4272"------------------------------------------\n" 4273" (1,\"{{1,1,1},{1,1,1},{1,1,1}}\")\n" 4274" (2,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n" 4275" (1,\"{{2,2,2},{2,2,2},{2,2,2}}\")\n" 4276" (2,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n" 4277" (1,\"{{3,3,3},{3,3,3},{3,3,3}}\")\n" 4278" (2,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n" 4279" (1,\"{{4,4,4},{4,4,4},{4,4,4}}\")\n" 4280" (2,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n" 4281" (1,\"{{5,5,5},{5,5,5},{5,5,5}}\")\n" 4282" (2,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n" 4283" (1,\"{{6,6,6},{6,6,6},{6,6,6}}\")\n" 4284" (2,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n" 4285" (1,\"{{7,7,7},{7,7,7},{7,7,7}}\")\n" 4286" (2,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n" 4287" (1,\"{{8,8,8},{8,8,8},{8,8,8}}\")\n" 4288" (2,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n" 4289" (1,\"{{9,9,9},{9,9,9},{9,9,9}}\")\n" 4290" (2,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n" 4291"(18 rows)" 4292 4293#. Tag: programlisting 4294#: reference_raster.xml:1754 4295#, no-c-format 4296msgid "" 4297"WITH foo AS (\n" 4298" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 4299"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n" 4300" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, " 4301"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n" 4302" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, " 4303"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n" 4304"\n" 4305" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, " 4306"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n" 4307" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, " 4308"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n" 4309" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, " 4310"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n" 4311"\n" 4312" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, " 4313"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n" 4314" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, " 4315"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n" 4316" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, " 4317"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n" 4318"), bar AS (\n" 4319" SELECT ST_Union(rast) AS rast FROM foo\n" 4320"), baz AS (\n" 4321" SELECT ST_Tile(rast, 3, 3, 2) AS rast FROM bar\n" 4322")\n" 4323"SELECT\n" 4324" ST_DumpValues(rast)\n" 4325"FROM baz;\n" 4326"\n" 4327" st_dumpvalues\n" 4328"------------------------------------------\n" 4329" (1,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n" 4330" (1,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n" 4331" (1,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n" 4332" (1,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n" 4333" (1,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n" 4334" (1,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n" 4335" (1,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n" 4336" (1,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n" 4337" (1,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n" 4338"(9 rows)" 4339msgstr "" 4340"WITH foo AS (\n" 4341" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 4342"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n" 4343" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, " 4344"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n" 4345" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, " 4346"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n" 4347"\n" 4348" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, " 4349"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n" 4350" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, " 4351"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n" 4352" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, " 4353"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n" 4354"\n" 4355" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, " 4356"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n" 4357" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, " 4358"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n" 4359" SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, " 4360"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n" 4361"), bar AS (\n" 4362" SELECT ST_Union(rast) AS rast FROM foo\n" 4363"), baz AS (\n" 4364" SELECT ST_Tile(rast, 3, 3, 2) AS rast FROM bar\n" 4365")\n" 4366"SELECT\n" 4367" ST_DumpValues(rast)\n" 4368"FROM baz;\n" 4369"\n" 4370" st_dumpvalues\n" 4371"------------------------------------------\n" 4372" (1,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n" 4373" (1,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n" 4374" (1,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n" 4375" (1,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n" 4376" (1,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n" 4377" (1,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n" 4378" (1,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n" 4379" (1,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n" 4380" (1,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n" 4381"(9 rows)" 4382 4383#. Tag: para 4384#: reference_raster.xml:1760 4385#, no-c-format 4386msgid ", <xref linkend=\"RT_Retile\"/>" 4387msgstr ", <xref linkend=\"RT_Retile\"/>" 4388 4389#. Tag: refname 4390#: reference_raster.xml:1770 4391#, no-c-format 4392msgid "ST_Retile" 4393msgstr "ST_Retile" 4394 4395#. Tag: refpurpose 4396#: reference_raster.xml:1771 4397#, no-c-format 4398msgid "" 4399"Return a set of configured tiles from an arbitrarily tiled raster coverage." 4400msgstr "" 4401"Retorna um conjunto de tiles configuradas de uma cobertura raster aleatória. " 4402 4403#. Tag: funcprototype 4404#: reference_raster.xml:1779 4405#, no-c-format 4406msgid "" 4407"<funcdef>SETOF raster <function>ST_Retile</function></funcdef> " 4408"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> " 4409"<paramdef><type>name </type> <parameter>col</parameter></paramdef> " 4410"<paramdef><type>geometry </type> <parameter>ext</parameter></paramdef> " 4411"<paramdef><type>float8 </type> <parameter>sfx</parameter></paramdef> " 4412"<paramdef><type>float8 </type> <parameter>sfy</parameter></paramdef> " 4413"<paramdef><type>int </type> <parameter>tw</parameter></paramdef> " 4414"<paramdef><type>int </type> <parameter>th</parameter></paramdef> <paramdef " 4415"choice=\"opt\"><type>text </type> <parameter>algo='NearestNeighbor'</" 4416"parameter></paramdef>" 4417msgstr "" 4418"<funcdef>SETOF raster <function>ST_Retile</function></funcdef> " 4419"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> " 4420"<paramdef><type>name </type> <parameter>col</parameter></paramdef> " 4421"<paramdef><type>geometry </type> <parameter>ext</parameter></paramdef> " 4422"<paramdef><type>float8 </type> <parameter>sfx</parameter></paramdef> " 4423"<paramdef><type>float8 </type> <parameter>sfy</parameter></paramdef> " 4424"<paramdef><type>int </type> <parameter>tw</parameter></paramdef> " 4425"<paramdef><type>int </type> <parameter>th</parameter></paramdef> <paramdef " 4426"choice=\"opt\"><type>text </type> <parameter>algo='NearestNeighbor'</" 4427"parameter></paramdef>" 4428 4429#. Tag: para 4430#: reference_raster.xml:1797 4431#, no-c-format 4432msgid "" 4433"Return a set of tiles having the specified scale (<varname>sfx</varname>, " 4434"<varname>sfy</varname>) and max size (<varname>tw</varname>, <varname>th</" 4435"varname>) and covering the specified extent (<varname>ext</varname>) with " 4436"data coming from the specified raster coverage (<varname>tab</varname>, " 4437"<varname>col</varname>)." 4438msgstr "" 4439"Retorna um conjunto de tiles tendo a escala especificada (<varname>sfx</" 4440"varname>, <varname>sfy</varname>) e tamanho máximo (<varname>tw</varname>, " 4441"<varname>th</varname>) e cobrindo a extensão especificada (<varname>ext</" 4442"varname>) com os dados vindos da cobertura raster especificada " 4443"(<varname>tab</varname>, <varname>col</varname>)." 4444 4445#. Tag: refname 4446#: reference_raster.xml:1821 4447#, no-c-format 4448msgid "ST_FromGDALRaster" 4449msgstr "ST_FromGDALRaster" 4450 4451#. Tag: refpurpose 4452#: reference_raster.xml:1822 4453#, no-c-format 4454msgid "Returns a raster from a supported GDAL raster file." 4455msgstr "Retorna um raster de um arquivo raster GDAL suportado." 4456 4457#. Tag: funcprototype 4458#: reference_raster.xml:1827 4459#, no-c-format 4460msgid "" 4461"<funcdef>raster <function>ST_FromGDALRaster</function></funcdef> " 4462"<paramdef><type>bytea </type> <parameter>gdaldata</parameter></paramdef> " 4463"<paramdef choice=\"opt\"><type>integer </type> <parameter>srid=NULL</" 4464"parameter></paramdef>" 4465msgstr "" 4466"<funcdef>raster <function>ST_FromGDALRaster</function></funcdef> " 4467"<paramdef><type>bytea </type> <parameter>gdaldata</parameter></paramdef> " 4468"<paramdef choice=\"opt\"><type>integer </type> <parameter>srid=NULL</" 4469"parameter></paramdef>" 4470 4471#. Tag: para 4472#: reference_raster.xml:1839 4473#, no-c-format 4474msgid "" 4475"Returns a raster from a supported GDAL raster file. <varname>gdaldata</" 4476"varname> is of type bytea and should be the contents of the GDAL raster file." 4477msgstr "" 4478"Retorna um raster de uma arquivo raster GDAL suportado. <varname>gdaldata</" 4479"varname> é do tipo bytea e deve ser o conteúdo do arquivo raster GDAL. " 4480 4481#. Tag: para 4482#: reference_raster.xml:1843 4483#, no-c-format 4484msgid "" 4485"If <varname>srid</varname> is NULL, the function will try to automatically " 4486"assign the SRID from the GDAL raster. If <varname>srid</varname> is " 4487"provided, the value provided will override any automatically assigned SRID." 4488msgstr "" 4489"Se <varname>srid</varname> for NULO, a função tentará designar " 4490"automaticamente o SRID do raster GDAL. Se <varname>srid</varname> for " 4491"fornecido, o valor fornecido irá exceder qualquer SRID designado " 4492"automaticamente." 4493 4494#. Tag: programlisting 4495#: reference_raster.xml:1853 4496#, no-c-format 4497msgid "" 4498"WITH foo AS (\n" 4499" SELECT " 4500"ST_AsPNG(ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, " 4501"0.1, -0.1, 0, 0, 4326), 1, '8BUI', 1, 0), 2, '8BUI', 2, 0), 3, '8BUI', 3, " 4502"0)) AS png\n" 4503"),\n" 4504"bar AS (\n" 4505" SELECT 1 AS rid, ST_FromGDALRaster(png) AS rast FROM foo\n" 4506" UNION ALL\n" 4507" SELECT 2 AS rid, ST_FromGDALRaster(png, 3310) AS rast FROM foo\n" 4508")\n" 4509"SELECT\n" 4510" rid,\n" 4511" ST_Metadata(rast) AS metadata,\n" 4512" ST_SummaryStats(rast, 1) AS stats1,\n" 4513" ST_SummaryStats(rast, 2) AS stats2,\n" 4514" ST_SummaryStats(rast, 3) AS stats3\n" 4515"FROM bar\n" 4516"ORDER BY rid;\n" 4517"\n" 4518" rid | metadata | stats1 | stats2 | " 4519"stats3\n" 4520"-----+---------------------------+---------------+---------------" 4521"+----------------\n" 4522" 1 | (0,0,2,2,1,-1,0,0,0,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | " 4523"(4,12,3,0,3,3)\n" 4524" 2 | (0,0,2,2,1,-1,0,0,3310,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | " 4525"(4,12,3,0,3,3)\n" 4526"(2 rows)" 4527msgstr "" 4528"WITH foo AS (\n" 4529" SELECT " 4530"ST_AsPNG(ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, " 4531"0.1, -0.1, 0, 0, 4326), 1, '8BUI', 1, 0), 2, '8BUI', 2, 0), 3, '8BUI', 3, " 4532"0)) AS png\n" 4533"),\n" 4534"bar AS (\n" 4535" SELECT 1 AS rid, ST_FromGDALRaster(png) AS rast FROM foo\n" 4536" UNION ALL\n" 4537" SELECT 2 AS rid, ST_FromGDALRaster(png, 3310) AS rast FROM foo\n" 4538")\n" 4539"SELECT\n" 4540" rid,\n" 4541" ST_Metadata(rast) AS metadata,\n" 4542" ST_SummaryStats(rast, 1) AS stats1,\n" 4543" ST_SummaryStats(rast, 2) AS stats2,\n" 4544" ST_SummaryStats(rast, 3) AS stats3\n" 4545"FROM bar\n" 4546"ORDER BY rid;\n" 4547"\n" 4548" rid | metadata | stats1 | stats2 | " 4549"stats3\n" 4550"-----+---------------------------+---------------+---------------" 4551"+----------------\n" 4552" 1 | (0,0,2,2,1,-1,0,0,0,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | " 4553"(4,12,3,0,3,3)\n" 4554" 2 | (0,0,2,2,1,-1,0,0,3310,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | " 4555"(4,12,3,0,3,3)\n" 4556"(2 rows)" 4557 4558#. Tag: title 4559#: reference_raster.xml:1868 4560#, no-c-format 4561msgid "Raster Accessors" 4562msgstr "Assessores Raster" 4563 4564#. Tag: refname 4565#: reference_raster.xml:1872 4566#, no-c-format 4567msgid "ST_GeoReference" 4568msgstr "ST_GeoReference" 4569 4570#. Tag: refpurpose 4571#: reference_raster.xml:1873 4572#, no-c-format 4573msgid "" 4574"Returns the georeference meta data in GDAL or ESRI format as commonly seen " 4575"in a world file. Default is GDAL." 4576msgstr "" 4577"Retorna os metadados georreferenciados no formato GDAL ou ESRI como é " 4578"comumente visto em um arquivo mundo. O padrão é GDAL. " 4579 4580#. Tag: funcprototype 4581#: reference_raster.xml:1878 4582#, no-c-format 4583msgid "" 4584"<funcdef>text <function>ST_GeoReference</function></funcdef> " 4585"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4586"<paramdef choice=\"opt\"><type>text </type> <parameter>format=GDAL</" 4587"parameter></paramdef>" 4588msgstr "" 4589"<funcdef>text <function>ST_GeoReference</function></funcdef> " 4590"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 4591"<paramdef choice=\"opt\"><type>text </type> <parameter>format=GDAL</" 4592"parameter></paramdef>" 4593 4594#. Tag: para 4595#: reference_raster.xml:1889 4596#, no-c-format 4597msgid "" 4598"Returns the georeference meta data including carriage return in GDAL or ESRI " 4599"format as commonly seen in a <ulink url=\"http://en.wikipedia.org/wiki/" 4600"World_file\">world file</ulink>. Default is GDAL if no type specified. type " 4601"is string 'GDAL' or 'ESRI'." 4602msgstr "" 4603"Retorna os metadados georreferenciados, incluindo transporte, no formato " 4604"GDAL ou ESRI como visto no <varname>srid</varname>. O padrão é GDAL se " 4605"nenhum tipo for especificado. O tipo é string 'GDAL' ou 'ESRI'." 4606 4607#. Tag: para 4608#: reference_raster.xml:1891 reference_raster.xml:4230 4609#, no-c-format 4610msgid "Difference between format representations is as follows:" 4611msgstr "A diferença entre representações de formatos é a seguinte:" 4612 4613#. Tag: para 4614#: reference_raster.xml:1892 reference_raster.xml:4231 4615#, no-c-format 4616msgid "<varname>GDAL</varname>:" 4617msgstr "<varname>GDAL</varname>:" 4618 4619#. Tag: programlisting 4620#: reference_raster.xml:1893 4621#, no-c-format 4622msgid "" 4623"scalex\n" 4624"skewy\n" 4625"skewx\n" 4626"scaley\n" 4627"upperleftx\n" 4628"upperlefty" 4629msgstr "" 4630"scalex\n" 4631"skewy\n" 4632"skewx\n" 4633"scaley\n" 4634"upperleftx\n" 4635"upperlefty" 4636 4637#. Tag: para 4638#: reference_raster.xml:1894 reference_raster.xml:4233 4639#, no-c-format 4640msgid "<varname>ESRI</varname>:" 4641msgstr "<varname>ESRI</varname>:" 4642 4643#. Tag: programlisting 4644#: reference_raster.xml:1895 4645#, no-c-format 4646msgid "" 4647"scalex\n" 4648"skewy\n" 4649"skewx\n" 4650"scaley\n" 4651"upperleftx + scalex*0.5\n" 4652"upperlefty + scaley*0.5" 4653msgstr "" 4654"scalex\n" 4655"skewy\n" 4656"skewx\n" 4657"scaley\n" 4658"upperleftx + scalex*0.5\n" 4659"upperlefty + scaley*0.5" 4660 4661#. Tag: programlisting 4662#: reference_raster.xml:1901 4663#, no-c-format 4664msgid "" 4665"SELECT ST_GeoReference(rast, 'ESRI') As esri_ref, ST_GeoReference(rast, " 4666"'GDAL') As gdal_ref\n" 4667" FROM dummy_rast WHERE rid=1;\n" 4668"\n" 4669" esri_ref | gdal_ref\n" 4670"--------------+--------------\n" 4671" 2.0000000000 | 2.0000000000\n" 4672" 0.0000000000 : 0.0000000000\n" 4673" 0.0000000000 : 0.0000000000\n" 4674" 3.0000000000 : 3.0000000000\n" 4675" 1.5000000000 : 0.5000000000\n" 4676" 2.0000000000 : 0.5000000000" 4677msgstr "" 4678"SELECT ST_GeoReference(rast, 'ESRI') As esri_ref, ST_GeoReference(rast, " 4679"'GDAL') As gdal_ref\n" 4680" FROM dummy_rast WHERE rid=1;\n" 4681"\n" 4682" esri_ref | gdal_ref\n" 4683"--------------+--------------\n" 4684" 2.0000000000 | 2.0000000000\n" 4685" 0.0000000000 : 0.0000000000\n" 4686" 0.0000000000 : 0.0000000000\n" 4687" 3.0000000000 : 3.0000000000\n" 4688" 1.5000000000 : 0.5000000000\n" 4689" 2.0000000000 : 0.5000000000" 4690 4691#. Tag: para 4692#: reference_raster.xml:1906 4693#, no-c-format 4694msgid ", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>" 4695msgstr ", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>" 4696 4697#. Tag: refname 4698#: reference_raster.xml:1912 4699#, no-c-format 4700msgid "ST_Height" 4701msgstr "ST_Height" 4702 4703#. Tag: refpurpose 4704#: reference_raster.xml:1913 4705#, no-c-format 4706msgid "Returns the height of the raster in pixels." 4707msgstr "Retorna a altura do raster em pixeis. " 4708 4709#. Tag: funcprototype 4710#: reference_raster.xml:1918 4711#, no-c-format 4712msgid "" 4713"<funcdef>integer <function>ST_Height</function></funcdef> " 4714"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4715msgstr "" 4716"<funcdef>integer <function>ST_Height</function></funcdef> " 4717"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4718 4719#. Tag: para 4720#: reference_raster.xml:1928 4721#, no-c-format 4722msgid "Returns the height of the raster." 4723msgstr "Retorna a altura do raster." 4724 4725#. Tag: programlisting 4726#: reference_raster.xml:1934 4727#, no-c-format 4728msgid "" 4729"SELECT rid, ST_Height(rast) As rastheight\n" 4730"FROM dummy_rast;\n" 4731"\n" 4732" rid | rastheight\n" 4733"-----+------------\n" 4734" 1 | 20\n" 4735" 2 | 5" 4736msgstr "" 4737"SELECT rid, ST_Height(rast) As rastheight\n" 4738"FROM dummy_rast;\n" 4739"\n" 4740" rid | rastheight\n" 4741"-----+------------\n" 4742" 1 | 20\n" 4743" 2 | 5" 4744 4745#. Tag: refname 4746#: reference_raster.xml:1946 4747#, no-c-format 4748msgid "ST_IsEmpty" 4749msgstr "ST_IsEmpty" 4750 4751#. Tag: refpurpose 4752#: reference_raster.xml:1947 4753#, no-c-format 4754msgid "" 4755"<refpurpose>Returns true if the raster is empty (width = 0 and height = 0). " 4756"Otherwise, returns false.</refpurpose>" 4757msgstr "" 4758"<refpurpose>Retorna verdadeiro se o raster estiver vazio (largura = 0 e " 4759"altura = 0). Senão, retorna falso.</refpurpose>" 4760 4761#. Tag: funcprototype 4762#: reference_raster.xml:1952 4763#, no-c-format 4764msgid "" 4765"<funcdef>boolean <function>ST_IsEmpty</function></funcdef> " 4766"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4767msgstr "" 4768"<funcdef>boolean <function>ST_IsEmpty</function></funcdef> " 4769"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4770 4771#. Tag: para 4772#: reference_raster.xml:1962 4773#, no-c-format 4774msgid "" 4775"<para>Returns true if the raster is empty (width = 0 and height = 0). " 4776"Otherwise, returns false.</para>" 4777msgstr "" 4778"<para>Retorna verdadeiro se o raster estiver vazio (largura = 0 e altura = " 4779"0). Senão, retorna falso.</para>" 4780 4781#. Tag: programlisting 4782#: reference_raster.xml:1970 4783#, no-c-format 4784msgid "" 4785"SELECT ST_IsEmpty(ST_MakeEmptyRaster(100, 100, 0, 0, 0, 0, 0, 0))\n" 4786"st_isempty |\n" 4787"-----------+\n" 4788"f |\n" 4789"\n" 4790"\n" 4791"SELECT ST_IsEmpty(ST_MakeEmptyRaster(0, 0, 0, 0, 0, 0, 0, 0))\n" 4792"st_isempty |\n" 4793"-----------+\n" 4794"t |" 4795msgstr "" 4796"SELECT ST_IsEmpty(ST_MakeEmptyRaster(100, 100, 0, 0, 0, 0, 0, 0))\n" 4797"st_isempty |\n" 4798"-----------+\n" 4799"f |\n" 4800"\n" 4801"\n" 4802"SELECT ST_IsEmpty(ST_MakeEmptyRaster(0, 0, 0, 0, 0, 0, 0, 0))\n" 4803"st_isempty |\n" 4804"-----------+\n" 4805"t |" 4806 4807#. Tag: refname 4808#: reference_raster.xml:1982 4809#, no-c-format 4810msgid "ST_MemSize" 4811msgstr "ST_MemSize" 4812 4813#. Tag: refpurpose 4814#: reference_raster.xml:1984 4815#, no-c-format 4816msgid "" 4817"<refpurpose>Returns the amount of space (in bytes) the raster takes.</" 4818"refpurpose>" 4819msgstr "" 4820"<refpurpose>Retorna a quantidade de espaço (em bytes) que o raster pega.</" 4821"refpurpose>" 4822 4823#. Tag: funcprototype 4824#: reference_raster.xml:1989 4825#, no-c-format 4826msgid "" 4827"<funcdef>integer <function>ST_MemSize</function></funcdef> " 4828"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4829msgstr "" 4830"<funcdef>integer <function>ST_MemSize</function></funcdef> " 4831"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4832 4833#. Tag: para 4834#: reference_raster.xml:1999 4835#, no-c-format 4836msgid "<para>Returns the amount of space (in bytes) the raster takes.</para>" 4837msgstr "" 4838"<para>Retorna a quantidade de espaço (em bytes) que o raster pega.</para>" 4839 4840#. Tag: para 4841#: reference_raster.xml:2000 4842#, no-c-format 4843msgid "" 4844"This is a nice compliment to PostgreSQL built in functions pg_column_size, " 4845"pg_size_pretty, pg_relation_size, pg_total_relation_size." 4846msgstr "" 4847"Isso é um ótimo elogio para o PostgreSQL construído nas funções " 4848"pg_column_size, pg_size_pretty, pg_relation_size, pg_total_relation_size." 4849 4850#. Tag: para 4851#: reference_raster.xml:2001 4852#, no-c-format 4853msgid "" 4854"pg_relation_size which gives the byte size of a table may return byte size " 4855"lower than ST_MemSize. This is because pg_relation_size does not add toasted " 4856"table contribution and large geometries are stored in TOAST tables. " 4857"pg_column_size might return lower because it returns the compressed size." 4858msgstr "" 4859"pg_relation_size que fornece o tamanho em bytes de uma tabela, talvez " 4860"retorne com o tamanho em byte menor que ST_MemSize. Isso acontece porque o " 4861"pg_relation_size não adiciona contribuição de tabela toasted e grandes " 4862"geometrias são guardadas em tabelas TOAST. g_column_size pode retornar menor " 4863"porque retorna o tamanho comprimido. " 4864 4865#. Tag: para 4866#: reference_raster.xml:2003 4867#, no-c-format 4868msgid "" 4869"pg_total_relation_size - includes, the table, the toasted tables, and the " 4870"indexes." 4871msgstr "" 4872"pg_total_relation_size - inclui, a tabela, as tabelas toasted, e os índices." 4873 4874#. Tag: programlisting 4875#: reference_raster.xml:2013 4876#, no-c-format 4877msgid "" 4878"SELECT ST_MemSize(ST_AsRaster(ST_Buffer(ST_Point(1,5),10,1000),150, 150, " 4879"'8BUI')) As rast_mem;\n" 4880"\n" 4881" rast_mem\n" 4882" --------\n" 4883" 22568" 4884msgstr "" 4885"SELECT ST_MemSize(ST_AsRaster(ST_Buffer(ST_Point(1,5),10,1000),150, 150, " 4886"'8BUI')) As rast_mem;\n" 4887"\n" 4888" rast_mem\n" 4889" --------\n" 4890" 22568" 4891 4892#. Tag: refname 4893#: reference_raster.xml:2026 4894#, no-c-format 4895msgid "ST_MetaData" 4896msgstr "ST_MetaData" 4897 4898#. Tag: refpurpose 4899#: reference_raster.xml:2027 4900#, no-c-format 4901msgid "" 4902"Returns basic meta data about a raster object such as pixel size, rotation " 4903"(skew), upper, lower left, etc." 4904msgstr "" 4905"Retorna metadados básicos sobre um objeto raster como um tanho pixel, " 4906"rotação (skew), esquerda superior, inferior etc. " 4907 4908#. Tag: funcprototype 4909#: reference_raster.xml:2032 4910#, no-c-format 4911msgid "" 4912"<funcdef>record <function>ST_MetaData</function></funcdef> " 4913"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4914msgstr "" 4915"<funcdef>record <function>ST_MetaData</function></funcdef> " 4916"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4917 4918#. Tag: para 4919#: reference_raster.xml:2042 4920#, no-c-format 4921msgid "" 4922"Returns basic meta data about a raster object such as pixel size, rotation " 4923"(skew), upper, lower left, etc. Columns returned: upperleftx | upperlefty | " 4924"width | height | scalex | scaley | skewx | skewy | srid | numbands" 4925msgstr "" 4926"Retorna metadados básicos sobre um objeto raster como um tanho pixel, " 4927"rotação (skew), esquerda superior, inferior etc. Colunas retornadas: " 4928"upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy | " 4929"srid | numbands" 4930 4931#. Tag: programlisting 4932#: reference_raster.xml:2049 4933#, no-c-format 4934msgid "" 4935"SELECT rid, (foo.md).*\n" 4936" FROM (SELECT rid, ST_MetaData(rast) As md\n" 4937"FROM dummy_rast) As foo;\n" 4938"\n" 4939" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 4940"skewy | srid | numbands\n" 4941" ----+------------+------------+-------+--------+--------+-----------+-------" 4942"+-------+------+-------\n" 4943" 1 | 0.5 | 0.5 | 10 | 20 | 2 | 3 " 4944"| 0 | 0 | 0 | 0\n" 4945" 2 | 3427927.75 | 5793244 | 5 | 5 | 0.05 | -0.05 " 4946"| 0 | 0 | 0 | 3" 4947msgstr "" 4948"SELECT rid, (foo.md).*\n" 4949" FROM (SELECT rid, ST_MetaData(rast) As md\n" 4950"FROM dummy_rast) As foo;\n" 4951"\n" 4952" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 4953"skewy | srid | numbands\n" 4954" ----+------------+------------+-------+--------+--------+-----------+-------" 4955"+-------+------+-------\n" 4956" 1 | 0.5 | 0.5 | 10 | 20 | 2 | 3 " 4957"| 0 | 0 | 0 | 0\n" 4958" 2 | 3427927.75 | 5793244 | 5 | 5 | 0.05 | -0.05 " 4959"| 0 | 0 | 0 | 3" 4960 4961#. Tag: para 4962#: reference_raster.xml:2055 reference_raster.xml:5009 4963#, no-c-format 4964msgid ", <xref linkend=\"RT_ST_NumBands\"/>" 4965msgstr ", <xref linkend=\"RT_ST_NumBands\"/>" 4966 4967#. Tag: refname 4968#: reference_raster.xml:2061 4969#, no-c-format 4970msgid "ST_NumBands" 4971msgstr "ST_NumBands" 4972 4973#. Tag: refpurpose 4974#: reference_raster.xml:2062 4975#, no-c-format 4976msgid "" 4977"<refpurpose>Returns the number of bands in the raster object.</refpurpose>" 4978msgstr "<refpurpose>Retorna o número de bandas no objeto raster.</refpurpose>" 4979 4980#. Tag: funcprototype 4981#: reference_raster.xml:2067 4982#, no-c-format 4983msgid "" 4984"<funcdef>integer <function>ST_NumBands</function></funcdef> " 4985"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4986msgstr "" 4987"<funcdef>integer <function>ST_NumBands</function></funcdef> " 4988"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 4989 4990#. Tag: para 4991#: reference_raster.xml:2077 4992#, no-c-format 4993msgid "<para>Returns the number of bands in the raster object.</para>" 4994msgstr "<para>Retorna o número de bandas no objeto raster.</para>" 4995 4996#. Tag: programlisting 4997#: reference_raster.xml:2083 4998#, no-c-format 4999msgid "" 5000"SELECT rid, ST_NumBands(rast) As numbands\n" 5001"FROM dummy_rast;\n" 5002"\n" 5003"rid | numbands\n" 5004"----+----------\n" 5005" 1 | 0\n" 5006" 2 | 3" 5007msgstr "" 5008"SELECT rid, ST_NumBands(rast) As numbands\n" 5009"FROM dummy_rast;\n" 5010"\n" 5011"rid | numbands\n" 5012"----+----------\n" 5013" 1 | 0\n" 5014" 2 | 3" 5015 5016#. Tag: refname 5017#: reference_raster.xml:2095 5018#, no-c-format 5019msgid "ST_PixelHeight" 5020msgstr "ST_PixelHeight" 5021 5022#. Tag: refpurpose 5023#: reference_raster.xml:2096 5024#, no-c-format 5025msgid "" 5026"Returns the pixel height in geometric units of the spatial reference system." 5027msgstr "" 5028"Retorna a altura do pixel em unidades geométricas do sistema de referência " 5029"espacial. " 5030 5031#. Tag: funcprototype 5032#: reference_raster.xml:2101 5033#, no-c-format 5034msgid "" 5035"<funcdef>double precision <function>ST_PixelHeight</function></funcdef> " 5036"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5037msgstr "" 5038"<funcdef>double precision <function>ST_PixelHeight</function></funcdef> " 5039"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5040 5041#. Tag: para 5042#: reference_raster.xml:2111 5043#, no-c-format 5044msgid "" 5045"Returns the height of a pixel in geometric units of the spatial reference " 5046"system. In the common case where there is no skew, the pixel height is just " 5047"the scale ratio between geometric coordinates and raster pixels." 5048msgstr "" 5049"Retorna a altura do pixel em unidades geométricas do sistema de referência " 5050"espacial. No caso comum onde não existem desvios, a altura do pixel é " 5051"somente a escala de proporção entre coordenadas geométricas e pixeis raster. " 5052 5053#. Tag: para 5054#: reference_raster.xml:2113 5055#, no-c-format 5056msgid "" 5057"Refer to <xref linkend=\"RT_ST_PixelWidth\"/> for a diagrammatic " 5058"visualization of the relationship." 5059msgstr "" 5060"Recorra a <xref linkend=\"RT_ST_PixelWidth\"/> para uma visualização " 5061"diagramática da relação." 5062 5063#. Tag: title 5064#: reference_raster.xml:2117 reference_raster.xml:2177 5065#, no-c-format 5066msgid "Examples: Rasters with no skew" 5067msgstr "Exemplos: Rasters sem desvio" 5068 5069#. Tag: programlisting 5070#: reference_raster.xml:2119 5071#, no-c-format 5072msgid "" 5073"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n" 5074" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As " 5075"skewx,\n" 5076" ST_SkewY(rast) As skewy\n" 5077"FROM dummy_rast;\n" 5078"\n" 5079" rastheight | pixheight | scalex | scaley | skewx | skewy\n" 5080"------------+-----------+--------+--------+-------+----------\n" 5081" 20 | 3 | 2 | 3 | 0 | 0\n" 5082" 5 | 0.05 | 0.05 | -0.05 | 0 | 0" 5083msgstr "" 5084"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n" 5085" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As " 5086"skewx,\n" 5087" ST_SkewY(rast) As skewy\n" 5088"FROM dummy_rast;\n" 5089"\n" 5090" rastheight | pixheight | scalex | scaley | skewx | skewy\n" 5091"------------+-----------+--------+--------+-------+----------\n" 5092" 20 | 3 | 2 | 3 | 0 | 0\n" 5093" 5 | 0.05 | 0.05 | -0.05 | 0 | 0" 5094 5095#. Tag: title 5096#: reference_raster.xml:2124 reference_raster.xml:2184 5097#, no-c-format 5098msgid "Examples: Rasters with skew different than 0" 5099msgstr "Exemplos: Rasters com desvio diferente de 0" 5100 5101#. Tag: programlisting 5102#: reference_raster.xml:2126 5103#, no-c-format 5104msgid "" 5105"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n" 5106" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As " 5107"skewx,\n" 5108" ST_SkewY(rast) As skewy\n" 5109"FROM (SELECT ST_SetSKew(rast,0.5,0.5) As rast\n" 5110" FROM dummy_rast) As skewed;\n" 5111"\n" 5112"rastheight | pixheight | scalex | scaley | skewx | skewy\n" 5113"-----------+-------------------+--------+--------+-------+----------\n" 5114" 20 | 3.04138126514911 | 2 | 3 | 0.5 | 0.5\n" 5115" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5" 5116msgstr "" 5117"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n" 5118" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As " 5119"skewx,\n" 5120" ST_SkewY(rast) As skewy\n" 5121"FROM (SELECT ST_SetSKew(rast,0.5,0.5) As rast\n" 5122" FROM dummy_rast) As skewed;\n" 5123"\n" 5124"rastheight | pixheight | scalex | scaley | skewx | skewy\n" 5125"-----------+-------------------+--------+--------+-------+----------\n" 5126" 20 | 3.04138126514911 | 2 | 3 | 0.5 | 0.5\n" 5127" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5" 5128 5129#. Tag: para 5130#: reference_raster.xml:2133 reference_raster.xml:2193 5131#: reference_raster.xml:4289 5132#, no-c-format 5133msgid "" 5134", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 5135"linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SkewY\"/>" 5136msgstr "" 5137", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 5138"linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SkewY\"/>" 5139 5140#. Tag: refname 5141#: reference_raster.xml:2145 5142#, no-c-format 5143msgid "ST_PixelWidth" 5144msgstr "ST_PixelWidth" 5145 5146#. Tag: refpurpose 5147#: reference_raster.xml:2146 5148#, no-c-format 5149msgid "" 5150"Returns the pixel width in geometric units of the spatial reference system." 5151msgstr "" 5152"Retorna a largura do pixel em unidades geométricas do sistema de referência " 5153"espacial. " 5154 5155#. Tag: funcprototype 5156#: reference_raster.xml:2151 5157#, no-c-format 5158msgid "" 5159"<funcdef>double precision <function>ST_PixelWidth</function></funcdef> " 5160"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5161msgstr "" 5162"<funcdef>double precision <function>ST_PixelWidth</function></funcdef> " 5163"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5164 5165#. Tag: para 5166#: reference_raster.xml:2161 5167#, no-c-format 5168msgid "" 5169"Returns the width of a pixel in geometric units of the spatial reference " 5170"system. In the common case where there is no skew, the pixel width is just " 5171"the scale ratio between geometric coordinates and raster pixels." 5172msgstr "" 5173"Retorna a largura do pixel em unidades geométricas do sistema de referência " 5174"espacial. No caso comum onde não existem desvios, a largura do pixel é " 5175"somente a escala de proporção entre coordenadas geométricas e pixeis raster. " 5176 5177#. Tag: para 5178#: reference_raster.xml:2163 5179#, no-c-format 5180msgid "The following diagram demonstrates the relationship:" 5181msgstr "O diagrama a seguir demonstra a relação: " 5182 5183#. Tag: para 5184#: reference_raster.xml:2170 5185#, no-c-format 5186msgid "Pixel Width: Pixel size in the i direction" 5187msgstr "Largura do Pixel: tamanho do pixel na direção i" 5188 5189#. Tag: para 5190#: reference_raster.xml:2170 5191#, no-c-format 5192msgid "Pixel Height: Pixel size in the j direction" 5193msgstr "Altura do Pixel: tamanho do pixel na direção j" 5194 5195#. Tag: programlisting 5196#: reference_raster.xml:2179 5197#, no-c-format 5198msgid "" 5199"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n" 5200" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) " 5201"As skewx,\n" 5202" ST_SkewY(rast) As skewy\n" 5203" FROM dummy_rast;\n" 5204"\n" 5205" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n" 5206" -----------+----------+--------+--------+-------+----------\n" 5207" 10 | 2 | 2 | 3 | 0 | 0\n" 5208" 5 | 0.05 | 0.05 | -0.05 | 0 | 0" 5209msgstr "" 5210"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n" 5211" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) " 5212"As skewx,\n" 5213" ST_SkewY(rast) As skewy\n" 5214" FROM dummy_rast;\n" 5215"\n" 5216" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n" 5217" -----------+----------+--------+--------+-------+----------\n" 5218" 10 | 2 | 2 | 3 | 0 | 0\n" 5219" 5 | 0.05 | 0.05 | -0.05 | 0 | 0" 5220 5221#. Tag: programlisting 5222#: reference_raster.xml:2186 5223#, no-c-format 5224msgid "" 5225"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n" 5226" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) " 5227"As skewx,\n" 5228" ST_SkewY(rast) As skewy\n" 5229" FROM (SELECT ST_SetSkew(rast,0.5,0.5) As rast\n" 5230" FROM dummy_rast) As skewed;\n" 5231"\n" 5232" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n" 5233" -----------+-------------------+--------+--------+-------" 5234"+----------\n" 5235" 10 | 2.06155281280883 | 2 | 3 | 0.5 | 0.5\n" 5236" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5" 5237msgstr "" 5238"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n" 5239" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) " 5240"As skewx,\n" 5241" ST_SkewY(rast) As skewy\n" 5242" FROM (SELECT ST_SetSkew(rast,0.5,0.5) As rast\n" 5243" FROM dummy_rast) As skewed;\n" 5244"\n" 5245" rastwidth | pixwidth | scalex | scaley | skewx | skewy\n" 5246" -----------+-------------------+--------+--------+-------" 5247"+----------\n" 5248" 10 | 2.06155281280883 | 2 | 3 | 0.5 | 0.5\n" 5249" 5 | 0.502493781056044 | 0.05 | -0.05 | 0.5 | 0.5" 5250 5251#. Tag: refname 5252#: reference_raster.xml:2199 5253#, no-c-format 5254msgid "ST_ScaleX" 5255msgstr "ST_ScaleX" 5256 5257#. Tag: refpurpose 5258#: reference_raster.xml:2200 5259#, no-c-format 5260msgid "" 5261"Returns the X component of the pixel width in units of coordinate reference " 5262"system." 5263msgstr "" 5264"Retorna o componente X da largura do pixel em unidades do sistema de " 5265"referência coordenadas. " 5266 5267#. Tag: funcprototype 5268#: reference_raster.xml:2205 5269#, no-c-format 5270msgid "" 5271"<funcdef>float8 <function>ST_ScaleX</function></funcdef> " 5272"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5273msgstr "" 5274"<funcdef>float8 <function>ST_ScaleX</function></funcdef> " 5275"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5276 5277#. Tag: para 5278#: reference_raster.xml:2215 5279#, no-c-format 5280msgid "" 5281"Returns the X component of the pixel width in units of coordinate reference " 5282"system. Refer to <ulink url=\"http://en.wikipedia.org/wiki/World_file" 5283"\">World File</ulink> for more details." 5284msgstr "" 5285"Retorna o componente X da largura do pixel em unidades do sistema de " 5286"referência coordenadas. Recorra a <ulink url=\"http://en.wikipedia.org/wiki/" 5287"World_file\">World File</ulink> para mais detalhes. " 5288 5289#. Tag: para 5290#: reference_raster.xml:2217 5291#, no-c-format 5292msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeX." 5293msgstr "Alterações: 2.0.0. Nas versões WKTRaster era chamado de ST_PixelSizeX." 5294 5295#. Tag: programlisting 5296#: reference_raster.xml:2223 5297#, no-c-format 5298msgid "" 5299"SELECT rid, ST_ScaleX(rast) As rastpixwidth\n" 5300"FROM dummy_rast;\n" 5301"\n" 5302" rid | rastpixwidth\n" 5303"-----+--------------\n" 5304" 1 | 2\n" 5305" 2 | 0.05" 5306msgstr "" 5307"SELECT rid, ST_ScaleX(rast) As rastpixwidth\n" 5308"FROM dummy_rast;\n" 5309"\n" 5310" rid | rastpixwidth\n" 5311"-----+--------------\n" 5312" 1 | 2\n" 5313" 2 | 0.05" 5314 5315#. Tag: refname 5316#: reference_raster.xml:2236 5317#, no-c-format 5318msgid "ST_ScaleY" 5319msgstr "ST_ScaleY" 5320 5321#. Tag: refpurpose 5322#: reference_raster.xml:2237 5323#, no-c-format 5324msgid "" 5325"Returns the Y component of the pixel height in units of coordinate reference " 5326"system." 5327msgstr "" 5328"Retorna o componente Y da altura do pixel em unidades do sistema de " 5329"referência coordenadas. " 5330 5331#. Tag: funcprototype 5332#: reference_raster.xml:2242 5333#, no-c-format 5334msgid "" 5335"<funcdef>float8 <function>ST_ScaleY</function></funcdef> " 5336"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5337msgstr "" 5338"<funcdef>float8 <function>ST_ScaleY</function></funcdef> " 5339"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5340 5341#. Tag: para 5342#: reference_raster.xml:2252 5343#, no-c-format 5344msgid "" 5345"Returns the Y component of the pixel height in units of coordinate reference " 5346"system. May be negative. Refer to <ulink url=\"http://en.wikipedia.org/wiki/" 5347"World_file\">World File</ulink> for more details." 5348msgstr "" 5349"Retorna o componente Y da altura do pixel em unidades do sistema de " 5350"referência coordenadas. Recorra a <ulink url=\"http://en.wikipedia.org/wiki/" 5351"World_file\">World File</ulink> para mais detalhes. " 5352 5353#. Tag: para 5354#: reference_raster.xml:2255 5355#, no-c-format 5356msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeY." 5357msgstr "Alterações: 2.0.0. Nas versões WKTRaster era chamado de ST_PixelSizeY." 5358 5359#. Tag: programlisting 5360#: reference_raster.xml:2261 5361#, no-c-format 5362msgid "" 5363"SELECT rid, ST_ScaleY(rast) As rastpixheight\n" 5364"FROM dummy_rast;\n" 5365"\n" 5366" rid | rastpixheight\n" 5367"-----+---------------\n" 5368" 1 | 3\n" 5369" 2 | -0.05" 5370msgstr "" 5371"SELECT rid, ST_ScaleY(rast) As rastpixheight\n" 5372"FROM dummy_rast;\n" 5373"\n" 5374" rid | rastpixheight\n" 5375"-----+---------------\n" 5376" 1 | 3\n" 5377" 2 | -0.05" 5378 5379#. Tag: refname 5380#: reference_raster.xml:2274 5381#, no-c-format 5382msgid "ST_RasterToWorldCoord" 5383msgstr "ST_RasterToWorldCoord" 5384 5385#. Tag: refpurpose 5386#: reference_raster.xml:2275 5387#, no-c-format 5388msgid "" 5389"Returns the raster's upper left corner as geometric X and Y (longitude and " 5390"latitude) given a column and row. Column and row starts at 1." 5391msgstr "" 5392"Retorna o canto superior esquerdo do raster como X e Y geométricos " 5393"(longitude e latitude) dada a coluna e linha. Coluna e linha começam em 1." 5394 5395#. Tag: funcprototype 5396#: reference_raster.xml:2280 5397#, no-c-format 5398msgid "" 5399"<funcdef>record <function>ST_RasterToWorldCoord</function></funcdef> " 5400"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 5401"<paramdef><type>integer </type> <parameter>xcolumn</parameter></paramdef> " 5402"<paramdef><type>integer </type> <parameter>yrow</parameter></paramdef>" 5403msgstr "" 5404"<funcdef>record <function>ST_RasterToWorldCoord</function></funcdef> " 5405"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 5406"<paramdef><type>integer </type> <parameter>xcolumn</parameter></paramdef> " 5407"<paramdef><type>integer </type> <parameter>yrow</parameter></paramdef>" 5408 5409#. Tag: para 5410#: reference_raster.xml:2292 5411#, no-c-format 5412msgid "" 5413"Returns the upper left corner as geometric X and Y (longitude and latitude) " 5414"given a column and row. Returned X and Y are in geometric units of the " 5415"georeferenced raster. Numbering of column and row starts at 1 but if either " 5416"parameter is passed a zero, a negative number or a number greater than the " 5417"respective dimension of the raster, it will return coordinates outside of " 5418"the raster assuming the raster's grid is applicable outside the raster's " 5419"bounds." 5420msgstr "" 5421"Retorna o canto esquerdo superior como X e Y geométricos (longitude e " 5422"latitude) dada a coluna e linha. o X e Y estão em unidades geométricas do " 5423"raster georreferenciado. A numeração da coluna e da linha começa no 1, mas " 5424"se algum passar como zero, um número negativo ou um maior que a respectiva " 5425"dimensão do raster, retornará as coordenas fora do raster assumindo que a " 5426"rede raster é aplicável fora dos limites do raster. " 5427 5428#. Tag: programlisting 5429#: reference_raster.xml:2304 5430#, no-c-format 5431msgid "" 5432"-- non-skewed raster\n" 5433"SELECT\n" 5434" rid,\n" 5435" (ST_RasterToWorldCoord(rast,1, 1)).*,\n" 5436" (ST_RasterToWorldCoord(rast,2, 2)).*\n" 5437"FROM dummy_rast\n" 5438"\n" 5439" rid | longitude | latitude | longitude | latitude\n" 5440"-----+------------+----------+-----------+------------\n" 5441" 1 | 0.5 | 0.5 | 2.5 | 3.5\n" 5442" 2 | 3427927.75 | 5793244 | 3427927.8 | 5793243.95" 5443msgstr "" 5444"-- non-skewed raster\n" 5445"SELECT\n" 5446" rid,\n" 5447" (ST_RasterToWorldCoord(rast,1, 1)).*,\n" 5448" (ST_RasterToWorldCoord(rast,2, 2)).*\n" 5449"FROM dummy_rast\n" 5450"\n" 5451" rid | longitude | latitude | longitude | latitude\n" 5452"-----+------------+----------+-----------+------------\n" 5453" 1 | 0.5 | 0.5 | 2.5 | 3.5\n" 5454" 2 | 3427927.75 | 5793244 | 3427927.8 | 5793243.95" 5455 5456#. Tag: programlisting 5457#: reference_raster.xml:2306 5458#, no-c-format 5459msgid "" 5460"-- skewed raster\n" 5461"SELECT\n" 5462" rid,\n" 5463" (ST_RasterToWorldCoord(rast, 1, 1)).*,\n" 5464" (ST_RasterToWorldCoord(rast, 2, 3)).*\n" 5465"FROM (\n" 5466" SELECT\n" 5467" rid,\n" 5468" ST_SetSkew(rast, 100.5, 0) As rast\n" 5469" FROM dummy_rast\n" 5470") As foo\n" 5471"\n" 5472" rid | longitude | latitude | longitude | latitude\n" 5473"-----+------------+----------+-----------+-----------\n" 5474" 1 | 0.5 | 0.5 | 203.5 | 6.5\n" 5475" 2 | 3427927.75 | 5793244 | 3428128.8 | 5793243.9" 5476msgstr "" 5477"-- skewed raster\n" 5478"SELECT\n" 5479" rid,\n" 5480" (ST_RasterToWorldCoord(rast, 1, 1)).*,\n" 5481" (ST_RasterToWorldCoord(rast, 2, 3)).*\n" 5482"FROM (\n" 5483" SELECT\n" 5484" rid,\n" 5485" ST_SetSkew(rast, 100.5, 0) As rast\n" 5486" FROM dummy_rast\n" 5487") As foo\n" 5488"\n" 5489" rid | longitude | latitude | longitude | latitude\n" 5490"-----+------------+----------+-----------+-----------\n" 5491" 1 | 0.5 | 0.5 | 203.5 | 6.5\n" 5492" 2 | 3427927.75 | 5793244 | 3428128.8 | 5793243.9" 5493 5494#. Tag: para 5495#: reference_raster.xml:2313 5496#, no-c-format 5497msgid "" 5498", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=" 5499"\"RT_ST_SetSkew\"/>" 5500msgstr "" 5501", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=" 5502"\"RT_ST_SetSkew\"/>" 5503 5504#. Tag: refname 5505#: reference_raster.xml:2323 5506#, no-c-format 5507msgid "ST_RasterToWorldCoordX" 5508msgstr "ST_RasterToWorldCoordX" 5509 5510#. Tag: refpurpose 5511#: reference_raster.xml:2324 5512#, no-c-format 5513msgid "" 5514"Returns the geometric X coordinate upper left of a raster, column and row. " 5515"Numbering of columns and rows starts at 1." 5516msgstr "" 5517"Retorna a coordenada geométrica X superior esquerda de um raster, coluna ou " 5518"linha. A numeração das colunas e linhas começam no 1. " 5519 5520#. Tag: funcsynopsis 5521#: reference_raster.xml:2329 5522#, no-c-format 5523msgid "" 5524"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordX</function></" 5525"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 5526"paramdef> <paramdef><type>integer </type> <parameter>xcolumn</parameter></" 5527"paramdef> </funcprototype> <funcprototype> <funcdef>float8 " 5528"<function>ST_RasterToWorldCoordX</function></funcdef> <paramdef><type>raster " 5529"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 5530"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </" 5531"type> <parameter>yrow</parameter></paramdef> </funcprototype>" 5532msgstr "" 5533"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordX</function></" 5534"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 5535"paramdef> <paramdef><type>integer </type> <parameter>xcolumn</parameter></" 5536"paramdef> </funcprototype> <funcprototype> <funcdef>float8 " 5537"<function>ST_RasterToWorldCoordX</function></funcdef> <paramdef><type>raster " 5538"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 5539"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </" 5540"type> <parameter>yrow</parameter></paramdef> </funcprototype>" 5541 5542#. Tag: para 5543#: reference_raster.xml:2347 5544#, no-c-format 5545msgid "" 5546"Returns the upper left X coordinate of a raster column row in geometric " 5547"units of the georeferenced raster. Numbering of columns and rows starts at 1 " 5548"but if you pass in a negative number or number higher than number of columns " 5549"in raster, it will give you coordinates outside of the raster file to left " 5550"or right with the assumption that the skew and pixel sizes are same as " 5551"selected raster." 5552msgstr "" 5553"Retorna a coordenada X superior esquerda de uma coluna raster em unidades " 5554"geométricas do raster georreferenciado. A numeração da coluna e da linha " 5555"começa no 1, mas se algum passar como zero, um número negativo ou um maior " 5556"que a respectiva dimensão do raster, retornará as coordenas fora do raster " 5557"para esquerda ou direita, assumindo que a skew e tamanhos do pixel são os " 5558"mesmo que o raster selecionado." 5559 5560#. Tag: para 5561#: reference_raster.xml:2352 5562#, no-c-format 5563msgid "" 5564"For non-skewed rasters, providing the X column is sufficient. For skewed " 5565"rasters, the georeferenced coordinate is a function of the ST_ScaleX and " 5566"ST_SkewX and row and column. An error will be raised if you give just the X " 5567"column for a skewed raster." 5568msgstr "" 5569"Para rasters sem desvio, fornecer a coluna X é suficiente. Para rasters com " 5570"desvio, a coordenada georreferenciada é uma função da ST_ScaleX e ST_SkewX e " 5571"linha e coluna. Um erro aparecerá se você der somente a coluna X para um " 5572"raster desviado. " 5573 5574#. Tag: para 5575#: reference_raster.xml:2356 5576#, no-c-format 5577msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordX" 5578msgstr "" 5579"Alterações: 2.1.0 Em versões anteriores, era chamado de ST_Raster2WorldCoordX" 5580 5581#. Tag: programlisting 5582#: reference_raster.xml:2363 5583#, no-c-format 5584msgid "" 5585"-- non-skewed raster providing column is sufficient\n" 5586"SELECT rid, ST_RasterToWorldCoordX(rast,1) As x1coord,\n" 5587" ST_RasterToWorldCoordX(rast,2) As x2coord,\n" 5588" ST_ScaleX(rast) As pixelx\n" 5589"FROM dummy_rast;\n" 5590"\n" 5591" rid | x1coord | x2coord | pixelx\n" 5592"-----+------------+-----------+--------\n" 5593" 1 | 0.5 | 2.5 | 2\n" 5594" 2 | 3427927.75 | 3427927.8 | 0.05" 5595msgstr "" 5596"-- non-skewed raster providing column is sufficient\n" 5597"SELECT rid, ST_RasterToWorldCoordX(rast,1) As x1coord,\n" 5598" ST_RasterToWorldCoordX(rast,2) As x2coord,\n" 5599" ST_ScaleX(rast) As pixelx\n" 5600"FROM dummy_rast;\n" 5601"\n" 5602" rid | x1coord | x2coord | pixelx\n" 5603"-----+------------+-----------+--------\n" 5604" 1 | 0.5 | 2.5 | 2\n" 5605" 2 | 3427927.75 | 3427927.8 | 0.05" 5606 5607#. Tag: programlisting 5608#: reference_raster.xml:2365 5609#, no-c-format 5610msgid "" 5611"-- for fun lets skew it\n" 5612"SELECT rid, ST_RasterToWorldCoordX(rast, 1, 1) As x1coord,\n" 5613" ST_RasterToWorldCoordX(rast, 2, 3) As x2coord,\n" 5614" ST_ScaleX(rast) As pixelx\n" 5615"FROM (SELECT rid, ST_SetSkew(rast, 100.5, 0) As rast FROM dummy_rast) As " 5616"foo;\n" 5617"\n" 5618" rid | x1coord | x2coord | pixelx\n" 5619"-----+------------+-----------+--------\n" 5620" 1 | 0.5 | 203.5 | 2\n" 5621" 2 | 3427927.75 | 3428128.8 | 0.05" 5622msgstr "" 5623"-- for fun lets skew it\n" 5624"SELECT rid, ST_RasterToWorldCoordX(rast, 1, 1) As x1coord,\n" 5625" ST_RasterToWorldCoordX(rast, 2, 3) As x2coord,\n" 5626" ST_ScaleX(rast) As pixelx\n" 5627"FROM (SELECT rid, ST_SetSkew(rast, 100.5, 0) As rast FROM dummy_rast) As " 5628"foo;\n" 5629"\n" 5630" rid | x1coord | x2coord | pixelx\n" 5631"-----+------------+-----------+--------\n" 5632" 1 | 0.5 | 203.5 | 2\n" 5633" 2 | 3427927.75 | 3428128.8 | 0.05" 5634 5635#. Tag: para 5636#: reference_raster.xml:2372 5637#, no-c-format 5638msgid "" 5639", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=" 5640"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewX\"/>" 5641msgstr "" 5642", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=" 5643"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewX\"/>" 5644 5645#. Tag: refname 5646#: reference_raster.xml:2378 5647#, no-c-format 5648msgid "ST_RasterToWorldCoordY" 5649msgstr "ST_RasterToWorldCoordY" 5650 5651#. Tag: refpurpose 5652#: reference_raster.xml:2379 5653#, no-c-format 5654msgid "" 5655"Returns the geometric Y coordinate upper left corner of a raster, column and " 5656"row. Numbering of columns and rows starts at 1." 5657msgstr "" 5658"Retorna a coordenada geométrica Y superior esquerda de um raster, coluna e " 5659"linha. A numeração das colunas e linhas começam no 1. " 5660 5661#. Tag: funcsynopsis 5662#: reference_raster.xml:2384 5663#, no-c-format 5664msgid "" 5665"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordY</function></" 5666"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 5667"paramdef> <paramdef><type>integer </type> <parameter>yrow</parameter></" 5668"paramdef> </funcprototype> <funcprototype> <funcdef>float8 " 5669"<function>ST_RasterToWorldCoordY</function></funcdef> <paramdef><type>raster " 5670"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 5671"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </" 5672"type> <parameter>yrow</parameter></paramdef> </funcprototype>" 5673msgstr "" 5674"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordY</function></" 5675"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 5676"paramdef> <paramdef><type>integer </type> <parameter>yrow</parameter></" 5677"paramdef> </funcprototype> <funcprototype> <funcdef>float8 " 5678"<function>ST_RasterToWorldCoordY</function></funcdef> <paramdef><type>raster " 5679"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 5680"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </" 5681"type> <parameter>yrow</parameter></paramdef> </funcprototype>" 5682 5683#. Tag: para 5684#: reference_raster.xml:2402 5685#, no-c-format 5686msgid "" 5687"Returns the upper left Y coordinate of a raster column row in geometric " 5688"units of the georeferenced raster. Numbering of columns and rows starts at 1 " 5689"but if you pass in a negative number or number higher than number of columns/" 5690"rows in raster, it will give you coordinates outside of the raster file to " 5691"left or right with the assumption that the skew and pixel sizes are same as " 5692"selected raster tile." 5693msgstr "" 5694"Retorna a coordenada Y superior esquerda de uma coluna raster em unidades " 5695"geométricas do raster georreferenciado. A numeração da coluna e da linha " 5696"começa no 1, mas se algum passar como zero, um número negativo ou um maior " 5697"que a respectiva dimensão do raster, retornará as coordenas fora do raster " 5698"para esquerda ou direita, assumindo que o desvio e tamanhos do pixel são os " 5699"mesmos que o raster selecionado." 5700 5701#. Tag: para 5702#: reference_raster.xml:2407 5703#, no-c-format 5704msgid "" 5705"For non-skewed rasters, providing the Y column is sufficient. For skewed " 5706"rasters, the georeferenced coordinate is a function of the ST_ScaleY and " 5707"ST_SkewY and row and column. An error will be raised if you give just the Y " 5708"row for a skewed raster." 5709msgstr "" 5710"Para rasters sem desvio, fornecer a coluna Y é suficiente. Para rasters com " 5711"desvio, a coordenada georreferenciada é uma função da ST_ScaleY e ST_SkewY e " 5712"linha e coluna. Um erro aparecerá se você der somente a linha Y para um " 5713"raster desviado. " 5714 5715#. Tag: para 5716#: reference_raster.xml:2411 5717#, no-c-format 5718msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordY" 5719msgstr "" 5720"Alterações: 2.1.0 Em versões anteriores, era chamado de ST_Raster2WorldCoordY" 5721 5722#. Tag: programlisting 5723#: reference_raster.xml:2417 5724#, no-c-format 5725msgid "" 5726"-- non-skewed raster providing row is sufficient\n" 5727"SELECT rid, ST_RasterToWorldCoordY(rast,1) As y1coord,\n" 5728" ST_RasterToWorldCoordY(rast,3) As y2coord,\n" 5729" ST_ScaleY(rast) As pixely\n" 5730"FROM dummy_rast;\n" 5731"\n" 5732" rid | y1coord | y2coord | pixely\n" 5733"-----+---------+-----------+--------\n" 5734" 1 | 0.5 | 6.5 | 3\n" 5735" 2 | 5793244 | 5793243.9 | -0.05" 5736msgstr "" 5737"-- non-skewed raster providing row is sufficient\n" 5738"SELECT rid, ST_RasterToWorldCoordY(rast,1) As y1coord,\n" 5739" ST_RasterToWorldCoordY(rast,3) As y2coord,\n" 5740" ST_ScaleY(rast) As pixely\n" 5741"FROM dummy_rast;\n" 5742"\n" 5743" rid | y1coord | y2coord | pixely\n" 5744"-----+---------+-----------+--------\n" 5745" 1 | 0.5 | 6.5 | 3\n" 5746" 2 | 5793244 | 5793243.9 | -0.05" 5747 5748#. Tag: programlisting 5749#: reference_raster.xml:2419 5750#, no-c-format 5751msgid "" 5752"-- for fun lets skew it\n" 5753"SELECT rid, ST_RasterToWorldCoordY(rast,1,1) As y1coord,\n" 5754" ST_RasterToWorldCoordY(rast,2,3) As y2coord,\n" 5755" ST_ScaleY(rast) As pixely\n" 5756"FROM (SELECT rid, ST_SetSkew(rast,0,100.5) As rast FROM dummy_rast) As foo;\n" 5757"\n" 5758" rid | y1coord | y2coord | pixely\n" 5759"-----+---------+-----------+--------\n" 5760" 1 | 0.5 | 107 | 3\n" 5761" 2 | 5793244 | 5793344.4 | -0.05" 5762msgstr "" 5763"-- for fun lets skew it\n" 5764"SELECT rid, ST_RasterToWorldCoordY(rast,1,1) As y1coord,\n" 5765" ST_RasterToWorldCoordY(rast,2,3) As y2coord,\n" 5766" ST_ScaleY(rast) As pixely\n" 5767"FROM (SELECT rid, ST_SetSkew(rast,0,100.5) As rast FROM dummy_rast) As foo;\n" 5768"\n" 5769" rid | y1coord | y2coord | pixely\n" 5770"-----+---------+-----------+--------\n" 5771" 1 | 0.5 | 107 | 3\n" 5772" 2 | 5793244 | 5793344.4 | -0.05" 5773 5774#. Tag: para 5775#: reference_raster.xml:2426 5776#, no-c-format 5777msgid "" 5778", <xref linkend=\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=" 5779"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewY\"/>" 5780msgstr "" 5781", <xref linkend=\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=" 5782"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewY\"/>" 5783 5784#. Tag: refname 5785#: reference_raster.xml:2432 5786#, no-c-format 5787msgid "ST_Rotation" 5788msgstr "ST_Rotation" 5789 5790#. Tag: refpurpose 5791#: reference_raster.xml:2433 5792#, no-c-format 5793msgid "Returns the rotation of the raster in radian." 5794msgstr "Retorna a rotação do raster em radianos. " 5795 5796#. Tag: funcprototype 5797#: reference_raster.xml:2438 5798#, no-c-format 5799msgid "" 5800"<funcdef>float8 <function>ST_Rotation</function></funcdef> " 5801"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef>" 5802msgstr "" 5803"<funcdef>float8 <function>ST_Rotation</function></funcdef> " 5804"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef>" 5805 5806#. Tag: para 5807#: reference_raster.xml:2448 5808#, no-c-format 5809msgid "" 5810"Returns the uniform rotation of the raster in radian. If a raster does not " 5811"have uniform rotation, NaN is returned. Refer to <ulink url=\"http://en." 5812"wikipedia.org/wiki/World_file\">World File</ulink> for more details." 5813msgstr "" 5814"Retorna a rotação uniforme do raster em radianos. Se um raster n ão tiver " 5815"uma rotação uniforme, NaN retorna. Recorra a <ulink url=\"http://en." 5816"wikipedia.org/wiki/World_file\">World File</ulink> para mais detalhes. " 5817 5818#. Tag: programlisting 5819#: reference_raster.xml:2455 5820#, no-c-format 5821msgid "" 5822"SELECT rid, ST_Rotation(ST_SetScale(ST_SetSkew(rast, sqrt(2)), sqrt(2))) as " 5823"rot FROM dummy_rast;\n" 5824"\n" 5825" rid | rot\n" 5826"-----+-------------------\n" 5827" 1 | 0.785398163397448\n" 5828" 2 | 0.785398163397448" 5829msgstr "" 5830"SELECT rid, ST_Rotation(ST_SetScale(ST_SetSkew(rast, sqrt(2)), sqrt(2))) as " 5831"rot FROM dummy_rast;\n" 5832"\n" 5833" rid | rot\n" 5834"-----+-------------------\n" 5835" 1 | 0.785398163397448\n" 5836" 2 | 0.785398163397448" 5837 5838#. Tag: para 5839#: reference_raster.xml:2461 5840#, no-c-format 5841msgid ", <xref linkend=\"RT_ST_SetScale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5842msgstr "" 5843", <xref linkend=\"RT_ST_SetScale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5844 5845#. Tag: refname 5846#: reference_raster.xml:2467 5847#, no-c-format 5848msgid "ST_SkewX" 5849msgstr "ST_SkewX" 5850 5851#. Tag: refpurpose 5852#: reference_raster.xml:2468 5853#, no-c-format 5854msgid "Returns the georeference X skew (or rotation parameter)." 5855msgstr "Retorna o desvio X georreferência (ou parâmetro e rotação)." 5856 5857#. Tag: funcprototype 5858#: reference_raster.xml:2473 5859#, no-c-format 5860msgid "" 5861"<funcdef>float8 <function>ST_SkewX</function></funcdef> " 5862"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5863msgstr "" 5864"<funcdef>float8 <function>ST_SkewX</function></funcdef> " 5865"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5866 5867#. Tag: para 5868#: reference_raster.xml:2483 5869#, no-c-format 5870msgid "" 5871"Returns the georeference X skew (or rotation parameter). Refer to <ulink url=" 5872"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more " 5873"details." 5874msgstr "" 5875"Retorna o desvio X georreferência (ou parâmetro de rotação). Recorra a " 5876"<ulink url=\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> " 5877"para mais detalhes. " 5878 5879#. Tag: programlisting 5880#: reference_raster.xml:2490 reference_raster.xml:2526 5881#, no-c-format 5882msgid "" 5883"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 5884" ST_GeoReference(rast) as georef\n" 5885"FROM dummy_rast;\n" 5886"\n" 5887" rid | skewx | skewy | georef\n" 5888"-----+-------+-------+--------------------\n" 5889" 1 | 0 | 0 | 2.0000000000\n" 5890" : 0.0000000000\n" 5891" : 0.0000000000\n" 5892" : 3.0000000000\n" 5893" : 0.5000000000\n" 5894" : 0.5000000000\n" 5895" :\n" 5896" 2 | 0 | 0 | 0.0500000000\n" 5897" : 0.0000000000\n" 5898" : 0.0000000000\n" 5899" : -0.0500000000\n" 5900" : 3427927.7500000000\n" 5901" : 5793244.0000000000" 5902msgstr "" 5903"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 5904" ST_GeoReference(rast) as georef\n" 5905"FROM dummy_rast;\n" 5906"\n" 5907" rid | skewx | skewy | georef\n" 5908"-----+-------+-------+--------------------\n" 5909" 1 | 0 | 0 | 2.0000000000\n" 5910" : 0.0000000000\n" 5911" : 0.0000000000\n" 5912" : 3.0000000000\n" 5913" : 0.5000000000\n" 5914" : 0.5000000000\n" 5915" :\n" 5916" 2 | 0 | 0 | 0.0500000000\n" 5917" : 0.0000000000\n" 5918" : 0.0000000000\n" 5919" : -0.0500000000\n" 5920" : 3427927.7500000000\n" 5921" : 5793244.0000000000" 5922 5923#. Tag: para 5924#: reference_raster.xml:2497 5925#, no-c-format 5926msgid ", <xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5927msgstr ", <xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5928 5929#. Tag: refname 5930#: reference_raster.xml:2503 5931#, no-c-format 5932msgid "ST_SkewY" 5933msgstr "ST_SkewY" 5934 5935#. Tag: refpurpose 5936#: reference_raster.xml:2504 5937#, no-c-format 5938msgid "Returns the georeference Y skew (or rotation parameter)." 5939msgstr "Retorna o desvio Y georreferência (ou parâmetro e rotação)." 5940 5941#. Tag: funcprototype 5942#: reference_raster.xml:2509 5943#, no-c-format 5944msgid "" 5945"<funcdef>float8 <function>ST_SkewY</function></funcdef> " 5946"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5947msgstr "" 5948"<funcdef>float8 <function>ST_SkewY</function></funcdef> " 5949"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5950 5951#. Tag: para 5952#: reference_raster.xml:2519 5953#, no-c-format 5954msgid "" 5955"Returns the georeference Y skew (or rotation parameter). Refer to <ulink url=" 5956"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more " 5957"details." 5958msgstr "" 5959"Retorna o desvio Y georreferência (ou parâmetro de rotação). Recorra a " 5960"<ulink url=\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> " 5961"para mais detalhes. " 5962 5963#. Tag: para 5964#: reference_raster.xml:2533 5965#, no-c-format 5966msgid ", <xref linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5967msgstr ", <xref linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SetSkew\"/>" 5968 5969#. Tag: refname 5970#: reference_raster.xml:2539 5971#, no-c-format 5972msgid "ST_SRID" 5973msgstr "ST_SRID" 5974 5975#. Tag: refpurpose 5976#: reference_raster.xml:2540 5977#, no-c-format 5978msgid "" 5979"Returns the spatial reference identifier of the raster as defined in " 5980"spatial_ref_sys table." 5981msgstr "" 5982"Retorna o identificador de referência espacial como definido na tabela " 5983"spatial_ref_sys." 5984 5985#. Tag: funcprototype 5986#: reference_raster.xml:2545 5987#, no-c-format 5988msgid "" 5989"<funcdef>integer <function>ST_SRID</function></funcdef> " 5990"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5991msgstr "" 5992"<funcdef>integer <function>ST_SRID</function></funcdef> " 5993"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 5994 5995#. Tag: para 5996#: reference_raster.xml:2555 5997#, no-c-format 5998msgid "" 5999"Returns the spatial reference identifier of the raster object as defined in " 6000"the spatial_ref_sys table." 6001msgstr "" 6002"Retorna o identificador de referência espacial do objeto raster como " 6003"definido na tabela spatial_ref_sys." 6004 6005#. Tag: para 6006#: reference_raster.xml:2556 6007#, no-c-format 6008msgid "" 6009"From PostGIS 2.0+ the srid of a non-georeferenced raster/geometry is 0 " 6010"instead of the prior -1." 6011msgstr "" 6012"A partir do PostGIS 2.0+ o srid de raster/geometria não georreferenciado é 0 " 6013"em vez de -1." 6014 6015#. Tag: programlisting 6016#: reference_raster.xml:2562 6017#, no-c-format 6018msgid "" 6019"SELECT ST_SRID(rast) As srid\n" 6020"FROM dummy_rast WHERE rid=1;\n" 6021"\n" 6022"srid\n" 6023"----------------\n" 6024"0" 6025msgstr "" 6026"SELECT ST_SRID(rast) As srid\n" 6027"FROM dummy_rast WHERE rid=1;\n" 6028"\n" 6029"srid\n" 6030"----------------\n" 6031"0" 6032 6033#. Tag: para 6034#: reference_raster.xml:2568 6035#, no-c-format 6036msgid ", <xref linkend=\"ST_SRID\"/>" 6037msgstr ", <xref linkend=\"ST_SRID\"/>" 6038 6039#. Tag: refname 6040#: reference_raster.xml:2574 6041#, no-c-format 6042msgid "ST_Summary" 6043msgstr "ST_Summary" 6044 6045#. Tag: refpurpose 6046#: reference_raster.xml:2575 6047#, no-c-format 6048msgid "" 6049"<refpurpose>Returns a text summary of the contents of the raster.</" 6050"refpurpose>" 6051msgstr "" 6052"<refpurpose>Retorna um texto resumo dos conteúdos do raster.</refpurpose>" 6053 6054#. Tag: funcprototype 6055#: reference_raster.xml:2580 6056#, no-c-format 6057msgid "" 6058"<funcdef>text <function>ST_Summary</function></funcdef> " 6059"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6060msgstr "" 6061"<funcdef>text <function>ST_Summary</function></funcdef> " 6062"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6063 6064#. Tag: para 6065#: reference_raster.xml:2590 6066#, no-c-format 6067msgid "<para>Returns a text summary of the contents of the raster.</para>" 6068msgstr "<para>Retorna um texto resumo dos conteúdos do raster.</para>" 6069 6070#. Tag: programlisting 6071#: reference_raster.xml:2597 6072#, no-c-format 6073msgid "" 6074"SELECT ST_Summary(\n" 6075" ST_AddBand(\n" 6076" ST_AddBand(\n" 6077" ST_AddBand(\n" 6078" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, " 6079"0, 0)\n" 6080" , 1, '8BUI', 1, 0\n" 6081" )\n" 6082" , 2, '32BF', 0, -9999\n" 6083" )\n" 6084" , 3, '16BSI', 0, NULL\n" 6085" )\n" 6086");\n" 6087"\n" 6088" st_summary\n" 6089"------------------------------------------------------------------\n" 6090" Raster of 10x10 pixels has 3 bands and extent of BOX(0 -10,10 0)+\n" 6091" band 1 of pixtype 8BUI is in-db with NODATA value of 0 +\n" 6092" band 2 of pixtype 32BF is in-db with NODATA value of -9999 +\n" 6093" band 3 of pixtype 16BSI is in-db with no NODATA value\n" 6094"(1 row)" 6095msgstr "" 6096"SELECT ST_Summary(\n" 6097" ST_AddBand(\n" 6098" ST_AddBand(\n" 6099" ST_AddBand(\n" 6100" ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, " 6101"0, 0)\n" 6102" , 1, '8BUI', 1, 0\n" 6103" )\n" 6104" , 2, '32BF', 0, -9999\n" 6105" )\n" 6106" , 3, '16BSI', 0, NULL\n" 6107" )\n" 6108");\n" 6109"\n" 6110" st_summary\n" 6111"------------------------------------------------------------------\n" 6112" Raster of 10x10 pixels has 3 bands and extent of BOX(0 -10,10 0)+\n" 6113" band 1 of pixtype 8BUI is in-db with NODATA value of 0 +\n" 6114" band 2 of pixtype 32BF is in-db with NODATA value of -9999 +\n" 6115" band 3 of pixtype 16BSI is in-db with no NODATA value\n" 6116"(1 row)" 6117 6118#. Tag: para 6119#: reference_raster.xml:2602 6120#, no-c-format 6121msgid "" 6122", <xref linkend=\"RT_ST_BandMetaData\"/>, <xref linkend=\"ST_Summary\"/> " 6123"<xref linkend=\"ST_Extent\"/>" 6124msgstr "" 6125", <xref linkend=\"RT_ST_BandMetaData\"/>, <xref linkend=\"ST_Summary\"/> " 6126"<xref linkend=\"ST_Extent\"/>" 6127 6128#. Tag: refname 6129#: reference_raster.xml:2613 6130#, no-c-format 6131msgid "ST_UpperLeftX" 6132msgstr "ST_UpperLeftX" 6133 6134#. Tag: refpurpose 6135#: reference_raster.xml:2614 6136#, no-c-format 6137msgid "" 6138"<refpurpose>Returns the upper left X coordinate of raster in projected " 6139"spatial ref.</refpurpose>" 6140msgstr "" 6141"<refpurpose>Retorna a coordenada X superior esquerda na ref. espacial " 6142"projetada.</refpurpose>" 6143 6144#. Tag: funcprototype 6145#: reference_raster.xml:2619 6146#, no-c-format 6147msgid "" 6148"<funcdef>float8 <function>ST_UpperLeftX</function></funcdef> " 6149"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6150msgstr "" 6151"<funcdef>float8 <function>ST_UpperLeftX</function></funcdef> " 6152"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6153 6154#. Tag: para 6155#: reference_raster.xml:2629 6156#, no-c-format 6157msgid "" 6158"<para>Returns the upper left X coordinate of raster in projected spatial ref." 6159"</para>" 6160msgstr "" 6161"<para>Retorna a coordenada X superior esquerda na ref. espacial projetada.</" 6162"para>" 6163 6164#. Tag: programlisting 6165#: reference_raster.xml:2635 6166#, no-c-format 6167msgid "" 6168"SELECt rid, ST_UpperLeftX(rast) As ulx\n" 6169"FROM dummy_rast;\n" 6170"\n" 6171" rid | ulx\n" 6172"-----+------------\n" 6173" 1 | 0.5\n" 6174" 2 | 3427927.75" 6175msgstr "" 6176"SELECt rid, ST_UpperLeftX(rast) As ulx\n" 6177"FROM dummy_rast;\n" 6178"\n" 6179" rid | ulx\n" 6180"-----+------------\n" 6181" 1 | 0.5\n" 6182" 2 | 3427927.75" 6183 6184#. Tag: para 6185#: reference_raster.xml:2641 reference_raster.xml:2675 6186#, no-c-format 6187msgid ", <xref linkend=\"RT_ST_GeoReference\"/>, <xref linkend=\"RT_Box3D\"/>" 6188msgstr ", <xref linkend=\"RT_ST_GeoReference\"/>, <xref linkend=\"RT_Box3D\"/>" 6189 6190#. Tag: refname 6191#: reference_raster.xml:2647 6192#, no-c-format 6193msgid "ST_UpperLeftY" 6194msgstr "ST_UpperLeftY" 6195 6196#. Tag: refpurpose 6197#: reference_raster.xml:2648 6198#, no-c-format 6199msgid "" 6200"<refpurpose>Returns the upper left Y coordinate of raster in projected " 6201"spatial ref.</refpurpose>" 6202msgstr "" 6203"<refpurpose>Retorna a coordenada Y superior esquerda na ref. espacial " 6204"projetada.</refpurpose>" 6205 6206#. Tag: funcprototype 6207#: reference_raster.xml:2653 6208#, no-c-format 6209msgid "" 6210"<funcdef>float8 <function>ST_UpperLeftY</function></funcdef> " 6211"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6212msgstr "" 6213"<funcdef>float8 <function>ST_UpperLeftY</function></funcdef> " 6214"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6215 6216#. Tag: para 6217#: reference_raster.xml:2663 6218#, no-c-format 6219msgid "" 6220"<para>Returns the upper left Y coordinate of raster in projected spatial ref." 6221"</para>" 6222msgstr "" 6223"<para>Retorna a coordenada Y superior esquerda na ref. espacial projetada.</" 6224"para>" 6225 6226#. Tag: programlisting 6227#: reference_raster.xml:2669 6228#, no-c-format 6229msgid "" 6230"SELECT rid, ST_UpperLeftY(rast) As uly\n" 6231"FROM dummy_rast;\n" 6232"\n" 6233" rid | uly\n" 6234"-----+---------\n" 6235" 1 | 0.5\n" 6236" 2 | 5793244" 6237msgstr "" 6238"SELECT rid, ST_UpperLeftY(rast) As uly\n" 6239"FROM dummy_rast;\n" 6240"\n" 6241" rid | uly\n" 6242"-----+---------\n" 6243" 1 | 0.5\n" 6244" 2 | 5793244" 6245 6246#. Tag: refname 6247#: reference_raster.xml:2681 6248#, no-c-format 6249msgid "ST_Width" 6250msgstr "ST_Width" 6251 6252#. Tag: refpurpose 6253#: reference_raster.xml:2682 6254#, no-c-format 6255msgid "<refpurpose>Returns the width of the raster in pixels.</refpurpose>" 6256msgstr "<refpurpose>Retorna a largura do raster em pixeis.</refpurpose>" 6257 6258#. Tag: funcprototype 6259#: reference_raster.xml:2687 6260#, no-c-format 6261msgid "" 6262"<funcdef>integer <function>ST_Width</function></funcdef> " 6263"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6264msgstr "" 6265"<funcdef>integer <function>ST_Width</function></funcdef> " 6266"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 6267 6268#. Tag: para 6269#: reference_raster.xml:2697 6270#, no-c-format 6271msgid "<para>Returns the width of the raster in pixels.</para>" 6272msgstr "<para>Retorna a largura do raster em pixeis.</para>" 6273 6274#. Tag: programlisting 6275#: reference_raster.xml:2703 6276#, no-c-format 6277msgid "" 6278"SELECT ST_Width(rast) As rastwidth\n" 6279"FROM dummy_rast WHERE rid=1;\n" 6280"\n" 6281"rastwidth\n" 6282"----------------\n" 6283"10" 6284msgstr "" 6285"SELECT ST_Width(rast) As rastwidth\n" 6286"FROM dummy_rast WHERE rid=1;\n" 6287"\n" 6288"rastwidth\n" 6289"----------------\n" 6290"10" 6291 6292#. Tag: refname 6293#: reference_raster.xml:2717 6294#, no-c-format 6295msgid "ST_WorldToRasterCoord" 6296msgstr "ST_WorldToRasterCoord" 6297 6298#. Tag: refpurpose 6299#: reference_raster.xml:2718 6300#, no-c-format 6301msgid "" 6302"Returns the upper left corner as column and row given geometric X and Y " 6303"(longitude and latitude) or a point geometry expressed in the spatial " 6304"reference coordinate system of the raster." 6305msgstr "" 6306"Retorna o canto superior esquerdo como coluna e linha dados os X e Y " 6307"geométricos (longitude e latitude) ou um ponto expressado na coordenada do " 6308"sistema de referência espacial do raster. " 6309 6310#. Tag: funcsynopsis 6311#: reference_raster.xml:2722 6312#, no-c-format 6313msgid "" 6314"<funcprototype> <funcdef>record <function>ST_WorldToRasterCoord</function></" 6315"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6316"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 6317"paramdef> </funcprototype> <funcprototype> <funcdef>record " 6318"<function>ST_WorldToRasterCoord</function></funcdef> <paramdef><type>raster " 6319"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6320"precision </type> <parameter>longitude</parameter></paramdef> " 6321"<paramdef><type>double precision </type> <parameter>latitude</parameter></" 6322"paramdef> </funcprototype>" 6323msgstr "" 6324"<funcprototype> <funcdef>record <function>ST_WorldToRasterCoord</function></" 6325"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6326"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 6327"paramdef> </funcprototype> <funcprototype> <funcdef>record " 6328"<function>ST_WorldToRasterCoord</function></funcdef> <paramdef><type>raster " 6329"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6330"precision </type> <parameter>longitude</parameter></paramdef> " 6331"<paramdef><type>double precision </type> <parameter>latitude</parameter></" 6332"paramdef> </funcprototype>" 6333 6334#. Tag: para 6335#: reference_raster.xml:2741 6336#, no-c-format 6337msgid "" 6338"Returns the upper left corner as column and row given geometric X and Y " 6339"(longitude and latitude) or a point geometry. This function works regardless " 6340"of whether or not the geometric X and Y or point geometry is outside the " 6341"extent of the raster. Geometric X and Y must be expressed in the spatial " 6342"reference coordinate system of the raster." 6343msgstr "" 6344"Retorna o canto superior esquerdo como coluna e linha dados os X e Y " 6345"geométricos (longitude e latitude) ou um ponto. Esta função funciona se o X " 6346"e Y geométricos ou ponto estiver fora da extensão do raster ou não. O X e Y " 6347"geométricos devem ser expressados na coordenada do sistema de referência " 6348"espacial do raster." 6349 6350#. Tag: programlisting 6351#: reference_raster.xml:2754 6352#, no-c-format 6353msgid "" 6354"SELECT\n" 6355" rid,\n" 6356" (ST_WorldToRasterCoord(rast,3427927.8,20.5)).*,\n" 6357" (ST_WorldToRasterCoord(rast,ST_GeomFromText('POINT(3427927.8 20.5)'," 6358"ST_SRID(rast)))).*\n" 6359"FROM dummy_rast;\n" 6360"\n" 6361" rid | columnx | rowy | columnx | rowy\n" 6362"-----+---------+-----------+---------+-----------\n" 6363" 1 | 1713964 | 7 | 1713964 | 7\n" 6364" 2 | 2 | 115864471 | 2 | 115864471" 6365msgstr "" 6366"SELECT\n" 6367" rid,\n" 6368" (ST_WorldToRasterCoord(rast,3427927.8,20.5)).*,\n" 6369" (ST_WorldToRasterCoord(rast,ST_GeomFromText('POINT(3427927.8 20.5)'," 6370"ST_SRID(rast)))).*\n" 6371"FROM dummy_rast;\n" 6372"\n" 6373" rid | columnx | rowy | columnx | rowy\n" 6374"-----+---------+-----------+---------+-----------\n" 6375" 1 | 1713964 | 7 | 1713964 | 7\n" 6376" 2 | 2 | 115864471 | 2 | 115864471" 6377 6378#. Tag: para 6379#: reference_raster.xml:2760 6380#, no-c-format 6381msgid "" 6382", <xref linkend=\"RT_ST_WorldToRasterCoordY\"/>, <xref linkend=" 6383"\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=\"RT_ST_RasterToWorldCoordY\"/" 6384">, <xref linkend=\"RT_ST_SRID\"/>" 6385msgstr "" 6386", <xref linkend=\"RT_ST_WorldToRasterCoordY\"/>, <xref linkend=" 6387"\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=\"RT_ST_RasterToWorldCoordY\"/" 6388">, <xref linkend=\"RT_ST_SRID\"/>" 6389 6390#. Tag: refname 6391#: reference_raster.xml:2772 6392#, no-c-format 6393msgid "ST_WorldToRasterCoordX" 6394msgstr "ST_WorldToRasterCoordX" 6395 6396#. Tag: refpurpose 6397#: reference_raster.xml:2773 6398#, no-c-format 6399msgid "" 6400"Returns the column in the raster of the point geometry (pt) or a X and Y " 6401"world coordinate (xw, yw) represented in world spatial reference system of " 6402"raster." 6403msgstr "" 6404"Retorna a coluna no raster do ponto (pt) ou uma coordenada X e Y (xw, yw) " 6405"representada no sistema de referência espacial mundial de raster. " 6406 6407#. Tag: funcsynopsis 6408#: reference_raster.xml:2778 6409#, no-c-format 6410msgid "" 6411"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</" 6412"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6413"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 6414"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer " 6415"<function>ST_WorldToRasterCoordX</function></funcdef> <paramdef><type>raster " 6416"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6417"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> " 6418"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</" 6419"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6420"parameter></paramdef> <paramdef><type>double precision </type> " 6421"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </" 6422"type> <parameter>yw</parameter></paramdef> </funcprototype>" 6423msgstr "" 6424"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</" 6425"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6426"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 6427"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer " 6428"<function>ST_WorldToRasterCoordX</function></funcdef> <paramdef><type>raster " 6429"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6430"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> " 6431"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</" 6432"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6433"parameter></paramdef> <paramdef><type>double precision </type> " 6434"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </" 6435"type> <parameter>yw</parameter></paramdef> </funcprototype>" 6436 6437#. Tag: para 6438#: reference_raster.xml:2803 6439#, no-c-format 6440msgid "" 6441"Returns the column in the raster of the point geometry (pt) or a X and Y " 6442"world coordinate (xw, yw). A point, or (both xw and yw world coordinates are " 6443"required if a raster is skewed). If a raster is not skewed then xw is " 6444"sufficient. World coordinates are in the spatial reference coordinate system " 6445"of the raster." 6446msgstr "" 6447"Retorna a coluna no raster do ponto (pt) ou uma coordenada X e Y (xw, yw). " 6448"Um ponto, ou (ambas as coordenadas xw e yw são requeridas se um raster " 6449"estiver desviado). Se um raster não estiver desviado, então xw é o " 6450"suficiente. Coordenadas globais estão no sistema de coordenadas de " 6451"referência espacial do raster. " 6452 6453#. Tag: para 6454#: reference_raster.xml:2805 6455#, no-c-format 6456msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordX" 6457msgstr "" 6458"Alterações: 2.1.0 Em versões anteriores, era chamado de ST_World2RasterCoordX" 6459 6460#. Tag: programlisting 6461#: reference_raster.xml:2811 6462#, no-c-format 6463msgid "" 6464"SELECT rid, ST_WorldToRasterCoordX(rast,3427927.8) As xcoord,\n" 6465" ST_WorldToRasterCoordX(rast,3427927.8,20.5) As xcoord_xwyw,\n" 6466" ST_WorldToRasterCoordX(rast,ST_GeomFromText('POINT(3427927.8 " 6467"20.5)',ST_SRID(rast))) As ptxcoord\n" 6468"FROM dummy_rast;\n" 6469"\n" 6470" rid | xcoord | xcoord_xwyw | ptxcoord\n" 6471"-----+---------+---------+----------\n" 6472" 1 | 1713964 | 1713964 | 1713964\n" 6473" 2 | 1 | 1 | 1" 6474msgstr "" 6475"SELECT rid, ST_WorldToRasterCoordX(rast,3427927.8) As xcoord,\n" 6476" ST_WorldToRasterCoordX(rast,3427927.8,20.5) As xcoord_xwyw,\n" 6477" ST_WorldToRasterCoordX(rast,ST_GeomFromText('POINT(3427927.8 " 6478"20.5)',ST_SRID(rast))) As ptxcoord\n" 6479"FROM dummy_rast;\n" 6480"\n" 6481" rid | xcoord | xcoord_xwyw | ptxcoord\n" 6482"-----+---------+---------+----------\n" 6483" 1 | 1713964 | 1713964 | 1713964\n" 6484" 2 | 1 | 1 | 1" 6485 6486#. Tag: para 6487#: reference_raster.xml:2817 reference_raster.xml:2872 6488#, no-c-format 6489msgid "" 6490", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=\"RT_ST_SRID" 6491"\"/>" 6492msgstr "" 6493", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=\"RT_ST_SRID" 6494"\"/>" 6495 6496#. Tag: refname 6497#: reference_raster.xml:2827 6498#, no-c-format 6499msgid "ST_WorldToRasterCoordY" 6500msgstr "ST_WorldToRasterCoordY" 6501 6502#. Tag: refpurpose 6503#: reference_raster.xml:2828 6504#, no-c-format 6505msgid "" 6506"Returns the row in the raster of the point geometry (pt) or a X and Y world " 6507"coordinate (xw, yw) represented in world spatial reference system of raster." 6508msgstr "" 6509"Retorna a linha no raster do ponto (pt) ou uma coordenada X e Y (xw, yw) " 6510"representada no sistema de referência espacial global de raster. " 6511 6512#. Tag: funcsynopsis 6513#: reference_raster.xml:2833 6514#, no-c-format 6515msgid "" 6516"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</" 6517"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6518"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 6519"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer " 6520"<function>ST_WorldToRasterCoordY</function></funcdef> <paramdef><type>raster " 6521"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6522"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> " 6523"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</" 6524"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6525"parameter></paramdef> <paramdef><type>double precision </type> " 6526"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </" 6527"type> <parameter>yw</parameter></paramdef> </funcprototype>" 6528msgstr "" 6529"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</" 6530"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6531"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 6532"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer " 6533"<function>ST_WorldToRasterCoordY</function></funcdef> <paramdef><type>raster " 6534"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 6535"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> " 6536"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</" 6537"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 6538"parameter></paramdef> <paramdef><type>double precision </type> " 6539"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </" 6540"type> <parameter>yw</parameter></paramdef> </funcprototype>" 6541 6542#. Tag: para 6543#: reference_raster.xml:2858 6544#, no-c-format 6545msgid "" 6546"Returns the row in the raster of the point geometry (pt) or a X and Y world " 6547"coordinate (xw, yw). A point, or (both xw and yw world coordinates are " 6548"required if a raster is skewed). If a raster is not skewed then xw is " 6549"sufficient. World coordinates are in the spatial reference coordinate system " 6550"of the raster." 6551msgstr "" 6552"Retorna a linha no raster do ponto (pt) ou uma coordenada X e Y (xw, yw). Um " 6553"ponto, ou (ambas as coordenadas xw e yw são requeridas se um raster estiver " 6554"desviado). Se um raster não estiver desviado, então xw é o suficiente. " 6555"Coordenadas globais estão no sistema de coordenadas de referência espacial " 6556"do raster. " 6557 6558#. Tag: para 6559#: reference_raster.xml:2860 6560#, no-c-format 6561msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordY" 6562msgstr "" 6563"Alterações: 2.1.0 Em versões anteriores, era chamado de ST_World2RasterCoordY" 6564 6565#. Tag: programlisting 6566#: reference_raster.xml:2866 6567#, no-c-format 6568msgid "" 6569"SELECT rid, ST_WorldToRasterCoordY(rast,20.5) As ycoord,\n" 6570" ST_WorldToRasterCoordY(rast,3427927.8,20.5) As ycoord_xwyw,\n" 6571" ST_WorldToRasterCoordY(rast,ST_GeomFromText('POINT(3427927.8 " 6572"20.5)',ST_SRID(rast))) As ptycoord\n" 6573"FROM dummy_rast;\n" 6574"\n" 6575" rid | ycoord | ycoord_xwyw | ptycoord\n" 6576"-----+-----------+-------------+-----------\n" 6577" 1 | 7 | 7 | 7\n" 6578" 2 | 115864471 | 115864471 | 115864471" 6579msgstr "" 6580"SELECT rid, ST_WorldToRasterCoordY(rast,20.5) As ycoord,\n" 6581" ST_WorldToRasterCoordY(rast,3427927.8,20.5) As ycoord_xwyw,\n" 6582" ST_WorldToRasterCoordY(rast,ST_GeomFromText('POINT(3427927.8 " 6583"20.5)',ST_SRID(rast))) As ptycoord\n" 6584"FROM dummy_rast;\n" 6585"\n" 6586" rid | ycoord | ycoord_xwyw | ptycoord\n" 6587"-----+-----------+-------------+-----------\n" 6588" 1 | 7 | 7 | 7\n" 6589" 2 | 115864471 | 115864471 | 115864471" 6590 6591#. Tag: title 6592#: reference_raster.xml:2879 6593#, no-c-format 6594msgid "Raster Band Accessors" 6595msgstr "Assessores de banda raster" 6596 6597#. Tag: refname 6598#: reference_raster.xml:2882 6599#, no-c-format 6600msgid "ST_BandMetaData" 6601msgstr "ST_BandMetaData" 6602 6603#. Tag: refpurpose 6604#: reference_raster.xml:2883 6605#, no-c-format 6606msgid "" 6607"Returns basic meta data for a specific raster band. band num 1 is assumed if " 6608"none-specified." 6609msgstr "" 6610"Retorna os metadados básicos para uma banda raster especificada. banda " 6611"número 1 é assumida se nenhuma for especificada. " 6612 6613#. Tag: funcsynopsis 6614#: reference_raster.xml:2887 6615#, no-c-format 6616msgid "" 6617"<funcprototype> <funcdef>(1) record <function>ST_BandMetaData</function></" 6618"funcdef> <paramdef><type>raster </type><parameter>rast</parameter></" 6619"paramdef> <paramdef choice=\"opt\"><type>integer </type><parameter>band=1</" 6620"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) record " 6621"<function>ST_BandMetaData</function></funcdef> <paramdef><type>raster </" 6622"type><parameter>rast</parameter></paramdef> <paramdef choice=\"opt" 6623"\"><type>integer[] </type><parameter>band</parameter></paramdef> </" 6624"funcprototype>" 6625msgstr "" 6626 6627#. Tag: para 6628#: reference_raster.xml:2904 6629#, no-c-format 6630msgid "" 6631"Returns basic meta data about a raster band. Columns returned: pixeltype, " 6632"nodatavalue, isoutdb, path, outdbbandnum, filesize, filetimestamp." 6633msgstr "" 6634 6635#. Tag: para 6636#: reference_raster.xml:2907 6637#, no-c-format 6638msgid "If raster contains no bands then an error is thrown." 6639msgstr "Se o raster não contém nenhuma banda, então surge um erro. " 6640 6641#. Tag: para 6642#: reference_raster.xml:2913 6643#, no-c-format 6644msgid "If band has no NODATA value, nodatavalue are NULL." 6645msgstr "" 6646 6647#. Tag: para 6648#: reference_raster.xml:2918 6649#, no-c-format 6650msgid "" 6651"If isoutdb is False, path, outdbbandnum, filesize and filetimestamp are " 6652"NULL. If outdb access is disabled, filesize and filetimestamp will also be " 6653"NULL." 6654msgstr "" 6655 6656#. Tag: para 6657#: reference_raster.xml:2923 6658#, no-c-format 6659msgid "" 6660"Enhanced: 2.5.0 to include <emphasis>outdbbandnum</emphasis>, " 6661"<emphasis>filesize</emphasis> and <emphasis>filetimestamp</emphasis> for " 6662"outdb rasters." 6663msgstr "" 6664 6665#. Tag: title 6666#: reference_raster.xml:2927 reference_raster.xml:3986 6667#: reference_raster.xml:6873 reference_raster.xml:7298 6668#: reference_raster.xml:8904 reference_raster.xml:9347 6669#: reference_raster.xml:9444 reference_raster.xml:9572 6670#, no-c-format 6671msgid "Examples: Variant 1" 6672msgstr "Exemplos: Variante 1" 6673 6674#. Tag: programlisting 6675#: reference_raster.xml:2929 6676#, no-c-format 6677msgid "" 6678"SELECT\n" 6679" rid,\n" 6680" (foo.md).*\n" 6681"FROM (\n" 6682" SELECT\n" 6683" rid,\n" 6684" ST_BandMetaData(rast, 1) AS md\n" 6685" FROM dummy_rast\n" 6686" WHERE rid=2\n" 6687") As foo;\n" 6688"\n" 6689" rid | pixeltype | nodatavalue | isoutdb | path | outdbbandnum\n" 6690"-----+-----------+---- --------+---------+------+--------------\n" 6691" 2 | 8BUI | 0 | f | |" 6692msgstr "" 6693 6694#. Tag: title 6695#: reference_raster.xml:2934 reference_raster.xml:3999 6696#: reference_raster.xml:6917 reference_raster.xml:8911 6697#: reference_raster.xml:9352 reference_raster.xml:9449 6698#: reference_raster.xml:9577 6699#, no-c-format 6700msgid "Examples: Variant 2" 6701msgstr "Exemplos: Variant 2" 6702 6703#. Tag: programlisting 6704#: reference_raster.xml:2936 6705#, no-c-format 6706msgid "" 6707"WITH foo AS (\n" 6708" SELECT\n" 6709" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/" 6710"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n" 6711")\n" 6712"SELECT\n" 6713" *\n" 6714"FROM ST_BandMetadata(\n" 6715" (SELECT rast FROM foo),\n" 6716" ARRAY[1,3,2]::int[]\n" 6717");\n" 6718"\n" 6719" bandnum | pixeltype | nodatavalue | isoutdb " 6720"| " 6721"path | outdbbandnum | filesize | " 6722"filetimestamp |\n" 6723"---------+-----------+-------------+---------" 6724"+--------------------------------------------------------------------------------" 6725"+---------------+----------+---------------+-\n" 6726" 1 | 8BUI | | t | /home/pele/devel/geo/postgis-" 6727"git/raster/test/regress/loader/Projected.tif | 1 | 12345 " 6728"| 1521807257 |\n" 6729" 3 | 8BUI | | t | /home/pele/devel/geo/postgis-" 6730"git/raster/test/regress/loader/Projected.tif | 3 | 12345 " 6731"| 1521807257 |\n" 6732" 2 | 8BUI | | t | /home/pele/devel/geo/postgis-" 6733"git/raster/test/regress/loader/Projected.tif | 2 | 12345 " 6734"| 1521807257 |" 6735msgstr "" 6736 6737#. Tag: para 6738#: reference_raster.xml:2943 6739#, no-c-format 6740msgid ", <xref linkend=\"RT_ST_BandPixelType\"/>" 6741msgstr ", <xref linkend=\"RT_ST_BandPixelType\"/>" 6742 6743#. Tag: refname 6744#: reference_raster.xml:2949 6745#, no-c-format 6746msgid "ST_BandNoDataValue" 6747msgstr "ST_BandNoDataValue" 6748 6749#. Tag: refpurpose 6750#: reference_raster.xml:2950 6751#, no-c-format 6752msgid "" 6753"Returns the value in a given band that represents no data. If no band num 1 " 6754"is assumed." 6755msgstr "" 6756"Retorna o valor em uma dada banda que não representa nenhum valor. Se " 6757"nenhuma banda número 1 for assumida. " 6758 6759#. Tag: funcprototype 6760#: reference_raster.xml:2955 6761#, no-c-format 6762msgid "" 6763"<funcdef>double precision <function>ST_BandNoDataValue</function></funcdef> " 6764"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 6765"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 6766"parameter></paramdef>" 6767msgstr "" 6768"<funcdef>double precision <function>ST_BandNoDataValue</function></funcdef> " 6769"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 6770"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 6771"parameter></paramdef>" 6772 6773#. Tag: para 6774#: reference_raster.xml:2966 6775#, no-c-format 6776msgid "Returns the value that represents no data for the band" 6777msgstr "Retorna o valor que não representa nenhum dado para a banda" 6778 6779#. Tag: programlisting 6780#: reference_raster.xml:2972 6781#, no-c-format 6782msgid "" 6783"SELECT ST_BandNoDataValue(rast,1) As bnval1,\n" 6784" ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As " 6785"bnval3\n" 6786"FROM dummy_rast\n" 6787"WHERE rid = 2;\n" 6788"\n" 6789" bnval1 | bnval2 | bnval3\n" 6790"--------+--------+--------\n" 6791" 0 | 0 | 0" 6792msgstr "" 6793"SELECT ST_BandNoDataValue(rast,1) As bnval1,\n" 6794" ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As " 6795"bnval3\n" 6796"FROM dummy_rast\n" 6797"WHERE rid = 2;\n" 6798"\n" 6799" bnval1 | bnval2 | bnval3\n" 6800"--------+--------+--------\n" 6801" 0 | 0 | 0" 6802 6803#. Tag: refname 6804#: reference_raster.xml:2985 6805#, no-c-format 6806msgid "ST_BandIsNoData" 6807msgstr "ST_BandIsNoData" 6808 6809#. Tag: refpurpose 6810#: reference_raster.xml:2986 6811#, no-c-format 6812msgid "Returns true if the band is filled with only nodata values." 6813msgstr "" 6814"Retorna verdadeiro se a banda estiver repleta somente de valores nodata." 6815 6816#. Tag: funcsynopsis 6817#: reference_raster.xml:2990 6818#, no-c-format 6819msgid "" 6820"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></" 6821"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6822"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 6823"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 6824"<parameter>forceChecking=true</parameter></paramdef> </funcprototype> " 6825"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></" 6826"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6827"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 6828"<parameter>forceChecking=true</parameter></paramdef> </funcprototype>" 6829msgstr "" 6830"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></" 6831"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6832"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 6833"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 6834"<parameter>forceChecking=true</parameter></paramdef> </funcprototype> " 6835"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></" 6836"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 6837"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 6838"<parameter>forceChecking=true</parameter></paramdef> </funcprototype>" 6839 6840#. Tag: para 6841#: reference_raster.xml:3007 6842#, no-c-format 6843msgid "" 6844"Returns true if the band is filled with only nodata values. Band 1 is " 6845"assumed if not specified. If the last argument is TRUE, the entire band is " 6846"checked pixel by pixel. Otherwise, the function simply returns the value of " 6847"the isnodata flag for the band. The default value for this parameter is " 6848"FALSE, if not specified." 6849msgstr "" 6850"Retorna verdadeiro se a banda estiver repleta apenas de valores nodata. " 6851"Banda 1 é assumida se não especificada. Se o último argumento for " 6852"VERDADEIRO, a banda toda é verificada pixel por pixel. Caso contrário, a " 6853"função simplesmente retorna o valor da bandeira isnodata para a banda. O " 6854"valor padrão para este parâmetro é FALSO, se não especificado." 6855 6856#. Tag: para 6857#: reference_raster.xml:3017 6858#, no-c-format 6859msgid "" 6860"If the flag is dirty (this is, the result is different using TRUE as last " 6861"parameter and not using it) you should update the raster to set this flag to " 6862"true, by using ST_SetBandIsNodata(), or ST_SetBandNodataValue() with TRUE as " 6863"last argument. See <xref linkend=\"RT_ST_SetBandIsNoData\"/>." 6864msgstr "" 6865"Se a bandeira for suja (ou seja, o resultado for diferente usando VERDADEIRO " 6866"como último parâmetro e não usando ele) você deveria atualizar o raster para " 6867"tornar esta bandeira verdadeira, usando a ST_SetBandIsNodata(), ou " 6868"ST_SetBandNodataValue() com VERDADEIRO como último argumento. Veja <xref " 6869"linkend=\"RT_ST_SetBandIsNoData\"/>." 6870 6871#. Tag: programlisting 6872#: reference_raster.xml:3027 6873#, no-c-format 6874msgid "" 6875"-- Create dummy table with one raster column\n" 6876"create table dummy_rast (rid integer, rast raster);\n" 6877"\n" 6878"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue " 6879"= pixel value = 3.\n" 6880"-- In the second band, nodatavalue = 13, pixel value = 4\n" 6881"insert into dummy_rast values(1,\n" 6882"(\n" 6883"'01' -- little endian (uint8 ndr)\n" 6884"||\n" 6885"'0000' -- version (uint16 0)\n" 6886"||\n" 6887"'0200' -- nBands (uint16 0)\n" 6888"||\n" 6889"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n" 6890"||\n" 6891"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n" 6892"||\n" 6893"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n" 6894"||\n" 6895"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n" 6896"||\n" 6897"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n" 6898"||\n" 6899"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n" 6900"||\n" 6901"'E6100000' -- SRID (int32 4326)\n" 6902"||\n" 6903"'0100' -- width (uint16 1)\n" 6904"||\n" 6905"'0100' -- height (uint16 1)\n" 6906"||\n" 6907"'6' -- hasnodatavalue and isnodata value set to true.\n" 6908"||\n" 6909"'2' -- first band type (4BUI)\n" 6910"||\n" 6911"'03' -- novalue==3\n" 6912"||\n" 6913"'03' -- pixel(0,0)==3 (same that nodata)\n" 6914"||\n" 6915"'0' -- hasnodatavalue set to false\n" 6916"||\n" 6917"'5' -- second band type (16BSI)\n" 6918"||\n" 6919"'0D00' -- novalue==13\n" 6920"||\n" 6921"'0400' -- pixel(0,0)==4\n" 6922")::raster\n" 6923");\n" 6924"\n" 6925"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 6926"true\n" 6927"select st_bandisnodata(rast, 2) from dummy_rast where rid = 1; -- Expected " 6928"false" 6929msgstr "" 6930"-- Create dummy table with one raster column\n" 6931"create table dummy_rast (rid integer, rast raster);\n" 6932"\n" 6933"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue " 6934"= pixel value = 3.\n" 6935"-- In the second band, nodatavalue = 13, pixel value = 4\n" 6936"insert into dummy_rast values(1,\n" 6937"(\n" 6938"'01' -- little endian (uint8 ndr)\n" 6939"||\n" 6940"'0000' -- version (uint16 0)\n" 6941"||\n" 6942"'0200' -- nBands (uint16 0)\n" 6943"||\n" 6944"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n" 6945"||\n" 6946"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n" 6947"||\n" 6948"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n" 6949"||\n" 6950"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n" 6951"||\n" 6952"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n" 6953"||\n" 6954"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n" 6955"||\n" 6956"'E6100000' -- SRID (int32 4326)\n" 6957"||\n" 6958"'0100' -- width (uint16 1)\n" 6959"||\n" 6960"'0100' -- height (uint16 1)\n" 6961"||\n" 6962"'6' -- hasnodatavalue and isnodata value set to true.\n" 6963"||\n" 6964"'2' -- first band type (4BUI)\n" 6965"||\n" 6966"'03' -- novalue==3\n" 6967"||\n" 6968"'03' -- pixel(0,0)==3 (same that nodata)\n" 6969"||\n" 6970"'0' -- hasnodatavalue set to false\n" 6971"||\n" 6972"'5' -- second band type (16BSI)\n" 6973"||\n" 6974"'0D00' -- novalue==13\n" 6975"||\n" 6976"'0400' -- pixel(0,0)==4\n" 6977")::raster\n" 6978");\n" 6979"\n" 6980"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 6981"true\n" 6982"select st_bandisnodata(rast, 2) from dummy_rast where rid = 1; -- Expected " 6983"false" 6984 6985#. Tag: para 6986#: reference_raster.xml:3033 6987#, no-c-format 6988msgid "" 6989", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=" 6990"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_SetBandIsNoData\"/>" 6991msgstr "" 6992", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=" 6993"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_SetBandIsNoData\"/>" 6994 6995#. Tag: refname 6996#: reference_raster.xml:3042 6997#, no-c-format 6998msgid "ST_BandPath" 6999msgstr "ST_BandPath" 7000 7001#. Tag: refpurpose 7002#: reference_raster.xml:3043 7003#, no-c-format 7004msgid "" 7005"Returns system file path to a band stored in file system. If no bandnum " 7006"specified, 1 is assumed." 7007msgstr "" 7008"Retorna o caminho do arquivo do sistema para uma banda armazenada em um " 7009"sistema de arquivos. Se nenhum número de banda for especificado, usa-se 1. " 7010 7011#. Tag: funcprototype 7012#: reference_raster.xml:3048 7013#, no-c-format 7014msgid "" 7015"<funcdef>text <function>ST_BandPath</function></funcdef> " 7016"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7017"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7018"parameter></paramdef>" 7019msgstr "" 7020"<funcdef>text <function>ST_BandPath</function></funcdef> " 7021"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7022"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7023"parameter></paramdef>" 7024 7025#. Tag: para 7026#: reference_raster.xml:3059 7027#, no-c-format 7028msgid "" 7029"Returns system file path to a band. Throws an error if called with an in db " 7030"band." 7031msgstr "" 7032"Retorna o caminho do arquivo do sistema para uma banda. Surge um erro se for " 7033"chamado com uma banda no banco de dados. " 7034 7035#. Tag: programlisting 7036#: reference_raster.xml:3065 7037#, no-c-format 7038msgid "<!-- TODO: -->" 7039msgstr "<!-- TODO: -->" 7040 7041#. Tag: refname 7042#: reference_raster.xml:3077 7043#, no-c-format 7044msgid "ST_BandFileSize" 7045msgstr "" 7046 7047#. Tag: refpurpose 7048#: reference_raster.xml:3078 7049#, no-c-format 7050msgid "" 7051"Returns the file size of a band stored in file system. If no bandnum " 7052"specified, 1 is assumed." 7053msgstr "" 7054 7055#. Tag: funcprototype 7056#: reference_raster.xml:3083 7057#, no-c-format 7058msgid "" 7059"<funcdef>bigint <function>ST_BandFileSize</function></funcdef> " 7060"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7061"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7062"parameter></paramdef>" 7063msgstr "" 7064 7065#. Tag: para 7066#: reference_raster.xml:3094 7067#, no-c-format 7068msgid "" 7069"Returns the file size of a band stored in file system. Throws an error if " 7070"called with an in db band, or if outdb access is not enabled." 7071msgstr "" 7072 7073#. Tag: para 7074#: reference_raster.xml:3096 7075#, no-c-format 7076msgid "" 7077"This function is typically used in conjunction with ST_BandPath() and " 7078"ST_BandFileTimestamp() so a client can determine if the filename of a outdb " 7079"raster as seen by it is the same as the one seen by the server." 7080msgstr "" 7081 7082#. Tag: para 7083#: reference_raster.xml:3098 reference_raster.xml:3134 7084#: reference_raster.xml:5093 reference_raster.xml:5146 7085#: reference_raster.xml:5843 reference_raster.xml:5886 7086#: reference_raster.xml:5999 reference_raster.xml:6868 7087#, no-c-format 7088msgid "Availability: 2.5.0" 7089msgstr "" 7090 7091#. Tag: programlisting 7092#: reference_raster.xml:3105 7093#, no-c-format 7094msgid "" 7095"SELECT ST_BandFileSize(rast,1) FROM dummy_rast WHERE rid = 1;\n" 7096"\n" 7097" st_bandfilesize\n" 7098"-----------------\n" 7099" 240574" 7100msgstr "" 7101 7102#. Tag: refname 7103#: reference_raster.xml:3113 7104#, no-c-format 7105msgid "ST_BandFileTimestamp" 7106msgstr "" 7107 7108#. Tag: refpurpose 7109#: reference_raster.xml:3114 7110#, no-c-format 7111msgid "" 7112"Returns the file timestamp of a band stored in file system. If no bandnum " 7113"specified, 1 is assumed." 7114msgstr "" 7115 7116#. Tag: funcprototype 7117#: reference_raster.xml:3119 7118#, no-c-format 7119msgid "" 7120"<funcdef>bigint <function>ST_BandFileTimestamp</function></funcdef> " 7121"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7122"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7123"parameter></paramdef>" 7124msgstr "" 7125 7126#. Tag: para 7127#: reference_raster.xml:3130 7128#, no-c-format 7129msgid "" 7130"Returns the file timestamp (number of seconds since Jan 1st 1970 00:00:00 " 7131"UTC) of a band stored in file system. Throws an error if called with an in " 7132"db band, or if outdb access is not enabled." 7133msgstr "" 7134 7135#. Tag: para 7136#: reference_raster.xml:3132 7137#, no-c-format 7138msgid "" 7139"This function is typically used in conjunction with ST_BandPath() and " 7140"ST_BandFileSize() so a client can determine if the filename of a outdb " 7141"raster as seen by it is the same as the one seen by the server." 7142msgstr "" 7143 7144#. Tag: programlisting 7145#: reference_raster.xml:3140 7146#, no-c-format 7147msgid "" 7148"SELECT ST_BandFileTimestamp(rast,1) FROM dummy_rast WHERE rid = 1;\n" 7149"\n" 7150" st_bandfiletimestamp\n" 7151"----------------------\n" 7152" 1521807257" 7153msgstr "" 7154 7155#. Tag: refname 7156#: reference_raster.xml:3147 7157#, no-c-format 7158msgid "ST_BandPixelType" 7159msgstr "ST_BandPixelType" 7160 7161#. Tag: refpurpose 7162#: reference_raster.xml:3148 7163#, no-c-format 7164msgid "" 7165"Returns the type of pixel for given band. If no bandnum specified, 1 is " 7166"assumed." 7167msgstr "" 7168"Retorna o tipo pixel para uma dada banda. Se nenhum número de banda for " 7169"especificado, usa-se 1. " 7170 7171#. Tag: funcprototype 7172#: reference_raster.xml:3153 7173#, no-c-format 7174msgid "" 7175"<funcdef>text <function>ST_BandPixelType</function></funcdef> " 7176"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7177"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7178"parameter></paramdef>" 7179msgstr "" 7180"<funcdef>text <function>ST_BandPixelType</function></funcdef> " 7181"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7182"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</" 7183"parameter></paramdef>" 7184 7185#. Tag: para 7186#: reference_raster.xml:3164 7187#, no-c-format 7188msgid "" 7189"Returns name describing data type and size of values stored in each cell of " 7190"given band." 7191msgstr "" 7192 7193#. Tag: para 7194#: reference_raster.xml:3165 7195#, no-c-format 7196msgid "There are 11 pixel types. Pixel Types supported are as follows:" 7197msgstr "Existem 11 tipos de pixel. Os tipos suportados são os seguintes:" 7198 7199#. Tag: para 7200#: reference_raster.xml:3168 7201#, no-c-format 7202msgid "1BB - 1-bit boolean" 7203msgstr "1BB - 1-bit boolean" 7204 7205#. Tag: para 7206#: reference_raster.xml:3172 7207#, no-c-format 7208msgid "2BUI - 2-bit unsigned integer" 7209msgstr "2BUI - 2-bit inteiro não assinado" 7210 7211#. Tag: para 7212#: reference_raster.xml:3176 7213#, no-c-format 7214msgid "4BUI - 4-bit unsigned integer" 7215msgstr "4BUI - 4-bit inteiro não assinado" 7216 7217#. Tag: para 7218#: reference_raster.xml:3180 7219#, no-c-format 7220msgid "8BSI - 8-bit signed integer" 7221msgstr "8BSI - 8-bit inteiro assinado" 7222 7223#. Tag: para 7224#: reference_raster.xml:3183 7225#, no-c-format 7226msgid "8BUI - 8-bit unsigned integer" 7227msgstr "8BUI - 8-bit inteiro não assinado" 7228 7229#. Tag: para 7230#: reference_raster.xml:3186 7231#, no-c-format 7232msgid "16BSI - 16-bit signed integer" 7233msgstr "16BSI - 16-bit inteiro assinado" 7234 7235#. Tag: para 7236#: reference_raster.xml:3189 7237#, no-c-format 7238msgid "16BUI - 16-bit unsigned integer" 7239msgstr "16BUI - 16-bit inteiro não assinado " 7240 7241#. Tag: para 7242#: reference_raster.xml:3192 7243#, no-c-format 7244msgid "32BSI - 32-bit signed integer" 7245msgstr "32BSI - 32-bit inteiro assinado" 7246 7247#. Tag: para 7248#: reference_raster.xml:3195 7249#, no-c-format 7250msgid "32BUI - 32-bit unsigned integer" 7251msgstr "32BUI - 32-bit inteiro não assinado" 7252 7253#. Tag: para 7254#: reference_raster.xml:3198 7255#, no-c-format 7256msgid "32BF - 32-bit float" 7257msgstr "32BF - 32-bit float" 7258 7259#. Tag: para 7260#: reference_raster.xml:3201 7261#, no-c-format 7262msgid "64BF - 64-bit float" 7263msgstr "64BF - 64-bit float" 7264 7265#. Tag: programlisting 7266#: reference_raster.xml:3210 7267#, no-c-format 7268msgid "" 7269"SELECT ST_BandPixelType(rast,1) As btype1,\n" 7270" ST_BandPixelType(rast,2) As btype2, ST_BandPixelType(rast,3) As btype3\n" 7271"FROM dummy_rast\n" 7272"WHERE rid = 2;\n" 7273"\n" 7274" btype1 | btype2 | btype3\n" 7275"--------+--------+--------\n" 7276" 8BUI | 8BUI | 8BUI" 7277msgstr "" 7278"SELECT ST_BandPixelType(rast,1) As btype1,\n" 7279" ST_BandPixelType(rast,2) As btype2, ST_BandPixelType(rast,3) As btype3\n" 7280"FROM dummy_rast\n" 7281"WHERE rid = 2;\n" 7282"\n" 7283" btype1 | btype2 | btype3\n" 7284"--------+--------+--------\n" 7285" 8BUI | 8BUI | 8BUI" 7286 7287#. Tag: refname 7288#: reference_raster.xml:3222 7289#, no-c-format 7290msgid "ST_HasNoBand" 7291msgstr "ST_HasNoBand" 7292 7293#. Tag: refpurpose 7294#: reference_raster.xml:3223 7295#, no-c-format 7296msgid "" 7297"<refpurpose>Returns true if there is no band with given band number. If no " 7298"band number is specified, then band number 1 is assumed.</refpurpose>" 7299msgstr "" 7300"<refpurpose>Retorna verdade se não existirem bandas com números dados. Se " 7301"nenhum número de banda for especificado, então assume-se a banda 1.</" 7302"refpurpose>" 7303 7304#. Tag: funcprototype 7305#: reference_raster.xml:3228 7306#, no-c-format 7307msgid "" 7308"<funcdef>boolean <function>ST_HasNoBand</function></funcdef> " 7309"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7310"<paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>" 7311msgstr "" 7312"<funcdef>boolean <function>ST_HasNoBand</function></funcdef> " 7313"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7314"<paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>" 7315 7316#. Tag: para 7317#: reference_raster.xml:3239 7318#, no-c-format 7319msgid "" 7320"<para>Returns true if there is no band with given band number. If no band " 7321"number is specified, then band number 1 is assumed.</para>" 7322msgstr "" 7323"<para>Retorna verdade se não existirem bandas com números dados. Se nenhum " 7324"número de banda for especificado, então assume-se a banda 1.</para>" 7325 7326#. Tag: programlisting 7327#: reference_raster.xml:3247 7328#, no-c-format 7329msgid "" 7330"SELECT rid, ST_HasNoBand(rast) As hb1, ST_HasNoBand(rast,2) as hb2,\n" 7331"ST_HasNoBand(rast,4) as hb4, ST_NumBands(rast) As numbands\n" 7332"FROM dummy_rast;\n" 7333"\n" 7334"rid | hb1 | hb2 | hb4 | numbands\n" 7335"-----+-----+-----+-----+----------\n" 7336"1 | t | t | t | 0\n" 7337"2 | f | f | t | 3" 7338msgstr "" 7339"SELECT rid, ST_HasNoBand(rast) As hb1, ST_HasNoBand(rast,2) as hb2,\n" 7340"ST_HasNoBand(rast,4) as hb4, ST_NumBands(rast) As numbands\n" 7341"FROM dummy_rast;\n" 7342"\n" 7343"rid | hb1 | hb2 | hb4 | numbands\n" 7344"-----+-----+-----+-----+----------\n" 7345"1 | t | t | t | 0\n" 7346"2 | f | f | t | 3" 7347 7348#. Tag: title 7349#: reference_raster.xml:3260 7350#, no-c-format 7351msgid "Raster Pixel Accessors and Setters" 7352msgstr "Assessores e Setters de Pixel Raster" 7353 7354#. Tag: refname 7355#: reference_raster.xml:3264 7356#, no-c-format 7357msgid "ST_PixelAsPolygon" 7358msgstr "ST_PixelAsPolygon" 7359 7360#. Tag: refpurpose 7361#: reference_raster.xml:3265 7362#, no-c-format 7363msgid "" 7364"<refpurpose>Returns the polygon geometry that bounds the pixel for a " 7365"particular row and column.</refpurpose>" 7366msgstr "" 7367"<refpurpose>Retorna o polígono que limita o pixel para uma linha e coluna " 7368"específicas.</refpurpose>" 7369 7370#. Tag: funcprototype 7371#: reference_raster.xml:3270 7372#, no-c-format 7373msgid "" 7374"<funcdef>geometry <function>ST_PixelAsPolygon</function></funcdef> " 7375"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7376"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 7377"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>" 7378msgstr "" 7379"<funcdef>geometry <function>ST_PixelAsPolygon</function></funcdef> " 7380"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7381"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 7382"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>" 7383 7384#. Tag: para 7385#: reference_raster.xml:3282 7386#, no-c-format 7387msgid "" 7388"<para>Returns the polygon geometry that bounds the pixel for a particular " 7389"row and column.</para>" 7390msgstr "" 7391"<para>Retorna o polígono que limita o pixel para uma linha e coluna " 7392"específicas.</para>" 7393 7394#. Tag: programlisting 7395#: reference_raster.xml:3290 7396#, no-c-format 7397msgid "" 7398"-- get raster pixel polygon\n" 7399"SELECT i,j, ST_AsText(ST_PixelAsPolygon(foo.rast, i,j)) As b1pgeom\n" 7400"FROM dummy_rast As foo\n" 7401" CROSS JOIN generate_series(1,2) As i\n" 7402" CROSS JOIN generate_series(1,1) As j\n" 7403"WHERE rid=2;\n" 7404"\n" 7405" i | j | b1pgeom\n" 7406"---+---" 7407"+-----------------------------------------------------------------------------\n" 7408" 1 | 1 | POLYGON((3427927.75 5793244,3427927.8 5793244,3427927.8 " 7409"5793243.95,...\n" 7410" 2 | 1 | POLYGON((3427927.8 5793244,3427927.85 5793244,3427927.85 " 7411"5793243.95, .." 7412msgstr "" 7413"-- get raster pixel polygon\n" 7414"SELECT i,j, ST_AsText(ST_PixelAsPolygon(foo.rast, i,j)) As b1pgeom\n" 7415"FROM dummy_rast As foo\n" 7416" CROSS JOIN generate_series(1,2) As i\n" 7417" CROSS JOIN generate_series(1,1) As j\n" 7418"WHERE rid=2;\n" 7419"\n" 7420" i | j | b1pgeom\n" 7421"---+---" 7422"+-----------------------------------------------------------------------------\n" 7423" 1 | 1 | POLYGON((3427927.75 5793244,3427927.8 5793244,3427927.8 " 7424"5793243.95,...\n" 7425" 2 | 1 | POLYGON((3427927.8 5793244,3427927.85 5793244,3427927.85 " 7426"5793243.95, .." 7427 7428#. Tag: para 7429#: reference_raster.xml:3295 7430#, no-c-format 7431msgid "" 7432", <xref linkend=\"RT_ST_PixelAsPolygons\"/>, <xref linkend=" 7433"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7434"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7435"\"/>, <xref linkend=\"RT_ST_Intersection\"/>, <xref linkend=\"ST_AsText\"/>" 7436msgstr "" 7437", <xref linkend=\"RT_ST_PixelAsPolygons\"/>, <xref linkend=" 7438"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7439"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7440"\"/>, <xref linkend=\"RT_ST_Intersection\"/>, <xref linkend=\"ST_AsText\"/>" 7441 7442#. Tag: refname 7443#: reference_raster.xml:3310 7444#, no-c-format 7445msgid "ST_PixelAsPolygons" 7446msgstr "ST_PixelAsPolygons" 7447 7448#. Tag: refpurpose 7449#: reference_raster.xml:3311 7450#, no-c-format 7451msgid "" 7452"Returns the polygon geometry that bounds every pixel of a raster band along " 7453"with the value, the X and the Y raster coordinates of each pixel." 7454msgstr "" 7455"Retorna o polígono que limita cada pixel de uma banda raster ao longo do " 7456"valor, as coordenadas raster X e Y de cada pixel." 7457 7458#. Tag: funcprototype 7459#: reference_raster.xml:3316 7460#, no-c-format 7461msgid "" 7462"<funcdef>setof record <function>ST_PixelAsPolygons</function></funcdef> " 7463"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7464"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 7465"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7466"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 7467msgstr "" 7468"<funcdef>setof record <function>ST_PixelAsPolygons</function></funcdef> " 7469"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7470"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 7471"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7472"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 7473 7474#. Tag: para 7475#: reference_raster.xml:3328 7476#, no-c-format 7477msgid "" 7478"Returns the polygon geometry that bounds every pixel of a raster band along " 7479"with the value (double precision), the X and the Y raster coordinates " 7480"(integers) of each pixel." 7481msgstr "" 7482"Retorna o polígono que limita cada pixel de uma banda raster ao longo do " 7483"valor (precisão dobrada), as coordenadas (inteiras) raster X e Y de cada " 7484"pixel." 7485 7486#. Tag: para 7487#: reference_raster.xml:3330 reference_raster.xml:3436 7488#: reference_raster.xml:3533 7489#, no-c-format 7490msgid "" 7491"Return record format: <parameter>geom</parameter> <xref linkend=\"geometry\"/" 7492">, <parameter>val</parameter> double precision, <parameter>x</parameter> " 7493"integer, <parameter>y</parameter> integers." 7494msgstr "" 7495 7496#. Tag: para 7497#: reference_raster.xml:3334 reference_raster.xml:3440 7498#: reference_raster.xml:3537 7499#, no-c-format 7500msgid "" 7501"When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels " 7502"whose values are not NODATA are returned as points." 7503msgstr "" 7504 7505#. Tag: para 7506#: reference_raster.xml:3340 7507#, no-c-format 7508msgid "" 7509"ST_PixelAsPolygons returns one polygon geometry for every pixel. This is " 7510"different than ST_DumpAsPolygons where each geometry represents one or more " 7511"pixels with the same pixel value." 7512msgstr "" 7513"ST_PixelAsPolygons retorna um polígono para cada pixel. Isto é diferente da " 7514"ST_DumpAsPolygons, onde cada geometria representa um ou mais pixeis com o " 7515"mesmo valor. " 7516 7517#. Tag: para 7518#: reference_raster.xml:3346 7519#, no-c-format 7520msgid "Enhanced: 2.1.0 exclude_nodata_value optional argument was added." 7521msgstr "" 7522"Melhorias: 2.1.0 o argumento opcional exclude_nodata_value foi adicionado." 7523 7524#. Tag: para 7525#: reference_raster.xml:3347 reference_raster.xml:3445 7526#: reference_raster.xml:3543 7527#, no-c-format 7528msgid "Changed: 2.1.1 Changed behavior of exclude_nodata_value." 7529msgstr "Alterações: 2.1.1 Mudança no comportamento do exclude_nodata_value." 7530 7531#. Tag: programlisting 7532#: reference_raster.xml:3352 7533#, no-c-format 7534msgid "" 7535"-- get raster pixel polygon\n" 7536"SELECT (gv).x, (gv).y, (gv).val, ST_AsText((gv).geom) geom\n" 7537"FROM (SELECT ST_PixelAsPolygons(\n" 7538" ST_SetValue(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, " 7539"0, 0, 0.001, -0.001, 0.001, 0.001, 4269),\n" 7540" '8BUI'::text, 1, 0),\n" 7541" 2, 2, 10),\n" 7542" 1, 1, NULL)\n" 7543") gv\n" 7544") foo;\n" 7545"\n" 7546" x | y | val | geom\n" 7547"---+---" 7548"+-----------------------------------------------------------------------------\n" 7549" 1 | 1 | | POLYGON((0 0,0.001 0.001,0.002 0,0.001 -0.001,0 0))\n" 7550" 1 | 2 | 1 | POLYGON((0.001 -0.001,0.002 0,0.003 -0.001,0.002 -0.002,0.001 " 7551"-0.001))\n" 7552" 2 | 1 | 1 | POLYGON((0.001 0.001,0.002 0.002,0.003 0.001,0.002 0,0.001 " 7553"0.001))\n" 7554" 2 | 2 | 10 | POLYGON((0.002 0,0.003 0.001,0.004 0,0.003 -0.001,0.002 0))" 7555msgstr "" 7556"-- get raster pixel polygon\n" 7557"SELECT (gv).x, (gv).y, (gv).val, ST_AsText((gv).geom) geom\n" 7558"FROM (SELECT ST_PixelAsPolygons(\n" 7559" ST_SetValue(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, " 7560"0, 0, 0.001, -0.001, 0.001, 0.001, 4269),\n" 7561" '8BUI'::text, 1, 0),\n" 7562" 2, 2, 10),\n" 7563" 1, 1, NULL)\n" 7564") gv\n" 7565") foo;\n" 7566"\n" 7567" x | y | val | geom\n" 7568"---+---" 7569"+-----------------------------------------------------------------------------\n" 7570" 1 | 1 | | POLYGON((0 0,0.001 0.001,0.002 0,0.001 -0.001,0 0))\n" 7571" 1 | 2 | 1 | POLYGON((0.001 -0.001,0.002 0,0.003 -0.001,0.002 -0.002,0.001 " 7572"-0.001))\n" 7573" 2 | 1 | 1 | POLYGON((0.001 0.001,0.002 0.002,0.003 0.001,0.002 0,0.001 " 7574"0.001))\n" 7575" 2 | 2 | 10 | POLYGON((0.002 0,0.003 0.001,0.004 0,0.003 -0.001,0.002 0))" 7576 7577#. Tag: para 7578#: reference_raster.xml:3357 7579#, no-c-format 7580msgid "" 7581", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7582"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7583"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7584"\"/>, <xref linkend=\"ST_AsText\"/>" 7585msgstr "" 7586", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7587"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7588"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7589"\"/>, <xref linkend=\"ST_AsText\"/>" 7590 7591#. Tag: refname 7592#: reference_raster.xml:3371 7593#, no-c-format 7594msgid "ST_PixelAsPoint" 7595msgstr "ST_PixelAsPoint" 7596 7597#. Tag: refpurpose 7598#: reference_raster.xml:3372 7599#, no-c-format 7600msgid "" 7601"<refpurpose>Returns a point geometry of the pixel's upper-left corner.</" 7602"refpurpose>" 7603msgstr "" 7604"<refpurpose>Retorna um ponto geométrico do canto superior esquerdo do pixel." 7605"</refpurpose>" 7606 7607#. Tag: funcprototype 7608#: reference_raster.xml:3378 7609#, no-c-format 7610msgid "" 7611"<funcdef>geometry <function>ST_PixelAsPoint</function></funcdef> " 7612"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7613"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 7614"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>" 7615msgstr "" 7616"<funcdef>geometry <function>ST_PixelAsPoint</function></funcdef> " 7617"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7618"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 7619"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>" 7620 7621#. Tag: para 7622#: reference_raster.xml:3389 7623#, no-c-format 7624msgid "<para>Returns a point geometry of the pixel's upper-left corner.</para>" 7625msgstr "" 7626"<para>Retorna um ponto geométrico do canto superior esquerdo do pixel.</para>" 7627 7628#. Tag: programlisting 7629#: reference_raster.xml:3395 7630#, no-c-format 7631msgid "" 7632"SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = " 7633"1;\n" 7634"\n" 7635" st_astext\n" 7636"----------------\n" 7637" POINT(0.5 0.5)" 7638msgstr "" 7639"SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = " 7640"1;\n" 7641"\n" 7642" st_astext\n" 7643"----------------\n" 7644" POINT(0.5 0.5)" 7645 7646#. Tag: para 7647#: reference_raster.xml:3400 7648#, no-c-format 7649msgid "" 7650", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7651"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7652"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7653"\"/>" 7654msgstr "" 7655", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7656"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref " 7657"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7658"\"/>" 7659 7660#. Tag: refname 7661#: reference_raster.xml:3414 7662#, no-c-format 7663msgid "ST_PixelAsPoints" 7664msgstr "ST_PixelAsPoints" 7665 7666#. Tag: refpurpose 7667#: reference_raster.xml:3415 7668#, no-c-format 7669msgid "" 7670"<refpurpose>Returns a point geometry for each pixel of a raster band along " 7671"with the value, the X and the Y raster coordinates of each pixel. The " 7672"coordinates of the point geometry are of the pixel's upper-left corner.</" 7673"refpurpose>" 7674msgstr "" 7675"<refpurpose>Retorna um ponto geométrico para cada pixel de uma banda raster " 7676"junto com o valor, as coordenas raster X e Y de cada pixel. As coordenadas " 7677"do ponto são do ponto esquerdo superior do pixel.</refpurpose>" 7678 7679#. Tag: funcprototype 7680#: reference_raster.xml:3421 7681#, no-c-format 7682msgid "" 7683"<funcdef>setof record <function>ST_PixelAsPoints</function></funcdef> " 7684"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7685"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 7686"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7687"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 7688msgstr "" 7689 7690#. Tag: para 7691#: reference_raster.xml:3432 7692#, no-c-format 7693msgid "" 7694"<para>Returns a point geometry for each pixel of a raster band along with " 7695"the value, the X and the Y raster coordinates of each pixel. The coordinates " 7696"of the point geometry are of the pixel's upper-left corner.</para>" 7697msgstr "" 7698"<para>Retorna um ponto geométrico para cada pixel de uma banda raster junto " 7699"com o valor, as coordenas raster X e Y de cada pixel. As coordenadas do " 7700"ponto são do ponto esquerdo superior do pixel.</para>" 7701 7702#. Tag: programlisting 7703#: reference_raster.xml:3450 7704#, no-c-format 7705msgid "" 7706"SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsPoints(rast, 1)).* " 7707"FROM dummy_rast WHERE rid = 2) foo;\n" 7708"\n" 7709" x | y | val | st_astext\n" 7710"---+---+-----+------------------------------\n" 7711" 1 | 1 | 253 | POINT(3427927.75 5793244)\n" 7712" 2 | 1 | 254 | POINT(3427927.8 5793244)\n" 7713" 3 | 1 | 253 | POINT(3427927.85 5793244)\n" 7714" 4 | 1 | 254 | POINT(3427927.9 5793244)\n" 7715" 5 | 1 | 254 | POINT(3427927.95 5793244)\n" 7716" 1 | 2 | 253 | POINT(3427927.75 5793243.95)\n" 7717" 2 | 2 | 254 | POINT(3427927.8 5793243.95)\n" 7718" 3 | 2 | 254 | POINT(3427927.85 5793243.95)\n" 7719" 4 | 2 | 253 | POINT(3427927.9 5793243.95)\n" 7720" 5 | 2 | 249 | POINT(3427927.95 5793243.95)\n" 7721" 1 | 3 | 250 | POINT(3427927.75 5793243.9)\n" 7722" 2 | 3 | 254 | POINT(3427927.8 5793243.9)\n" 7723" 3 | 3 | 254 | POINT(3427927.85 5793243.9)\n" 7724" 4 | 3 | 252 | POINT(3427927.9 5793243.9)\n" 7725" 5 | 3 | 249 | POINT(3427927.95 5793243.9)\n" 7726" 1 | 4 | 251 | POINT(3427927.75 5793243.85)\n" 7727" 2 | 4 | 253 | POINT(3427927.8 5793243.85)\n" 7728" 3 | 4 | 254 | POINT(3427927.85 5793243.85)\n" 7729" 4 | 4 | 254 | POINT(3427927.9 5793243.85)\n" 7730" 5 | 4 | 253 | POINT(3427927.95 5793243.85)\n" 7731" 1 | 5 | 252 | POINT(3427927.75 5793243.8)\n" 7732" 2 | 5 | 250 | POINT(3427927.8 5793243.8)\n" 7733" 3 | 5 | 254 | POINT(3427927.85 5793243.8)\n" 7734" 4 | 5 | 254 | POINT(3427927.9 5793243.8)\n" 7735" 5 | 5 | 254 | POINT(3427927.95 5793243.8)" 7736msgstr "" 7737"SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsPoints(rast, 1)).* " 7738"FROM dummy_rast WHERE rid = 2) foo;\n" 7739"\n" 7740" x | y | val | st_astext\n" 7741"---+---+-----+------------------------------\n" 7742" 1 | 1 | 253 | POINT(3427927.75 5793244)\n" 7743" 2 | 1 | 254 | POINT(3427927.8 5793244)\n" 7744" 3 | 1 | 253 | POINT(3427927.85 5793244)\n" 7745" 4 | 1 | 254 | POINT(3427927.9 5793244)\n" 7746" 5 | 1 | 254 | POINT(3427927.95 5793244)\n" 7747" 1 | 2 | 253 | POINT(3427927.75 5793243.95)\n" 7748" 2 | 2 | 254 | POINT(3427927.8 5793243.95)\n" 7749" 3 | 2 | 254 | POINT(3427927.85 5793243.95)\n" 7750" 4 | 2 | 253 | POINT(3427927.9 5793243.95)\n" 7751" 5 | 2 | 249 | POINT(3427927.95 5793243.95)\n" 7752" 1 | 3 | 250 | POINT(3427927.75 5793243.9)\n" 7753" 2 | 3 | 254 | POINT(3427927.8 5793243.9)\n" 7754" 3 | 3 | 254 | POINT(3427927.85 5793243.9)\n" 7755" 4 | 3 | 252 | POINT(3427927.9 5793243.9)\n" 7756" 5 | 3 | 249 | POINT(3427927.95 5793243.9)\n" 7757" 1 | 4 | 251 | POINT(3427927.75 5793243.85)\n" 7758" 2 | 4 | 253 | POINT(3427927.8 5793243.85)\n" 7759" 3 | 4 | 254 | POINT(3427927.85 5793243.85)\n" 7760" 4 | 4 | 254 | POINT(3427927.9 5793243.85)\n" 7761" 5 | 4 | 253 | POINT(3427927.95 5793243.85)\n" 7762" 1 | 5 | 252 | POINT(3427927.75 5793243.8)\n" 7763" 2 | 5 | 250 | POINT(3427927.8 5793243.8)\n" 7764" 3 | 5 | 254 | POINT(3427927.85 5793243.8)\n" 7765" 4 | 5 | 254 | POINT(3427927.9 5793243.8)\n" 7766" 5 | 5 | 254 | POINT(3427927.95 5793243.8)" 7767 7768#. Tag: para 7769#: reference_raster.xml:3455 7770#, no-c-format 7771msgid "" 7772", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7773"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7774"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7775"\"/>" 7776msgstr "" 7777", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7778"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7779"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids" 7780"\"/>" 7781 7782#. Tag: refname 7783#: reference_raster.xml:3469 7784#, no-c-format 7785msgid "ST_PixelAsCentroid" 7786msgstr "ST_PixelAsCentroid" 7787 7788#. Tag: refpurpose 7789#: reference_raster.xml:3470 7790#, no-c-format 7791msgid "" 7792"<refpurpose>Returns the centroid (point geometry) of the area represented by " 7793"a pixel.</refpurpose>" 7794msgstr "" 7795"<refpurpose>Retorna o centroide (ponto) da área representada por um pixel.</" 7796"refpurpose>" 7797 7798#. Tag: funcprototype 7799#: reference_raster.xml:3476 7800#, no-c-format 7801msgid "" 7802"<funcdef>geometry <function>ST_PixelAsCentroid</function></funcdef> " 7803"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7804"<paramdef><type>integer </type> <parameter>x</parameter></paramdef> " 7805"<paramdef><type>integer </type> <parameter>y</parameter></paramdef>" 7806msgstr "" 7807"<funcdef>geometry <function>ST_PixelAsCentroid</function></funcdef> " 7808"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7809"<paramdef><type>integer </type> <parameter>x</parameter></paramdef> " 7810"<paramdef><type>integer </type> <parameter>y</parameter></paramdef>" 7811 7812#. Tag: para 7813#: reference_raster.xml:3487 7814#, no-c-format 7815msgid "" 7816"<para>Returns the centroid (point geometry) of the area represented by a " 7817"pixel.</para>" 7818msgstr "" 7819"<para>Retorna o centroide (ponto) da área representada por um pixel.</para>" 7820 7821#. Tag: programlisting 7822#: reference_raster.xml:3493 7823#, no-c-format 7824msgid "" 7825"SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = " 7826"1;\n" 7827"\n" 7828" st_astext\n" 7829"--------------\n" 7830" POINT(1.5 2)" 7831msgstr "" 7832"SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = " 7833"1;\n" 7834"\n" 7835" st_astext\n" 7836"--------------\n" 7837" POINT(1.5 2)" 7838 7839#. Tag: para 7840#: reference_raster.xml:3498 7841#, no-c-format 7842msgid "" 7843", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7844"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7845"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroids\"/>" 7846msgstr "" 7847", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7848"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7849"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroids\"/>" 7850 7851#. Tag: refname 7852#: reference_raster.xml:3512 7853#, no-c-format 7854msgid "ST_PixelAsCentroids" 7855msgstr "ST_PixelAsCentroids" 7856 7857#. Tag: refpurpose 7858#: reference_raster.xml:3513 7859#, no-c-format 7860msgid "" 7861"<refpurpose>Returns the centroid (point geometry) for each pixel of a raster " 7862"band along with the value, the X and the Y raster coordinates of each pixel. " 7863"The point geometry is the centroid of the area represented by a pixel.</" 7864"refpurpose>" 7865msgstr "" 7866"<refpurpose>Retorna o centroide (ponto geométrico) para cada pixel de uma " 7867"banda raster junto com o valor, as coordenas raster X e Y de cada pixel. O " 7868"ponto é o centroide da área representada por um pixel.</refpurpose>" 7869 7870#. Tag: funcprototype 7871#: reference_raster.xml:3519 7872#, no-c-format 7873msgid "" 7874"<funcdef>setof record <function>ST_PixelAsCentroids</function></funcdef> " 7875"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 7876"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 7877"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7878"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 7879msgstr "" 7880 7881#. Tag: para 7882#: reference_raster.xml:3530 7883#, no-c-format 7884msgid "" 7885"<para>Returns the centroid (point geometry) for each pixel of a raster band " 7886"along with the value, the X and the Y raster coordinates of each pixel. The " 7887"point geometry is the centroid of the area represented by a pixel.</para>" 7888msgstr "" 7889"<para>Retorna o centroide (ponto geométrico) para cada pixel de uma banda " 7890"raster junto com o valor, as coordenas raster X e Y de cada pixel. O ponto " 7891"é o centroide da área representada por um pixel.</para>" 7892 7893#. Tag: programlisting 7894#: reference_raster.xml:3548 7895#, no-c-format 7896msgid "" 7897"--LATERAL syntax requires PostgreSQL 9.3+\n" 7898"SELECT x, y, val, ST_AsText(geom)\n" 7899" FROM (SELECT dp.* FROM dummy_rast, LATERAL ST_PixelAsCentroids(rast, " 7900"1) AS dp WHERE rid = 2) foo;\n" 7901" x | y | val | st_astext\n" 7902"---+---+-----+--------------------------------\n" 7903" 1 | 1 | 253 | POINT(3427927.775 5793243.975)\n" 7904" 2 | 1 | 254 | POINT(3427927.825 5793243.975)\n" 7905" 3 | 1 | 253 | POINT(3427927.875 5793243.975)\n" 7906" 4 | 1 | 254 | POINT(3427927.925 5793243.975)\n" 7907" 5 | 1 | 254 | POINT(3427927.975 5793243.975)\n" 7908" 1 | 2 | 253 | POINT(3427927.775 5793243.925)\n" 7909" 2 | 2 | 254 | POINT(3427927.825 5793243.925)\n" 7910" 3 | 2 | 254 | POINT(3427927.875 5793243.925)\n" 7911" 4 | 2 | 253 | POINT(3427927.925 5793243.925)\n" 7912" 5 | 2 | 249 | POINT(3427927.975 5793243.925)\n" 7913" 1 | 3 | 250 | POINT(3427927.775 5793243.875)\n" 7914" 2 | 3 | 254 | POINT(3427927.825 5793243.875)\n" 7915" 3 | 3 | 254 | POINT(3427927.875 5793243.875)\n" 7916" 4 | 3 | 252 | POINT(3427927.925 5793243.875)\n" 7917" 5 | 3 | 249 | POINT(3427927.975 5793243.875)\n" 7918" 1 | 4 | 251 | POINT(3427927.775 5793243.825)\n" 7919" 2 | 4 | 253 | POINT(3427927.825 5793243.825)\n" 7920" 3 | 4 | 254 | POINT(3427927.875 5793243.825)\n" 7921" 4 | 4 | 254 | POINT(3427927.925 5793243.825)\n" 7922" 5 | 4 | 253 | POINT(3427927.975 5793243.825)\n" 7923" 1 | 5 | 252 | POINT(3427927.775 5793243.775)\n" 7924" 2 | 5 | 250 | POINT(3427927.825 5793243.775)\n" 7925" 3 | 5 | 254 | POINT(3427927.875 5793243.775)\n" 7926" 4 | 5 | 254 | POINT(3427927.925 5793243.775)\n" 7927" 5 | 5 | 254 | POINT(3427927.975 5793243.775)" 7928msgstr "" 7929 7930#. Tag: para 7931#: reference_raster.xml:3553 7932#, no-c-format 7933msgid "" 7934", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7935"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7936"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroid\"/>" 7937msgstr "" 7938", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=" 7939"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref " 7940"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroid\"/>" 7941 7942#. Tag: refname 7943#: reference_raster.xml:3567 7944#, no-c-format 7945msgid "ST_Value" 7946msgstr "ST_Value" 7947 7948#. Tag: refpurpose 7949#: reference_raster.xml:3568 7950#, no-c-format 7951msgid "" 7952"Returns the value of a given band in a given columnx, rowy pixel or at a " 7953"particular geometric point. Band numbers start at 1 and assumed to be 1 if " 7954"not specified. If <varname>exclude_nodata_value</varname> is set to false, " 7955"then all pixels include <varname>nodata</varname> pixels are considered to " 7956"intersect and return value. If <varname>exclude_nodata_value</varname> is " 7957"not passed in then reads it from metadata of raster." 7958msgstr "" 7959"Retorna o valor da banda dada com a colunax, linhay pixel ou em um ponto " 7960"específico. Os números de banda começam em 1 e assumem-se 1 se não " 7961"especificados. Se <varname>exclude_nodata_value</varname> for falso, então " 7962"todos os pixeis, inclusive os <varname>nodata</varname>, são considerados " 7963"para intersectar e retornar valor. Se <varname>exclude_nodata_value</" 7964"varname> não passar então lê dos metadados do raster. " 7965 7966#. Tag: funcsynopsis 7967#: reference_raster.xml:3572 7968#, no-c-format 7969msgid "" 7970"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 7971"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 7972"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 7973"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7974"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 7975"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 7976"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 7977"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 7978"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 7979"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7980"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 7981"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 7982"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 7983"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></" 7984"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></" 7985"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7986"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 7987"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 7988"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 7989"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 7990"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></" 7991"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></" 7992"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7993"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 7994msgstr "" 7995"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 7996"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 7997"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 7998"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 7999"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8000"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 8001"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 8002"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 8003"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></" 8004"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8005"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8006"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 8007"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 8008"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></" 8009"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></" 8010"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8011"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8012"<funcprototype> <funcdef>double precision <function>ST_Value</function></" 8013"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 8014"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 8015"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></" 8016"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></" 8017"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8018"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 8019 8020#. Tag: para 8021#: reference_raster.xml:3607 8022#, no-c-format 8023msgid "" 8024"Returns the value of a given band in a given columnx, rowy pixel or at a " 8025"given geometry point. Band numbers start at 1 and band is assumed to be 1 if " 8026"not specified. If <varname>exclude_nodata_value</varname> is set to true, " 8027"then only non <varname>nodata</varname> pixels are considered. If " 8028"<varname>exclude_nodata_value</varname> is set to false, then all pixels are " 8029"considered." 8030msgstr "" 8031"Retorna o valor da banda dada com a colunax, linhay pixel ou em um ponto " 8032"específico. Os números de banda começam em 1 e assumem-se 1 se não " 8033"especificados. Se <varname>exclude_nodata_value</varname> for verdadeiro, " 8034"então somente pixeis não <varname>nodata</varname> são considerados. Se " 8035"<varname>exclude_nodata_value</varname> for falso, então todos os pixeis são " 8036"considerados." 8037 8038#. Tag: para 8039#: reference_raster.xml:3610 8040#, no-c-format 8041msgid "Enhanced: 2.0.0 exclude_nodata_value optional argument was added." 8042msgstr "" 8043"Melhorias: 2.0.0 o argumento opcional exclude_nodata_value foi adicionado." 8044 8045#. Tag: programlisting 8046#: reference_raster.xml:3615 8047#, no-c-format 8048msgid "" 8049"-- get raster values at particular postgis geometry points\n" 8050"-- the srid of your geometry should be same as for your raster\n" 8051"SELECT rid, ST_Value(rast, foo.pt_geom) As b1pval, ST_Value(rast, 2, foo." 8052"pt_geom) As b2pval\n" 8053"FROM dummy_rast CROSS JOIN (SELECT ST_SetSRID(ST_Point(3427927.77, " 8054"5793243.76), 0) As pt_geom) As foo\n" 8055"WHERE rid=2;\n" 8056"\n" 8057" rid | b1pval | b2pval\n" 8058"-----+--------+--------\n" 8059" 2 | 252 | 79\n" 8060"\n" 8061"\n" 8062"-- general fictitious example using a real table\n" 8063"SELECT rid, ST_Value(rast, 3, sometable.geom) As b3pval\n" 8064"FROM sometable\n" 8065"WHERE ST_Intersects(rast,sometable.geom);" 8066msgstr "" 8067"-- get raster values at particular postgis geometry points\n" 8068"-- the srid of your geometry should be same as for your raster\n" 8069"SELECT rid, ST_Value(rast, foo.pt_geom) As b1pval, ST_Value(rast, 2, foo." 8070"pt_geom) As b2pval\n" 8071"FROM dummy_rast CROSS JOIN (SELECT ST_SetSRID(ST_Point(3427927.77, " 8072"5793243.76), 0) As pt_geom) As foo\n" 8073"WHERE rid=2;\n" 8074"\n" 8075" rid | b1pval | b2pval\n" 8076"-----+--------+--------\n" 8077" 2 | 252 | 79\n" 8078"\n" 8079"\n" 8080"-- general fictitious example using a real table\n" 8081"SELECT rid, ST_Value(rast, 3, sometable.geom) As b3pval\n" 8082"FROM sometable\n" 8083"WHERE ST_Intersects(rast,sometable.geom);" 8084 8085#. Tag: programlisting 8086#: reference_raster.xml:3616 8087#, no-c-format 8088msgid "" 8089"SELECT rid, ST_Value(rast, 1, 1, 1) As b1pval,\n" 8090" ST_Value(rast, 2, 1, 1) As b2pval, ST_Value(rast, 3, 1, 1) As b3pval\n" 8091"FROM dummy_rast\n" 8092"WHERE rid=2;\n" 8093"\n" 8094" rid | b1pval | b2pval | b3pval\n" 8095"-----+--------+--------+--------\n" 8096" 2 | 253 | 78 | 70" 8097msgstr "" 8098"SELECT rid, ST_Value(rast, 1, 1, 1) As b1pval,\n" 8099" ST_Value(rast, 2, 1, 1) As b2pval, ST_Value(rast, 3, 1, 1) As b3pval\n" 8100"FROM dummy_rast\n" 8101"WHERE rid=2;\n" 8102"\n" 8103" rid | b1pval | b2pval | b3pval\n" 8104"-----+--------+--------+--------\n" 8105" 2 | 253 | 78 | 70" 8106 8107#. Tag: programlisting 8108#: reference_raster.xml:3618 8109#, no-c-format 8110msgid "" 8111"--- Get all values in bands 1,2,3 of each pixel --\n" 8112"SELECT x, y, ST_Value(rast, 1, x, y) As b1val,\n" 8113" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n" 8114"FROM dummy_rast CROSS JOIN\n" 8115"generate_series(1, 1000) As x CROSS JOIN generate_series(1, 1000) As y\n" 8116"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n" 8117"\n" 8118" x | y | b1val | b2val | b3val\n" 8119"---+---+-------+-------+-------\n" 8120" 1 | 1 | 253 | 78 | 70\n" 8121" 1 | 2 | 253 | 96 | 80\n" 8122" 1 | 3 | 250 | 99 | 90\n" 8123" 1 | 4 | 251 | 89 | 77\n" 8124" 1 | 5 | 252 | 79 | 62\n" 8125" 2 | 1 | 254 | 98 | 86\n" 8126" 2 | 2 | 254 | 118 | 108\n" 8127" :\n" 8128" :" 8129msgstr "" 8130"--- Get all values in bands 1,2,3 of each pixel --\n" 8131"SELECT x, y, ST_Value(rast, 1, x, y) As b1val,\n" 8132" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n" 8133"FROM dummy_rast CROSS JOIN\n" 8134"generate_series(1, 1000) As x CROSS JOIN generate_series(1, 1000) As y\n" 8135"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n" 8136"\n" 8137" x | y | b1val | b2val | b3val\n" 8138"---+---+-------+-------+-------\n" 8139" 1 | 1 | 253 | 78 | 70\n" 8140" 1 | 2 | 253 | 96 | 80\n" 8141" 1 | 3 | 250 | 99 | 90\n" 8142" 1 | 4 | 251 | 89 | 77\n" 8143" 1 | 5 | 252 | 79 | 62\n" 8144" 2 | 1 | 254 | 98 | 86\n" 8145" 2 | 2 | 254 | 118 | 108\n" 8146" :\n" 8147" :" 8148 8149#. Tag: programlisting 8150#: reference_raster.xml:3620 8151#, no-c-format 8152msgid "" 8153"--- Get all values in bands 1,2,3 of each pixel same as above but returning " 8154"the upper left point point of each pixel --\n" 8155"SELECT ST_AsText(ST_SetSRID(\n" 8156" ST_Point(ST_UpperLeftX(rast) + ST_ScaleX(rast)*x,\n" 8157" ST_UpperLeftY(rast) + ST_ScaleY(rast)*y),\n" 8158" ST_SRID(rast))) As uplpt\n" 8159" , ST_Value(rast, 1, x, y) As b1val,\n" 8160" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n" 8161"FROM dummy_rast CROSS JOIN\n" 8162"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n" 8163"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n" 8164"\n" 8165" uplpt | b1val | b2val | b3val\n" 8166"-----------------------------+-------+-------+-------\n" 8167" POINT(3427929.25 5793245.5) | 253 | 78 | 70\n" 8168" POINT(3427929.25 5793247) | 253 | 96 | 80\n" 8169" POINT(3427929.25 5793248.5) | 250 | 99 | 90\n" 8170":" 8171msgstr "" 8172"--- Get all values in bands 1,2,3 of each pixel same as above but returning " 8173"the upper left point point of each pixel --\n" 8174"SELECT ST_AsText(ST_SetSRID(\n" 8175" ST_Point(ST_UpperLeftX(rast) + ST_ScaleX(rast)*x,\n" 8176" ST_UpperLeftY(rast) + ST_ScaleY(rast)*y),\n" 8177" ST_SRID(rast))) As uplpt\n" 8178" , ST_Value(rast, 1, x, y) As b1val,\n" 8179" ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n" 8180"FROM dummy_rast CROSS JOIN\n" 8181"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n" 8182"WHERE rid = 2 AND x <= ST_Width(rast) AND y <= ST_Height(rast);\n" 8183"\n" 8184" uplpt | b1val | b2val | b3val\n" 8185"-----------------------------+-------+-------+-------\n" 8186" POINT(3427929.25 5793245.5) | 253 | 78 | 70\n" 8187" POINT(3427929.25 5793247) | 253 | 96 | 80\n" 8188" POINT(3427929.25 5793248.5) | 250 | 99 | 90\n" 8189":" 8190 8191#. Tag: programlisting 8192#: reference_raster.xml:3621 8193#, no-c-format 8194msgid "" 8195"--- Get a polygon formed by union of all pixels\n" 8196" that fall in a particular value range and intersect particular " 8197"polygon --\n" 8198"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n" 8199"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n" 8200" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n" 8201" ST_UpperLeftX(rast) + ST_ScaleX(rast),\n" 8202" ST_UpperLeftY(rast) + ST_ScaleY(rast), 0\n" 8203" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n" 8204" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n" 8205" FROM dummy_rast CROSS JOIN\n" 8206"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n" 8207"WHERE rid = 2\n" 8208" AND x <= ST_Width(rast) AND y <= ST_Height(rast)) As foo\n" 8209"WHERE\n" 8210" ST_Intersects(\n" 8211" pixpolyg,\n" 8212" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 " 8213"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n" 8214" ) AND b2val != 254;\n" 8215"\n" 8216"\n" 8217" shadow\n" 8218"------------------------------------------------------------------------------------\n" 8219" MULTIPOLYGON(((3427928 5793243.9,3427928 5793243.85,3427927.95 " 8220"5793243.85,3427927.95 5793243.9,\n" 8221" 3427927.95 5793243.95,3427928 5793243.95,3427928.05 5793243.95,3427928.05 " 8222"5793243.9,3427928 5793243.9)),((3427927.95 5793243.9,3427927.95 579324\n" 8223"3.85,3427927.9 5793243.85,3427927.85 5793243.85,3427927.85 " 8224"5793243.9,3427927.9 5793243.9,3427927.9 5793243.95,\n" 8225"3427927.95 5793243.95,3427927.95 5793243.9)),((3427927.85 " 8226"5793243.75,3427927.85 5793243.7,3427927.8 5793243.7,3427927.8 5793243.75\n" 8227",3427927.8 5793243.8,3427927.8 5793243.85,3427927.85 5793243.85,3427927.85 " 8228"5793243.8,3427927.85 5793243.75)),\n" 8229"((3427928.05 5793243.75,3427928.05 5793243.7,3427928 5793243.7,3427927.95 " 8230"5793243.7,3427927.95 5793243.75,3427927.95 5793243.8,3427\n" 8231"927.95 5793243.85,3427928 5793243.85,3427928 5793243.8,3427928.05 " 8232"5793243.8,\n" 8233"3427928.05 5793243.75)),((3427927.95 5793243.75,3427927.95 " 8234"5793243.7,3427927.9 5793243.7,3427927.85 5793243.7,\n" 8235"3427927.85 5793243.75,3427927.85 5793243.8,3427927.85 5793243.85,3427927.9 " 8236"5793243.85,\n" 8237"3427927.95 5793243.85,3427927.95 5793243.8,3427927.95 5793243.75)))" 8238msgstr "" 8239"--- Get a polygon formed by union of all pixels\n" 8240" that fall in a particular value range and intersect particular " 8241"polygon --\n" 8242"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n" 8243"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n" 8244" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n" 8245" ST_UpperLeftX(rast) + ST_ScaleX(rast),\n" 8246" ST_UpperLeftY(rast) + ST_ScaleY(rast), 0\n" 8247" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n" 8248" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n" 8249" FROM dummy_rast CROSS JOIN\n" 8250"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n" 8251"WHERE rid = 2\n" 8252" AND x <= ST_Width(rast) AND y <= ST_Height(rast)) As foo\n" 8253"WHERE\n" 8254" ST_Intersects(\n" 8255" pixpolyg,\n" 8256" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 " 8257"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n" 8258" ) AND b2val != 254;\n" 8259"\n" 8260"\n" 8261" shadow\n" 8262"------------------------------------------------------------------------------------\n" 8263" MULTIPOLYGON(((3427928 5793243.9,3427928 5793243.85,3427927.95 " 8264"5793243.85,3427927.95 5793243.9,\n" 8265" 3427927.95 5793243.95,3427928 5793243.95,3427928.05 5793243.95,3427928.05 " 8266"5793243.9,3427928 5793243.9)),((3427927.95 5793243.9,3427927.95 579324\n" 8267"3.85,3427927.9 5793243.85,3427927.85 5793243.85,3427927.85 " 8268"5793243.9,3427927.9 5793243.9,3427927.9 5793243.95,\n" 8269"3427927.95 5793243.95,3427927.95 5793243.9)),((3427927.85 " 8270"5793243.75,3427927.85 5793243.7,3427927.8 5793243.7,3427927.8 5793243.75\n" 8271",3427927.8 5793243.8,3427927.8 5793243.85,3427927.85 5793243.85,3427927.85 " 8272"5793243.8,3427927.85 5793243.75)),\n" 8273"((3427928.05 5793243.75,3427928.05 5793243.7,3427928 5793243.7,3427927.95 " 8274"5793243.7,3427927.95 5793243.75,3427927.95 5793243.8,3427\n" 8275"927.95 5793243.85,3427928 5793243.85,3427928 5793243.8,3427928.05 " 8276"5793243.8,\n" 8277"3427928.05 5793243.75)),((3427927.95 5793243.75,3427927.95 " 8278"5793243.7,3427927.9 5793243.7,3427927.85 5793243.7,\n" 8279"3427927.85 5793243.75,3427927.85 5793243.8,3427927.85 5793243.85,3427927.9 " 8280"5793243.85,\n" 8281"3427927.95 5793243.85,3427927.95 5793243.8,3427927.95 5793243.75)))" 8282 8283#. Tag: programlisting 8284#: reference_raster.xml:3623 8285#, no-c-format 8286msgid "" 8287"--- Checking all the pixels of a large raster tile can take a long time.\n" 8288"--- You can dramatically improve speed at some lose of precision by orders " 8289"of magnitude\n" 8290"-- by sampling pixels using the step optional parameter of " 8291"generate_series.\n" 8292"-- This next example does the same as previous but by checking 1 for every " 8293"4 (2x2) pixels and putting in the last checked\n" 8294"-- putting in the checked pixel as the value for subsequent 4\n" 8295"\n" 8296"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n" 8297"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n" 8298" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n" 8299" ST_UpperLeftX(rast) + ST_ScaleX(rast)*2,\n" 8300" ST_UpperLeftY(rast) + ST_ScaleY(rast)*2, 0\n" 8301" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n" 8302" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n" 8303" FROM dummy_rast CROSS JOIN\n" 8304"generate_series(1,1000,2) As x CROSS JOIN generate_series(1,1000,2) As y\n" 8305"WHERE rid = 2\n" 8306" AND x <= ST_Width(rast) AND y <= ST_Height(rast) ) As foo\n" 8307"WHERE\n" 8308" ST_Intersects(\n" 8309" pixpolyg,\n" 8310" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 " 8311"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n" 8312" ) AND b2val != 254;\n" 8313"\n" 8314" shadow\n" 8315"------------------------------------------------------------------------------------\n" 8316" MULTIPOLYGON(((3427927.9 5793243.85,3427927.8 5793243.85,3427927.8 " 8317"5793243.95,\n" 8318" 3427927.9 5793243.95,3427928 5793243.95,3427928.1 5793243.95,3427928.1 " 8319"5793243.85,3427928 5793243.85,3427927.9 5793243.85)),\n" 8320" ((3427927.9 5793243.65,3427927.8 5793243.65,3427927.8 5793243.75,3427927.8 " 8321"5793243.85,3427927.9 5793243.85,\n" 8322" 3427928 5793243.85,3427928 5793243.75,3427928.1 5793243.75,3427928.1 " 8323"5793243.65,3427928 5793243.65,3427927.9 5793243.65)))" 8324msgstr "" 8325"--- Checking all the pixels of a large raster tile can take a long time.\n" 8326"--- You can dramatically improve speed at some lose of precision by orders " 8327"of magnitude\n" 8328"-- by sampling pixels using the step optional parameter of " 8329"generate_series.\n" 8330"-- This next example does the same as previous but by checking 1 for every " 8331"4 (2x2) pixels and putting in the last checked\n" 8332"-- putting in the checked pixel as the value for subsequent 4\n" 8333"\n" 8334"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n" 8335"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n" 8336" ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n" 8337" ST_UpperLeftX(rast) + ST_ScaleX(rast)*2,\n" 8338" ST_UpperLeftY(rast) + ST_ScaleY(rast)*2, 0\n" 8339" ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n" 8340" ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n" 8341" FROM dummy_rast CROSS JOIN\n" 8342"generate_series(1,1000,2) As x CROSS JOIN generate_series(1,1000,2) As y\n" 8343"WHERE rid = 2\n" 8344" AND x <= ST_Width(rast) AND y <= ST_Height(rast) ) As foo\n" 8345"WHERE\n" 8346" ST_Intersects(\n" 8347" pixpolyg,\n" 8348" ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 " 8349"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n" 8350" ) AND b2val != 254;\n" 8351"\n" 8352" shadow\n" 8353"------------------------------------------------------------------------------------\n" 8354" MULTIPOLYGON(((3427927.9 5793243.85,3427927.8 5793243.85,3427927.8 " 8355"5793243.95,\n" 8356" 3427927.9 5793243.95,3427928 5793243.95,3427928.1 5793243.95,3427928.1 " 8357"5793243.85,3427928 5793243.85,3427927.9 5793243.85)),\n" 8358" ((3427927.9 5793243.65,3427927.8 5793243.65,3427927.8 5793243.75,3427927.8 " 8359"5793243.85,3427927.9 5793243.85,\n" 8360" 3427928 5793243.85,3427928 5793243.75,3427928.1 5793243.75,3427928.1 " 8361"5793243.65,3427928 5793243.65,3427927.9 5793243.65)))" 8362 8363#. Tag: para 8364#: reference_raster.xml:3628 8365#, no-c-format 8366msgid "" 8367", <xref linkend=\"RT_ST_DumpAsPolygons\"/>, <xref linkend=\"RT_ST_NumBands\"/" 8368">, <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=\"RT_ST_ScaleX\"/" 8369">, <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, " 8370"<xref linkend=\"RT_ST_UpperLeftY\"/>, <xref linkend=\"RT_ST_SRID\"/>, <xref " 8371"linkend=\"ST_AsText\"/>, <xref linkend=\"ST_Point\"/>, <xref linkend=" 8372"\"ST_MakeEnvelope\"/>, <xref linkend=\"ST_Intersects\"/>, <xref linkend=" 8373"\"ST_Intersection\"/>" 8374msgstr "" 8375", <xref linkend=\"RT_ST_DumpAsPolygons\"/>, <xref linkend=\"RT_ST_NumBands\"/" 8376">, <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=\"RT_ST_ScaleX\"/" 8377">, <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, " 8378"<xref linkend=\"RT_ST_UpperLeftY\"/>, <xref linkend=\"RT_ST_SRID\"/>, <xref " 8379"linkend=\"ST_AsText\"/>, <xref linkend=\"ST_Point\"/>, <xref linkend=" 8380"\"ST_MakeEnvelope\"/>, <xref linkend=\"ST_Intersects\"/>, <xref linkend=" 8381"\"ST_Intersection\"/>" 8382 8383#. Tag: refname 8384#: reference_raster.xml:3649 8385#, no-c-format 8386msgid "ST_NearestValue" 8387msgstr "ST_NearestValue" 8388 8389#. Tag: refpurpose 8390#: reference_raster.xml:3650 8391#, no-c-format 8392msgid "" 8393"Returns the nearest non-<varname>NODATA</varname> value of a given band's " 8394"pixel specified by a columnx and rowy or a geometric point expressed in the " 8395"same spatial reference coordinate system as the raster." 8396msgstr "" 8397"Retorna o valor não-<varname>NODATA</varname> mais próximo de um dado pixel " 8398"de banda especificado por uma colunax e linhay ou um ponto geométrico " 8399"expressado no mesmo sistema de coordenada referência do raster. " 8400 8401#. Tag: funcsynopsis 8402#: reference_raster.xml:3656 8403#, no-c-format 8404msgid "" 8405"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8406"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8407"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8408"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8409"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8410"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8411"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8412"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8413"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8414"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8415"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8416"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8417"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8418"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8419"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</" 8420"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</" 8421"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8422"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8423"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8424"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8425"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</" 8426"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</" 8427"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8428"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 8429msgstr "" 8430"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8431"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8432"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8433"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8434"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8435"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8436"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8437"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8438"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8439"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8440"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8441"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8442"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8443"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8444"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</" 8445"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</" 8446"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8447"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8448"<funcprototype> <funcdef>double precision <function>ST_NearestValue</" 8449"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8450"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</" 8451"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</" 8452"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8453"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 8454 8455#. Tag: para 8456#: reference_raster.xml:3693 8457#, no-c-format 8458msgid "" 8459"Returns the nearest non-<varname>NODATA</varname> value of a given band in a " 8460"given columnx, rowy pixel or at a specific geometric point. If the columnx, " 8461"rowy pixel or the pixel at the specified geometric point is <varname>NODATA</" 8462"varname>, the function will find the nearest pixel to the columnx, rowy " 8463"pixel or geometric point whose value is not <varname>NODATA</varname>." 8464msgstr "" 8465"Returns the nearest non-<varname>NODATA</varname> value of a given band in a " 8466"given columnx, rowy pixel or at a specific geometric point. If the columnx, " 8467"rowy pixel or the pixel at the specified geometric point is <varname>NODATA</" 8468"varname>, the function will find the nearest pixel to the columnx, rowy " 8469"pixel or geometric point whose value is not <varname>NODATA</varname>." 8470 8471#. Tag: para 8472#: reference_raster.xml:3696 reference_raster.xml:3783 8473#, no-c-format 8474msgid "" 8475"Band numbers start at 1 and <varname>bandnum</varname> is assumed to be 1 if " 8476"not specified. If <varname>exclude_nodata_value</varname> is set to false, " 8477"then all pixels include <varname>nodata</varname> pixels are considered to " 8478"intersect and return value. If <varname>exclude_nodata_value</varname> is " 8479"not passed in then reads it from metadata of raster." 8480msgstr "" 8481"O número de banda começa no 1 e <varname>bandnum</varname> é assumido a ser " 8482"1 se não estiver especificado. Se <varname>exclude_nodata_value</varname> " 8483"for falso, então todos os pixeis inclusive os pixeis <varname>nodata</" 8484"varname> são considerados para intersectar e retornar valor. Se " 8485"<varname>exclude_nodata_value</varname> não passar então lê dos metadados do " 8486"raster. " 8487 8488#. Tag: para 8489#: reference_raster.xml:3701 8490#, no-c-format 8491msgid "ST_NearestValue is a drop-in replacement for ST_Value." 8492msgstr "ST_NearestValue é uma substituição drop-in para ST_Value." 8493 8494#. Tag: programlisting 8495#: reference_raster.xml:3710 8496#, no-c-format 8497msgid "" 8498"-- pixel 2x2 has value\n" 8499"SELECT\n" 8500" ST_Value(rast, 2, 2) AS value,\n" 8501" ST_NearestValue(rast, 2, 2) AS nearestvalue\n" 8502"FROM (\n" 8503" SELECT\n" 8504" ST_SetValue(\n" 8505" ST_SetValue(\n" 8506" ST_SetValue(\n" 8507" ST_SetValue(\n" 8508" ST_SetValue(\n" 8509" ST_AddBand(\n" 8510" ST_MakeEmptyRaster(5, " 8511"5, -2, 2, 1, -1, 0, 0, 0),\n" 8512" '8BUI'::" 8513"text, 1, 0\n" 8514" ),\n" 8515" 1, 1, 0.\n" 8516" ),\n" 8517" 2, 3, 0.\n" 8518" ),\n" 8519" 3, 5, 0.\n" 8520" ),\n" 8521" 4, 2, 0.\n" 8522" ),\n" 8523" 5, 4, 0.\n" 8524" ) AS rast\n" 8525") AS foo\n" 8526"\n" 8527" value | nearestvalue\n" 8528"-------+--------------\n" 8529" 1 | 1" 8530msgstr "" 8531"-- pixel 2x2 has value\n" 8532"SELECT\n" 8533" ST_Value(rast, 2, 2) AS value,\n" 8534" ST_NearestValue(rast, 2, 2) AS nearestvalue\n" 8535"FROM (\n" 8536" SELECT\n" 8537" ST_SetValue(\n" 8538" ST_SetValue(\n" 8539" ST_SetValue(\n" 8540" ST_SetValue(\n" 8541" ST_SetValue(\n" 8542" ST_AddBand(\n" 8543" ST_MakeEmptyRaster(5, " 8544"5, -2, 2, 1, -1, 0, 0, 0),\n" 8545" '8BUI'::" 8546"text, 1, 0\n" 8547" ),\n" 8548" 1, 1, 0.\n" 8549" ),\n" 8550" 2, 3, 0.\n" 8551" ),\n" 8552" 3, 5, 0.\n" 8553" ),\n" 8554" 4, 2, 0.\n" 8555" ),\n" 8556" 5, 4, 0.\n" 8557" ) AS rast\n" 8558") AS foo\n" 8559"\n" 8560" value | nearestvalue\n" 8561"-------+--------------\n" 8562" 1 | 1" 8563 8564#. Tag: programlisting 8565#: reference_raster.xml:3712 8566#, no-c-format 8567msgid "" 8568"-- pixel 2x3 is NODATA\n" 8569"SELECT\n" 8570" ST_Value(rast, 2, 3) AS value,\n" 8571" ST_NearestValue(rast, 2, 3) AS nearestvalue\n" 8572"FROM (\n" 8573" SELECT\n" 8574" ST_SetValue(\n" 8575" ST_SetValue(\n" 8576" ST_SetValue(\n" 8577" ST_SetValue(\n" 8578" ST_SetValue(\n" 8579" ST_AddBand(\n" 8580" ST_MakeEmptyRaster(5, " 8581"5, -2, 2, 1, -1, 0, 0, 0),\n" 8582" '8BUI'::" 8583"text, 1, 0\n" 8584" ),\n" 8585" 1, 1, 0.\n" 8586" ),\n" 8587" 2, 3, 0.\n" 8588" ),\n" 8589" 3, 5, 0.\n" 8590" ),\n" 8591" 4, 2, 0.\n" 8592" ),\n" 8593" 5, 4, 0.\n" 8594" ) AS rast\n" 8595") AS foo\n" 8596"\n" 8597" value | nearestvalue\n" 8598"-------+--------------\n" 8599" | 1" 8600msgstr "" 8601"-- pixel 2x3 is NODATA\n" 8602"SELECT\n" 8603" ST_Value(rast, 2, 3) AS value,\n" 8604" ST_NearestValue(rast, 2, 3) AS nearestvalue\n" 8605"FROM (\n" 8606" SELECT\n" 8607" ST_SetValue(\n" 8608" ST_SetValue(\n" 8609" ST_SetValue(\n" 8610" ST_SetValue(\n" 8611" ST_SetValue(\n" 8612" ST_AddBand(\n" 8613" ST_MakeEmptyRaster(5, " 8614"5, -2, 2, 1, -1, 0, 0, 0),\n" 8615" '8BUI'::" 8616"text, 1, 0\n" 8617" ),\n" 8618" 1, 1, 0.\n" 8619" ),\n" 8620" 2, 3, 0.\n" 8621" ),\n" 8622" 3, 5, 0.\n" 8623" ),\n" 8624" 4, 2, 0.\n" 8625" ),\n" 8626" 5, 4, 0.\n" 8627" ) AS rast\n" 8628") AS foo\n" 8629"\n" 8630" value | nearestvalue\n" 8631"-------+--------------\n" 8632" | 1" 8633 8634#. Tag: para 8635#: reference_raster.xml:3718 8636#, no-c-format 8637msgid ", <xref linkend=\"RT_ST_Value\"/>" 8638msgstr ", <xref linkend=\"RT_ST_Value\"/>" 8639 8640#. Tag: refname 8641#: reference_raster.xml:3728 8642#, no-c-format 8643msgid "ST_Neighborhood" 8644msgstr "ST_Neighborhood" 8645 8646#. Tag: refpurpose 8647#: reference_raster.xml:3729 8648#, no-c-format 8649msgid "" 8650"Returns a 2-D double precision array of the non-<varname>NODATA</varname> " 8651"values around a given band's pixel specified by either a columnX and rowY or " 8652"a geometric point expressed in the same spatial reference coordinate system " 8653"as the raster." 8654msgstr "" 8655"Retorna um arranjo de precisão 2-D dobrada dos valores não-<varname>NODATA</" 8656"varname> em torno da banda de pixel especificada ou por uma colunaX e linhaY " 8657"ou um ponto geométrico expressado no mesmo sistema de coordenada de " 8658"referência especial como o raster. " 8659 8660#. Tag: funcsynopsis 8661#: reference_raster.xml:3735 8662#, no-c-format 8663msgid "" 8664"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8665"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8666"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8667"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</" 8668"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</" 8669"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8670"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8671"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8672"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8673"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8674"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8675"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</" 8676"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</" 8677"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8678"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8679"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8680"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8681"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8682"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8683"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8684"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8685"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8686"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8687"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8688"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8689"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8690"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8691"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8692"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8693"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8694"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8695"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 8696msgstr "" 8697"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8698"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8699"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8700"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</" 8701"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</" 8702"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8703"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8704"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8705"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8706"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8707"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8708"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</" 8709"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</" 8710"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8711"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8712"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8713"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8714"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8715"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8716"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</" 8717"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8718"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8719"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8720"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8721"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 8722"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</" 8723"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 8724"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</" 8725"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</" 8726"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</" 8727"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 8728"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>" 8729 8730#. Tag: para 8731#: reference_raster.xml:3780 8732#, no-c-format 8733msgid "" 8734"Returns a 2-D double precision array of the non-<varname>NODATA</varname> " 8735"values around a given band's pixel specified by either a columnX and rowY or " 8736"a geometric point expressed in the same spatial reference coordinate system " 8737"as the raster. The <varname>distanceX</varname> and <varname>distanceY</" 8738"varname> parameters define the number of pixels around the specified pixel " 8739"in the X and Y axes, e.g. I want all values within 3 pixel distance along " 8740"the X axis and 2 pixel distance along the Y axis around my pixel of " 8741"interest. The center value of the 2-D array will be the value at the pixel " 8742"specified by the columnX and rowY or the geometric point." 8743msgstr "" 8744"Retorna um arranjo de precisão 2-D dobrada dos valores não-<varname>NODATA</" 8745"varname> em torno da banda de pixel especificada ou por uma colunaX e linhaY " 8746"ou um ponto geométrico expressado no mesmo sistema de coordenada de " 8747"referência especial como o raster. Os parâmetros <varname>distanceX</" 8748"varname> e <varname>distanceY</varname> definem o número de pixeis em torno " 8749"do pixel especificado nos eixos X e Y, ex.: Quero todos os valores dentro de " 8750"uma distância de 3 pixeis no eixo X e 2 pixeis de distância no eixo Y ao " 8751"redor do meu pixel de interesse. O valor central do arranjo 2-D será o valor " 8752"no pixel especificado pela colunaX e linhaY ou ponto geométrico. " 8753 8754#. Tag: para 8755#: reference_raster.xml:3787 8756#, no-c-format 8757msgid "" 8758"The number of elements along each axis of the returning 2-D array is 2 * " 8759"(<varname>distanceX</varname>|<varname>distanceY</varname>) + 1. So for a " 8760"<varname>distanceX</varname> and <varname>distanceY</varname> of 1, the " 8761"returning array will be 3x3." 8762msgstr "" 8763"O número de elementos ao longo de cada eixo do arranjo que está retornando 2-" 8764"D é 2 * (<varname>distanceX</varname>|<varname>distanceY</varname>) + 1. " 8765"Então, para uma <varname>distanceX</varname> e <varname>distanceY</varname> " 8766"de 1, o arranjo que retorna será 3x3. " 8767 8768#. Tag: para 8769#: reference_raster.xml:3792 8770#, no-c-format 8771msgid "" 8772"The 2-D array output can be passed to any of the raster processing builtin " 8773"functions, e.g. ST_Min4ma, ST_Sum4ma, ST_Mean4ma." 8774msgstr "" 8775"A saída do arranjo 2-D pode ser passado para qualquer um dos processos " 8776"raster de funções bultiin, ex.: ST_Min4ma, ST_Sum4ma, ST_Mean4ma. " 8777 8778#. Tag: programlisting 8779#: reference_raster.xml:3802 8780#, no-c-format 8781msgid "" 8782"-- pixel 2x2 has value\n" 8783"SELECT\n" 8784" ST_Neighborhood(rast, 2, 2, 1, 1)\n" 8785"FROM (\n" 8786" SELECT\n" 8787" ST_SetValues(\n" 8788" ST_AddBand(\n" 8789" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8790"0),\n" 8791" '8BUI'::text, 1, 0\n" 8792" ),\n" 8793" 1, 1, 1, ARRAY[\n" 8794" [0, 1, 1, 1, 1],\n" 8795" [1, 1, 1, 0, 1],\n" 8796" [1, 0, 1, 1, 1],\n" 8797" [1, 1, 1, 1, 0],\n" 8798" [1, 1, 0, 1, 1]\n" 8799" ]::double precision[],\n" 8800" 1\n" 8801" ) AS rast\n" 8802") AS foo\n" 8803"\n" 8804" st_neighborhood\n" 8805"---------------------------------\n" 8806" {{NULL,1,1},{1,1,NULL},{1,1,1}}" 8807msgstr "" 8808"-- pixel 2x2 has value\n" 8809"SELECT\n" 8810" ST_Neighborhood(rast, 2, 2, 1, 1)\n" 8811"FROM (\n" 8812" SELECT\n" 8813" ST_SetValues(\n" 8814" ST_AddBand(\n" 8815" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8816"0),\n" 8817" '8BUI'::text, 1, 0\n" 8818" ),\n" 8819" 1, 1, 1, ARRAY[\n" 8820" [0, 1, 1, 1, 1],\n" 8821" [1, 1, 1, 0, 1],\n" 8822" [1, 0, 1, 1, 1],\n" 8823" [1, 1, 1, 1, 0],\n" 8824" [1, 1, 0, 1, 1]\n" 8825" ]::double precision[],\n" 8826" 1\n" 8827" ) AS rast\n" 8828") AS foo\n" 8829"\n" 8830" st_neighborhood\n" 8831"---------------------------------\n" 8832" {{NULL,1,1},{1,1,NULL},{1,1,1}}" 8833 8834#. Tag: programlisting 8835#: reference_raster.xml:3804 8836#, no-c-format 8837msgid "" 8838"-- pixel 2x3 is NODATA\n" 8839"SELECT\n" 8840" ST_Neighborhood(rast, 2, 3, 1, 1)\n" 8841"FROM (\n" 8842" SELECT\n" 8843" ST_SetValues(\n" 8844" ST_AddBand(\n" 8845" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8846"0),\n" 8847" '8BUI'::text, 1, 0\n" 8848" ),\n" 8849" 1, 1, 1, ARRAY[\n" 8850" [0, 1, 1, 1, 1],\n" 8851" [1, 1, 1, 0, 1],\n" 8852" [1, 0, 1, 1, 1],\n" 8853" [1, 1, 1, 1, 0],\n" 8854" [1, 1, 0, 1, 1]\n" 8855" ]::double precision[],\n" 8856" 1\n" 8857" ) AS rast\n" 8858") AS foo\n" 8859"\n" 8860" st_neighborhood\n" 8861"------------------------------\n" 8862" {{1,1,1},{1,NULL,1},{1,1,1}}" 8863msgstr "" 8864"-- pixel 2x3 is NODATA\n" 8865"SELECT\n" 8866" ST_Neighborhood(rast, 2, 3, 1, 1)\n" 8867"FROM (\n" 8868" SELECT\n" 8869" ST_SetValues(\n" 8870" ST_AddBand(\n" 8871" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8872"0),\n" 8873" '8BUI'::text, 1, 0\n" 8874" ),\n" 8875" 1, 1, 1, ARRAY[\n" 8876" [0, 1, 1, 1, 1],\n" 8877" [1, 1, 1, 0, 1],\n" 8878" [1, 0, 1, 1, 1],\n" 8879" [1, 1, 1, 1, 0],\n" 8880" [1, 1, 0, 1, 1]\n" 8881" ]::double precision[],\n" 8882" 1\n" 8883" ) AS rast\n" 8884") AS foo\n" 8885"\n" 8886" st_neighborhood\n" 8887"------------------------------\n" 8888" {{1,1,1},{1,NULL,1},{1,1,1}}" 8889 8890#. Tag: programlisting 8891#: reference_raster.xml:3806 8892#, no-c-format 8893msgid "" 8894"-- pixel 3x3 has value\n" 8895"-- exclude_nodata_value = FALSE\n" 8896"SELECT\n" 8897" ST_Neighborhood(rast, 3, 3, 1, 1, false)\n" 8898"FROM (\n" 8899" ST_SetValues(\n" 8900" ST_AddBand(\n" 8901" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8902"0),\n" 8903" '8BUI'::text, 1, 0\n" 8904" ),\n" 8905" 1, 1, 1, ARRAY[\n" 8906" [0, 1, 1, 1, 1],\n" 8907" [1, 1, 1, 0, 1],\n" 8908" [1, 0, 1, 1, 1],\n" 8909" [1, 1, 1, 1, 0],\n" 8910" [1, 1, 0, 1, 1]\n" 8911" ]::double precision[],\n" 8912" 1\n" 8913" ) AS rast\n" 8914") AS foo\n" 8915"\n" 8916" st_neighborhood\n" 8917"---------------------------\n" 8918" {{1,0,1},{1,1,1},{0,1,1}}" 8919msgstr "" 8920"-- pixel 3x3 has value\n" 8921"-- exclude_nodata_value = FALSE\n" 8922"SELECT\n" 8923" ST_Neighborhood(rast, 3, 3, 1, 1, false)\n" 8924"FROM (\n" 8925" ST_SetValues(\n" 8926" ST_AddBand(\n" 8927" ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, " 8928"0),\n" 8929" '8BUI'::text, 1, 0\n" 8930" ),\n" 8931" 1, 1, 1, ARRAY[\n" 8932" [0, 1, 1, 1, 1],\n" 8933" [1, 1, 1, 0, 1],\n" 8934" [1, 0, 1, 1, 1],\n" 8935" [1, 1, 1, 1, 0],\n" 8936" [1, 1, 0, 1, 1]\n" 8937" ]::double precision[],\n" 8938" 1\n" 8939" ) AS rast\n" 8940") AS foo\n" 8941"\n" 8942" st_neighborhood\n" 8943"---------------------------\n" 8944" {{1,0,1},{1,1,1},{0,1,1}}" 8945 8946#. Tag: para 8947#: reference_raster.xml:3812 8948#, no-c-format 8949msgid "" 8950", <xref linkend=\"RT_ST_Min4ma\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, <xref " 8951"linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=" 8952"\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref linkend=" 8953"\"RT_ST_StdDev4ma\"/>" 8954msgstr "" 8955", <xref linkend=\"RT_ST_Min4ma\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, <xref " 8956"linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=" 8957"\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref linkend=" 8958"\"RT_ST_StdDev4ma\"/>" 8959 8960#. Tag: refname 8961#: reference_raster.xml:3829 8962#, no-c-format 8963msgid "ST_SetValue" 8964msgstr "ST_SetValue" 8965 8966#. Tag: refpurpose 8967#: reference_raster.xml:3830 8968#, no-c-format 8969msgid "" 8970"Returns modified raster resulting from setting the value of a given band in " 8971"a given columnx, rowy pixel or the pixels that intersect a particular " 8972"geometry. Band numbers start at 1 and assumed to be 1 if not specified." 8973msgstr "" 8974"Retorna o raster modificado resultante do valor de uma banda em uma dada " 8975"colunax, linhay pixel ou os pixeis que intersectam uma geometria específica. " 8976"Os números de banda começam no 1 e são assumidos como 1 se não estiverem " 8977"especificados. " 8978 8979#. Tag: funcsynopsis 8980#: reference_raster.xml:3834 8981#, no-c-format 8982msgid "" 8983"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> " 8984"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 8985"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> " 8986"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 8987"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 8988"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 8989"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> " 8990"<parameter>rast</parameter></paramdef> <paramdef><type>geometry </type> " 8991"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 8992"type> <parameter>newvalue</parameter></paramdef> </funcprototype> " 8993"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> " 8994"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 8995"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> " 8996"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 8997"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 8998"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 8999"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 9000"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> " 9001"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 9002"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> " 9003"<parameter>rowy</parameter></paramdef> <paramdef><type>double precision </" 9004"type> <parameter>newvalue</parameter></paramdef> </funcprototype>" 9005msgstr "" 9006"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> " 9007"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9008"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> " 9009"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 9010"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 9011"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 9012"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> " 9013"<parameter>rast</parameter></paramdef> <paramdef><type>geometry </type> " 9014"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </" 9015"type> <parameter>newvalue</parameter></paramdef> </funcprototype> " 9016"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> " 9017"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9018"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> " 9019"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9020"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9021"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 9022"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 9023"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> " 9024"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 9025"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> " 9026"<parameter>rowy</parameter></paramdef> <paramdef><type>double precision </" 9027"type> <parameter>newvalue</parameter></paramdef> </funcprototype>" 9028 9029#. Tag: para 9030#: reference_raster.xml:3868 9031#, no-c-format 9032msgid "" 9033"Returns modified raster resulting from setting the specified pixels' values " 9034"to new value for the designated band given the raster's row and column or a " 9035"geometry. If no band is specified, then band 1 is assumed." 9036msgstr "" 9037 9038#. Tag: para 9039#: reference_raster.xml:3871 9040#, no-c-format 9041msgid "" 9042"Enhanced: 2.1.0 Geometry variant of ST_SetValue() now supports any geometry " 9043"type, not just point. The geometry variant is a wrapper around the geomval[] " 9044"variant of ST_SetValues()" 9045msgstr "" 9046"Melhorias: 2.1.0 Variante geométrica ST_SetValue() agora suporta qualquer " 9047"tipo de geometria, não apenas ponto. A variante geométrica é um envoltório " 9048"em torno da variante geomval[] da ST_SetValues()" 9049 9050#. Tag: programlisting 9051#: reference_raster.xml:3877 9052#, no-c-format 9053msgid "" 9054"-- Geometry example\n" 9055"SELECT (foo.geomval).val, ST_AsText(ST_Union((foo.geomval).geom))\n" 9056"FROM (SELECT ST_DumpAsPolygons(\n" 9057" ST_SetValue(rast,1,\n" 9058" ST_Point(3427927.75, 5793243.95),\n" 9059" 50)\n" 9060" ) As geomval\n" 9061"FROM dummy_rast\n" 9062"where rid = 2) As foo\n" 9063"WHERE (foo.geomval).val < 250\n" 9064"GROUP BY (foo.geomval).val;\n" 9065"\n" 9066" val | st_astext\n" 9067"-----+-------------------------------------------------------------------\n" 9068" 50 | POLYGON((3427927.75 5793244,3427927.75 5793243.95,3427927.8 " 9069"579324 ...\n" 9070" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 57932 ..." 9071msgstr "" 9072"-- Geometry example\n" 9073"SELECT (foo.geomval).val, ST_AsText(ST_Union((foo.geomval).geom))\n" 9074"FROM (SELECT ST_DumpAsPolygons(\n" 9075" ST_SetValue(rast,1,\n" 9076" ST_Point(3427927.75, 5793243.95),\n" 9077" 50)\n" 9078" ) As geomval\n" 9079"FROM dummy_rast\n" 9080"where rid = 2) As foo\n" 9081"WHERE (foo.geomval).val < 250\n" 9082"GROUP BY (foo.geomval).val;\n" 9083"\n" 9084" val | st_astext\n" 9085"-----+-------------------------------------------------------------------\n" 9086" 50 | POLYGON((3427927.75 5793244,3427927.75 5793243.95,3427927.8 " 9087"579324 ...\n" 9088" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 57932 ..." 9089 9090#. Tag: programlisting 9091#: reference_raster.xml:3879 9092#, no-c-format 9093msgid "" 9094"-- Store the changed raster --\n" 9095" UPDATE dummy_rast SET rast = ST_SetValue(rast,1, " 9096"ST_Point(3427927.75, 5793243.95),100)\n" 9097" WHERE rid = 2 ;" 9098msgstr "" 9099"-- Store the changed raster --\n" 9100" UPDATE dummy_rast SET rast = ST_SetValue(rast,1, " 9101"ST_Point(3427927.75, 5793243.95),100)\n" 9102" WHERE rid = 2 ;" 9103 9104#. Tag: para 9105#: reference_raster.xml:3883 reference_raster.xml:9961 9106#, no-c-format 9107msgid ", <xref linkend=\"RT_ST_DumpAsPolygons\"/>" 9108msgstr ", <xref linkend=\"RT_ST_DumpAsPolygons\"/>" 9109 9110#. Tag: refname 9111#: reference_raster.xml:3889 9112#, no-c-format 9113msgid "ST_SetValues" 9114msgstr "ST_SetValues" 9115 9116#. Tag: refpurpose 9117#: reference_raster.xml:3890 9118#, no-c-format 9119msgid "" 9120"Returns modified raster resulting from setting the values of a given band." 9121msgstr "Retorna o raster modificado resultante dos valores de uma dada banda. " 9122 9123#. Tag: funcsynopsis 9124#: reference_raster.xml:3894 9125#, no-c-format 9126msgid "" 9127"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9128"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9129"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9130"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9131"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9132"<paramdef><type>double precision[][] </type> <parameter>newvalueset</" 9133"parameter></paramdef> <paramdef><type>boolean[][] </type> " 9134"<parameter>noset=NULL</parameter></paramdef> <paramdef><type>boolean </type> " 9135"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9136"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9137"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9138"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9139"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9140"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9141"<paramdef><type>double precision[][] </type> <parameter>newvalueset</" 9142"parameter></paramdef> <paramdef><type>double precision </type> " 9143"<parameter>nosetvalue</parameter></paramdef> <paramdef><type>boolean </type> " 9144"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9145"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9146"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9147"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9148"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9149"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9150"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 9151"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 9152"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 9153"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</" 9154"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 9155"<function>ST_SetValues</function></funcdef> <paramdef><type>raster </type> " 9156"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 9157"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> " 9158"<parameter>rowy</parameter></paramdef> <paramdef><type>integer </type> " 9159"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 9160"<parameter>height</parameter></paramdef> <paramdef><type>double precision </" 9161"type> <parameter>newvalue</parameter></paramdef> <paramdef><type>boolean </" 9162"type> <parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9163"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9164"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9165"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9166"<paramdef><type>geomval[] </type> <parameter>geomvalset</parameter></" 9167"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</" 9168"parameter></paramdef> </funcprototype>" 9169msgstr "" 9170"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9171"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9172"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9173"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9174"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9175"<paramdef><type>double precision[][] </type> <parameter>newvalueset</" 9176"parameter></paramdef> <paramdef><type>boolean[][] </type> " 9177"<parameter>noset=NULL</parameter></paramdef> <paramdef><type>boolean </type> " 9178"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9179"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9180"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9181"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9182"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9183"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9184"<paramdef><type>double precision[][] </type> <parameter>newvalueset</" 9185"parameter></paramdef> <paramdef><type>double precision </type> " 9186"<parameter>nosetvalue</parameter></paramdef> <paramdef><type>boolean </type> " 9187"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9188"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9189"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9190"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9191"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> " 9192"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> " 9193"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 9194"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 9195"<paramdef><type>double precision </type> <parameter>newvalue</parameter></" 9196"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</" 9197"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 9198"<function>ST_SetValues</function></funcdef> <paramdef><type>raster </type> " 9199"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 9200"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> " 9201"<parameter>rowy</parameter></paramdef> <paramdef><type>integer </type> " 9202"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> " 9203"<parameter>height</parameter></paramdef> <paramdef><type>double precision </" 9204"type> <parameter>newvalue</parameter></paramdef> <paramdef><type>boolean </" 9205"type> <parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> " 9206"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> " 9207"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 9208"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 9209"<paramdef><type>geomval[] </type> <parameter>geomvalset</parameter></" 9210"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</" 9211"parameter></paramdef> </funcprototype>" 9212 9213#. Tag: para 9214#: reference_raster.xml:3953 9215#, fuzzy, no-c-format 9216msgid "" 9217"Returns modified raster resulting from setting specified pixels to new " 9218"value(s) for the designated band. <varname>columnx</varname> and " 9219"<varname>rowy</varname> are 1-indexed." 9220msgstr "" 9221"Retorna o raster modificado resultante dos valores especificados do pixel " 9222"para novo valor(es) para a banda designada. " 9223 9224#. Tag: para 9225#: reference_raster.xml:3957 9226#, no-c-format 9227msgid "" 9228"If <varname>keepnodata</varname> is TRUE, those pixels whose values are " 9229"NODATA will not be set with the corresponding value in <varname>newvalueset</" 9230"varname>." 9231msgstr "" 9232"Se <varname>keepnodata</varname> for VERDADE, aqueles pixeis cujos valores " 9233"são NODATA não terão o valor correspondente em <varname>newvalueset</" 9234"varname>." 9235 9236#. Tag: para 9237#: reference_raster.xml:3961 9238#, no-c-format 9239msgid "" 9240"For Variant 1, the specific pixels to be set are determined by the " 9241"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates and " 9242"the dimensions of the <varname>newvalueset</varname> array. <varname>noset</" 9243"varname> can be used to prevent pixels with values present in " 9244"<varname>newvalueset</varname> from being set (due to PostgreSQL not " 9245"permitting ragged/jagged arrays). See example Variant 1." 9246msgstr "" 9247"Para Variante 1, os pixeis específicos são determinados pela " 9248"<varname>columnx</varname>, <varname>rowy</varname> coordenadas pixel e as " 9249"dimensões do arranjo <varname>newvalueset</varname>. <varname>noset</" 9250"varname> pode ser usado para prevenir pixeis com valores presentes no " 9251"<varname>newvalueset</varname> de serem estabelecidos ( PostgreSQL não " 9252"permitindo arranjos ragged/jagged). Veja o exemplo de Variante 1." 9253 9254#. Tag: para 9255#: reference_raster.xml:3965 9256#, no-c-format 9257msgid "" 9258"Variant 2 is like Variant 1 but with a simple double precision " 9259"<varname>nosetvalue</varname> instead of a boolean <varname>noset</varname> " 9260"array. Elements in <varname>newvalueset</varname> with the " 9261"<varname>nosetvalue</varname> value with be skipped. See example Variant 2." 9262msgstr "" 9263"Variante 2 é como a Variante 1, mas com uma precisão dupla simples " 9264"<varname>nosetvalue</varname> em vez de um arranjo booleano <varname>noset</" 9265"varname>. Elementos no <varname>newvalueset</varname> com o valor " 9266"<varname>nosetvalue</varname> são pulados. Veja o exemplo da Variante 2. " 9267 9268#. Tag: para 9269#: reference_raster.xml:3969 9270#, no-c-format 9271msgid "" 9272"For Variant 3, the specific pixels to be set are determined by the " 9273"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates, " 9274"<varname>width</varname> and <varname>height</varname>. See example Variant " 9275"3." 9276msgstr "" 9277"Para Variante 3, os pixeis a serem estabelecidos são determinados pelas " 9278"<varname>columnx</varname>, <varname>rowy</varname> coordenadas pixel, " 9279"<varname>width</varname> e <varname>height</varname>. Veja o exemplo da " 9280"Variante 3." 9281 9282#. Tag: para 9283#: reference_raster.xml:3973 9284#, no-c-format 9285msgid "" 9286"Variant 4 is the same as Variant 3 with the exception that it assumes that " 9287"the first band's pixels of <varname>rast</varname> will be set." 9288msgstr "" 9289"A Variante 4 é a mesma que a Variante 3, com a exceção de que ela assume que " 9290"a primeira banda do pixel de <varname>rast</varname> será estabelecida. " 9291 9292#. Tag: para 9293#: reference_raster.xml:3977 9294#, no-c-format 9295msgid "" 9296"For Variant 5, an array of <xref linkend=\"geomval\"/> is used to determine " 9297"the specific pixels to be set. If all the geometries in the array are of " 9298"type POINT or MULTIPOINT, the function uses a shortcut where the longitude " 9299"and latitude of each point is used to set a pixel directly. Otherwise, the " 9300"geometries are converted to rasters and then iterated through in one pass. " 9301"See example Variant 5." 9302msgstr "" 9303"Para a Variante 5, um arranjo de <xref linkend=\"geomval\"/> é usado para " 9304"determinar os pixeis específicos. Se todas as geometrias no arranjo forem do " 9305"tipo PONTO ou MULTIPONTO, a função usa um atalho onde a longitude e latitude " 9306"de cada ponto é usada para pôr um pixel diretamente. Caso contrário, as " 9307"geometrias são convertidas para rasters e então iteradas através de um " 9308"passo. Veja o exemplo de Variante 5. " 9309 9310#. Tag: programlisting 9311#: reference_raster.xml:3988 9312#, no-c-format 9313msgid "" 9314"/*\n" 9315"The ST_SetValues() does the following...\n" 9316"\n" 9317"+ - + - + - + + - + - + - +\n" 9318"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9319"+ - + - + - + + - + - + - +\n" 9320"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9321"+ - + - + - + + - + - + - +\n" 9322"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9323"+ - + - + - + + - + - + - +\n" 9324"*/\n" 9325"SELECT\n" 9326" (poly).x,\n" 9327" (poly).y,\n" 9328" (poly).val\n" 9329"FROM (\n" 9330"SELECT\n" 9331" ST_PixelAsPolygons(\n" 9332" ST_SetValues(\n" 9333" ST_AddBand(\n" 9334" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9335"0),\n" 9336" 1, '8BUI', 1, 0\n" 9337" ),\n" 9338" 1, 2, 2, ARRAY[[9, 9], [9, 9]]::double precision[]" 9339"[]\n" 9340" )\n" 9341" ) AS poly\n" 9342") foo\n" 9343"ORDER BY 1, 2;\n" 9344"\n" 9345" x | y | val\n" 9346"---+---+-----\n" 9347" 1 | 1 | 1\n" 9348" 1 | 2 | 1\n" 9349" 1 | 3 | 1\n" 9350" 2 | 1 | 1\n" 9351" 2 | 2 | 9\n" 9352" 2 | 3 | 9\n" 9353" 3 | 1 | 1\n" 9354" 3 | 2 | 9\n" 9355" 3 | 3 | 9" 9356msgstr "" 9357"/*\n" 9358"The ST_SetValues() does the following...\n" 9359"\n" 9360"+ - + - + - + + - + - + - +\n" 9361"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9362"+ - + - + - + + - + - + - +\n" 9363"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9364"+ - + - + - + + - + - + - +\n" 9365"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9366"+ - + - + - + + - + - + - +\n" 9367"*/\n" 9368"SELECT\n" 9369" (poly).x,\n" 9370" (poly).y,\n" 9371" (poly).val\n" 9372"FROM (\n" 9373"SELECT\n" 9374" ST_PixelAsPolygons(\n" 9375" ST_SetValues(\n" 9376" ST_AddBand(\n" 9377" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9378"0),\n" 9379" 1, '8BUI', 1, 0\n" 9380" ),\n" 9381" 1, 2, 2, ARRAY[[9, 9], [9, 9]]::double precision[]" 9382"[]\n" 9383" )\n" 9384" ) AS poly\n" 9385") foo\n" 9386"ORDER BY 1, 2;\n" 9387"\n" 9388" x | y | val\n" 9389"---+---+-----\n" 9390" 1 | 1 | 1\n" 9391" 1 | 2 | 1\n" 9392" 1 | 3 | 1\n" 9393" 2 | 1 | 1\n" 9394" 2 | 2 | 9\n" 9395" 2 | 3 | 9\n" 9396" 3 | 1 | 1\n" 9397" 3 | 2 | 9\n" 9398" 3 | 3 | 9" 9399 9400#. Tag: programlisting 9401#: reference_raster.xml:3990 9402#, no-c-format 9403msgid "" 9404"/*\n" 9405"The ST_SetValues() does the following...\n" 9406"\n" 9407"+ - + - + - + + - + - + - +\n" 9408"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9409"+ - + - + - + + - + - + - +\n" 9410"| 1 | 1 | 1 | => | 9 | | 9 |\n" 9411"+ - + - + - + + - + - + - +\n" 9412"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9413"+ - + - + - + + - + - + - +\n" 9414"*/\n" 9415"SELECT\n" 9416" (poly).x,\n" 9417" (poly).y,\n" 9418" (poly).val\n" 9419"FROM (\n" 9420"SELECT\n" 9421" ST_PixelAsPolygons(\n" 9422" ST_SetValues(\n" 9423" ST_AddBand(\n" 9424" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9425"0),\n" 9426" 1, '8BUI', 1, 0\n" 9427" ),\n" 9428" 1, 1, 1, ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9429"double precision[][]\n" 9430" )\n" 9431" ) AS poly\n" 9432") foo\n" 9433"ORDER BY 1, 2;\n" 9434"\n" 9435" x | y | val\n" 9436"---+---+-----\n" 9437" 1 | 1 | 9\n" 9438" 1 | 2 | 9\n" 9439" 1 | 3 | 9\n" 9440" 2 | 1 | 9\n" 9441" 2 | 2 |\n" 9442" 2 | 3 | 9\n" 9443" 3 | 1 | 9\n" 9444" 3 | 2 | 9\n" 9445" 3 | 3 | 9" 9446msgstr "" 9447"/*\n" 9448"The ST_SetValues() does the following...\n" 9449"\n" 9450"+ - + - + - + + - + - + - +\n" 9451"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9452"+ - + - + - + + - + - + - +\n" 9453"| 1 | 1 | 1 | => | 9 | | 9 |\n" 9454"+ - + - + - + + - + - + - +\n" 9455"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9456"+ - + - + - + + - + - + - +\n" 9457"*/\n" 9458"SELECT\n" 9459" (poly).x,\n" 9460" (poly).y,\n" 9461" (poly).val\n" 9462"FROM (\n" 9463"SELECT\n" 9464" ST_PixelAsPolygons(\n" 9465" ST_SetValues(\n" 9466" ST_AddBand(\n" 9467" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9468"0),\n" 9469" 1, '8BUI', 1, 0\n" 9470" ),\n" 9471" 1, 1, 1, ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9472"double precision[][]\n" 9473" )\n" 9474" ) AS poly\n" 9475") foo\n" 9476"ORDER BY 1, 2;\n" 9477"\n" 9478" x | y | val\n" 9479"---+---+-----\n" 9480" 1 | 1 | 9\n" 9481" 1 | 2 | 9\n" 9482" 1 | 3 | 9\n" 9483" 2 | 1 | 9\n" 9484" 2 | 2 |\n" 9485" 2 | 3 | 9\n" 9486" 3 | 1 | 9\n" 9487" 3 | 2 | 9\n" 9488" 3 | 3 | 9" 9489 9490#. Tag: programlisting 9491#: reference_raster.xml:3992 9492#, no-c-format 9493msgid "" 9494"/*\n" 9495"The ST_SetValues() does the following...\n" 9496"\n" 9497"+ - + - + - + + - + - + - +\n" 9498"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9499"+ - + - + - + + - + - + - +\n" 9500"| 1 | 1 | 1 | => | 1 | | 9 |\n" 9501"+ - + - + - + + - + - + - +\n" 9502"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9503"+ - + - + - + + - + - + - +\n" 9504"*/\n" 9505"SELECT\n" 9506" (poly).x,\n" 9507" (poly).y,\n" 9508" (poly).val\n" 9509"FROM (\n" 9510"SELECT\n" 9511" ST_PixelAsPolygons(\n" 9512" ST_SetValues(\n" 9513" ST_AddBand(\n" 9514" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9515"0),\n" 9516" 1, '8BUI', 1, 0\n" 9517" ),\n" 9518" 1, 1, 1,\n" 9519" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9520"double precision[][],\n" 9521" ARRAY[[false], [true]]::boolean[][]\n" 9522" )\n" 9523" ) AS poly\n" 9524") foo\n" 9525"ORDER BY 1, 2;\n" 9526"\n" 9527" x | y | val\n" 9528"---+---+-----\n" 9529" 1 | 1 | 9\n" 9530" 1 | 2 | 1\n" 9531" 1 | 3 | 9\n" 9532" 2 | 1 | 9\n" 9533" 2 | 2 |\n" 9534" 2 | 3 | 9\n" 9535" 3 | 1 | 9\n" 9536" 3 | 2 | 9\n" 9537" 3 | 3 | 9" 9538msgstr "" 9539"/*\n" 9540"The ST_SetValues() does the following...\n" 9541"\n" 9542"+ - + - + - + + - + - + - +\n" 9543"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9544"+ - + - + - + + - + - + - +\n" 9545"| 1 | 1 | 1 | => | 1 | | 9 |\n" 9546"+ - + - + - + + - + - + - +\n" 9547"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9548"+ - + - + - + + - + - + - +\n" 9549"*/\n" 9550"SELECT\n" 9551" (poly).x,\n" 9552" (poly).y,\n" 9553" (poly).val\n" 9554"FROM (\n" 9555"SELECT\n" 9556" ST_PixelAsPolygons(\n" 9557" ST_SetValues(\n" 9558" ST_AddBand(\n" 9559" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9560"0),\n" 9561" 1, '8BUI', 1, 0\n" 9562" ),\n" 9563" 1, 1, 1,\n" 9564" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9565"double precision[][],\n" 9566" ARRAY[[false], [true]]::boolean[][]\n" 9567" )\n" 9568" ) AS poly\n" 9569") foo\n" 9570"ORDER BY 1, 2;\n" 9571"\n" 9572" x | y | val\n" 9573"---+---+-----\n" 9574" 1 | 1 | 9\n" 9575" 1 | 2 | 1\n" 9576" 1 | 3 | 9\n" 9577" 2 | 1 | 9\n" 9578" 2 | 2 |\n" 9579" 2 | 3 | 9\n" 9580" 3 | 1 | 9\n" 9581" 3 | 2 | 9\n" 9582" 3 | 3 | 9" 9583 9584#. Tag: programlisting 9585#: reference_raster.xml:3994 9586#, no-c-format 9587msgid "" 9588"/*\n" 9589"The ST_SetValues() does the following...\n" 9590"\n" 9591"+ - + - + - + + - + - + - +\n" 9592"| | 1 | 1 | | | 9 | 9 |\n" 9593"+ - + - + - + + - + - + - +\n" 9594"| 1 | 1 | 1 | => | 1 | | 9 |\n" 9595"+ - + - + - + + - + - + - +\n" 9596"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9597"+ - + - + - + + - + - + - +\n" 9598"*/\n" 9599"SELECT\n" 9600" (poly).x,\n" 9601" (poly).y,\n" 9602" (poly).val\n" 9603"FROM (\n" 9604"SELECT\n" 9605" ST_PixelAsPolygons(\n" 9606" ST_SetValues(\n" 9607" ST_SetValue(\n" 9608" ST_AddBand(\n" 9609" ST_MakeEmptyRaster(3, 3, 0, 0, 1, " 9610"-1, 0, 0, 0),\n" 9611" 1, '8BUI', 1, 0\n" 9612" ),\n" 9613" 1, 1, 1, NULL\n" 9614" ),\n" 9615" 1, 1, 1,\n" 9616" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9617"double precision[][],\n" 9618" ARRAY[[false], [true]]::boolean[][],\n" 9619" TRUE\n" 9620" )\n" 9621" ) AS poly\n" 9622") foo\n" 9623"ORDER BY 1, 2;\n" 9624"\n" 9625" x | y | val\n" 9626"---+---+-----\n" 9627" 1 | 1 |\n" 9628" 1 | 2 | 1\n" 9629" 1 | 3 | 9\n" 9630" 2 | 1 | 9\n" 9631" 2 | 2 |\n" 9632" 2 | 3 | 9\n" 9633" 3 | 1 | 9\n" 9634" 3 | 2 | 9\n" 9635" 3 | 3 | 9" 9636msgstr "" 9637"/*\n" 9638"The ST_SetValues() does the following...\n" 9639"\n" 9640"+ - + - + - + + - + - + - +\n" 9641"| | 1 | 1 | | | 9 | 9 |\n" 9642"+ - + - + - + + - + - + - +\n" 9643"| 1 | 1 | 1 | => | 1 | | 9 |\n" 9644"+ - + - + - + + - + - + - +\n" 9645"| 1 | 1 | 1 | | 9 | 9 | 9 |\n" 9646"+ - + - + - + + - + - + - +\n" 9647"*/\n" 9648"SELECT\n" 9649" (poly).x,\n" 9650" (poly).y,\n" 9651" (poly).val\n" 9652"FROM (\n" 9653"SELECT\n" 9654" ST_PixelAsPolygons(\n" 9655" ST_SetValues(\n" 9656" ST_SetValue(\n" 9657" ST_AddBand(\n" 9658" ST_MakeEmptyRaster(3, 3, 0, 0, 1, " 9659"-1, 0, 0, 0),\n" 9660" 1, '8BUI', 1, 0\n" 9661" ),\n" 9662" 1, 1, 1, NULL\n" 9663" ),\n" 9664" 1, 1, 1,\n" 9665" ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::" 9666"double precision[][],\n" 9667" ARRAY[[false], [true]]::boolean[][],\n" 9668" TRUE\n" 9669" )\n" 9670" ) AS poly\n" 9671") foo\n" 9672"ORDER BY 1, 2;\n" 9673"\n" 9674" x | y | val\n" 9675"---+---+-----\n" 9676" 1 | 1 |\n" 9677" 1 | 2 | 1\n" 9678" 1 | 3 | 9\n" 9679" 2 | 1 | 9\n" 9680" 2 | 2 |\n" 9681" 2 | 3 | 9\n" 9682" 3 | 1 | 9\n" 9683" 3 | 2 | 9\n" 9684" 3 | 3 | 9" 9685 9686#. Tag: programlisting 9687#: reference_raster.xml:4001 9688#, no-c-format 9689msgid "" 9690"/*\n" 9691"The ST_SetValues() does the following...\n" 9692"\n" 9693"+ - + - + - + + - + - + - +\n" 9694"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9695"+ - + - + - + + - + - + - +\n" 9696"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9697"+ - + - + - + + - + - + - +\n" 9698"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9699"+ - + - + - + + - + - + - +\n" 9700"*/\n" 9701"SELECT\n" 9702" (poly).x,\n" 9703" (poly).y,\n" 9704" (poly).val\n" 9705"FROM (\n" 9706"SELECT\n" 9707" ST_PixelAsPolygons(\n" 9708" ST_SetValues(\n" 9709" ST_AddBand(\n" 9710" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9711"0),\n" 9712" 1, '8BUI', 1, 0\n" 9713" ),\n" 9714" 1, 1, 1, ARRAY[[-1, -1, -1], [-1, 9, 9], [-1, 9, " 9715"9]]::double precision[][], -1\n" 9716" )\n" 9717" ) AS poly\n" 9718") foo\n" 9719"ORDER BY 1, 2;\n" 9720"\n" 9721" x | y | val\n" 9722"---+---+-----\n" 9723" 1 | 1 | 1\n" 9724" 1 | 2 | 1\n" 9725" 1 | 3 | 1\n" 9726" 2 | 1 | 1\n" 9727" 2 | 2 | 9\n" 9728" 2 | 3 | 9\n" 9729" 3 | 1 | 1\n" 9730" 3 | 2 | 9\n" 9731" 3 | 3 | 9" 9732msgstr "" 9733"/*\n" 9734"The ST_SetValues() does the following...\n" 9735"\n" 9736"+ - + - + - + + - + - + - +\n" 9737"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9738"+ - + - + - + + - + - + - +\n" 9739"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9740"+ - + - + - + + - + - + - +\n" 9741"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9742"+ - + - + - + + - + - + - +\n" 9743"*/\n" 9744"SELECT\n" 9745" (poly).x,\n" 9746" (poly).y,\n" 9747" (poly).val\n" 9748"FROM (\n" 9749"SELECT\n" 9750" ST_PixelAsPolygons(\n" 9751" ST_SetValues(\n" 9752" ST_AddBand(\n" 9753" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9754"0),\n" 9755" 1, '8BUI', 1, 0\n" 9756" ),\n" 9757" 1, 1, 1, ARRAY[[-1, -1, -1], [-1, 9, 9], [-1, 9, " 9758"9]]::double precision[][], -1\n" 9759" )\n" 9760" ) AS poly\n" 9761") foo\n" 9762"ORDER BY 1, 2;\n" 9763"\n" 9764" x | y | val\n" 9765"---+---+-----\n" 9766" 1 | 1 | 1\n" 9767" 1 | 2 | 1\n" 9768" 1 | 3 | 1\n" 9769" 2 | 1 | 1\n" 9770" 2 | 2 | 9\n" 9771" 2 | 3 | 9\n" 9772" 3 | 1 | 1\n" 9773" 3 | 2 | 9\n" 9774" 3 | 3 | 9" 9775 9776#. Tag: programlisting 9777#: reference_raster.xml:4003 9778#, no-c-format 9779msgid "" 9780"/*\n" 9781"This example is like the previous one. Instead of nosetvalue = -1, " 9782"nosetvalue = NULL\n" 9783"\n" 9784"The ST_SetValues() does the following...\n" 9785"\n" 9786"+ - + - + - + + - + - + - +\n" 9787"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9788"+ - + - + - + + - + - + - +\n" 9789"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9790"+ - + - + - + + - + - + - +\n" 9791"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9792"+ - + - + - + + - + - + - +\n" 9793"*/\n" 9794"SELECT\n" 9795" (poly).x,\n" 9796" (poly).y,\n" 9797" (poly).val\n" 9798"FROM (\n" 9799"SELECT\n" 9800" ST_PixelAsPolygons(\n" 9801" ST_SetValues(\n" 9802" ST_AddBand(\n" 9803" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9804"0),\n" 9805" 1, '8BUI', 1, 0\n" 9806" ),\n" 9807" 1, 1, 1, ARRAY[[NULL, NULL, NULL], [NULL, 9, 9], " 9808"[NULL, 9, 9]]::double precision[][], NULL::double precision\n" 9809" )\n" 9810" ) AS poly\n" 9811") foo\n" 9812"ORDER BY 1, 2;\n" 9813"\n" 9814" x | y | val\n" 9815"---+---+-----\n" 9816" 1 | 1 | 1\n" 9817" 1 | 2 | 1\n" 9818" 1 | 3 | 1\n" 9819" 2 | 1 | 1\n" 9820" 2 | 2 | 9\n" 9821" 2 | 3 | 9\n" 9822" 3 | 1 | 1\n" 9823" 3 | 2 | 9\n" 9824" 3 | 3 | 9" 9825msgstr "" 9826"/*\n" 9827"This example is like the previous one. Instead of nosetvalue = -1, " 9828"nosetvalue = NULL\n" 9829"\n" 9830"The ST_SetValues() does the following...\n" 9831"\n" 9832"+ - + - + - + + - + - + - +\n" 9833"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9834"+ - + - + - + + - + - + - +\n" 9835"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9836"+ - + - + - + + - + - + - +\n" 9837"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9838"+ - + - + - + + - + - + - +\n" 9839"*/\n" 9840"SELECT\n" 9841" (poly).x,\n" 9842" (poly).y,\n" 9843" (poly).val\n" 9844"FROM (\n" 9845"SELECT\n" 9846" ST_PixelAsPolygons(\n" 9847" ST_SetValues(\n" 9848" ST_AddBand(\n" 9849" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9850"0),\n" 9851" 1, '8BUI', 1, 0\n" 9852" ),\n" 9853" 1, 1, 1, ARRAY[[NULL, NULL, NULL], [NULL, 9, 9], " 9854"[NULL, 9, 9]]::double precision[][], NULL::double precision\n" 9855" )\n" 9856" ) AS poly\n" 9857") foo\n" 9858"ORDER BY 1, 2;\n" 9859"\n" 9860" x | y | val\n" 9861"---+---+-----\n" 9862" 1 | 1 | 1\n" 9863" 1 | 2 | 1\n" 9864" 1 | 3 | 1\n" 9865" 2 | 1 | 1\n" 9866" 2 | 2 | 9\n" 9867" 2 | 3 | 9\n" 9868" 3 | 1 | 1\n" 9869" 3 | 2 | 9\n" 9870" 3 | 3 | 9" 9871 9872#. Tag: title 9873#: reference_raster.xml:4008 reference_raster.xml:4953 9874#, no-c-format 9875msgid "Examples: Variant 3" 9876msgstr "Exemplos: Variante 3" 9877 9878#. Tag: programlisting 9879#: reference_raster.xml:4010 9880#, no-c-format 9881msgid "" 9882"/*\n" 9883"The ST_SetValues() does the following...\n" 9884"\n" 9885"+ - + - + - + + - + - + - +\n" 9886"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9887"+ - + - + - + + - + - + - +\n" 9888"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9889"+ - + - + - + + - + - + - +\n" 9890"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9891"+ - + - + - + + - + - + - +\n" 9892"*/\n" 9893"SELECT\n" 9894" (poly).x,\n" 9895" (poly).y,\n" 9896" (poly).val\n" 9897"FROM (\n" 9898"SELECT\n" 9899" ST_PixelAsPolygons(\n" 9900" ST_SetValues(\n" 9901" ST_AddBand(\n" 9902" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9903"0),\n" 9904" 1, '8BUI', 1, 0\n" 9905" ),\n" 9906" 1, 2, 2, 2, 2, 9\n" 9907" )\n" 9908" ) AS poly\n" 9909") foo\n" 9910"ORDER BY 1, 2;\n" 9911"\n" 9912" x | y | val\n" 9913"---+---+-----\n" 9914" 1 | 1 | 1\n" 9915" 1 | 2 | 1\n" 9916" 1 | 3 | 1\n" 9917" 2 | 1 | 1\n" 9918" 2 | 2 | 9\n" 9919" 2 | 3 | 9\n" 9920" 3 | 1 | 1\n" 9921" 3 | 2 | 9\n" 9922" 3 | 3 | 9" 9923msgstr "" 9924"/*\n" 9925"The ST_SetValues() does the following...\n" 9926"\n" 9927"+ - + - + - + + - + - + - +\n" 9928"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9929"+ - + - + - + + - + - + - +\n" 9930"| 1 | 1 | 1 | => | 1 | 9 | 9 |\n" 9931"+ - + - + - + + - + - + - +\n" 9932"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9933"+ - + - + - + + - + - + - +\n" 9934"*/\n" 9935"SELECT\n" 9936" (poly).x,\n" 9937" (poly).y,\n" 9938" (poly).val\n" 9939"FROM (\n" 9940"SELECT\n" 9941" ST_PixelAsPolygons(\n" 9942" ST_SetValues(\n" 9943" ST_AddBand(\n" 9944" ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, " 9945"0),\n" 9946" 1, '8BUI', 1, 0\n" 9947" ),\n" 9948" 1, 2, 2, 2, 2, 9\n" 9949" )\n" 9950" ) AS poly\n" 9951") foo\n" 9952"ORDER BY 1, 2;\n" 9953"\n" 9954" x | y | val\n" 9955"---+---+-----\n" 9956" 1 | 1 | 1\n" 9957" 1 | 2 | 1\n" 9958" 1 | 3 | 1\n" 9959" 2 | 1 | 1\n" 9960" 2 | 2 | 9\n" 9961" 2 | 3 | 9\n" 9962" 3 | 1 | 1\n" 9963" 3 | 2 | 9\n" 9964" 3 | 3 | 9" 9965 9966#. Tag: programlisting 9967#: reference_raster.xml:4012 9968#, no-c-format 9969msgid "" 9970"/*\n" 9971"The ST_SetValues() does the following...\n" 9972"\n" 9973"+ - + - + - + + - + - + - +\n" 9974"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 9975"+ - + - + - + + - + - + - +\n" 9976"| 1 | | 1 | => | 1 | | 9 |\n" 9977"+ - + - + - + + - + - + - +\n" 9978"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 9979"+ - + - + - + + - + - + - +\n" 9980"*/\n" 9981"SELECT\n" 9982" (poly).x,\n" 9983" (poly).y,\n" 9984" (poly).val\n" 9985"FROM (\n" 9986"SELECT\n" 9987" ST_PixelAsPolygons(\n" 9988" ST_SetValues(\n" 9989" ST_SetValue(\n" 9990" ST_AddBand(\n" 9991" ST_MakeEmptyRaster(3, 3, 0, 0, 1, " 9992"-1, 0, 0, 0),\n" 9993" 1, '8BUI', 1, 0\n" 9994" ),\n" 9995" 1, 2, 2, NULL\n" 9996" ),\n" 9997" 1, 2, 2, 2, 2, 9, TRUE\n" 9998" )\n" 9999" ) AS poly\n" 10000") foo\n" 10001"ORDER BY 1, 2;\n" 10002"\n" 10003" x | y | val\n" 10004"---+---+-----\n" 10005" 1 | 1 | 1\n" 10006" 1 | 2 | 1\n" 10007" 1 | 3 | 1\n" 10008" 2 | 1 | 1\n" 10009" 2 | 2 |\n" 10010" 2 | 3 | 9\n" 10011" 3 | 1 | 1\n" 10012" 3 | 2 | 9\n" 10013" 3 | 3 | 9" 10014msgstr "" 10015"/*\n" 10016"The ST_SetValues() does the following...\n" 10017"\n" 10018"+ - + - + - + + - + - + - +\n" 10019"| 1 | 1 | 1 | | 1 | 1 | 1 |\n" 10020"+ - + - + - + + - + - + - +\n" 10021"| 1 | | 1 | => | 1 | | 9 |\n" 10022"+ - + - + - + + - + - + - +\n" 10023"| 1 | 1 | 1 | | 1 | 9 | 9 |\n" 10024"+ - + - + - + + - + - + - +\n" 10025"*/\n" 10026"SELECT\n" 10027" (poly).x,\n" 10028" (poly).y,\n" 10029" (poly).val\n" 10030"FROM (\n" 10031"SELECT\n" 10032" ST_PixelAsPolygons(\n" 10033" ST_SetValues(\n" 10034" ST_SetValue(\n" 10035" ST_AddBand(\n" 10036" ST_MakeEmptyRaster(3, 3, 0, 0, 1, " 10037"-1, 0, 0, 0),\n" 10038" 1, '8BUI', 1, 0\n" 10039" ),\n" 10040" 1, 2, 2, NULL\n" 10041" ),\n" 10042" 1, 2, 2, 2, 2, 9, TRUE\n" 10043" )\n" 10044" ) AS poly\n" 10045") foo\n" 10046"ORDER BY 1, 2;\n" 10047"\n" 10048" x | y | val\n" 10049"---+---+-----\n" 10050" 1 | 1 | 1\n" 10051" 1 | 2 | 1\n" 10052" 1 | 3 | 1\n" 10053" 2 | 1 | 1\n" 10054" 2 | 2 |\n" 10055" 2 | 3 | 9\n" 10056" 3 | 1 | 1\n" 10057" 3 | 2 | 9\n" 10058" 3 | 3 | 9" 10059 10060#. Tag: title 10061#: reference_raster.xml:4017 10062#, no-c-format 10063msgid "Examples: Variant 5" 10064msgstr "Exemplos: Variante 5" 10065 10066#. Tag: programlisting 10067#: reference_raster.xml:4019 10068#, no-c-format 10069msgid "" 10070"WITH foo AS (\n" 10071" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10072"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10073"), bar AS (\n" 10074" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10075" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10076"geometry geom UNION ALL\n" 10077" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10078"0 0))'::geometry geom UNION ALL\n" 10079" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10080")\n" 10081"SELECT\n" 10082" rid, gid, ST_DumpValues(ST_SetValue(rast, 1, geom, gid))\n" 10083"FROM foo t1\n" 10084"CROSS JOIN bar t2\n" 10085"ORDER BY rid, gid;\n" 10086"\n" 10087" rid | gid | " 10088"st_dumpvalues\n" 10089"-----+-----" 10090"+---------------------------------------------------------------------------------------------------------------------------------------------\n" 10091" 1 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}," 10092"{NULL,NULL,1,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL," 10093"NULL}}\")\n" 10094" 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},{NULL,2,2,2," 10095"NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10096" 1 | 3 | (1,\"{{3,3,3,3,3},{3,NULL,NULL,NULL,NULL},{3,NULL,NULL,NULL," 10097"NULL},{3,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10098" 1 | 4 | (1,\"{{4,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL," 10099"NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,4}}\")\n" 10100"(4 rows)" 10101msgstr "" 10102"WITH foo AS (\n" 10103" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10104"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10105"), bar AS (\n" 10106" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10107" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10108"geometry geom UNION ALL\n" 10109" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10110"0 0))'::geometry geom UNION ALL\n" 10111" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10112")\n" 10113"SELECT\n" 10114" rid, gid, ST_DumpValues(ST_SetValue(rast, 1, geom, gid))\n" 10115"FROM foo t1\n" 10116"CROSS JOIN bar t2\n" 10117"ORDER BY rid, gid;\n" 10118"\n" 10119" rid | gid | " 10120"st_dumpvalues\n" 10121"-----+-----" 10122"+---------------------------------------------------------------------------------------------------------------------------------------------\n" 10123" 1 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}," 10124"{NULL,NULL,1,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL," 10125"NULL}}\")\n" 10126" 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},{NULL,2,2,2," 10127"NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10128" 1 | 3 | (1,\"{{3,3,3,3,3},{3,NULL,NULL,NULL,NULL},{3,NULL,NULL,NULL," 10129"NULL},{3,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10130" 1 | 4 | (1,\"{{4,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL," 10131"NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,4}}\")\n" 10132"(4 rows)" 10133 10134#. Tag: para 10135#: reference_raster.xml:4021 10136#, no-c-format 10137msgid "" 10138"The following shows that geomvals later in the array can overwrite prior " 10139"geomvals" 10140msgstr "" 10141"A seguir está demonstrado que geomvals podem, mais tarde, sobrescrever no " 10142"arranjo geomvals anteriores" 10143 10144#. Tag: programlisting 10145#: reference_raster.xml:4022 10146#, no-c-format 10147msgid "" 10148"WITH foo AS (\n" 10149" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10150"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10151"), bar AS (\n" 10152" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10153" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10154"geometry geom UNION ALL\n" 10155" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10156"0 0))'::geometry geom UNION ALL\n" 10157" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10158")\n" 10159"SELECT\n" 10160" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, " 10161"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n" 10162"FROM foo t1\n" 10163"CROSS JOIN bar t2\n" 10164"CROSS JOIN bar t3\n" 10165"WHERE t2.gid = 1\n" 10166" AND t3.gid = 2\n" 10167"ORDER BY t1.rid, t2.gid, t3.gid;\n" 10168"\n" 10169" rid | gid | gid | " 10170"st_dumpvalues\n" 10171"-----+-----+-----" 10172"+---------------------------------------------------------------------------------------------------------------------\n" 10173" 1 | 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL}," 10174"{NULL,2,2,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10175"(1 row)" 10176msgstr "" 10177"WITH foo AS (\n" 10178" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10179"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10180"), bar AS (\n" 10181" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10182" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10183"geometry geom UNION ALL\n" 10184" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10185"0 0))'::geometry geom UNION ALL\n" 10186" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10187")\n" 10188"SELECT\n" 10189" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, " 10190"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n" 10191"FROM foo t1\n" 10192"CROSS JOIN bar t2\n" 10193"CROSS JOIN bar t3\n" 10194"WHERE t2.gid = 1\n" 10195" AND t3.gid = 2\n" 10196"ORDER BY t1.rid, t2.gid, t3.gid;\n" 10197"\n" 10198" rid | gid | gid | " 10199"st_dumpvalues\n" 10200"-----+-----+-----" 10201"+---------------------------------------------------------------------------------------------------------------------\n" 10202" 1 | 1 | 2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL}," 10203"{NULL,2,2,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10204"(1 row)" 10205 10206#. Tag: para 10207#: reference_raster.xml:4024 10208#, no-c-format 10209msgid "This example is the opposite of the prior example" 10210msgstr "Este exemplo é o oposto do exemplo anterior" 10211 10212#. Tag: programlisting 10213#: reference_raster.xml:4025 10214#, no-c-format 10215msgid "" 10216"WITH foo AS (\n" 10217" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10218"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10219"), bar AS (\n" 10220" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10221" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10222"geometry geom UNION ALL\n" 10223" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10224"0 0))'::geometry geom UNION ALL\n" 10225" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10226")\n" 10227"SELECT\n" 10228" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, " 10229"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n" 10230"FROM foo t1\n" 10231"CROSS JOIN bar t2\n" 10232"CROSS JOIN bar t3\n" 10233"WHERE t2.gid = 2\n" 10234" AND t3.gid = 1\n" 10235"ORDER BY t1.rid, t2.gid, t3.gid;\n" 10236"\n" 10237" rid | gid | gid | " 10238"st_dumpvalues\n" 10239"-----+-----+-----" 10240"+---------------------------------------------------------------------------------------------------------------------\n" 10241" 1 | 2 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL}," 10242"{NULL,2,1,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10243"(1 row)" 10244msgstr "" 10245"WITH foo AS (\n" 10246" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, " 10247"0, 0), 1, '8BUI', 0, 0) AS rast\n" 10248"), bar AS (\n" 10249" SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n" 10250" SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::" 10251"geometry geom UNION ALL\n" 10252" SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, " 10253"0 0))'::geometry geom UNION ALL\n" 10254" SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n" 10255")\n" 10256"SELECT\n" 10257" t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, " 10258"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n" 10259"FROM foo t1\n" 10260"CROSS JOIN bar t2\n" 10261"CROSS JOIN bar t3\n" 10262"WHERE t2.gid = 2\n" 10263" AND t3.gid = 1\n" 10264"ORDER BY t1.rid, t2.gid, t3.gid;\n" 10265"\n" 10266" rid | gid | gid | " 10267"st_dumpvalues\n" 10268"-----+-----+-----" 10269"+---------------------------------------------------------------------------------------------------------------------\n" 10270" 1 | 2 | 1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL}," 10271"{NULL,2,1,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 10272"(1 row)" 10273 10274#. Tag: para 10275#: reference_raster.xml:4032 10276#, no-c-format 10277msgid "" 10278", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_PixelAsPolygons" 10279"\"/>" 10280msgstr "" 10281", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_PixelAsPolygons" 10282"\"/>" 10283 10284#. Tag: refname 10285#: reference_raster.xml:4042 10286#, no-c-format 10287msgid "ST_DumpValues" 10288msgstr "ST_DumpValues" 10289 10290#. Tag: refpurpose 10291#: reference_raster.xml:4043 10292#, no-c-format 10293msgid "Get the values of the specified band as a 2-dimension array." 10294msgstr "Obtenha os valores da banda específica como um arranjo 2-dimensional." 10295 10296#. Tag: funcsynopsis 10297#: reference_raster.xml:4049 10298#, no-c-format 10299msgid "" 10300"<funcprototype> <funcdef>setof record <function>ST_DumpValues</function></" 10301"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 10302"paramdef> <paramdef> <type>integer[] </type> <parameter>nband=NULL</" 10303"parameter> </paramdef> <paramdef> <type>boolean </type> " 10304"<parameter>exclude_nodata_value=true</parameter> </paramdef> </" 10305"funcprototype> <funcprototype> <funcdef>double precision[][] " 10306"<function>ST_DumpValues</function></funcdef> <paramdef> <type>raster </type> " 10307"<parameter>rast</parameter> </paramdef> <paramdef> <type>integer </type> " 10308"<parameter>nband</parameter> </paramdef> <paramdef> <type>boolean </type> " 10309"<parameter>exclude_nodata_value=true</parameter> </paramdef> </funcprototype>" 10310msgstr "" 10311"<funcprototype> <funcdef>setof record <function>ST_DumpValues</function></" 10312"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 10313"paramdef> <paramdef> <type>integer[] </type> <parameter>nband=NULL</" 10314"parameter> </paramdef> <paramdef> <type>boolean </type> " 10315"<parameter>exclude_nodata_value=true</parameter> </paramdef> </" 10316"funcprototype> <funcprototype> <funcdef>double precision[][] " 10317"<function>ST_DumpValues</function></funcdef> <paramdef> <type>raster </type> " 10318"<parameter>rast</parameter> </paramdef> <paramdef> <type>integer </type> " 10319"<parameter>nband</parameter> </paramdef> <paramdef> <type>boolean </type> " 10320"<parameter>exclude_nodata_value=true</parameter> </paramdef> </funcprototype>" 10321 10322#. Tag: para 10323#: reference_raster.xml:4080 10324#, no-c-format 10325msgid "" 10326"Get the values of the specified band as a 2-dimension array (first index is " 10327"row, second is column). If <varname>nband</varname> is NULL or not provided, " 10328"all raster bands are processed." 10329msgstr "" 10330"Obtenha os valores da banda especificada como um arranjo 2-dimensional (o " 10331"primeiro índice é linha, o segundo é coluna). Se <varname>nband</varname> " 10332"for NULO ou não for fornecido, todas as bandas raster serão processadas. " 10333 10334#. Tag: programlisting 10335#: reference_raster.xml:4090 10336#, no-c-format 10337msgid "" 10338"WITH foo AS (\n" 10339" SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, " 10340"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, " 10341"'16BSI', 0, 0) AS rast\n" 10342")\n" 10343"SELECT\n" 10344" (ST_DumpValues(rast)).*\n" 10345"FROM foo;\n" 10346"\n" 10347" nband | valarray\n" 10348"-------+------------------------------------------------------\n" 10349" 1 | {{1,1,1},{1,1,1},{1,1,1}}\n" 10350" 2 | {{3,3,3},{3,3,3},{3,3,3}}\n" 10351" 3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n" 10352"(3 rows)" 10353msgstr "" 10354 10355#. Tag: programlisting 10356#: reference_raster.xml:4092 10357#, no-c-format 10358msgid "" 10359"WITH foo AS (\n" 10360" SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, " 10361"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, " 10362"'16BSI', 0, 0) AS rast\n" 10363")\n" 10364"SELECT\n" 10365" (ST_DumpValues(rast, ARRAY[3, 1])).*\n" 10366"FROM foo;\n" 10367"\n" 10368" nband | valarray\n" 10369"-------+------------------------------------------------------\n" 10370" 3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n" 10371" 1 | {{1,1,1},{1,1,1},{1,1,1}}\n" 10372"(2 rows)" 10373msgstr "" 10374 10375#. Tag: programlisting 10376#: reference_raster.xml:4093 10377#, no-c-format 10378msgid "" 10379"WITH foo AS (\n" 10380" SELECT ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 10381"0, 0, 0), 1, '8BUI', 1, 0), 1, 2, 5) AS rast\n" 10382")\n" 10383"SELECT\n" 10384" (ST_DumpValues(rast, 1))[2][1]\n" 10385"FROM foo;\n" 10386"\n" 10387" st_dumpvalues\n" 10388"---------------\n" 10389" 5\n" 10390"(1 row)" 10391msgstr "" 10392"WITH foo AS (\n" 10393" SELECT ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, " 10394"0, 0, 0), 1, '8BUI', 1, 0), 1, 2, 5) AS rast\n" 10395")\n" 10396"SELECT\n" 10397" (ST_DumpValues(rast, 1))[2][1]\n" 10398"FROM foo;\n" 10399"\n" 10400" st_dumpvalues\n" 10401"---------------\n" 10402" 5\n" 10403"(1 row)" 10404 10405#. Tag: para 10406#: reference_raster.xml:4098 10407#, no-c-format 10408msgid "" 10409", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_SetValues\"/>" 10410msgstr "" 10411", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_SetValues\"/>" 10412 10413#. Tag: refname 10414#: reference_raster.xml:4109 10415#, no-c-format 10416msgid "ST_PixelOfValue" 10417msgstr "ST_PixelOfValue" 10418 10419#. Tag: refpurpose 10420#: reference_raster.xml:4110 10421#, no-c-format 10422msgid "" 10423"Get the columnx, rowy coordinates of the pixel whose value equals the search " 10424"value." 10425msgstr "" 10426"Obtenha as coordenadas colunax, linhay do pixel cujos valores são iguais ao " 10427"valor de pesquisa. " 10428 10429#. Tag: funcsynopsis 10430#: reference_raster.xml:4116 10431#, no-c-format 10432msgid "" 10433"<funcprototype> <funcdef>setof record <function>ST_PixelOfValue</function></" 10434"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 10435"paramdef> <paramdef> <type>integer </type> <parameter>nband</parameter> </" 10436"paramdef> <paramdef> <type>double precision[] </type> <parameter>search</" 10437"parameter> </paramdef> <paramdef> <type>boolean </type> " 10438"<parameter>exclude_nodata_value=true</parameter> </paramdef> </" 10439"funcprototype> <funcprototype> <funcdef>setof record " 10440"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10441"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double " 10442"precision[] </type> <parameter>search</parameter> </paramdef> <paramdef> " 10443"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10444"paramdef> </funcprototype> <funcprototype> <funcdef>setof record " 10445"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10446"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>integer </" 10447"type> <parameter>nband</parameter> </paramdef> <paramdef> <type>double " 10448"precision </type> <parameter>search</parameter> </paramdef> <paramdef> " 10449"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10450"paramdef> </funcprototype> <funcprototype> <funcdef>setof record " 10451"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10452"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double " 10453"precision </type> <parameter>search</parameter> </paramdef> <paramdef> " 10454"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10455"paramdef> </funcprototype>" 10456msgstr "" 10457"<funcprototype> <funcdef>setof record <function>ST_PixelOfValue</function></" 10458"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 10459"paramdef> <paramdef> <type>integer </type> <parameter>nband</parameter> </" 10460"paramdef> <paramdef> <type>double precision[] </type> <parameter>search</" 10461"parameter> </paramdef> <paramdef> <type>boolean </type> " 10462"<parameter>exclude_nodata_value=true</parameter> </paramdef> </" 10463"funcprototype> <funcprototype> <funcdef>setof record " 10464"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10465"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double " 10466"precision[] </type> <parameter>search</parameter> </paramdef> <paramdef> " 10467"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10468"paramdef> </funcprototype> <funcprototype> <funcdef>setof record " 10469"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10470"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>integer </" 10471"type> <parameter>nband</parameter> </paramdef> <paramdef> <type>double " 10472"precision </type> <parameter>search</parameter> </paramdef> <paramdef> " 10473"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10474"paramdef> </funcprototype> <funcprototype> <funcdef>setof record " 10475"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </" 10476"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double " 10477"precision </type> <parameter>search</parameter> </paramdef> <paramdef> " 10478"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </" 10479"paramdef> </funcprototype>" 10480 10481#. Tag: para 10482#: reference_raster.xml:4177 10483#, no-c-format 10484msgid "" 10485"Get the columnx, rowy coordinates of the pixel whose value equals the search " 10486"value. If no band is specified, then band 1 is assumed." 10487msgstr "" 10488"Obtenha as coordenadas colunax, linhay do pixel cujos valores são iguais ao " 10489"valor de pesquisa. Se nenhuma banda for especificada, então a banda 1 é " 10490"assumida. " 10491 10492#. Tag: programlisting 10493#: reference_raster.xml:4186 10494#, no-c-format 10495msgid "" 10496"SELECT\n" 10497" (pixels).*\n" 10498"FROM (\n" 10499" SELECT\n" 10500" ST_PixelOfValue(\n" 10501" ST_SetValue(\n" 10502" ST_SetValue(\n" 10503" ST_SetValue(\n" 10504" ST_SetValue(\n" 10505" ST_SetValue(\n" 10506" ST_AddBand(\n" 10507" ST_MakeEmptyRaster(5, " 10508"5, -2, 2, 1, -1, 0, 0, 0),\n" 10509" '8BUI'::" 10510"text, 1, 0\n" 10511" ),\n" 10512" 1, 1, 0\n" 10513" ),\n" 10514" 2, 3, 0\n" 10515" ),\n" 10516" 3, 5, 0\n" 10517" ),\n" 10518" 4, 2, 0\n" 10519" ),\n" 10520" 5, 4, 255\n" 10521" )\n" 10522" , 1, ARRAY[1, 255]) AS pixels\n" 10523") AS foo\n" 10524"\n" 10525" val | x | y\n" 10526"-----+---+---\n" 10527" 1 | 1 | 2\n" 10528" 1 | 1 | 3\n" 10529" 1 | 1 | 4\n" 10530" 1 | 1 | 5\n" 10531" 1 | 2 | 1\n" 10532" 1 | 2 | 2\n" 10533" 1 | 2 | 4\n" 10534" 1 | 2 | 5\n" 10535" 1 | 3 | 1\n" 10536" 1 | 3 | 2\n" 10537" 1 | 3 | 3\n" 10538" 1 | 3 | 4\n" 10539" 1 | 4 | 1\n" 10540" 1 | 4 | 3\n" 10541" 1 | 4 | 4\n" 10542" 1 | 4 | 5\n" 10543" 1 | 5 | 1\n" 10544" 1 | 5 | 2\n" 10545" 1 | 5 | 3\n" 10546" 255 | 5 | 4\n" 10547" 1 | 5 | 5" 10548msgstr "" 10549"SELECT\n" 10550" (pixels).*\n" 10551"FROM (\n" 10552" SELECT\n" 10553" ST_PixelOfValue(\n" 10554" ST_SetValue(\n" 10555" ST_SetValue(\n" 10556" ST_SetValue(\n" 10557" ST_SetValue(\n" 10558" ST_SetValue(\n" 10559" ST_AddBand(\n" 10560" ST_MakeEmptyRaster(5, " 10561"5, -2, 2, 1, -1, 0, 0, 0),\n" 10562" '8BUI'::" 10563"text, 1, 0\n" 10564" ),\n" 10565" 1, 1, 0\n" 10566" ),\n" 10567" 2, 3, 0\n" 10568" ),\n" 10569" 3, 5, 0\n" 10570" ),\n" 10571" 4, 2, 0\n" 10572" ),\n" 10573" 5, 4, 255\n" 10574" )\n" 10575" , 1, ARRAY[1, 255]) AS pixels\n" 10576") AS foo\n" 10577"\n" 10578" val | x | y\n" 10579"-----+---+---\n" 10580" 1 | 1 | 2\n" 10581" 1 | 1 | 3\n" 10582" 1 | 1 | 4\n" 10583" 1 | 1 | 5\n" 10584" 1 | 2 | 1\n" 10585" 1 | 2 | 2\n" 10586" 1 | 2 | 4\n" 10587" 1 | 2 | 5\n" 10588" 1 | 3 | 1\n" 10589" 1 | 3 | 2\n" 10590" 1 | 3 | 3\n" 10591" 1 | 3 | 4\n" 10592" 1 | 4 | 1\n" 10593" 1 | 4 | 3\n" 10594" 1 | 4 | 4\n" 10595" 1 | 4 | 5\n" 10596" 1 | 5 | 1\n" 10597" 1 | 5 | 2\n" 10598" 1 | 5 | 3\n" 10599" 255 | 5 | 4\n" 10600" 1 | 5 | 5" 10601 10602#. Tag: title 10603#: reference_raster.xml:4194 10604#, no-c-format 10605msgid "Raster Editors" 10606msgstr "Editores Raster" 10607 10608#. Tag: refname 10609#: reference_raster.xml:4198 10610#, no-c-format 10611msgid "ST_SetGeoReference" 10612msgstr "ST_SetGeoReference" 10613 10614#. Tag: refpurpose 10615#: reference_raster.xml:4199 10616#, no-c-format 10617msgid "" 10618"Set Georeference 6 georeference parameters in a single call. Numbers should " 10619"be separated by white space. Accepts inputs in GDAL or ESRI format. Default " 10620"is GDAL." 10621msgstr "" 10622"Coloque os parâmetros Georeference 6 em uma única chamada. Os números " 10623"deverão ser separadospor espaço branco. Aceita entrar no formato GDAL ou " 10624"ESRI. O padrão é GDAL. " 10625 10626#. Tag: funcsynopsis 10627#: reference_raster.xml:4203 10628#, no-c-format 10629msgid "" 10630"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></" 10631"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 10632"paramdef> <paramdef><type>text </type> <parameter>georefcoords</parameter></" 10633"paramdef> <paramdef choice=\"opt\"><type>text </type> " 10634"<parameter>format=GDAL</parameter></paramdef> </funcprototype> " 10635"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></" 10636"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 10637"paramdef> <paramdef><type>double precision </type> <parameter>upperleftx</" 10638"parameter></paramdef> <paramdef><type>double precision </type> " 10639"<parameter>upperlefty</parameter></paramdef> <paramdef><type>double " 10640"precision </type> <parameter>scalex</parameter></paramdef> " 10641"<paramdef><type>double precision </type> <parameter>scaley</parameter></" 10642"paramdef> <paramdef><type>double precision </type> <parameter>skewx</" 10643"parameter></paramdef> <paramdef><type>double precision </type> " 10644"<parameter>skewy</parameter></paramdef> </funcprototype>" 10645msgstr "" 10646"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></" 10647"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 10648"paramdef> <paramdef><type>text </type> <parameter>georefcoords</parameter></" 10649"paramdef> <paramdef choice=\"opt\"><type>text </type> " 10650"<parameter>format=GDAL</parameter></paramdef> </funcprototype> " 10651"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></" 10652"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 10653"paramdef> <paramdef><type>double precision </type> <parameter>upperleftx</" 10654"parameter></paramdef> <paramdef><type>double precision </type> " 10655"<parameter>upperlefty</parameter></paramdef> <paramdef><type>double " 10656"precision </type> <parameter>scalex</parameter></paramdef> " 10657"<paramdef><type>double precision </type> <parameter>scaley</parameter></" 10658"paramdef> <paramdef><type>double precision </type> <parameter>skewx</" 10659"parameter></paramdef> <paramdef><type>double precision </type> " 10660"<parameter>skewy</parameter></paramdef> </funcprototype>" 10661 10662#. Tag: para 10663#: reference_raster.xml:4229 10664#, no-c-format 10665msgid "" 10666"Set Georeference 6 georeference parameters in a single call. Accepts inputs " 10667"in 'GDAL' or 'ESRI' format. Default is GDAL. If 6 coordinates are not " 10668"provided will return null." 10669msgstr "" 10670"Coloca os parâmetros georreferência 6 em uma única chamada. Aceita entrar " 10671"no formato GDAL ou ESRI. O padrão é GDAL. Se 6 coordenadas não forem " 10672"fornecidas, retornará null. " 10673 10674#. Tag: programlisting 10675#: reference_raster.xml:4232 10676#, no-c-format 10677msgid "scalex skewy skewx scaley upperleftx upperlefty" 10678msgstr "scalex skewy skewx scaley upperleftx upperlefty" 10679 10680#. Tag: programlisting 10681#: reference_raster.xml:4234 10682#, no-c-format 10683msgid "" 10684"scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5" 10685msgstr "" 10686"scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5" 10687 10688#. Tag: para 10689#: reference_raster.xml:4237 10690#, no-c-format 10691msgid "" 10692"If the raster has out-db bands, changing the georeference may result in " 10693"incorrect access of the band's externally stored data." 10694msgstr "" 10695"Se o raster tiver bandas fora do banco de dados, alterar a georreferência " 10696"pode resultar em acesso incorreto dos dados de banda armazenados " 10697"externamente. " 10698 10699#. Tag: para 10700#: reference_raster.xml:4242 10701#, no-c-format 10702msgid "" 10703"Enhanced: 2.1.0 Addition of ST_SetGeoReference(raster, double " 10704"precision, ...) variant" 10705msgstr "" 10706"Melhorias: 2.1.0 Adição da variante ST_SetGeoReference(raster, double " 10707"precision, ...)" 10708 10709#. Tag: programlisting 10710#: reference_raster.xml:4249 10711#, no-c-format 10712msgid "" 10713"WITH foo AS (\n" 10714" SELECT ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0) AS rast\n" 10715")\n" 10716"SELECT\n" 10717" 0 AS rid, (ST_Metadata(rast)).*\n" 10718"FROM foo\n" 10719"UNION ALL\n" 10720"SELECT\n" 10721" 1, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 0.1 0.1', " 10722"'GDAL'))).*\n" 10723"FROM foo\n" 10724"UNION ALL\n" 10725"SELECT\n" 10726" 2, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 5.1 -4.9', " 10727"'ESRI'))).*\n" 10728"FROM foo\n" 10729"UNION ALL\n" 10730"SELECT\n" 10731" 3, (ST_Metadata(ST_SetGeoReference(rast, 1, 1, 10, -10, 0.001, " 10732"0.001))).*\n" 10733"FROM foo\n" 10734"\n" 10735" rid | upperleftx | upperlefty | width | height | scalex | " 10736"scaley | skewx | skewy | srid | numbands\n" 10737"-----+--------------------+--------------------+-------+--------+--------" 10738"+--------+-------+-------+------+----------\n" 10739" 0 | 0 | 0 | 5 | 5 | 1 " 10740"| -1 | 0 | 0 | 0 | 0\n" 10741" 1 | 0.1 | 0.1 | 5 | 5 | 10 " 10742"| -10 | 0 | 0 | 0 | 0\n" 10743" 2 | 0.0999999999999996 | 0.0999999999999996 | 5 | 5 | 10 " 10744"| -10 | 0 | 0 | 0 | 0\n" 10745" 3 | 1 | 1 | 5 | 5 | 10 " 10746"| -10 | 0.001 | 0.001 | 0 | 0" 10747msgstr "" 10748"WITH foo AS (\n" 10749" SELECT ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0) AS rast\n" 10750")\n" 10751"SELECT\n" 10752" 0 AS rid, (ST_Metadata(rast)).*\n" 10753"FROM foo\n" 10754"UNION ALL\n" 10755"SELECT\n" 10756" 1, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 0.1 0.1', " 10757"'GDAL'))).*\n" 10758"FROM foo\n" 10759"UNION ALL\n" 10760"SELECT\n" 10761" 2, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 5.1 -4.9', " 10762"'ESRI'))).*\n" 10763"FROM foo\n" 10764"UNION ALL\n" 10765"SELECT\n" 10766" 3, (ST_Metadata(ST_SetGeoReference(rast, 1, 1, 10, -10, 0.001, " 10767"0.001))).*\n" 10768"FROM foo\n" 10769"\n" 10770" rid | upperleftx | upperlefty | width | height | scalex | " 10771"scaley | skewx | skewy | srid | numbands\n" 10772"-----+--------------------+--------------------+-------+--------+--------" 10773"+--------+-------+-------+------+----------\n" 10774" 0 | 0 | 0 | 5 | 5 | 1 " 10775"| -1 | 0 | 0 | 0 | 0\n" 10776" 1 | 0.1 | 0.1 | 5 | 5 | 10 " 10777"| -10 | 0 | 0 | 0 | 0\n" 10778" 2 | 0.0999999999999996 | 0.0999999999999996 | 5 | 5 | 10 " 10779"| -10 | 0 | 0 | 0 | 0\n" 10780" 3 | 1 | 1 | 5 | 5 | 10 " 10781"| -10 | 0.001 | 0.001 | 0 | 0" 10782 10783#. Tag: para 10784#: reference_raster.xml:4254 10785#, no-c-format 10786msgid "" 10787", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 10788"linkend=\"RT_ST_UpperLeftX\"/>, <xref linkend=\"RT_ST_UpperLeftY\"/>" 10789msgstr "" 10790", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 10791"linkend=\"RT_ST_UpperLeftX\"/>, <xref linkend=\"RT_ST_UpperLeftY\"/>" 10792 10793#. Tag: refname 10794#: reference_raster.xml:4260 10795#, no-c-format 10796msgid "ST_SetRotation" 10797msgstr "ST_SetRotation" 10798 10799#. Tag: refpurpose 10800#: reference_raster.xml:4261 10801#, no-c-format 10802msgid "Set the rotation of the raster in radian." 10803msgstr "Põe a rotação do raster em radianos. " 10804 10805#. Tag: funcprototype 10806#: reference_raster.xml:4266 10807#, no-c-format 10808msgid "" 10809"<funcdef>float8 <function>ST_SetRotation</function></funcdef> " 10810"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef> " 10811"<paramdef><type>float8</type> <parameter>rotation</parameter></paramdef>" 10812msgstr "" 10813"<funcdef>float8 <function>ST_SetRotation</function></funcdef> " 10814"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef> " 10815"<paramdef><type>float8</type> <parameter>rotation</parameter></paramdef>" 10816 10817#. Tag: para 10818#: reference_raster.xml:4277 10819#, no-c-format 10820msgid "" 10821"Uniformly rotate the raster. Rotation is in radian. Refer to <ulink url=" 10822"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more " 10823"details." 10824msgstr "" 10825"Gira o raster uniformemente. A rotação é em radianos. Recorra a <ulink url=" 10826"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> para mais " 10827"detalhes. " 10828 10829#. Tag: programlisting 10830#: reference_raster.xml:4283 10831#, no-c-format 10832msgid "" 10833"SELECT\n" 10834" ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),\n" 10835" ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)\n" 10836"FROM (\n" 10837" SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast\n" 10838") AS foo;\n" 10839" st_scalex | st_scaley | st_skewx | " 10840"st_skewy | st_scalex | st_scaley | st_skewx | st_skewy\n" 10841"---------------------+---------------------+--------------------" 10842"+--------------------+-----------+-----------+----------+----------\n" 10843" -1.51937582571764 | -2.27906373857646 | 1.95086352047135 | " 10844"1.30057568031423 | 2 | 3 | 0 | 0\n" 10845" -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | " 10846"0.0325143920078558 | 0.05 | -0.05 | 0 | 0" 10847msgstr "" 10848"SELECT\n" 10849" ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),\n" 10850" ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)\n" 10851"FROM (\n" 10852" SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast\n" 10853") AS foo;\n" 10854" st_scalex | st_scaley | st_skewx | " 10855"st_skewy | st_scalex | st_scaley | st_skewx | st_skewy\n" 10856"---------------------+---------------------+--------------------" 10857"+--------------------+-----------+-----------+----------+----------\n" 10858" -1.51937582571764 | -2.27906373857646 | 1.95086352047135 | " 10859"1.30057568031423 | 2 | 3 | 0 | 0\n" 10860" -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | " 10861"0.0325143920078558 | 0.05 | -0.05 | 0 | 0" 10862 10863#. Tag: refname 10864#: reference_raster.xml:4296 10865#, no-c-format 10866msgid "ST_SetScale" 10867msgstr "ST_SetScale" 10868 10869#. Tag: refpurpose 10870#: reference_raster.xml:4297 10871#, no-c-format 10872msgid "" 10873"Sets the X and Y size of pixels in units of coordinate reference system. " 10874"Number units/pixel width/height." 10875msgstr "" 10876"Coloca os tamanhos X e Y dos pixeis em unidades do sistema referencial de " 10877"coordenadas. Número unidades/pixel largura/altura. " 10878 10879#. Tag: funcsynopsis 10880#: reference_raster.xml:4301 10881#, no-c-format 10882msgid "" 10883"<funcprototype> <funcdef>raster <function>ST_SetScale</function></funcdef> " 10884"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 10885"<paramdef><type>float8 </type> <parameter>xy</parameter></paramdef> </" 10886"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetScale</" 10887"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 10888"parameter></paramdef> <paramdef><type>float8 </type> <parameter>x</" 10889"parameter></paramdef> <paramdef><type>float8 </type> <parameter>y</" 10890"parameter></paramdef> </funcprototype>" 10891msgstr "" 10892"<funcprototype> <funcdef>raster <function>ST_SetScale</function></funcdef> " 10893"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 10894"<paramdef><type>float8 </type> <parameter>xy</parameter></paramdef> </" 10895"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetScale</" 10896"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 10897"parameter></paramdef> <paramdef><type>float8 </type> <parameter>x</" 10898"parameter></paramdef> <paramdef><type>float8 </type> <parameter>y</" 10899"parameter></paramdef> </funcprototype>" 10900 10901#. Tag: para 10902#: reference_raster.xml:4320 10903#, no-c-format 10904msgid "" 10905"Sets the X and Y size of pixels in units of coordinate reference system. " 10906"Number units/pixel width/height. If only one unit passed in, assumed X and Y " 10907"are the same number." 10908msgstr "" 10909"Coloca os tamanhos X e Y dos pixeis em unidades do sistema referencial de " 10910"coordenadas. Número unidades/pixel largura/altura. Se apenas uma unidade " 10911"passar, o X e Y assumido são o mesmo número. " 10912 10913#. Tag: para 10914#: reference_raster.xml:4323 10915#, no-c-format 10916msgid "" 10917"ST_SetScale is different from <xref linkend=\"RT_ST_Rescale\"/> in that " 10918"ST_SetScale do not resample the raster to match the raster extent. It only " 10919"changes the metadata (or georeference) of the raster to correct an " 10920"originally mis-specified scaling. ST_Rescale results in a raster having " 10921"different width and height computed to fit the geographic extent of the " 10922"input raster. ST_SetScale do not modify the width, nor the height of the " 10923"raster." 10924msgstr "" 10925"ST_SetScale é diferente de <xref linkend=\"RT_ST_Rescale\"/> onde a " 10926"ST_SetScale não resample o raster para combinar com a extensão. Apenas " 10927"altera os metadados (ou georreferência) do raster, para corrigir uma escala " 10928"originalmente mal especificada. A ST_SetScale resulta em um raster tendo " 10929"largura e altura diferentes, calculadas para caber na extensão geográfica do " 10930"raster de entrada. A ST_SetScale não modifica a largura, nem a altura do " 10931"raster." 10932 10933#. Tag: para 10934#: reference_raster.xml:4325 10935#, no-c-format 10936msgid "" 10937"Changed: 2.0.0 In WKTRaster versions this was called ST_SetPixelSize. This " 10938"was changed in 2.0.0." 10939msgstr "" 10940"Alterações: 2.0.0 Nas versões WKTRaster era chamado de ST_SetPixelSize. Foi " 10941"modificado na 2.0.0." 10942 10943#. Tag: programlisting 10944#: reference_raster.xml:4331 10945#, no-c-format 10946msgid "" 10947"UPDATE dummy_rast\n" 10948" SET rast = ST_SetScale(rast, 1.5)\n" 10949"WHERE rid = 2;\n" 10950"\n" 10951"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As " 10952"newbox\n" 10953"FROM dummy_rast\n" 10954"WHERE rid = 2;\n" 10955"\n" 10956" pixx | pixy | newbox\n" 10957"------+------+----------------------------------------------\n" 10958" 1.5 | 1.5 | BOX(3427927.75 5793244 0, 3427935.25 5793251.5 0)" 10959msgstr "" 10960"UPDATE dummy_rast\n" 10961" SET rast = ST_SetScale(rast, 1.5)\n" 10962"WHERE rid = 2;\n" 10963"\n" 10964"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As " 10965"newbox\n" 10966"FROM dummy_rast\n" 10967"WHERE rid = 2;\n" 10968"\n" 10969" pixx | pixy | newbox\n" 10970"------+------+----------------------------------------------\n" 10971" 1.5 | 1.5 | BOX(3427927.75 5793244 0, 3427935.25 5793251.5 0)" 10972 10973#. Tag: programlisting 10974#: reference_raster.xml:4332 10975#, no-c-format 10976msgid "" 10977"UPDATE dummy_rast\n" 10978" SET rast = ST_SetScale(rast, 1.5, 0.55)\n" 10979"WHERE rid = 2;\n" 10980"\n" 10981"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As " 10982"newbox\n" 10983"FROM dummy_rast\n" 10984"WHERE rid = 2;\n" 10985"\n" 10986" pixx | pixy | newbox\n" 10987"------+------+--------------------------------------------\n" 10988" 1.5 | 0.55 | BOX(3427927.75 5793244 0,3427935.25 5793247 0)" 10989msgstr "" 10990"UPDATE dummy_rast\n" 10991" SET rast = ST_SetScale(rast, 1.5, 0.55)\n" 10992"WHERE rid = 2;\n" 10993"\n" 10994"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As " 10995"newbox\n" 10996"FROM dummy_rast\n" 10997"WHERE rid = 2;\n" 10998"\n" 10999" pixx | pixy | newbox\n" 11000"------+------+--------------------------------------------\n" 11001" 1.5 | 0.55 | BOX(3427927.75 5793244 0,3427935.25 5793247 0)" 11002 11003#. Tag: para 11004#: reference_raster.xml:4338 11005#, no-c-format 11006msgid ", <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_Box3D\"/>" 11007msgstr ", <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_Box3D\"/>" 11008 11009#. Tag: refname 11010#: reference_raster.xml:4344 11011#, no-c-format 11012msgid "ST_SetSkew" 11013msgstr "ST_SetSkew" 11014 11015#. Tag: refpurpose 11016#: reference_raster.xml:4345 11017#, no-c-format 11018msgid "" 11019"Sets the georeference X and Y skew (or rotation parameter). If only one is " 11020"passed in, sets X and Y to the same value." 11021msgstr "" 11022"Coloca as georreferências X e Y distorcidas (ou parâmetro de rotação). Se " 11023"somente um passar, coloca o X e o Y no mesmo valor. " 11024 11025#. Tag: funcsynopsis 11026#: reference_raster.xml:4349 11027#, no-c-format 11028msgid "" 11029"<funcprototype> <funcdef>raster <function>ST_SetSkew</function></funcdef> " 11030"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11031"<paramdef><type>float8 </type> <parameter>skewxy</parameter></paramdef> </" 11032"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetSkew</" 11033"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 11034"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewx</" 11035"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewy</" 11036"parameter></paramdef> </funcprototype>" 11037msgstr "" 11038"<funcprototype> <funcdef>raster <function>ST_SetSkew</function></funcdef> " 11039"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11040"<paramdef><type>float8 </type> <parameter>skewxy</parameter></paramdef> </" 11041"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetSkew</" 11042"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 11043"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewx</" 11044"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewy</" 11045"parameter></paramdef> </funcprototype>" 11046 11047#. Tag: para 11048#: reference_raster.xml:4367 11049#, no-c-format 11050msgid "" 11051"Sets the georeference X and Y skew (or rotation parameter). If only one is " 11052"passed in, sets X and Y to the same value. Refer to <ulink url=\"http://en." 11053"wikipedia.org/wiki/World_file\">World File</ulink> for more details." 11054msgstr "" 11055"Coloca as georreferências X e Y distorcidas (ou parâmetro de rotação). Se " 11056"somente um passar, coloca o X e o Y no mesmo valor. Recorra a <ulink url=" 11057"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> para mais " 11058"detalhes. " 11059 11060#. Tag: programlisting 11061#: reference_raster.xml:4374 11062#, no-c-format 11063msgid "" 11064"-- Example 1\n" 11065"UPDATE dummy_rast SET rast = ST_SetSkew(rast,1,2) WHERE rid = 1;\n" 11066"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 11067" ST_GeoReference(rast) as georef\n" 11068"FROM dummy_rast WHERE rid = 1;\n" 11069"\n" 11070"rid | skewx | skewy | georef\n" 11071"----+-------+-------+--------------\n" 11072" 1 | 1 | 2 | 2.0000000000\n" 11073" : 2.0000000000\n" 11074" : 1.0000000000\n" 11075" : 3.0000000000\n" 11076" : 0.5000000000\n" 11077" : 0.5000000000" 11078msgstr "" 11079"-- Example 1\n" 11080"UPDATE dummy_rast SET rast = ST_SetSkew(rast,1,2) WHERE rid = 1;\n" 11081"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 11082" ST_GeoReference(rast) as georef\n" 11083"FROM dummy_rast WHERE rid = 1;\n" 11084"\n" 11085"rid | skewx | skewy | georef\n" 11086"----+-------+-------+--------------\n" 11087" 1 | 1 | 2 | 2.0000000000\n" 11088" : 2.0000000000\n" 11089" : 1.0000000000\n" 11090" : 3.0000000000\n" 11091" : 0.5000000000\n" 11092" : 0.5000000000" 11093 11094#. Tag: programlisting 11095#: reference_raster.xml:4376 11096#, no-c-format 11097msgid "" 11098"-- Example 2 set both to same number:\n" 11099"UPDATE dummy_rast SET rast = ST_SetSkew(rast,0) WHERE rid = 1;\n" 11100"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 11101" ST_GeoReference(rast) as georef\n" 11102"FROM dummy_rast WHERE rid = 1;\n" 11103"\n" 11104" rid | skewx | skewy | georef\n" 11105"-----+-------+-------+--------------\n" 11106" 1 | 0 | 0 | 2.0000000000\n" 11107" : 0.0000000000\n" 11108" : 0.0000000000\n" 11109" : 3.0000000000\n" 11110" : 0.5000000000\n" 11111" : 0.5000000000" 11112msgstr "" 11113"-- Example 2 set both to same number:\n" 11114"UPDATE dummy_rast SET rast = ST_SetSkew(rast,0) WHERE rid = 1;\n" 11115"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n" 11116" ST_GeoReference(rast) as georef\n" 11117"FROM dummy_rast WHERE rid = 1;\n" 11118"\n" 11119" rid | skewx | skewy | georef\n" 11120"-----+-------+-------+--------------\n" 11121" 1 | 0 | 0 | 2.0000000000\n" 11122" : 0.0000000000\n" 11123" : 0.0000000000\n" 11124" : 3.0000000000\n" 11125" : 0.5000000000\n" 11126" : 0.5000000000" 11127 11128#. Tag: para 11129#: reference_raster.xml:4383 11130#, no-c-format 11131msgid "" 11132", <xref linkend=\"RT_ST_SetGeoReference\"/>, <xref linkend=\"RT_ST_SkewX\"/" 11133">, <xref linkend=\"RT_ST_SkewY\"/>" 11134msgstr "" 11135", <xref linkend=\"RT_ST_SetGeoReference\"/>, <xref linkend=\"RT_ST_SkewX\"/" 11136">, <xref linkend=\"RT_ST_SkewY\"/>" 11137 11138#. Tag: refname 11139#: reference_raster.xml:4389 11140#, no-c-format 11141msgid "ST_SetSRID" 11142msgstr "ST_SetSRID" 11143 11144#. Tag: refpurpose 11145#: reference_raster.xml:4391 11146#, no-c-format 11147msgid "" 11148"Sets the SRID of a raster to a particular integer srid defined in the " 11149"spatial_ref_sys table." 11150msgstr "" 11151"Coloca o SRID de um raster em um srid inteiro específico definido na tabela " 11152"spatial_ref_sys." 11153 11154#. Tag: funcprototype 11155#: reference_raster.xml:4396 11156#, no-c-format 11157msgid "" 11158"<funcdef>raster <function>ST_SetSRID</function></funcdef> " 11159"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11160"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef>" 11161msgstr "" 11162"<funcdef>raster <function>ST_SetSRID</function></funcdef> " 11163"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11164"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef>" 11165 11166#. Tag: para 11167#: reference_raster.xml:4411 11168#, no-c-format 11169msgid "Sets the SRID on a raster to a particular integer value." 11170msgstr "Coloca o SRID em um raster para um valor inteiro específico. " 11171 11172#. Tag: para 11173#: reference_raster.xml:4414 11174#, no-c-format 11175msgid "" 11176"This function does not transform the raster in any way - it simply sets meta " 11177"data defining the spatial ref of the coordinate reference system that it's " 11178"currently in. Useful for transformations later." 11179msgstr "" 11180"Esta função não transforma o raster em forma alguma - simplesmente coloca " 11181"metadados definindo a referência espacial do sistema de coordenadas " 11182"referência que está sendo usado. É útil para futuras transformações." 11183 11184#. Tag: para 11185#: reference_raster.xml:4424 11186#, no-c-format 11187msgid ", <xref linkend=\"RT_ST_SRID\"/>" 11188msgstr ", <xref linkend=\"RT_ST_SRID\"/>" 11189 11190#. Tag: refname 11191#: reference_raster.xml:4431 11192#, no-c-format 11193msgid "ST_SetUpperLeft" 11194msgstr "ST_SetUpperLeft" 11195 11196#. Tag: refpurpose 11197#: reference_raster.xml:4432 11198#, no-c-format 11199msgid "" 11200"Sets the value of the upper left corner of the pixel of the raster to " 11201"projected X and Y coordinates." 11202msgstr "" 11203 11204#. Tag: funcprototype 11205#: reference_raster.xml:4437 11206#, no-c-format 11207msgid "" 11208"<funcdef>raster <function>ST_SetUpperLeft</function></funcdef> " 11209"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11210"<paramdef><type>double precision </type> <parameter>x</parameter></paramdef> " 11211"<paramdef><type>double precision </type> <parameter>y</parameter></paramdef>" 11212msgstr "" 11213"<funcdef>raster <function>ST_SetUpperLeft</function></funcdef> " 11214"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11215"<paramdef><type>double precision </type> <parameter>x</parameter></paramdef> " 11216"<paramdef><type>double precision </type> <parameter>y</parameter></paramdef>" 11217 11218#. Tag: para 11219#: reference_raster.xml:4449 11220#, no-c-format 11221msgid "" 11222"Set the value of the upper left corner of raster to the projected X and Y " 11223"coordinates" 11224msgstr "" 11225 11226#. Tag: programlisting 11227#: reference_raster.xml:4455 11228#, no-c-format 11229msgid "" 11230"SELECT ST_SetUpperLeft(rast,-71.01,42.37)\n" 11231"FROM dummy_rast\n" 11232"WHERE rid = 2;" 11233msgstr "" 11234"SELECT ST_SetUpperLeft(rast,-71.01,42.37)\n" 11235"FROM dummy_rast\n" 11236"WHERE rid = 2;" 11237 11238#. Tag: para 11239#: reference_raster.xml:4461 11240#, no-c-format 11241msgid ", <xref linkend=\"RT_ST_UpperLeftY\"/>" 11242msgstr ", <xref linkend=\"RT_ST_UpperLeftY\"/>" 11243 11244#. Tag: refname 11245#: reference_raster.xml:4467 11246#, no-c-format 11247msgid "ST_Resample" 11248msgstr "ST_Resample" 11249 11250#. Tag: refpurpose 11251#: reference_raster.xml:4468 11252#, no-c-format 11253msgid "" 11254"Resample a raster using a specified resampling algorithm, new dimensions, an " 11255"arbitrary grid corner and a set of raster georeferencing attributes defined " 11256"or borrowed from another raster." 11257msgstr "" 11258"Resample um raster usando um algorítimo específico, novas dimensões, um " 11259"canto aleatório da grade e um conjunto de rasters georreferenciando " 11260"atributos definidos ou emprestados de outro raster. " 11261 11262#. Tag: funcsynopsis 11263#: reference_raster.xml:4474 11264#, no-c-format 11265msgid "" 11266"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> " 11267"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11268"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 11269"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 11270"<paramdef choice=\"opt\"><type>double precision </type> " 11271"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 11272"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 11273"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 11274"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 11275"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 11276"<paramdef choice=\"opt\"><type>text </type> " 11277"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11278"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11279"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11280"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> " 11281"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt\"><type>double " 11282"precision </type> <parameter>scalex=0</parameter></paramdef> <paramdef " 11283"choice=\"opt\"><type>double precision </type> <parameter>scaley=0</" 11284"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11285"type> <parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 11286"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 11287"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 11288"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 11289"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 11290"<paramdef choice=\"opt\"><type>text </type> " 11291"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 11292"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 11293"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11294"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> " 11295"<parameter>rast</parameter></paramdef> <paramdef><type>raster </type> " 11296"<parameter>ref</parameter></paramdef> <paramdef choice=\"opt\"><type>text </" 11297"type> <parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11298"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11299"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 11300"<parameter>usescale=true</parameter></paramdef> </funcprototype> " 11301"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> " 11302"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11303"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> " 11304"<paramdef><type>boolean </type> <parameter>usescale</parameter></paramdef> " 11305"<paramdef choice=\"opt\"><type>text </type> " 11306"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11307"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11308"parameter></paramdef> </funcprototype>" 11309msgstr "" 11310"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> " 11311"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11312"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 11313"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 11314"<paramdef choice=\"opt\"><type>double precision </type> " 11315"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 11316"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 11317"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 11318"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 11319"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 11320"<paramdef choice=\"opt\"><type>text </type> " 11321"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11322"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11323"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11324"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> " 11325"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt\"><type>double " 11326"precision </type> <parameter>scalex=0</parameter></paramdef> <paramdef " 11327"choice=\"opt\"><type>double precision </type> <parameter>scaley=0</" 11328"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11329"type> <parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt" 11330"\"><type>double precision </type> <parameter>gridy=NULL</parameter></" 11331"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 11332"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt" 11333"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> " 11334"<paramdef choice=\"opt\"><type>text </type> " 11335"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 11336"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 11337"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11338"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> " 11339"<parameter>rast</parameter></paramdef> <paramdef><type>raster </type> " 11340"<parameter>ref</parameter></paramdef> <paramdef choice=\"opt\"><type>text </" 11341"type> <parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11342"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11343"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 11344"<parameter>usescale=true</parameter></paramdef> </funcprototype> " 11345"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> " 11346"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11347"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> " 11348"<paramdef><type>boolean </type> <parameter>usescale</parameter></paramdef> " 11349"<paramdef choice=\"opt\"><type>text </type> " 11350"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11351"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11352"parameter></paramdef> </funcprototype>" 11353 11354#. Tag: para 11355#: reference_raster.xml:4524 11356#, no-c-format 11357msgid "" 11358"Resample a raster using a specified resampling algorithm, new dimensions " 11359"(width & height), a grid corner (gridx & gridy) and a set of raster " 11360"georeferencing attributes (scalex, scaley, skewx & skewy) defined or " 11361"borrowed from another raster. If using a reference raster, the two rasters " 11362"must have the same SRID." 11363msgstr "" 11364"Resample um raster usando um algorítimo específico, novas dimensões (largura " 11365"& altura), um canto de grade (gradex & gradey) e um conjunto de " 11366"rasters georreferenciando atributos (scalex, scaley, skewx & skewy) " 11367"definidos ou emprestados de outro raster. Se estiver utilizando uma " 11368"referência raster, os dois rasters devem possuir o mesmo SRID. " 11369 11370#. Tag: para 11371#: reference_raster.xml:4528 11372#, no-c-format 11373msgid "" 11374"New pixel values are computed using the NearestNeighbor (English or American " 11375"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. " 11376"Default is NearestNeighbor which is the fastest but produce the worst " 11377"interpolation." 11378msgstr "" 11379"Novos valores de pixel são calculados usando o algorítimo NearestNeighbor " 11380"(English or American spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O " 11381"padrão é NearestNeighbor por ser mais rápido, porém produz a pior " 11382"interpolação. " 11383 11384#. Tag: para 11385#: reference_raster.xml:4532 11386#, no-c-format 11387msgid "" 11388"A maxerror percent of 0.125 is used if no <varname>maxerr</varname> is " 11389"specified." 11390msgstr "" 11391"Uma porcentagem maxerror de 0.125 é usada se nenhum <varname>maxerr</" 11392"varname> for especificado. " 11393 11394#. Tag: para 11395#: reference_raster.xml:4537 reference_raster.xml:4601 11396#: reference_raster.xml:4669 reference_raster.xml:4747 11397#, no-c-format 11398msgid "" 11399"Refer to: <ulink url=\"http://www.gdal.org/gdalwarp.html\">GDAL Warp " 11400"resampling methods</ulink> for more details." 11401msgstr "" 11402"Recorra a: <ulink url=\"http://www.gdal.org/gdalwarp.html\">GDAL Warp " 11403"resampling methods</ulink> para mais detalhes. " 11404 11405#. Tag: para 11406#: reference_raster.xml:4541 reference_raster.xml:4605 11407#: reference_raster.xml:4673 reference_raster.xml:4751 11408#: reference_raster.xml:4907 11409#, no-c-format 11410msgid "Availability: 2.0.0 Requires GDAL 1.6.1+" 11411msgstr "Disponibilidade: 2.0.0 Requer GDAL 1.6.1+" 11412 11413#. Tag: para 11414#: reference_raster.xml:4542 11415#, no-c-format 11416msgid "" 11417"Changed: 2.1.0 Parameter srid removed. Variants with a reference raster no " 11418"longer applies the reference raster's SRID. Use ST_Transform() to reproject " 11419"raster. Works on rasters with no SRID." 11420msgstr "" 11421"Alterações: 2.1.0 O parâmetro srid foi removido. As variantes com um raster " 11422"referência não aplica mais o SRID da referência raster. Use a " 11423"ST_Transform() para reprojetar o raster. Funciona em rasters sem SRID. " 11424 11425#. Tag: programlisting 11426#: reference_raster.xml:4548 11427#, no-c-format 11428msgid "" 11429"SELECT\n" 11430" ST_Width(orig) AS orig_width,\n" 11431" ST_Width(reduce_100) AS new_width\n" 11432"FROM (\n" 11433" SELECT\n" 11434" rast AS orig,\n" 11435" ST_Resample(rast,100,100) AS reduce_100\n" 11436" FROM aerials.boston\n" 11437" WHERE ST_Intersects(rast,\n" 11438" ST_Transform(\n" 11439" ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, " 11440"4326),26986)\n" 11441" )\n" 11442" LIMIT 1\n" 11443") AS foo;\n" 11444"\n" 11445" orig_width | new_width\n" 11446"------------+-------------\n" 11447" 200 | 100" 11448msgstr "" 11449"SELECT\n" 11450" ST_Width(orig) AS orig_width,\n" 11451" ST_Width(reduce_100) AS new_width\n" 11452"FROM (\n" 11453" SELECT\n" 11454" rast AS orig,\n" 11455" ST_Resample(rast,100,100) AS reduce_100\n" 11456" FROM aerials.boston\n" 11457" WHERE ST_Intersects(rast,\n" 11458" ST_Transform(\n" 11459" ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, " 11460"4326),26986)\n" 11461" )\n" 11462" LIMIT 1\n" 11463") AS foo;\n" 11464"\n" 11465" orig_width | new_width\n" 11466"------------+-------------\n" 11467" 200 | 100" 11468 11469#. Tag: para 11470#: reference_raster.xml:4553 11471#, no-c-format 11472msgid ", <xref linkend=\"RT_ST_Resize\"/>, <xref linkend=\"RT_ST_Transform\"/>" 11473msgstr "" 11474", <xref linkend=\"RT_ST_Resize\"/>, <xref linkend=\"RT_ST_Transform\"/>" 11475 11476#. Tag: refname 11477#: reference_raster.xml:4563 11478#, no-c-format 11479msgid "ST_Rescale" 11480msgstr "ST_Rescale" 11481 11482#. Tag: refpurpose 11483#: reference_raster.xml:4564 11484#, no-c-format 11485msgid "" 11486"Resample a raster by adjusting only its scale (or pixel size). New pixel " 11487"values are computed using the NearestNeighbor (english or american " 11488"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. " 11489"Default is NearestNeighbor." 11490msgstr "" 11491"Resample um raster ajustando sua única escala (ou tamanho de pixel). Novos " 11492"valores de pixel são calculados usando o algorítimo NearestNeighbor (english " 11493"or american spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O padrão é " 11494"NearestNeighbor." 11495 11496#. Tag: funcsynopsis 11497#: reference_raster.xml:4569 11498#, no-c-format 11499msgid "" 11500"<funcprototype> <funcdef>raster <function>ST_Rescale</function></funcdef> " 11501"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11502"<paramdef><type>double precision </type> <parameter>scalexy</parameter></" 11503"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11504"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11505"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11506"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11507"<function>ST_Rescale</function></funcdef> <paramdef><type>raster </type> " 11508"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11509"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 11510"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice=" 11511"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</" 11512"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11513"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>" 11514msgstr "" 11515"<funcprototype> <funcdef>raster <function>ST_Rescale</function></funcdef> " 11516"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11517"<paramdef><type>double precision </type> <parameter>scalexy</parameter></" 11518"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11519"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11520"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11521"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11522"<function>ST_Rescale</function></funcdef> <paramdef><type>raster </type> " 11523"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11524"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double " 11525"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice=" 11526"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</" 11527"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11528"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>" 11529 11530#. Tag: para 11531#: reference_raster.xml:4593 11532#, no-c-format 11533msgid "" 11534"Resample a raster by adjusting only its scale (or pixel size). New pixel " 11535"values are computed using the NearestNeighbor (english or american " 11536"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The " 11537"default is NearestNeighbor which is the fastest but results in the worst " 11538"interpolation." 11539msgstr "" 11540"Resample um raster ajustando sua única escala (ou tamanho de pixel). Novos " 11541"valores de pixel são calculados usando o algorítimo NearestNeighbor (english " 11542"or american spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O padrão é " 11543"NearestNeighbor pois é o mais rápido, mas resulta na pior interpolação. " 11544 11545#. Tag: para 11546#: reference_raster.xml:4595 11547#, no-c-format 11548msgid "" 11549"<varname>scalex</varname> and <varname>scaley</varname> define the new pixel " 11550"size. scaley must often be negative to get well oriented raster." 11551msgstr "" 11552"<varname>scalex</varname> e <varname>scaley</varname> definem o tamanho do " 11553"pixel. A escalay deve ser, geralmente, negativa para ser um raster bem " 11554"orientado. " 11555 11556#. Tag: para 11557#: reference_raster.xml:4597 11558#, no-c-format 11559msgid "" 11560"When the new scalex or scaley is not a divisor of the raster width or " 11561"height, the extent of the resulting raster is expanded to encompass the " 11562"extent of the provided raster. If you want to be sure to retain exact input " 11563"extent see <xref linkend=\"RT_ST_Resize\"/>" 11564msgstr "" 11565"Quando a nova escalax ou escalay não é divisora da largura ou altura do " 11566"raster, a extensão do raster resultante é expandido para encerrar a extensão " 11567"do raster fornecido. Se quiser certificar-se de reter a entrada exata, veja " 11568"<xref linkend=\"RT_ST_Resize\"/>" 11569 11570#. Tag: para 11571#: reference_raster.xml:4599 11572#, no-c-format 11573msgid "" 11574"<varname>maxerr</varname> is the threshold for transformation approximation " 11575"by the resampling algorithm (in pixel units). A default of 0.125 is used if " 11576"no <varname>maxerr</varname> is specified, which is the same value used in " 11577"GDAL gdalwarp utility. If set to zero, no approximation takes place." 11578msgstr "" 11579 11580#. Tag: para 11581#: reference_raster.xml:4603 11582#, no-c-format 11583msgid "" 11584"ST_Rescale is different from <xref linkend=\"RT_ST_SetScale\"/> in that " 11585"ST_SetScale do not resample the raster to match the raster extent. " 11586"ST_SetScale only changes the metadata (or georeference) of the raster to " 11587"correct an originally mis-specified scaling. ST_Rescale results in a raster " 11588"having different width and height computed to fit the geographic extent of " 11589"the input raster. ST_SetScale do not modify the width, nor the height of the " 11590"raster." 11591msgstr "" 11592"ST_Rescale é diferente de <xref linkend=\"RT_ST_SetScale\"/> onde a " 11593"ST_SetScale não resample o raster para combinar com a extensão. A " 11594"ST_SetScale apenas altera os metadados (ou georreferência) do raster, para " 11595"corrigir uma escala originalmente mal especificada. A ST_Rescale resulta em " 11596"um raster tendo largura e altura diferentes, calculadas para caber na " 11597"extensão geográfica do raster de entrada. A ST_SetScale não modifica a " 11598"largura, nem a altura do raster." 11599 11600#. Tag: para 11601#: reference_raster.xml:4606 reference_raster.xml:4674 11602#: reference_raster.xml:4752 11603#, no-c-format 11604msgid "Changed: 2.1.0 Works on rasters with no SRID" 11605msgstr "Alterações: 2.1.0 Funciona em rasters sem SRID" 11606 11607#. Tag: para 11608#: reference_raster.xml:4611 11609#, no-c-format 11610msgid "" 11611"A simple example rescaling a raster from a pixel size of 0.001 degree to a " 11612"pixel size of 0.0015 degree." 11613msgstr "" 11614"Um exemplo simples de reescalar um raster de um tamanho de pixel de 0.001 " 11615"grau para um pixel de tamanho 0.0015 grau. " 11616 11617#. Tag: programlisting 11618#: reference_raster.xml:4613 11619#, no-c-format 11620msgid "" 11621"-- the original raster pixel size\n" 11622"SELECT ST_PixelWidth(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, " 11623"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0)) width\n" 11624"\n" 11625" width\n" 11626"----------\n" 11627"0.001\n" 11628"\n" 11629"-- the rescaled raster raster pixel size\n" 11630"SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, " 11631"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015)) width\n" 11632"\n" 11633" width\n" 11634"----------\n" 11635"0.0015" 11636msgstr "" 11637"-- the original raster pixel size\n" 11638"SELECT ST_PixelWidth(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, " 11639"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0)) width\n" 11640"\n" 11641" width\n" 11642"----------\n" 11643"0.001\n" 11644"\n" 11645"-- the rescaled raster raster pixel size\n" 11646"SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, " 11647"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015)) width\n" 11648"\n" 11649" width\n" 11650"----------\n" 11651"0.0015" 11652 11653#. Tag: para 11654#: reference_raster.xml:4618 11655#, no-c-format 11656msgid "" 11657", <xref linkend=\"RT_ST_Resample\"/>, <xref linkend=\"RT_ST_SetScale\"/>, " 11658"<xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 11659"linkend=\"RT_ST_Transform\"/>" 11660msgstr "" 11661", <xref linkend=\"RT_ST_Resample\"/>, <xref linkend=\"RT_ST_SetScale\"/>, " 11662"<xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref " 11663"linkend=\"RT_ST_Transform\"/>" 11664 11665#. Tag: refname 11666#: reference_raster.xml:4631 11667#, no-c-format 11668msgid "ST_Reskew" 11669msgstr "ST_Reskew" 11670 11671#. Tag: refpurpose 11672#: reference_raster.xml:4632 11673#, no-c-format 11674msgid "" 11675"Resample a raster by adjusting only its skew (or rotation parameters). New " 11676"pixel values are computed using the NearestNeighbor (english or american " 11677"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. " 11678"Default is NearestNeighbor." 11679msgstr "" 11680"Resample um raster ajustando somente sua inclinação (ou tamanho de pixel). " 11681"Novos valores de pixel são calculados usando o algorítimo NearestNeighbor " 11682"(english or american spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O " 11683"padrão é NearestNeighbor." 11684 11685#. Tag: funcsynopsis 11686#: reference_raster.xml:4637 11687#, no-c-format 11688msgid "" 11689"<funcprototype> <funcdef>raster <function>ST_Reskew</function></funcdef> " 11690"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11691"<paramdef><type>double precision </type> <parameter>skewxy</parameter></" 11692"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11693"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11694"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11695"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11696"<function>ST_Reskew</function></funcdef> <paramdef><type>raster </type> " 11697"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11698"type> <parameter>skewx</parameter></paramdef> <paramdef><type>double " 11699"precision </type> <parameter>skewy</parameter></paramdef> <paramdef choice=" 11700"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</" 11701"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11702"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>" 11703msgstr "" 11704"<funcprototype> <funcdef>raster <function>ST_Reskew</function></funcdef> " 11705"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11706"<paramdef><type>double precision </type> <parameter>skewxy</parameter></" 11707"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11708"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11709"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11710"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11711"<function>ST_Reskew</function></funcdef> <paramdef><type>raster </type> " 11712"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11713"type> <parameter>skewx</parameter></paramdef> <paramdef><type>double " 11714"precision </type> <parameter>skewy</parameter></paramdef> <paramdef choice=" 11715"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</" 11716"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11717"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>" 11718 11719#. Tag: para 11720#: reference_raster.xml:4661 11721#, no-c-format 11722msgid "" 11723"Resample a raster by adjusting only its skew (or rotation parameters). New " 11724"pixel values are computed using the NearestNeighbor (english or american " 11725"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The " 11726"default is NearestNeighbor which is the fastest but results in the worst " 11727"interpolation." 11728msgstr "" 11729"Resample um raster ajustando somente sua inclinação (ou tamanho de pixel). " 11730"Novos valores de pixel são calculados usando o algorítimo NearestNeighbor " 11731"(english or american spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O " 11732"padrão é NearestNeighbor pois é o mais rápido, mas resulta na pior " 11733"interpolação. " 11734 11735#. Tag: para 11736#: reference_raster.xml:4663 11737#, no-c-format 11738msgid "" 11739"<varname>skewx</varname> and <varname>skewy</varname> define the new skew." 11740msgstr "" 11741"<varname>skewx</varname> e <varname>skewy</varname> definem a nova distorção." 11742 11743#. Tag: para 11744#: reference_raster.xml:4665 reference_raster.xml:4743 11745#, no-c-format 11746msgid "" 11747"The extent of the new raster will encompass the extent of the provided " 11748"raster." 11749msgstr "" 11750"A extensão do novo raster irá encerrar a extensão do raster fornecido. " 11751 11752#. Tag: para 11753#: reference_raster.xml:4667 reference_raster.xml:4745 11754#, no-c-format 11755msgid "" 11756"A maxerror percent of 0.125 if no <varname>maxerr</varname> is specified." 11757msgstr "" 11758"Uma porcentagem maxerror de 0.125 se nenhum <varname>maxerr</varname> for " 11759"especificado. " 11760 11761#. Tag: para 11762#: reference_raster.xml:4671 11763#, no-c-format 11764msgid "" 11765"ST_Reskew is different from <xref linkend=\"RT_ST_SetSkew\"/> in that " 11766"ST_SetSkew do not resample the raster to match the raster extent. ST_SetSkew " 11767"only changes the metadata (or georeference) of the raster to correct an " 11768"originally mis-specified skew. ST_Reskew results in a raster having " 11769"different width and height computed to fit the geographic extent of the " 11770"input raster. ST_SetSkew do not modify the width, nor the height of the " 11771"raster." 11772msgstr "" 11773"ST_Reskew é diferente de <xref linkend=\"RT_ST_SetSkew\"/> onde a ST_SetSkew " 11774"não resample o raster para combinar com a extensão. A ST_SetScale apenas " 11775"altera os metadados (ou georreferência) do raster, para corrigir uma escala " 11776"originalmente mal especificada. A ST_Reskew resulta em um raster tendo " 11777"largura e altura diferentes, calculadas para caber na extensão geográfica do " 11778"raster de entrada. A ST_SetSkew não modifica a largura, nem a altura do " 11779"raster." 11780 11781#. Tag: para 11782#: reference_raster.xml:4679 11783#, no-c-format 11784msgid "" 11785"A simple example reskewing a raster from a skew of 0.0 to a skew of 0.0015." 11786msgstr "" 11787"Um exemplo simples de reskewing um raster de uma inclinação de 0.0 para uma " 11788"de 0.0015. " 11789 11790#. Tag: programlisting 11791#: reference_raster.xml:4681 11792#, no-c-format 11793msgid "" 11794"-- the original raster non-rotated\n" 11795"SELECT ST_Rotation(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, " 11796"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n" 11797"\n" 11798"-- result\n" 11799"0\n" 11800"\n" 11801"-- the reskewed raster raster rotation\n" 11802"SELECT ST_Rotation(ST_Reskew(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, " 11803"0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015));\n" 11804"\n" 11805"-- result\n" 11806"-0.982793723247329" 11807msgstr "" 11808 11809#. Tag: para 11810#: reference_raster.xml:4687 11811#, no-c-format 11812msgid "" 11813", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>, " 11814"<xref linkend=\"RT_ST_SetRotation\"/>, <xref linkend=\"RT_ST_SkewX\"/>, " 11815"<xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_Transform\"/>" 11816msgstr "" 11817", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>, " 11818"<xref linkend=\"RT_ST_SetRotation\"/>, <xref linkend=\"RT_ST_SkewX\"/>, " 11819"<xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_Transform\"/>" 11820 11821#. Tag: refname 11822#: reference_raster.xml:4693 11823#, no-c-format 11824msgid "ST_SnapToGrid" 11825msgstr "ST_SnapToGrid" 11826 11827#. Tag: refpurpose 11828#: reference_raster.xml:4694 11829#, no-c-format 11830msgid "" 11831"Resample a raster by snapping it to a grid. New pixel values are computed " 11832"using the NearestNeighbor (english or american spelling), Bilinear, Cubic, " 11833"CubicSpline or Lanczos resampling algorithm. Default is NearestNeighbor." 11834msgstr "" 11835"Resample um raster encaixando-o em uma grade. Novos valores de pixel são " 11836"calculados usando o algorítimo NearestNeighbor (english or american " 11837"spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O padrão é " 11838"NearestNeighbor." 11839 11840#. Tag: funcsynopsis 11841#: reference_raster.xml:4699 11842#, no-c-format 11843msgid "" 11844"<funcprototype> <funcdef>raster <function>ST_SnapToGrid</function></funcdef> " 11845"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11846"<paramdef><type>double precision </type> <parameter>gridx</parameter></" 11847"paramdef> <paramdef><type>double precision </type> <parameter>gridy</" 11848"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 11849"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11850"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11851"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11852"type> <parameter>scalex=DEFAULT 0</parameter></paramdef> <paramdef choice=" 11853"\"opt\"><type>double precision </type> <parameter>scaley=DEFAULT 0</" 11854"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11855"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> " 11856"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11857"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 11858"precision </type> <parameter>gridy</parameter></paramdef> " 11859"<paramdef><type>double precision </type> <parameter>scalex</parameter></" 11860"paramdef> <paramdef><type>double precision </type> <parameter>scaley</" 11861"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 11862"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11863"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11864"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11865"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> " 11866"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11867"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 11868"precision </type> <parameter>gridy</parameter></paramdef> " 11869"<paramdef><type>double precision </type> <parameter>scalexy</parameter></" 11870"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11871"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11872"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11873"parameter></paramdef> </funcprototype>" 11874msgstr "" 11875"<funcprototype> <funcdef>raster <function>ST_SnapToGrid</function></funcdef> " 11876"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 11877"<paramdef><type>double precision </type> <parameter>gridx</parameter></" 11878"paramdef> <paramdef><type>double precision </type> <parameter>gridy</" 11879"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 11880"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11881"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11882"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 11883"type> <parameter>scalex=DEFAULT 0</parameter></paramdef> <paramdef choice=" 11884"\"opt\"><type>double precision </type> <parameter>scaley=DEFAULT 0</" 11885"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11886"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> " 11887"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11888"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 11889"precision </type> <parameter>gridy</parameter></paramdef> " 11890"<paramdef><type>double precision </type> <parameter>scalex</parameter></" 11891"paramdef> <paramdef><type>double precision </type> <parameter>scaley</" 11892"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 11893"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11894"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11895"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 11896"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> " 11897"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 11898"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double " 11899"precision </type> <parameter>gridy</parameter></paramdef> " 11900"<paramdef><type>double precision </type> <parameter>scalexy</parameter></" 11901"paramdef> <paramdef choice=\"opt\"><type>text </type> " 11902"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef " 11903"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</" 11904"parameter></paramdef> </funcprototype>" 11905 11906#. Tag: para 11907#: reference_raster.xml:4738 11908#, no-c-format 11909msgid "" 11910"Resample a raster by snapping it to a grid defined by an arbitrary pixel " 11911"corner (gridx & gridy) and optionally a pixel size (scalex & " 11912"scaley). New pixel values are computed using the NearestNeighbor (english or " 11913"american spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling " 11914"algorithm. The default is NearestNeighbor which is the fastest but results " 11915"in the worst interpolation." 11916msgstr "" 11917"Resample um raster encaixando-o em uma grade definida por um pixel de canto " 11918"(gridx & gridy) e opcionalmente um tamanho de pixel (scalex & " 11919"scaley). Novos valores de pixel são calculados usando o algorítimo " 11920"NearestNeighbor (english or american spelling), Bilinear, Cubic, CubicSpline " 11921"ou Lanczos. O padrão é NearestNeighbor pois é o mais rápido, mas resulta na " 11922"pior interpolação. " 11923 11924#. Tag: para 11925#: reference_raster.xml:4740 11926#, no-c-format 11927msgid "" 11928"<varname>gridx</varname> and <varname>gridy</varname> define any arbitrary " 11929"pixel corner of the new grid. This is not necessarily the upper left corner " 11930"of the new raster and it does not have to be inside or on the edge of the " 11931"new raster extent." 11932msgstr "" 11933"<varname>gridx</varname> e <varname>gridy</varname> definem um canto pixel " 11934"aleatório da nova grade. Não é necessário o canto esquerdo superior do novo " 11935"raster e não precisa estar dentro do limite da extensão do novo raster. " 11936 11937#. Tag: para 11938#: reference_raster.xml:4742 11939#, no-c-format 11940msgid "" 11941"You can optionally define the pixel size of the new grid with " 11942"<varname>scalex</varname> and <varname>scaley</varname>." 11943msgstr "" 11944 11945#. Tag: para 11946#: reference_raster.xml:4749 11947#, no-c-format 11948msgid "" 11949"Use <xref linkend=\"RT_ST_Resample\"/> if you need more control over the " 11950"grid parameters." 11951msgstr "" 11952"Use <xref linkend=\"RT_ST_Resample\"/> se precisar de mais controle sobre os " 11953"parâmetros da grade. " 11954 11955#. Tag: para 11956#: reference_raster.xml:4757 11957#, no-c-format 11958msgid "A simple example snapping a raster to a slightly different grid." 11959msgstr "" 11960"Um exemplo simples movendo um raster para um grade um pouco diferente. " 11961 11962#. Tag: programlisting 11963#: reference_raster.xml:4759 11964#, no-c-format 11965msgid "" 11966"-- the original raster upper left X\n" 11967"SELECT ST_UpperLeftX(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.001, " 11968"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n" 11969"-- result\n" 11970"0\n" 11971"\n" 11972"-- the upper left of raster after snapping\n" 11973"SELECT ST_UpperLeftX(ST_SnapToGrid(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, " 11974"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0002, 0.0002));\n" 11975"\n" 11976"--result\n" 11977"-0.0008" 11978msgstr "" 11979 11980#. Tag: para 11981#: reference_raster.xml:4765 11982#, no-c-format 11983msgid "" 11984", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, " 11985"<xref linkend=\"RT_ST_UpperLeftY\"/>" 11986msgstr "" 11987", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, " 11988"<xref linkend=\"RT_ST_UpperLeftY\"/>" 11989 11990#. Tag: refname 11991#: reference_raster.xml:4771 11992#, no-c-format 11993msgid "ST_Resize" 11994msgstr "ST_Resize" 11995 11996#. Tag: refpurpose 11997#: reference_raster.xml:4772 11998#, no-c-format 11999msgid "Resize a raster to a new width/height" 12000msgstr "Redimensiona largura/altura novas para um raster " 12001 12002#. Tag: funcsynopsis 12003#: reference_raster.xml:4776 12004#, no-c-format 12005msgid "" 12006"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> " 12007"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12008"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 12009"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 12010"<paramdef choice=\"opt\"><type>text </type> " 12011"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12012"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12013"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 12014"<function>ST_Resize</function></funcdef> <paramdef><type>raster </type> " 12015"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 12016"type> <parameter>percentwidth</parameter></paramdef> <paramdef><type>double " 12017"precision </type> <parameter>percentheight</parameter></paramdef> <paramdef " 12018"choice=\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbor</" 12019"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 12020"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype> " 12021"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> " 12022"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12023"<paramdef><type>text </type> <parameter>width</parameter></paramdef> " 12024"<paramdef><type>text </type> <parameter>height</parameter></paramdef> " 12025"<paramdef choice=\"opt\"><type>text </type> " 12026"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12027"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12028"paramdef> </funcprototype>" 12029msgstr "" 12030"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> " 12031"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12032"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> " 12033"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> " 12034"<paramdef choice=\"opt\"><type>text </type> " 12035"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12036"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12037"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 12038"<function>ST_Resize</function></funcdef> <paramdef><type>raster </type> " 12039"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 12040"type> <parameter>percentwidth</parameter></paramdef> <paramdef><type>double " 12041"precision </type> <parameter>percentheight</parameter></paramdef> <paramdef " 12042"choice=\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbor</" 12043"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 12044"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype> " 12045"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> " 12046"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12047"<paramdef><type>text </type> <parameter>width</parameter></paramdef> " 12048"<paramdef><type>text </type> <parameter>height</parameter></paramdef> " 12049"<paramdef choice=\"opt\"><type>text </type> " 12050"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12051"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12052"paramdef> </funcprototype>" 12053 12054#. Tag: para 12055#: reference_raster.xml:4810 12056#, no-c-format 12057msgid "" 12058"Resize a raster to a new width/height. The new width/height can be specified " 12059"in exact number of pixels or a percentage of the raster's width/height. The " 12060"extent of the the new raster will be the same as the extent of the provided " 12061"raster." 12062msgstr "" 12063"Redimensiona novas largura/altura para um raster. Elas podem ser " 12064"especificadas no número exato de pixeis ou uma porcentagem delas. A extensão " 12065"do novo raster será a mesma da extensão do raster fornecido. " 12066 12067#. Tag: para 12068#: reference_raster.xml:4814 12069#, no-c-format 12070msgid "" 12071"New pixel values are computed using the NearestNeighbor (english or american " 12072"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The " 12073"default is NearestNeighbor which is the fastest but results in the worst " 12074"interpolation." 12075msgstr "" 12076"Novos valores de pixel são calculados usando o algorítimo NearestNeighbor " 12077"(english or american spelling), Bilinear, Cubic, CubicSpline ou Lanczos. O " 12078"padrão é NearestNeighbor por ser mais rápido, porém resulta na pior " 12079"interpolação. " 12080 12081#. Tag: para 12082#: reference_raster.xml:4818 12083#, no-c-format 12084msgid "Variant 1 expects the actual width/height of the output raster." 12085msgstr "A Variante 1 espera a largura/altura atual do raster de saída. " 12086 12087#. Tag: para 12088#: reference_raster.xml:4822 12089#, no-c-format 12090msgid "" 12091"Variant 2 expects decimal values between zero (0) and one (1) indicating the " 12092"percentage of the input raster's width/height." 12093msgstr "" 12094"A Variante 2 espera os valores decimais entre zero (0) e um (1) indicando a " 12095"porcentagem da largura/altura do raster. " 12096 12097#. Tag: para 12098#: reference_raster.xml:4826 12099#, no-c-format 12100msgid "" 12101"Variant 3 takes either the actual width/height of the output raster or a " 12102"textual percentage (\"20%\") indicating the percentage of the input raster's " 12103"width/height." 12104msgstr "" 12105"A Variante 3 pega qualquer largura/altura do raster de saída ou uma " 12106"porcentagem textual (\"20%\") indicando a porcentagem da largura/altura do " 12107"raster de entrada. " 12108 12109#. Tag: para 12110#: reference_raster.xml:4830 12111#, no-c-format 12112msgid "Availability: 2.1.0 Requires GDAL 1.6.1+" 12113msgstr "Disponibilidade: 2.1.0 Requer GDAL 1.6.1+" 12114 12115#. Tag: programlisting 12116#: reference_raster.xml:4834 12117#, no-c-format 12118msgid "" 12119"WITH foo AS(\n" 12120"SELECT\n" 12121" 1 AS rid,\n" 12122" ST_Resize(\n" 12123" ST_AddBand(\n" 12124" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12125"0)\n" 12126" , 1, '8BUI', 255, 0\n" 12127" )\n" 12128" , '50%', '500') AS rast\n" 12129"UNION ALL\n" 12130"SELECT\n" 12131" 2 AS rid,\n" 12132" ST_Resize(\n" 12133" ST_AddBand(\n" 12134" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12135"0)\n" 12136" , 1, '8BUI', 255, 0\n" 12137" )\n" 12138" , 500, 100) AS rast\n" 12139"UNION ALL\n" 12140"SELECT\n" 12141" 3 AS rid,\n" 12142" ST_Resize(\n" 12143" ST_AddBand(\n" 12144" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12145"0)\n" 12146" , 1, '8BUI', 255, 0\n" 12147" )\n" 12148" , 0.25, 0.9) AS rast\n" 12149"), bar AS (\n" 12150" SELECT rid, ST_Metadata(rast) AS meta, rast FROM foo\n" 12151")\n" 12152"SELECT rid, (meta).* FROM bar\n" 12153"\n" 12154" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 12155"skewy | srid | numbands\n" 12156"-----+------------+------------+-------+--------+--------+--------+-------" 12157"+-------+------+----------\n" 12158" 1 | 0 | 0 | 500 | 500 | 1 | -1 | 0 " 12159"| 0 | 0 | 1\n" 12160" 2 | 0 | 0 | 500 | 100 | 1 | -1 | 0 " 12161"| 0 | 0 | 1\n" 12162" 3 | 0 | 0 | 250 | 900 | 1 | -1 | 0 " 12163"| 0 | 0 | 1\n" 12164"(3 rows)" 12165msgstr "" 12166"WITH foo AS(\n" 12167"SELECT\n" 12168" 1 AS rid,\n" 12169" ST_Resize(\n" 12170" ST_AddBand(\n" 12171" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12172"0)\n" 12173" , 1, '8BUI', 255, 0\n" 12174" )\n" 12175" , '50%', '500') AS rast\n" 12176"UNION ALL\n" 12177"SELECT\n" 12178" 2 AS rid,\n" 12179" ST_Resize(\n" 12180" ST_AddBand(\n" 12181" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12182"0)\n" 12183" , 1, '8BUI', 255, 0\n" 12184" )\n" 12185" , 500, 100) AS rast\n" 12186"UNION ALL\n" 12187"SELECT\n" 12188" 3 AS rid,\n" 12189" ST_Resize(\n" 12190" ST_AddBand(\n" 12191" ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, " 12192"0)\n" 12193" , 1, '8BUI', 255, 0\n" 12194" )\n" 12195" , 0.25, 0.9) AS rast\n" 12196"), bar AS (\n" 12197" SELECT rid, ST_Metadata(rast) AS meta, rast FROM foo\n" 12198")\n" 12199"SELECT rid, (meta).* FROM bar\n" 12200"\n" 12201" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | " 12202"skewy | srid | numbands\n" 12203"-----+------------+------------+-------+--------+--------+--------+-------" 12204"+-------+------+----------\n" 12205" 1 | 0 | 0 | 500 | 500 | 1 | -1 | 0 " 12206"| 0 | 0 | 1\n" 12207" 2 | 0 | 0 | 500 | 100 | 1 | -1 | 0 " 12208"| 0 | 0 | 1\n" 12209" 3 | 0 | 0 | 250 | 900 | 1 | -1 | 0 " 12210"| 0 | 0 | 1\n" 12211"(3 rows)" 12212 12213#. Tag: para 12214#: reference_raster.xml:4839 12215#, no-c-format 12216msgid "" 12217", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_Reskew\"/>, <xref " 12218"linkend=\"RT_ST_SnapToGrid\"/>" 12219msgstr "" 12220", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_Reskew\"/>, <xref " 12221"linkend=\"RT_ST_SnapToGrid\"/>" 12222 12223#. Tag: refname 12224#: reference_raster.xml:4850 12225#, no-c-format 12226msgid "ST_Transform" 12227msgstr "ST_Transform" 12228 12229#. Tag: refpurpose 12230#: reference_raster.xml:4851 12231#, no-c-format 12232msgid "" 12233"Reprojects a raster in a known spatial reference system to another known " 12234"spatial reference system using specified resampling algorithm. Options are " 12235"NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos defaulting to " 12236"NearestNeighbor." 12237msgstr "" 12238"Reprojeta um raster em um sistema de referência espacial conhecido para " 12239"outro usando um algorítimo resampling especificado. As opções são " 12240"NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos com o padrão sendo " 12241"NearestNeighbor. " 12242 12243#. Tag: funcsynopsis 12244#: reference_raster.xml:4855 12245#, no-c-format 12246msgid "" 12247"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> " 12248"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12249"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef> " 12250"<paramdef choice=\"opt\"><type>text </type> " 12251"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12252"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12253"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 12254"<parameter>scalex</parameter></paramdef> <paramdef choice=\"opt" 12255"\"><type>double precision </type> <parameter>scaley</parameter></paramdef> </" 12256"funcprototype> <funcprototype> <funcdef>raster <function>ST_Transform</" 12257"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 12258"parameter></paramdef> <paramdef><type>integer </type> <parameter>srid</" 12259"parameter></paramdef> <paramdef><type>double precision </type> " 12260"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </" 12261"type> <parameter>scaley</parameter></paramdef> <paramdef choice=\"opt" 12262"\"><type>text </type> <parameter>algorithm=NearestNeighbor</parameter></" 12263"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 12264"<parameter>maxerr=0.125</parameter></paramdef> </funcprototype> " 12265"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> " 12266"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12267"<paramdef><type>raster </type> <parameter>alignto</parameter></paramdef> " 12268"<paramdef choice=\"opt\"><type>text </type> " 12269"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12270"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12271"paramdef> </funcprototype>" 12272msgstr "" 12273"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> " 12274"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12275"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef> " 12276"<paramdef choice=\"opt\"><type>text </type> " 12277"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12278"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12279"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 12280"<parameter>scalex</parameter></paramdef> <paramdef choice=\"opt" 12281"\"><type>double precision </type> <parameter>scaley</parameter></paramdef> </" 12282"funcprototype> <funcprototype> <funcdef>raster <function>ST_Transform</" 12283"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 12284"parameter></paramdef> <paramdef><type>integer </type> <parameter>srid</" 12285"parameter></paramdef> <paramdef><type>double precision </type> " 12286"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </" 12287"type> <parameter>scaley</parameter></paramdef> <paramdef choice=\"opt" 12288"\"><type>text </type> <parameter>algorithm=NearestNeighbor</parameter></" 12289"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 12290"<parameter>maxerr=0.125</parameter></paramdef> </funcprototype> " 12291"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> " 12292"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12293"<paramdef><type>raster </type> <parameter>alignto</parameter></paramdef> " 12294"<paramdef choice=\"opt\"><type>text </type> " 12295"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice=" 12296"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></" 12297"paramdef> </funcprototype>" 12298 12299#. Tag: para 12300#: reference_raster.xml:4889 12301#, no-c-format 12302msgid "" 12303"Reprojects a raster in a known spatial reference system to another known " 12304"spatial reference system using specified pixel warping algorithm. Uses " 12305"'NearestNeighbor' if no algorithm is specified and maxerror percent of 0.125 " 12306"if no maxerr is specified." 12307msgstr "" 12308"Reprojeta um raster em um sistema de referência espacial conhecido para " 12309"outro usando um algorítimo pixel warping especificado. Usa \"NearestNeighbor" 12310"\" se nenhum algorítimo for especificado e a porcentagem maxerror de 0.125 " 12311"se nenhum maxerr for especificado. " 12312 12313#. Tag: para 12314#: reference_raster.xml:4893 12315#, no-c-format 12316msgid "" 12317"ST_Transform is often confused with ST_SetSRID(). ST_Transform actually " 12318"changes the coordinates of a raster (and resamples the pixel values) from " 12319"one spatial reference system to another, while ST_SetSRID() simply changes " 12320"the SRID identifier of the raster." 12321msgstr "" 12322"Geralmente, aST_Transform confundida com a ST_SetSRID(). Na verdade, a " 12323"ST_Transform modifica as coordenadas de um raster (e resample os valores do " 12324"pixel) de um sistema de referência espacial para outro, enquanto a " 12325"ST_SetSRID() só altera o identificador de SRID do raster. " 12326 12327#. Tag: para 12328#: reference_raster.xml:4897 12329#, no-c-format 12330msgid "" 12331"Unlike the other variants, Variant 3 requires a reference raster as " 12332"<varname>alignto</varname>. The transformed raster will be transformed to " 12333"the spatial reference system (SRID) of the reference raster and be aligned " 12334"(ST_SameAlignment = TRUE) to the reference raster." 12335msgstr "" 12336"Diferente das outras variantes, a 3 requer um raster referência como " 12337"<varname>alignto</varname>. O raster transformado será alterado para o " 12338"sistema de referência espacial (SRID) do raster referência e será alinhado " 12339"(ST_SameAlignment = VERDADE) ao raster referência. " 12340 12341#. Tag: para 12342#: reference_raster.xml:4902 12343#, no-c-format 12344msgid "" 12345"If you find your transformation support is not working right, you may need " 12346"to set the environment variable PROJSO to the .so or .dll projection library " 12347"your PostGIS is using. This just needs to have the name of the file. So for " 12348"example on windows, you would in Control Panel -> System -> Environment " 12349"Variables add a system variable called <varname>PROJSO</varname> and set it " 12350"to <varname>libproj.dll</varname> (if you are using proj 4.6.1). You'll have " 12351"to restart your PostgreSQL service/daemon after this change." 12352msgstr "" 12353"Se achar que seu suporte de transformação não estiver funcionando " 12354"corretamente, talvez precise colocar a variável de ambiente PROJSO na " 12355"biblioteca de projeção .so ou .dll que seu PostGIS está usando. Isto só " 12356"precisará ter o mesmo nome do arquivo, Então, por exemplo, no Windows, você " 12357"iria em Painel de Controle -> Sitema -> Variáveis de Ambiente adicionar um " 12358"sistema variável chamado <varname>PROJSO</varname> e colocar em " 12359"<varname>libproj.dll</varname> (se estiver usando proj 4.6.1). Você terá que " 12360"reiniciar seu serviço/daemon PostgreSQL depois dessa alteração. " 12361 12362#. Tag: para 12363#: reference_raster.xml:4908 12364#, no-c-format 12365msgid "Enhanced: 2.1.0 Addition of ST_Transform(rast, alignto) variant" 12366msgstr "Melhorias: 2.1.0 Adição da variante ST_Transform(rast, alignto) " 12367 12368#. Tag: programlisting 12369#: reference_raster.xml:4914 12370#, no-c-format 12371msgid "" 12372"SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,\n" 12373" ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after\n" 12374" FROM\n" 12375" ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84\n" 12376" , ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin\n" 12377" FROM aerials.o_2_boston\n" 12378" WHERE ST_Intersects(rast,\n" 12379" ST_Transform(ST_MakeEnvelope(-71.128, " 12380"42.2392,-71.1277, 42.2397, 4326),26986) )\n" 12381" LIMIT 1) As foo;\n" 12382"\n" 12383" w_before | w_after | h_before | h_after\n" 12384"----------+---------+----------+---------\n" 12385" 200 | 228 | 200 | 170" 12386msgstr "" 12387"SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,\n" 12388" ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after\n" 12389" FROM\n" 12390" ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84\n" 12391" , ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin\n" 12392" FROM aerials.o_2_boston\n" 12393" WHERE ST_Intersects(rast,\n" 12394" ST_Transform(ST_MakeEnvelope(-71.128, " 12395"42.2392,-71.1277, 42.2397, 4326),26986) )\n" 12396" LIMIT 1) As foo;\n" 12397"\n" 12398" w_before | w_after | h_before | h_after\n" 12399"----------+---------+----------+---------\n" 12400" 200 | 228 | 200 | 170" 12401 12402#. Tag: para 12403#: reference_raster.xml:4924 12404#, no-c-format 12405msgid "original mass state plane meters (mass_stm)" 12406msgstr "original mass state plane meters (mass_stm)" 12407 12408#. Tag: para 12409#: reference_raster.xml:4933 12410#, no-c-format 12411msgid "After transform to wgs 84 long lat (wgs_84)" 12412msgstr "Depois transforma para wgs 84 long lat (wgs_84)" 12413 12414#. Tag: para 12415#: reference_raster.xml:4942 12416#, no-c-format 12417msgid "" 12418"After transform to wgs 84 long lat with bilinear algorithm instead of NN " 12419"default (wgs_84_bilin)" 12420msgstr "" 12421"Depois transforma para wgs 84 long lat algorítimo bilinear em vez do padrão " 12422"NN (wgs_84_bilin)" 12423 12424#. Tag: para 12425#: reference_raster.xml:4955 12426#, no-c-format 12427msgid "" 12428"The following shows the difference between using ST_Transform(raster, srid) " 12429"and ST_Transform(raster, alignto)" 12430msgstr "" 12431"A seguir está a diferença entre usar ST_Transform(raster, srid) e " 12432"ST_Transform(raster, alignto)" 12433 12434#. Tag: programlisting 12435#: reference_raster.xml:4956 12436#, no-c-format 12437msgid "" 12438"WITH foo AS (\n" 12439" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, " 12440"600000, 100, -100, 0, 0, 2163), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 12441" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 600000, 100, " 12442"-100, 0, 0, 2163), 1, '16BUI', 2, 0) AS rast UNION ALL\n" 12443" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 600000, 100, " 12444"-100, 0, 0, 2163), 1, '16BUI', 3, 0) AS rast UNION ALL\n" 12445"\n" 12446" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599800, 100, " 12447"-100, 0, 0, 2163), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 12448" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599800, 100, " 12449"-100, 0, 0, 2163), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 12450" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599800, 100, " 12451"-100, 0, 0, 2163), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 12452"\n" 12453" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599600, 100, " 12454"-100, 0, 0, 2163), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 12455" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599600, 100, " 12456"-100, 0, 0, 2163), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 12457" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599600, 100, " 12458"-100, 0, 0, 2163), 1, '16BUI', 300, 0) AS rast\n" 12459"), bar AS (\n" 12460" SELECT\n" 12461" ST_Transform(rast, 4269) AS alignto\n" 12462" FROM foo\n" 12463" LIMIT 1\n" 12464"), baz AS (\n" 12465" SELECT\n" 12466" rid,\n" 12467" rast,\n" 12468" ST_Transform(rast, 4269) AS not_aligned,\n" 12469" ST_Transform(rast, alignto) AS aligned\n" 12470" FROM foo\n" 12471" CROSS JOIN bar\n" 12472")\n" 12473"SELECT\n" 12474" ST_SameAlignment(rast) AS rast,\n" 12475" ST_SameAlignment(not_aligned) AS not_aligned,\n" 12476" ST_SameAlignment(aligned) AS aligned\n" 12477"FROM baz\n" 12478"\n" 12479" rast | not_aligned | aligned\n" 12480"------+-------------+---------\n" 12481" t | f | t" 12482msgstr "" 12483"WITH foo AS (\n" 12484" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, " 12485"600000, 100, -100, 0, 0, 2163), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 12486" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 600000, 100, " 12487"-100, 0, 0, 2163), 1, '16BUI', 2, 0) AS rast UNION ALL\n" 12488" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 600000, 100, " 12489"-100, 0, 0, 2163), 1, '16BUI', 3, 0) AS rast UNION ALL\n" 12490"\n" 12491" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599800, 100, " 12492"-100, 0, 0, 2163), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 12493" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599800, 100, " 12494"-100, 0, 0, 2163), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 12495" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599800, 100, " 12496"-100, 0, 0, 2163), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 12497"\n" 12498" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599600, 100, " 12499"-100, 0, 0, 2163), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 12500" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599600, 100, " 12501"-100, 0, 0, 2163), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 12502" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599600, 100, " 12503"-100, 0, 0, 2163), 1, '16BUI', 300, 0) AS rast\n" 12504"), bar AS (\n" 12505" SELECT\n" 12506" ST_Transform(rast, 4269) AS alignto\n" 12507" FROM foo\n" 12508" LIMIT 1\n" 12509"), baz AS (\n" 12510" SELECT\n" 12511" rid,\n" 12512" rast,\n" 12513" ST_Transform(rast, 4269) AS not_aligned,\n" 12514" ST_Transform(rast, alignto) AS aligned\n" 12515" FROM foo\n" 12516" CROSS JOIN bar\n" 12517")\n" 12518"SELECT\n" 12519" ST_SameAlignment(rast) AS rast,\n" 12520" ST_SameAlignment(not_aligned) AS not_aligned,\n" 12521" ST_SameAlignment(aligned) AS aligned\n" 12522"FROM baz\n" 12523"\n" 12524" rast | not_aligned | aligned\n" 12525"------+-------------+---------\n" 12526" t | f | t" 12527 12528#. Tag: para 12529#: reference_raster.xml:4961 12530#, no-c-format 12531msgid ", <xref linkend=\"RT_ST_SetSRID\"/>" 12532msgstr ", <xref linkend=\"RT_ST_SetSRID\"/>" 12533 12534#. Tag: title 12535#: reference_raster.xml:4967 12536#, no-c-format 12537msgid "Raster Band Editors" 12538msgstr "Editores de Banda Raster" 12539 12540#. Tag: refname 12541#: reference_raster.xml:4971 12542#, no-c-format 12543msgid "ST_SetBandNoDataValue" 12544msgstr "ST_SetBandNoDataValue" 12545 12546#. Tag: refpurpose 12547#: reference_raster.xml:4972 12548#, no-c-format 12549msgid "" 12550"Sets the value for the given band that represents no data. Band 1 is assumed " 12551"if no band is specified. To mark a band as having no nodata value, set the " 12552"nodata value = NULL." 12553msgstr "" 12554"Coloca o valor da banda que não representa nenhum dado. A banda 1 é assumida " 12555"se nenhuma banda for especificada. Para marcar uma banda como tendo nenhum " 12556"valor nodata, coloca ele = NULL. " 12557 12558#. Tag: funcsynopsis 12559#: reference_raster.xml:4976 12560#, no-c-format 12561msgid "" 12562"<funcprototype> <funcdef>raster <function>ST_SetBandNoDataValue</function></" 12563"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 12564"paramdef> <paramdef><type>double precision </type> <parameter>nodatavalue</" 12565"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 12566"<function>ST_SetBandNoDataValue</function></funcdef> <paramdef><type>raster " 12567"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 12568"type> <parameter>band</parameter></paramdef> <paramdef><type>double " 12569"precision </type> <parameter>nodatavalue</parameter></paramdef> <paramdef " 12570"choice=\"opt\"><type>boolean </type> <parameter>forcechecking=false</" 12571"parameter></paramdef> </funcprototype>" 12572msgstr "" 12573"<funcprototype> <funcdef>raster <function>ST_SetBandNoDataValue</function></" 12574"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 12575"paramdef> <paramdef><type>double precision </type> <parameter>nodatavalue</" 12576"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 12577"<function>ST_SetBandNoDataValue</function></funcdef> <paramdef><type>raster " 12578"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 12579"type> <parameter>band</parameter></paramdef> <paramdef><type>double " 12580"precision </type> <parameter>nodatavalue</parameter></paramdef> <paramdef " 12581"choice=\"opt\"><type>boolean </type> <parameter>forcechecking=false</" 12582"parameter></paramdef> </funcprototype>" 12583 12584#. Tag: para 12585#: reference_raster.xml:4997 12586#, no-c-format 12587msgid "" 12588"Sets the value that represents no data for the band. Band 1 is assumed if " 12589"not specified. This will affect results from <xref linkend=\"RT_ST_Polygon\"/" 12590">, <xref linkend=\"RT_ST_DumpAsPolygons\"/>, and the ST_PixelAs...() " 12591"functions." 12592msgstr "" 12593"Coloca o valor que não representa nenhum dado para a banda. A banda 1 é " 12594"assumida se não especificada. Isso irá afetar os resultados de <xref linkend=" 12595"\"RT_ST_Polygon\"/>, <xref linkend=\"RT_ST_DumpAsPolygons\"/>, e as funções " 12596"ST_PixelAs...()." 12597 12598#. Tag: programlisting 12599#: reference_raster.xml:5003 12600#, no-c-format 12601msgid "" 12602"-- change just first band no data value\n" 12603"UPDATE dummy_rast\n" 12604" SET rast = ST_SetBandNoDataValue(rast,1, 254)\n" 12605"WHERE rid = 2;\n" 12606"\n" 12607"-- change no data band value of bands 1,2,3\n" 12608"UPDATE dummy_rast\n" 12609" SET rast =\n" 12610" ST_SetBandNoDataValue(\n" 12611" ST_SetBandNoDataValue(\n" 12612" ST_SetBandNoDataValue(\n" 12613" rast,1, 254)\n" 12614" ,2,99),\n" 12615" 3,108)\n" 12616" WHERE rid = 2;\n" 12617"\n" 12618"-- wipe out the nodata value this will ensure all pixels are considered for " 12619"all processing functions\n" 12620"UPDATE dummy_rast\n" 12621" SET rast = ST_SetBandNoDataValue(rast,1, NULL)\n" 12622"WHERE rid = 2;" 12623msgstr "" 12624"-- change just first band no data value\n" 12625"UPDATE dummy_rast\n" 12626" SET rast = ST_SetBandNoDataValue(rast,1, 254)\n" 12627"WHERE rid = 2;\n" 12628"\n" 12629"-- change no data band value of bands 1,2,3\n" 12630"UPDATE dummy_rast\n" 12631" SET rast =\n" 12632" ST_SetBandNoDataValue(\n" 12633" ST_SetBandNoDataValue(\n" 12634" ST_SetBandNoDataValue(\n" 12635" rast,1, 254)\n" 12636" ,2,99),\n" 12637" 3,108)\n" 12638" WHERE rid = 2;\n" 12639"\n" 12640"-- wipe out the nodata value this will ensure all pixels are considered for " 12641"all processing functions\n" 12642"UPDATE dummy_rast\n" 12643" SET rast = ST_SetBandNoDataValue(rast,1, NULL)\n" 12644"WHERE rid = 2;" 12645 12646#. Tag: refname 12647#: reference_raster.xml:5015 12648#, no-c-format 12649msgid "ST_SetBandIsNoData" 12650msgstr "ST_SetBandIsNoData" 12651 12652#. Tag: refpurpose 12653#: reference_raster.xml:5016 12654#, no-c-format 12655msgid "Sets the isnodata flag of the band to TRUE." 12656msgstr "Coloca a bandeira isnodata da banda como VERDADE. " 12657 12658#. Tag: funcprototype 12659#: reference_raster.xml:5021 12660#, no-c-format 12661msgid "" 12662"<funcdef>raster <function>ST_SetBandIsNoData</function></funcdef> " 12663"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12664"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 12665"parameter></paramdef>" 12666msgstr "" 12667"<funcdef>raster <function>ST_SetBandIsNoData</function></funcdef> " 12668"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12669"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 12670"parameter></paramdef>" 12671 12672#. Tag: para 12673#: reference_raster.xml:5032 12674#, no-c-format 12675msgid "" 12676"Sets the isnodata flag for the band to true. Band 1 is assumed if not " 12677"specified. This function should be called only when the flag is considered " 12678"dirty. That is, when the result calling <xref linkend=\"RT_ST_BandIsNoData\"/" 12679"> is different using TRUE as last argument and without using it" 12680msgstr "" 12681"Coloca a bandeira isnodata para a banda como verdade. A banda 1 é assumida " 12682"se não especificada. Esta função deveria ser chamada apenas quando a " 12683"bandeira for considerada suja. Isto é, quando a chamada resultado <xref " 12684"linkend=\"RT_ST_BandIsNoData\"/> for diferente usando VERDADEIRO como último " 12685"argumento e sem usá-lo. " 12686 12687#. Tag: programlisting 12688#: reference_raster.xml:5044 12689#, no-c-format 12690msgid "" 12691"-- Create dummy table with one raster column\n" 12692"create table dummy_rast (rid integer, rast raster);\n" 12693"\n" 12694"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue " 12695"= pixel value = 3.\n" 12696"-- In the second band, nodatavalue = 13, pixel value = 4\n" 12697"insert into dummy_rast values(1,\n" 12698"(\n" 12699"'01' -- little endian (uint8 ndr)\n" 12700"||\n" 12701"'0000' -- version (uint16 0)\n" 12702"||\n" 12703"'0200' -- nBands (uint16 0)\n" 12704"||\n" 12705"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n" 12706"||\n" 12707"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n" 12708"||\n" 12709"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n" 12710"||\n" 12711"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n" 12712"||\n" 12713"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n" 12714"||\n" 12715"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n" 12716"||\n" 12717"'E6100000' -- SRID (int32 4326)\n" 12718"||\n" 12719"'0100' -- width (uint16 1)\n" 12720"||\n" 12721"'0100' -- height (uint16 1)\n" 12722"||\n" 12723"'4' -- hasnodatavalue set to true, isnodata value set to false (when it " 12724"should be true)\n" 12725"||\n" 12726"'2' -- first band type (4BUI)\n" 12727"||\n" 12728"'03' -- novalue==3\n" 12729"||\n" 12730"'03' -- pixel(0,0)==3 (same that nodata)\n" 12731"||\n" 12732"'0' -- hasnodatavalue set to false\n" 12733"||\n" 12734"'5' -- second band type (16BSI)\n" 12735"||\n" 12736"'0D00' -- novalue==13\n" 12737"||\n" 12738"'0400' -- pixel(0,0)==4\n" 12739")::raster\n" 12740");\n" 12741"\n" 12742"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 12743"false\n" 12744"select st_bandisnodata(rast, 1, TRUE) from dummy_rast where rid = 1; -- " 12745"Expected true\n" 12746"\n" 12747"-- The isnodata flag is dirty. We are going to set it to true\n" 12748"update dummy_rast set rast = st_setbandisnodata(rast, 1) where rid = 1;\n" 12749"\n" 12750"\n" 12751"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 12752"true" 12753msgstr "" 12754"-- Create dummy table with one raster column\n" 12755"create table dummy_rast (rid integer, rast raster);\n" 12756"\n" 12757"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue " 12758"= pixel value = 3.\n" 12759"-- In the second band, nodatavalue = 13, pixel value = 4\n" 12760"insert into dummy_rast values(1,\n" 12761"(\n" 12762"'01' -- little endian (uint8 ndr)\n" 12763"||\n" 12764"'0000' -- version (uint16 0)\n" 12765"||\n" 12766"'0200' -- nBands (uint16 0)\n" 12767"||\n" 12768"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n" 12769"||\n" 12770"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n" 12771"||\n" 12772"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n" 12773"||\n" 12774"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n" 12775"||\n" 12776"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n" 12777"||\n" 12778"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n" 12779"||\n" 12780"'E6100000' -- SRID (int32 4326)\n" 12781"||\n" 12782"'0100' -- width (uint16 1)\n" 12783"||\n" 12784"'0100' -- height (uint16 1)\n" 12785"||\n" 12786"'4' -- hasnodatavalue set to true, isnodata value set to false (when it " 12787"should be true)\n" 12788"||\n" 12789"'2' -- first band type (4BUI)\n" 12790"||\n" 12791"'03' -- novalue==3\n" 12792"||\n" 12793"'03' -- pixel(0,0)==3 (same that nodata)\n" 12794"||\n" 12795"'0' -- hasnodatavalue set to false\n" 12796"||\n" 12797"'5' -- second band type (16BSI)\n" 12798"||\n" 12799"'0D00' -- novalue==13\n" 12800"||\n" 12801"'0400' -- pixel(0,0)==4\n" 12802")::raster\n" 12803");\n" 12804"\n" 12805"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 12806"false\n" 12807"select st_bandisnodata(rast, 1, TRUE) from dummy_rast where rid = 1; -- " 12808"Expected true\n" 12809"\n" 12810"-- The isnodata flag is dirty. We are going to set it to true\n" 12811"update dummy_rast set rast = st_setbandisnodata(rast, 1) where rid = 1;\n" 12812"\n" 12813"\n" 12814"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected " 12815"true" 12816 12817#. Tag: para 12818#: reference_raster.xml:5050 12819#, no-c-format 12820msgid "" 12821", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=" 12822"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_BandIsNoData\"/>" 12823msgstr "" 12824", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=" 12825"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_BandIsNoData\"/>" 12826 12827#. Tag: refname 12828#: reference_raster.xml:5059 12829#, no-c-format 12830msgid "ST_SetBandPath" 12831msgstr "" 12832 12833#. Tag: refpurpose 12834#: reference_raster.xml:5060 12835#, no-c-format 12836msgid "Update the external path and band number of an out-db band" 12837msgstr "" 12838 12839#. Tag: funcprototype 12840#: reference_raster.xml:5065 12841#, no-c-format 12842msgid "" 12843"<funcdef>raster <function>ST_SetBandPath</function></funcdef> " 12844"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12845"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 12846"<paramdef><type>text </type> <parameter>outdbpath</parameter></paramdef> " 12847"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> " 12848"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</" 12849"parameter></paramdef>" 12850msgstr "" 12851 12852#. Tag: para 12853#: reference_raster.xml:5079 12854#, no-c-format 12855msgid "" 12856"Updates an out-db band's external raster file path and external band number." 12857msgstr "" 12858 12859#. Tag: para 12860#: reference_raster.xml:5082 12861#, no-c-format 12862msgid "" 12863"If <varname>force</varname> is set to true, no tests are done to ensure " 12864"compatibility (e.g. alignment, pixel support) between the external raster " 12865"file and the PostGIS raster. This mode is intended for file system changes " 12866"where the external raster resides." 12867msgstr "" 12868 12869#. Tag: para 12870#: reference_raster.xml:5088 reference_raster.xml:5141 12871#, no-c-format 12872msgid "" 12873"Internally, this method replaces the PostGIS raster's band at index " 12874"<varname>band</varname> with a new band instead of updating the existing " 12875"path information." 12876msgstr "" 12877 12878#. Tag: programlisting 12879#: reference_raster.xml:5098 12880#, no-c-format 12881msgid "" 12882"WITH foo AS (\n" 12883" SELECT\n" 12884" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/" 12885"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n" 12886")\n" 12887"SELECT\n" 12888" 1 AS query,\n" 12889" *\n" 12890"FROM ST_BandMetadata(\n" 12891" (SELECT rast FROM foo),\n" 12892" ARRAY[1,3,2]::int[]\n" 12893")\n" 12894"UNION ALL\n" 12895"SELECT\n" 12896" 2,\n" 12897" *\n" 12898"FROM ST_BandMetadata(\n" 12899" (\n" 12900" SELECT\n" 12901" <emphasis role=\"strong\">ST_SetBandPath(\n" 12902" rast,\n" 12903" 2,\n" 12904" '/home/pele/devel/geo/postgis-git/raster/" 12905"test/regress/loader/Projected2.tif',\n" 12906" 1\n" 12907" )</emphasis> AS rast\n" 12908" FROM foo\n" 12909" ),\n" 12910" ARRAY[1,3,2]::int[]\n" 12911")\n" 12912"ORDER BY 1, 2;\n" 12913"\n" 12914" query | bandnum | pixeltype | nodatavalue | isoutdb " 12915"| " 12916"path | outdbbandnum\n" 12917"-------+---------+-----------+-------------+---------" 12918"+---------------------------------------------------------------------------------" 12919"+--------------\n" 12920" 1 | 1 | 8BUI | | t | /home/pele/devel/geo/" 12921"postgis-git/raster/test/regress/loader/Projected.tif | 1\n" 12922" 1 | 2 | 8BUI | | t | /home/pele/devel/geo/" 12923"postgis-git/raster/test/regress/loader/Projected.tif | 2\n" 12924" 1 | 3 | 8BUI | | t | /home/pele/devel/geo/" 12925"postgis-git/raster/test/regress/loader/Projected.tif | 3\n" 12926" 2 | 1 | 8BUI | | t | /home/pele/devel/geo/" 12927"postgis-git/raster/test/regress/loader/Projected.tif | 1\n" 12928"<emphasis role=\"strong\"> 2 | 2 | 8BUI | | " 12929"t | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/" 12930"Projected2.tif | 1</emphasis>\n" 12931" 2 | 3 | 8BUI | | t | /home/pele/devel/geo/" 12932"postgis-git/raster/test/regress/loader/Projected.tif | 3" 12933msgstr "" 12934 12935#. Tag: para 12936#: reference_raster.xml:5103 12937#, no-c-format 12938msgid ", <xref linkend=\"RT_ST_SetBandIndex\"/>" 12939msgstr "" 12940 12941#. Tag: refname 12942#: reference_raster.xml:5113 12943#, no-c-format 12944msgid "ST_SetBandIndex" 12945msgstr "" 12946 12947#. Tag: refpurpose 12948#: reference_raster.xml:5114 12949#, no-c-format 12950msgid "Update the external band number of an out-db band" 12951msgstr "" 12952 12953#. Tag: funcprototype 12954#: reference_raster.xml:5119 12955#, no-c-format 12956msgid "" 12957"<funcdef>raster <function>ST_SetBandIndex</function></funcdef> " 12958"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 12959"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 12960"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> " 12961"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</" 12962"parameter></paramdef>" 12963msgstr "" 12964 12965#. Tag: para 12966#: reference_raster.xml:5132 12967#, no-c-format 12968msgid "" 12969"Updates an out-db band's external band number. This does not touch the " 12970"external raster file associated with the out-db band" 12971msgstr "" 12972 12973#. Tag: para 12974#: reference_raster.xml:5135 12975#, no-c-format 12976msgid "" 12977"If <varname>force</varname> is set to true, no tests are done to ensure " 12978"compatibility (e.g. alignment, pixel support) between the external raster " 12979"file and the PostGIS raster. This mode is intended for where bands are moved " 12980"around in the external raster file." 12981msgstr "" 12982 12983#. Tag: programlisting 12984#: reference_raster.xml:5151 12985#, no-c-format 12986msgid "" 12987"WITH foo AS (\n" 12988" SELECT\n" 12989" ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/" 12990"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n" 12991")\n" 12992"SELECT\n" 12993" 1 AS query,\n" 12994" *\n" 12995"FROM ST_BandMetadata(\n" 12996" (SELECT rast FROM foo),\n" 12997" ARRAY[1,3,2]::int[]\n" 12998")\n" 12999"UNION ALL\n" 13000"SELECT\n" 13001" 2,\n" 13002" *\n" 13003"FROM ST_BandMetadata(\n" 13004" (\n" 13005" SELECT\n" 13006" <emphasis role=\"strong\">ST_SetBandIndex(\n" 13007" rast,\n" 13008" 2,\n" 13009" 1\n" 13010" )</emphasis> AS rast\n" 13011" FROM foo\n" 13012" ),\n" 13013" ARRAY[1,3,2]::int[]\n" 13014")\n" 13015"ORDER BY 1, 2;\n" 13016"\n" 13017" query | bandnum | pixeltype | nodatavalue | isoutdb " 13018"| " 13019"path | outdbbandnum\n" 13020"-------+---------+-----------+-------------+---------" 13021"+---------------------------------------------------------------------------------" 13022"+--------------\n" 13023" 1 | 1 | 8BUI | | t | /home/pele/devel/geo/" 13024"postgis-git/raster/test/regress/loader/Projected.tif | 1\n" 13025" 1 | 2 | 8BUI | | t | /home/pele/devel/geo/" 13026"postgis-git/raster/test/regress/loader/Projected.tif | 2\n" 13027" 1 | 3 | 8BUI | | t | /home/pele/devel/geo/" 13028"postgis-git/raster/test/regress/loader/Projected.tif | 3\n" 13029" 2 | 1 | 8BUI | | t | /home/pele/devel/geo/" 13030"postgis-git/raster/test/regress/loader/Projected.tif | 1\n" 13031"<emphasis role=\"strong\"> 2 | 2 | 8BUI | | " 13032"t | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/" 13033"Projected.tif | 1</emphasis>\n" 13034" 2 | 3 | 8BUI | | t | /home/pele/devel/geo/" 13035"postgis-git/raster/test/regress/loader/Projected.tif | 3" 13036msgstr "" 13037 13038#. Tag: para 13039#: reference_raster.xml:5156 13040#, no-c-format 13041msgid ", <xref linkend=\"RT_ST_SetBandPath\"/>" 13042msgstr "" 13043 13044#. Tag: title 13045#: reference_raster.xml:5167 13046#, no-c-format 13047msgid "Raster Band Statistics and Analytics" 13048msgstr "Análises e Estatísticas de Banda Raster" 13049 13050#. Tag: refname 13051#: reference_raster.xml:5171 13052#, no-c-format 13053msgid "ST_Count" 13054msgstr "ST_Count" 13055 13056#. Tag: refpurpose 13057#: reference_raster.xml:5172 13058#, no-c-format 13059msgid "" 13060"Returns the number of pixels in a given band of a raster or raster coverage. " 13061"If no band is specified defaults to band 1. If exclude_nodata_value is set " 13062"to true, will only count pixels that are not equal to the nodata value." 13063msgstr "" 13064"Retorna o número de pixeis em uma banda dada de um raster ou cobertura " 13065"raster. Se nenhuma banda for especificada, o padrão é usar a banda 1. Se " 13066"exclude_nodata_value for verdade, contará somente pixeis que não são iguais " 13067"ao valor nodata. " 13068 13069#. Tag: funcsynopsis 13070#: reference_raster.xml:5176 13071#, no-c-format 13072msgid "" 13073"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> " 13074"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13075"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13076"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13077"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 13078"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> " 13079"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13080"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13081"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13082"<function>ST_Count</function></funcdef> <paramdef><type>text </type> " 13083"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13084"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13085"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13086"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13087"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13088"<function>ST_Count</function></funcdef> <paramdef><type>text </type> " 13089"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13090"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>boolean </" 13091"type> <parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 13092msgstr "" 13093"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> " 13094"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13095"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13096"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13097"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> " 13098"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> " 13099"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13100"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13101"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13102"<function>ST_Count</function></funcdef> <paramdef><type>text </type> " 13103"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13104"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13105"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13106"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13107"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13108"<function>ST_Count</function></funcdef> <paramdef><type>text </type> " 13109"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13110"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>boolean </" 13111"type> <parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 13112 13113#. Tag: para 13114#: reference_raster.xml:5207 13115#, no-c-format 13116msgid "" 13117"Returns the number of pixels in a given band of a raster or raster coverage. " 13118"If no band is specified <varname>nband</varname> defaults to 1." 13119msgstr "" 13120"Retorna o número de pixeis em uma banda de um raster ou cobertura raster. Se " 13121"nenhuma banda foi especificada <varname>nband</varname> usa-se 1. " 13122 13123#. Tag: para 13124#: reference_raster.xml:5208 13125#, no-c-format 13126msgid "" 13127"If <varname>exclude_nodata_value</varname> is set to true, will only count " 13128"pixels with value not equal to the <varname>nodata</varname> value of the " 13129"raster. Set <varname>exclude_nodata_value</varname> to false to get count " 13130"all pixels" 13131msgstr "" 13132"Se <varname>exclude_nodata_value</varname> for verdade, contará apenas " 13133"pixeis com valor diferente do valor <varname>nodata</varname> do raster. " 13134"<varname>exclude_nodata_value</varname> é falso para contar todos os pixeis. " 13135 13136#. Tag: para 13137#: reference_raster.xml:5212 13138#, no-c-format 13139msgid "" 13140"The ST_Count(rastertable, rastercolumn, ...) variants are deprecated as of " 13141"2.2.0. Use <xref linkend=\"RT_ST_CountAgg\"/> instead." 13142msgstr "" 13143"As variantes ST_Count(rastertable, rastercolumn, ...) são deprecadas como da " 13144"2.2.0. Ao contrário, use: <xref linkend=\"RT_ST_CountAgg\"/>. " 13145 13146#. Tag: programlisting 13147#: reference_raster.xml:5222 13148#, no-c-format 13149msgid "" 13150"--example will count all pixels not 249 and one will count all pixels. --\n" 13151"SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata,\n" 13152" ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata\n" 13153" FROM dummy_rast WHERE rid=2;\n" 13154"\n" 13155"rid | exclude_nodata | include_nodata\n" 13156"-----+----------------+----------------\n" 13157" 2 | 23 | 25" 13158msgstr "" 13159"--example will count all pixels not 249 and one will count all pixels. --\n" 13160"SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata,\n" 13161" ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata\n" 13162" FROM dummy_rast WHERE rid=2;\n" 13163"\n" 13164"rid | exclude_nodata | include_nodata\n" 13165"-----+----------------+----------------\n" 13166" 2 | 23 | 25" 13167 13168#. Tag: para 13169#: reference_raster.xml:5227 reference_raster.xml:5288 13170#, no-c-format 13171msgid "" 13172", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13173"\"RT_ST_SetBandNoDataValue\"/>" 13174msgstr "" 13175", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13176"\"RT_ST_SetBandNoDataValue\"/>" 13177 13178#. Tag: refname 13179#: reference_raster.xml:5237 13180#, no-c-format 13181msgid "ST_CountAgg" 13182msgstr "ST_CountAgg" 13183 13184#. Tag: refpurpose 13185#: reference_raster.xml:5238 13186#, no-c-format 13187msgid "" 13188"Aggregate. Returns the number of pixels in a given band of a set of rasters. " 13189"If no band is specified defaults to band 1. If exclude_nodata_value is set " 13190"to true, will only count pixels that are not equal to the NODATA value." 13191msgstr "" 13192"Agregado. Retorna o número de pixeis em uma banda dada de um raster ou " 13193"cobertura raster. Se nenhuma banda for especificada, o padrão é usar a banda " 13194"1. Se exclude_nodata_value for verdade, contará somente pixeis que são " 13195"diferentes ao valor NODATA. " 13196 13197#. Tag: funcsynopsis 13198#: reference_raster.xml:5244 13199#, no-c-format 13200msgid "" 13201"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> " 13202"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13203"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13204"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13205"paramdef> <paramdef><type>double precision </type> " 13206"<parameter>sample_percent</parameter></paramdef> </funcprototype> " 13207"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> " 13208"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13209"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13210"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13211"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13212"<function>ST_CountAgg</function></funcdef> <paramdef><type>raster </type> " 13213"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 13214"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 13215msgstr "" 13216"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> " 13217"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13218"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13219"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13220"paramdef> <paramdef><type>double precision </type> " 13221"<parameter>sample_percent</parameter></paramdef> </funcprototype> " 13222"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> " 13223"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13224"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13225"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13226"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 13227"<function>ST_CountAgg</function></funcdef> <paramdef><type>raster </type> " 13228"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 13229"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 13230 13231#. Tag: para 13232#: reference_raster.xml:5272 13233#, no-c-format 13234msgid "" 13235"Returns the number of pixels in a given band of a set of rasters. If no band " 13236"is specified <varname>nband</varname> defaults to 1." 13237msgstr "" 13238"Retorna o número de pixeis em uma banda de um conjunto de rasters. Se " 13239"nenhuma banda foi especificada <varname>nband</varname> usa-se 1. " 13240 13241#. Tag: para 13242#: reference_raster.xml:5273 13243#, no-c-format 13244msgid "" 13245"If <varname>exclude_nodata_value</varname> is set to true, will only count " 13246"pixels with value not equal to the <varname>NODATA</varname> value of the " 13247"raster. Set <varname>exclude_nodata_value</varname> to false to get count " 13248"all pixels" 13249msgstr "" 13250"Se <varname>exclude_nodata_value</varname> for verdade, contará apenas " 13251"pixeis com valor diferente do valor <varname>NODATA</varname> do raster. " 13252"<varname>exclude_nodata_value</varname> é falso para contar todos os pixeis. " 13253 13254#. Tag: para 13255#: reference_raster.xml:5276 13256#, no-c-format 13257msgid "" 13258"By default will sample all pixels. To get faster response, set " 13259"<varname>sample_percent</varname> to value between zero (0) and one (1)" 13260msgstr "" 13261"Por padrão irá tomar todos os pixeis. Para obter uma resposta mais rápida, " 13262"coloque <varname>sample_percent</varname> no valor entre zero (0) e um (1)" 13263 13264#. Tag: programlisting 13265#: reference_raster.xml:5283 13266#, no-c-format 13267msgid "" 13268"WITH foo AS (\n" 13269" SELECT\n" 13270" rast.rast\n" 13271" FROM (\n" 13272" SELECT ST_SetValue(\n" 13273" ST_SetValue(\n" 13274" ST_SetValue(\n" 13275" ST_AddBand(\n" 13276" ST_MakeEmptyRaster(10, 10, " 13277"10, 10, 2, 2, 0, 0,0)\n" 13278" , 1, '64BF', 0, 0\n" 13279" )\n" 13280" , 1, 1, 1, -10\n" 13281" )\n" 13282" , 1, 5, 4, 0\n" 13283" )\n" 13284" , 1, 5, 5, 3.14159\n" 13285" ) AS rast\n" 13286" ) AS rast\n" 13287" FULL JOIN (\n" 13288" SELECT generate_series(1, 10) AS id\n" 13289" ) AS id\n" 13290" ON 1 = 1\n" 13291")\n" 13292"SELECT\n" 13293" ST_CountAgg(rast, 1, TRUE)\n" 13294"FROM foo;\n" 13295"\n" 13296" st_countagg\n" 13297"-------------\n" 13298" 20\n" 13299"(1 row)" 13300msgstr "" 13301"WITH foo AS (\n" 13302" SELECT\n" 13303" rast.rast\n" 13304" FROM (\n" 13305" SELECT ST_SetValue(\n" 13306" ST_SetValue(\n" 13307" ST_SetValue(\n" 13308" ST_AddBand(\n" 13309" ST_MakeEmptyRaster(10, 10, " 13310"10, 10, 2, 2, 0, 0,0)\n" 13311" , 1, '64BF', 0, 0\n" 13312" )\n" 13313" , 1, 1, 1, -10\n" 13314" )\n" 13315" , 1, 5, 4, 0\n" 13316" )\n" 13317" , 1, 5, 5, 3.14159\n" 13318" ) AS rast\n" 13319" ) AS rast\n" 13320" FULL JOIN (\n" 13321" SELECT generate_series(1, 10) AS id\n" 13322" ) AS id\n" 13323" ON 1 = 1\n" 13324")\n" 13325"SELECT\n" 13326" ST_CountAgg(rast, 1, TRUE)\n" 13327"FROM foo;\n" 13328"\n" 13329" st_countagg\n" 13330"-------------\n" 13331" 20\n" 13332"(1 row)" 13333 13334#. Tag: refname 13335#: reference_raster.xml:5298 13336#, no-c-format 13337msgid "ST_Histogram" 13338msgstr "ST_Histogram" 13339 13340#. Tag: refpurpose 13341#: reference_raster.xml:5299 13342#, no-c-format 13343msgid "" 13344"Returns a set of record summarizing a raster or raster coverage data " 13345"distribution separate bin ranges. Number of bins are autocomputed if not " 13346"specified." 13347msgstr "" 13348"Retorna um conjunto de registros que resumem um raster ou distribuição de " 13349"dados de cobertura raster intervalos bin separados. O número de bins é auto " 13350"calculado. " 13351 13352#. Tag: funcsynopsis 13353#: reference_raster.xml:5303 13354#, no-c-format 13355msgid "" 13356"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></" 13357"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13358"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13359"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13360"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 13361"\"opt\"><type>integer </type> <parameter>bins=autocomputed</parameter></" 13362"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 13363"<parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13364"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13365"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13366"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13367"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13368"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13369"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13370"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13371"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13372"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13373"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13374"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13375"parameter></paramdef> <paramdef><type>boolean </type> " 13376"<parameter>exclude_nodata_value</parameter></paramdef> " 13377"<paramdef><type>integer </type> <parameter>bins</parameter></paramdef> " 13378"<paramdef><type>boolean </type> <parameter>right</parameter></paramdef> </" 13379"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13380"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13381"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13382"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13383"parameter></paramdef> <paramdef><type>boolean </type> <parameter>right</" 13384"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13385"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> " 13386"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13387"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>integer </" 13388"type> <parameter>nband</parameter></paramdef> <paramdef><type>integer </" 13389"type> <parameter>bins</parameter></paramdef> <paramdef><type>boolean </type> " 13390"<parameter>right</parameter></paramdef> </funcprototype> <funcprototype> " 13391"<funcdef>SETOF record <function>ST_Histogram</function></funcdef> " 13392"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 13393"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 13394"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13395"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13396"paramdef> <paramdef><type>integer </type> <parameter>bins</parameter></" 13397"paramdef> <paramdef><type>boolean </type> <parameter>right</parameter></" 13398"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13399"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> " 13400"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13401"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13402"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13403"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13404"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 13405"<parameter>bins=autocomputed</parameter></paramdef> <paramdef choice=\"opt" 13406"\"><type>double precision[] </type> <parameter>width=NULL</parameter></" 13407"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13408"<parameter>right=false</parameter></paramdef> </funcprototype> " 13409"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></" 13410"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 13411"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 13412"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13413"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13414"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13415"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13416"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13417"funcprototype>" 13418msgstr "" 13419"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></" 13420"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13421"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13422"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13423"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 13424"\"opt\"><type>integer </type> <parameter>bins=autocomputed</parameter></" 13425"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 13426"<parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13427"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13428"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13429"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13430"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13431"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13432"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13433"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13434"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13435"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13436"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13437"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13438"parameter></paramdef> <paramdef><type>boolean </type> " 13439"<parameter>exclude_nodata_value</parameter></paramdef> " 13440"<paramdef><type>integer </type> <parameter>bins</parameter></paramdef> " 13441"<paramdef><type>boolean </type> <parameter>right</parameter></paramdef> </" 13442"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</" 13443"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 13444"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 13445"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13446"parameter></paramdef> <paramdef><type>boolean </type> <parameter>right</" 13447"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13448"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> " 13449"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13450"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>integer </" 13451"type> <parameter>nband</parameter></paramdef> <paramdef><type>integer </" 13452"type> <parameter>bins</parameter></paramdef> <paramdef><type>boolean </type> " 13453"<parameter>right</parameter></paramdef> </funcprototype> <funcprototype> " 13454"<funcdef>SETOF record <function>ST_Histogram</function></funcdef> " 13455"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 13456"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 13457"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13458"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></" 13459"paramdef> <paramdef><type>integer </type> <parameter>bins</parameter></" 13460"paramdef> <paramdef><type>boolean </type> <parameter>right</parameter></" 13461"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13462"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> " 13463"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13464"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13465"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13466"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13467"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 13468"<parameter>bins=autocomputed</parameter></paramdef> <paramdef choice=\"opt" 13469"\"><type>double precision[] </type> <parameter>width=NULL</parameter></" 13470"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13471"<parameter>right=false</parameter></paramdef> </funcprototype> " 13472"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></" 13473"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 13474"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 13475"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13476"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</" 13477"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13478"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt" 13479"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </" 13480"funcprototype>" 13481 13482#. Tag: para 13483#: reference_raster.xml:5385 13484#, no-c-format 13485msgid "" 13486"Returns set of records consisting of min, max, count, percent for a given " 13487"raster band for each bin. If no band is specified <varname>nband</varname> " 13488"defaults to 1." 13489msgstr "" 13490"retorna um conjunto de registros de porcentagens min, max, count, para uma " 13491"banda raster dada para cada bin. Se nenhuma banda for especificada " 13492"<varname>nband</varname> usa-se 1. " 13493 13494#. Tag: para 13495#: reference_raster.xml:5386 13496#, no-c-format 13497msgid "" 13498"By default only considers pixel values not equal to the <varname>nodata</" 13499"varname> value . Set <varname>exclude_nodata_value</varname> to false to get " 13500"count all pixels." 13501msgstr "" 13502"Por padrão só considera valores de pixeis diferentes do valor " 13503"<varname>nodata</varname>. <varname>exclude_nodata_value</varname> é falso " 13504"para contar todos os pixeis. " 13505 13506#. Tag: term 13507#: reference_raster.xml:5390 13508#, no-c-format 13509msgid "<parameter>width </parameter><type>double precision[]</type>" 13510msgstr "<parameter>width </parameter><type>double precision[]</type>" 13511 13512#. Tag: para 13513#: reference_raster.xml:5391 13514#, no-c-format 13515msgid "" 13516"width: an array indicating the width of each category/bin. If the number of " 13517"bins is greater than the number of widths, the widths are repeated." 13518msgstr "" 13519"largura: um arranjo indicando a largura de cada categoria/bin. Se o número " 13520"de bins for maior que o número de larguras, elas são repetidas. " 13521 13522#. Tag: para 13523#: reference_raster.xml:5392 13524#, no-c-format 13525msgid "" 13526"Example: 9 bins, widths are [a, b, c] will have the output be [a, b, c, a, " 13527"b, c, a, b, c]" 13528msgstr "" 13529"Exemplo: 9 bins, larguras são [a, b, c] terão a saída como [a, b, c, a, b, " 13530"c, a, b, c]" 13531 13532#. Tag: term 13533#: reference_raster.xml:5395 13534#, no-c-format 13535msgid "<parameter>bins </parameter><type>integer</type>" 13536msgstr "<parameter>bins </parameter><type>integer</type>" 13537 13538#. Tag: para 13539#: reference_raster.xml:5396 13540#, no-c-format 13541msgid "" 13542"Number of breakouts -- this is the number of records you'll get back from " 13543"the function if specified. If not specified then the number of breakouts is " 13544"autocomputed." 13545msgstr "" 13546"Número de fugas -- este é o número de registros que terá de volta da função " 13547"especificada. Se não especificado, o número de fugas é auto calculado. " 13548 13549#. Tag: term 13550#: reference_raster.xml:5400 13551#, no-c-format 13552msgid "<parameter>right </parameter><type>boolean</type>" 13553msgstr "<parameter>right </parameter><type>boolean</type>" 13554 13555#. Tag: para 13556#: reference_raster.xml:5401 13557#, no-c-format 13558msgid "" 13559"compute the histogram from the right rather than from the left (default). " 13560"This changes the criteria for evaluating a value x from [a, b) to (a, b]" 13561msgstr "" 13562"calcula o histograma da direita ao invés do da esquerda (padrão). Isto " 13563"altera o critério de avaliar um valor x de [a, b) para (a, b]" 13564 13565#. Tag: title 13566#: reference_raster.xml:5408 13567#, no-c-format 13568msgid "" 13569"Example: Single raster tile - compute histograms for bands 1, 2, 3 and " 13570"autocompute bins" 13571msgstr "" 13572"Exemplo: Única raster tile - calcula histogramas para bandas 1, 2, 3 e auto " 13573"calcula bins. " 13574 13575#. Tag: programlisting 13576#: reference_raster.xml:5409 13577#, no-c-format 13578msgid "" 13579"SELECT band, (stats).*\n" 13580"FROM (SELECT rid, band, ST_Histogram(rast, band) As stats\n" 13581" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n" 13582" WHERE rid=2) As foo;\n" 13583"\n" 13584" band | min | max | count | percent\n" 13585"------+-------+-------+-------+---------\n" 13586" 1 | 249 | 250 | 2 | 0.08\n" 13587" 1 | 250 | 251 | 2 | 0.08\n" 13588" 1 | 251 | 252 | 1 | 0.04\n" 13589" 1 | 252 | 253 | 2 | 0.08\n" 13590" 1 | 253 | 254 | 18 | 0.72\n" 13591" 2 | 78 | 113.2 | 11 | 0.44\n" 13592" 2 | 113.2 | 148.4 | 4 | 0.16\n" 13593" 2 | 148.4 | 183.6 | 4 | 0.16\n" 13594" 2 | 183.6 | 218.8 | 1 | 0.04\n" 13595" 2 | 218.8 | 254 | 5 | 0.2\n" 13596" 3 | 62 | 100.4 | 11 | 0.44\n" 13597" 3 | 100.4 | 138.8 | 5 | 0.2\n" 13598" 3 | 138.8 | 177.2 | 4 | 0.16\n" 13599" 3 | 177.2 | 215.6 | 1 | 0.04\n" 13600" 3 | 215.6 | 254 | 4 | 0.16" 13601msgstr "" 13602"SELECT band, (stats).*\n" 13603"FROM (SELECT rid, band, ST_Histogram(rast, band) As stats\n" 13604" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n" 13605" WHERE rid=2) As foo;\n" 13606"\n" 13607" band | min | max | count | percent\n" 13608"------+-------+-------+-------+---------\n" 13609" 1 | 249 | 250 | 2 | 0.08\n" 13610" 1 | 250 | 251 | 2 | 0.08\n" 13611" 1 | 251 | 252 | 1 | 0.04\n" 13612" 1 | 252 | 253 | 2 | 0.08\n" 13613" 1 | 253 | 254 | 18 | 0.72\n" 13614" 2 | 78 | 113.2 | 11 | 0.44\n" 13615" 2 | 113.2 | 148.4 | 4 | 0.16\n" 13616" 2 | 148.4 | 183.6 | 4 | 0.16\n" 13617" 2 | 183.6 | 218.8 | 1 | 0.04\n" 13618" 2 | 218.8 | 254 | 5 | 0.2\n" 13619" 3 | 62 | 100.4 | 11 | 0.44\n" 13620" 3 | 100.4 | 138.8 | 5 | 0.2\n" 13621" 3 | 138.8 | 177.2 | 4 | 0.16\n" 13622" 3 | 177.2 | 215.6 | 1 | 0.04\n" 13623" 3 | 215.6 | 254 | 4 | 0.16" 13624 13625#. Tag: title 13626#: reference_raster.xml:5413 13627#, no-c-format 13628msgid "Example: Just band 2 but for 6 bins" 13629msgstr "Exemplo: Apenas banda 2 mas para 6 bins " 13630 13631#. Tag: programlisting 13632#: reference_raster.xml:5414 13633#, no-c-format 13634msgid "" 13635"SELECT (stats).*\n" 13636"FROM (SELECT rid, ST_Histogram(rast, 2,6) As stats\n" 13637" FROM dummy_rast\n" 13638" WHERE rid=2) As foo;\n" 13639"\n" 13640" min | max | count | percent\n" 13641"------------+------------+-------+---------\n" 13642" 78 | 107.333333 | 9 | 0.36\n" 13643" 107.333333 | 136.666667 | 6 | 0.24\n" 13644" 136.666667 | 166 | 0 | 0\n" 13645" 166 | 195.333333 | 4 | 0.16\n" 13646" 195.333333 | 224.666667 | 1 | 0.04\n" 13647" 224.666667 | 254 | 5 | 0.2\n" 13648"(6 rows)\n" 13649"\n" 13650"-- Same as previous but we explicitly control the pixel value range of each " 13651"bin.\n" 13652"SELECT (stats).*\n" 13653"FROM (SELECT rid, ST_Histogram(rast, 2,6,ARRAY[0.5,1,4,100,5]) As stats\n" 13654" FROM dummy_rast\n" 13655" WHERE rid=2) As foo;\n" 13656"\n" 13657" min | max | count | percent\n" 13658"-------+-------+-------+----------\n" 13659" 78 | 78.5 | 1 | 0.08\n" 13660" 78.5 | 79.5 | 1 | 0.04\n" 13661" 79.5 | 83.5 | 0 | 0\n" 13662" 83.5 | 183.5 | 17 | 0.0068\n" 13663" 183.5 | 188.5 | 0 | 0\n" 13664" 188.5 | 254 | 6 | 0.003664\n" 13665"(6 rows)" 13666msgstr "" 13667"SELECT (stats).*\n" 13668"FROM (SELECT rid, ST_Histogram(rast, 2,6) As stats\n" 13669" FROM dummy_rast\n" 13670" WHERE rid=2) As foo;\n" 13671"\n" 13672" min | max | count | percent\n" 13673"------------+------------+-------+---------\n" 13674" 78 | 107.333333 | 9 | 0.36\n" 13675" 107.333333 | 136.666667 | 6 | 0.24\n" 13676" 136.666667 | 166 | 0 | 0\n" 13677" 166 | 195.333333 | 4 | 0.16\n" 13678" 195.333333 | 224.666667 | 1 | 0.04\n" 13679" 224.666667 | 254 | 5 | 0.2\n" 13680"(6 rows)\n" 13681"\n" 13682"-- Same as previous but we explicitly control the pixel value range of each " 13683"bin.\n" 13684"SELECT (stats).*\n" 13685"FROM (SELECT rid, ST_Histogram(rast, 2,6,ARRAY[0.5,1,4,100,5]) As stats\n" 13686" FROM dummy_rast\n" 13687" WHERE rid=2) As foo;\n" 13688"\n" 13689" min | max | count | percent\n" 13690"-------+-------+-------+----------\n" 13691" 78 | 78.5 | 1 | 0.08\n" 13692" 78.5 | 79.5 | 1 | 0.04\n" 13693" 79.5 | 83.5 | 0 | 0\n" 13694" 83.5 | 183.5 | 17 | 0.0068\n" 13695" 183.5 | 188.5 | 0 | 0\n" 13696" 188.5 | 254 | 6 | 0.003664\n" 13697"(6 rows)" 13698 13699#. Tag: para 13700#: reference_raster.xml:5419 13701#, no-c-format 13702msgid "" 13703", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13704"\"RT_ST_SummaryStatsAgg\"/>" 13705msgstr "" 13706", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13707"\"RT_ST_SummaryStatsAgg\"/>" 13708 13709#. Tag: refname 13710#: reference_raster.xml:5429 13711#, no-c-format 13712msgid "ST_Quantile" 13713msgstr "ST_Quantile" 13714 13715#. Tag: refpurpose 13716#: reference_raster.xml:5430 13717#, no-c-format 13718msgid "" 13719"<refpurpose>Compute quantiles for a raster or raster table coverage in the " 13720"context of the sample or population. Thus, a value could be examined to be " 13721"at the raster's 25%, 50%, 75% percentile.</refpurpose>" 13722msgstr "" 13723"<refpurpose>Calcula quantiles para um raster ou cobertura de tabela raster " 13724"no contexto da amostra ou população. Assim, um valor poderia ser examinado " 13725"para estar na porcentagem 25%, 50%, 75% do raster.</refpurpose>" 13726 13727#. Tag: funcsynopsis 13728#: reference_raster.xml:5434 13729#, no-c-format 13730msgid "" 13731"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13732"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13733"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13734"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13735"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 13736"\"opt\"><type>double precision[] </type> <parameter>quantiles=NULL</" 13737"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13738"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13739"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </" 13740"type> <parameter>quantiles</parameter></paramdef> </funcprototype> " 13741"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13742"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13743"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13744"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</" 13745"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double " 13746"precision <function>ST_Quantile</function></funcdef> <paramdef><type>raster " 13747"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 13748"precision </type> <parameter>quantile</parameter></paramdef> </" 13749"funcprototype> <funcprototype> <funcdef>double precision " 13750"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13751"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 13752"<parameter>exclude_nodata_value</parameter></paramdef> <paramdef choice=\"opt" 13753"\"><type>double precision </type> <parameter>quantile=NULL</parameter></" 13754"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 13755"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13756"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 13757"<parameter>nband</parameter></paramdef> <paramdef><type>double precision </" 13758"type> <parameter>quantile</parameter></paramdef> </funcprototype> " 13759"<funcprototype> <funcdef>double precision <function>ST_Quantile</function></" 13760"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13761"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13762"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 13763"parameter></paramdef> <paramdef><type>double precision </type> " 13764"<parameter>quantile</parameter></paramdef> </funcprototype> <funcprototype> " 13765"<funcdef>double precision <function>ST_Quantile</function></funcdef> " 13766"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13767"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13768"<paramdef><type>double precision </type> <parameter>quantile</parameter></" 13769"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13770"<function>ST_Quantile</function></funcdef> <paramdef><type>text </type> " 13771"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13772"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13773"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13774"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13775"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13776"type> <parameter>quantiles=NULL</parameter></paramdef> </funcprototype> " 13777"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13778"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 13779"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 13780"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13781"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</" 13782"parameter></paramdef> </funcprototype>" 13783msgstr "" 13784"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13785"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13786"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 13787"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 13788"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 13789"\"opt\"><type>double precision[] </type> <parameter>quantiles=NULL</" 13790"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13791"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13792"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </" 13793"type> <parameter>quantiles</parameter></paramdef> </funcprototype> " 13794"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13795"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13796"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13797"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</" 13798"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double " 13799"precision <function>ST_Quantile</function></funcdef> <paramdef><type>raster " 13800"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double " 13801"precision </type> <parameter>quantile</parameter></paramdef> </" 13802"funcprototype> <funcprototype> <funcdef>double precision " 13803"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13804"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 13805"<parameter>exclude_nodata_value</parameter></paramdef> <paramdef choice=\"opt" 13806"\"><type>double precision </type> <parameter>quantile=NULL</parameter></" 13807"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 13808"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> " 13809"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 13810"<parameter>nband</parameter></paramdef> <paramdef><type>double precision </" 13811"type> <parameter>quantile</parameter></paramdef> </funcprototype> " 13812"<funcprototype> <funcdef>double precision <function>ST_Quantile</function></" 13813"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 13814"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13815"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 13816"parameter></paramdef> <paramdef><type>double precision </type> " 13817"<parameter>quantile</parameter></paramdef> </funcprototype> <funcprototype> " 13818"<funcdef>double precision <function>ST_Quantile</function></funcdef> " 13819"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 13820"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 13821"<paramdef><type>double precision </type> <parameter>quantile</parameter></" 13822"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 13823"<function>ST_Quantile</function></funcdef> <paramdef><type>text </type> " 13824"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 13825"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 13826"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 13827"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 13828"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 13829"type> <parameter>quantiles=NULL</parameter></paramdef> </funcprototype> " 13830"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></" 13831"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 13832"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 13833"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 13834"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</" 13835"parameter></paramdef> </funcprototype>" 13836 13837#. Tag: para 13838#: reference_raster.xml:5506 13839#, no-c-format 13840msgid "" 13841"<para>Compute quantiles for a raster or raster table coverage in the context " 13842"of the sample or population. Thus, a value could be examined to be at the " 13843"raster's 25%, 50%, 75% percentile.</para>" 13844msgstr "" 13845"<para>Calcula quantiles para um raster ou cobertura de tabela raster no " 13846"contexto da amostra ou população. Assim, um valor poderia ser examinado para " 13847"estar na porcentagem 25%, 50%, 75% do raster.</para>" 13848 13849#. Tag: para 13850#: reference_raster.xml:5507 reference_raster.xml:5799 13851#, no-c-format 13852msgid "" 13853"If <varname>exclude_nodata_value</varname> is set to false, will also count " 13854"pixels with no data." 13855msgstr "" 13856"Se <varname>exclude_nodata_value</varname> for falso, contará também pixeis " 13857"sem dados. " 13858 13859#. Tag: programlisting 13860#: reference_raster.xml:5514 13861#, no-c-format 13862msgid "" 13863"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n" 13864"--Example will consider only pixels of band 1 that are not 249 and in named " 13865"quantiles --\n" 13866"\n" 13867"SELECT (pvq).*\n" 13868"FROM (SELECT ST_Quantile(rast, ARRAY[0.25,0.75]) As pvq\n" 13869" FROM dummy_rast WHERE rid=2) As foo\n" 13870" ORDER BY (pvq).quantile;\n" 13871"\n" 13872" quantile | value\n" 13873"----------+-------\n" 13874" 0.25 | 253\n" 13875" 0.75 | 254\n" 13876"\n" 13877"SELECT ST_Quantile(rast, 0.75) As value\n" 13878" FROM dummy_rast WHERE rid=2;\n" 13879"\n" 13880"value\n" 13881"------\n" 13882" 254" 13883msgstr "" 13884"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n" 13885"--Example will consider only pixels of band 1 that are not 249 and in named " 13886"quantiles --\n" 13887"\n" 13888"SELECT (pvq).*\n" 13889"FROM (SELECT ST_Quantile(rast, ARRAY[0.25,0.75]) As pvq\n" 13890" FROM dummy_rast WHERE rid=2) As foo\n" 13891" ORDER BY (pvq).quantile;\n" 13892"\n" 13893" quantile | value\n" 13894"----------+-------\n" 13895" 0.25 | 253\n" 13896" 0.75 | 254\n" 13897"\n" 13898"SELECT ST_Quantile(rast, 0.75) As value\n" 13899" FROM dummy_rast WHERE rid=2;\n" 13900"\n" 13901"value\n" 13902"------\n" 13903" 254" 13904 13905#. Tag: programlisting 13906#: reference_raster.xml:5515 13907#, no-c-format 13908msgid "" 13909"--real live example. Quantile of all pixels in band 2 intersecting a " 13910"geometry\n" 13911"SELECT rid, (ST_Quantile(rast,2)).* As pvc\n" 13912" FROM o_4_boston\n" 13913" WHERE ST_Intersects(rast,\n" 13914" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 13915"892200,224706 892151,224486 892151))',26986)\n" 13916" )\n" 13917"ORDER BY value, quantile,rid\n" 13918";\n" 13919"\n" 13920"\n" 13921" rid | quantile | value\n" 13922"-----+----------+-------\n" 13923" 1 | 0 | 0\n" 13924" 2 | 0 | 0\n" 13925" 14 | 0 | 1\n" 13926" 15 | 0 | 2\n" 13927" 14 | 0.25 | 37\n" 13928" 1 | 0.25 | 42\n" 13929" 15 | 0.25 | 47\n" 13930" 2 | 0.25 | 50\n" 13931" 14 | 0.5 | 56\n" 13932" 1 | 0.5 | 64\n" 13933" 15 | 0.5 | 66\n" 13934" 2 | 0.5 | 77\n" 13935" 14 | 0.75 | 81\n" 13936" 15 | 0.75 | 87\n" 13937" 1 | 0.75 | 94\n" 13938" 2 | 0.75 | 106\n" 13939" 14 | 1 | 199\n" 13940" 1 | 1 | 244\n" 13941" 2 | 1 | 255\n" 13942" 15 | 1 | 255" 13943msgstr "" 13944"--real live example. Quantile of all pixels in band 2 intersecting a " 13945"geometry\n" 13946"SELECT rid, (ST_Quantile(rast,2)).* As pvc\n" 13947" FROM o_4_boston\n" 13948" WHERE ST_Intersects(rast,\n" 13949" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 13950"892200,224706 892151,224486 892151))',26986)\n" 13951" )\n" 13952"ORDER BY value, quantile,rid\n" 13953";\n" 13954"\n" 13955"\n" 13956" rid | quantile | value\n" 13957"-----+----------+-------\n" 13958" 1 | 0 | 0\n" 13959" 2 | 0 | 0\n" 13960" 14 | 0 | 1\n" 13961" 15 | 0 | 2\n" 13962" 14 | 0.25 | 37\n" 13963" 1 | 0.25 | 42\n" 13964" 15 | 0.25 | 47\n" 13965" 2 | 0.25 | 50\n" 13966" 14 | 0.5 | 56\n" 13967" 1 | 0.5 | 64\n" 13968" 15 | 0.5 | 66\n" 13969" 2 | 0.5 | 77\n" 13970" 14 | 0.75 | 81\n" 13971" 15 | 0.75 | 87\n" 13972" 1 | 0.75 | 94\n" 13973" 2 | 0.75 | 106\n" 13974" 14 | 1 | 199\n" 13975" 1 | 1 | 244\n" 13976" 2 | 1 | 255\n" 13977" 15 | 1 | 255" 13978 13979#. Tag: para 13980#: reference_raster.xml:5520 13981#, no-c-format 13982msgid "" 13983", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13984"\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue\"/>" 13985msgstr "" 13986", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=" 13987"\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue\"/>" 13988 13989#. Tag: refname 13990#: reference_raster.xml:5531 13991#, no-c-format 13992msgid "ST_SummaryStats" 13993msgstr "ST_SummaryStats" 13994 13995#. Tag: refpurpose 13996#: reference_raster.xml:5532 13997#, no-c-format 13998msgid "" 13999"Returns summarystats consisting of count, sum, mean, stddev, min, max for a " 14000"given raster band of a raster or raster coverage. Band 1 is assumed is no " 14001"band is specified." 14002msgstr "" 14003"Retorna as estatísticas resumidas consistindo de count, sum, mean, stddev, " 14004"min, max para uma dada banda raster de um raster ou cobertura raster. A " 14005"banda 1 é assumida se nenhuma banda for especificada. " 14006 14007#. Tag: funcsynopsis 14008#: reference_raster.xml:5536 14009#, no-c-format 14010msgid "" 14011"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></" 14012"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 14013"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 14014"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14015"<function>ST_SummaryStats</function></funcdef> <paramdef><type>raster </" 14016"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14017"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14018"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype> " 14019"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></" 14020"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 14021"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 14022"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 14023"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14024"<function>ST_SummaryStats</function></funcdef> <paramdef><type>text </type> " 14025"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 14026"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 14027"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 14028"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 14029"parameter></paramdef> </funcprototype>" 14030msgstr "" 14031"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></" 14032"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 14033"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 14034"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14035"<function>ST_SummaryStats</function></funcdef> <paramdef><type>raster </" 14036"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14037"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14038"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype> " 14039"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></" 14040"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></" 14041"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></" 14042"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</" 14043"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14044"<function>ST_SummaryStats</function></funcdef> <paramdef><type>text </type> " 14045"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 14046"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt" 14047"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef " 14048"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</" 14049"parameter></paramdef> </funcprototype>" 14050 14051#. Tag: para 14052#: reference_raster.xml:5572 reference_raster.xml:5651 14053#, no-c-format 14054msgid "" 14055"Returns <xref linkend=\"summarystats\"/> consisting of count, sum, mean, " 14056"stddev, min, max for a given raster band of a raster or raster coverage. If " 14057"no band is specified <varname>nband</varname> defaults to 1." 14058msgstr "" 14059"Retorna <xref linkend=\"summarystats\"/> consistindo de count, sum, mean, " 14060"stddev, min, max para uma dada banda raster de um raster ou cobertura " 14061"raster. Se nenhuma banda for especificada <varname>nband</varname> usa-se a " 14062"1. " 14063 14064#. Tag: para 14065#: reference_raster.xml:5574 14066#, no-c-format 14067msgid "" 14068"By default only considers pixel values not equal to the <varname>nodata</" 14069"varname> value. Set <varname>exclude_nodata_value</varname> to false to get " 14070"count of all pixels." 14071msgstr "" 14072"Por padrão só considera valores de pixeis diferentes do valor " 14073"<varname>nodata</varname>. <varname>exclude_nodata_value</varname> é falso " 14074"para contar todos os pixeis. " 14075 14076#. Tag: para 14077#: reference_raster.xml:5576 14078#, no-c-format 14079msgid "" 14080"By default will sample all pixels. To get faster response, set " 14081"<varname>sample_percent</varname> to lower than 1" 14082msgstr "" 14083"Por padrão irá tomar todos os pixeis. Para obter uma resposta mais rápida, " 14084"use <varname>sample_percent</varname> para menor que 1" 14085 14086#. Tag: para 14087#: reference_raster.xml:5581 14088#, no-c-format 14089msgid "" 14090"The ST_SummaryStats(rastertable, rastercolumn, ...) variants are deprecated " 14091"as of 2.2.0. Use <xref linkend=\"RT_ST_SummaryStatsAgg\"/> instead." 14092msgstr "" 14093"As variantes ST_SummaryStats(rastertable, rastercolumn, ...) são deprecadas " 14094"como da 2.2.0. Ao contrário, use: <xref linkend=\"RT_ST_SummaryStatsAgg\"/>. " 14095 14096#. Tag: title 14097#: reference_raster.xml:5589 14098#, no-c-format 14099msgid "Example: Single raster tile" 14100msgstr "Exemplo: Única tile raster " 14101 14102#. Tag: programlisting 14103#: reference_raster.xml:5590 14104#, no-c-format 14105msgid "" 14106"SELECT rid, band, (stats).*\n" 14107"FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats\n" 14108" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n" 14109" WHERE rid=2) As foo;\n" 14110"\n" 14111" rid | band | count | sum | mean | stddev | min | max\n" 14112"-----+------+-------+------+------------+-----------+-----+-----\n" 14113" 2 | 1 | 23 | 5821 | 253.086957 | 1.248061 | 250 | 254\n" 14114" 2 | 2 | 25 | 3682 | 147.28 | 59.862188 | 78 | 254\n" 14115" 2 | 3 | 25 | 3290 | 131.6 | 61.647384 | 62 | 254" 14116msgstr "" 14117"SELECT rid, band, (stats).*\n" 14118"FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats\n" 14119" FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n" 14120" WHERE rid=2) As foo;\n" 14121"\n" 14122" rid | band | count | sum | mean | stddev | min | max\n" 14123"-----+------+-------+------+------------+-----------+-----+-----\n" 14124" 2 | 1 | 23 | 5821 | 253.086957 | 1.248061 | 250 | 254\n" 14125" 2 | 2 | 25 | 3682 | 147.28 | 59.862188 | 78 | 254\n" 14126" 2 | 3 | 25 | 3290 | 131.6 | 61.647384 | 62 | 254" 14127 14128#. Tag: title 14129#: reference_raster.xml:5594 14130#, no-c-format 14131msgid "Example: Summarize pixels that intersect buildings of interest" 14132msgstr "Exemplo: Resuma pixeis que intersectam construções de interesse " 14133 14134#. Tag: para 14135#: reference_raster.xml:5595 14136#, no-c-format 14137msgid "" 14138"This example took 574ms on PostGIS windows 64-bit with all of Boston " 14139"Buildings and aerial Tiles (tiles each 150x150 pixels ~ 134,000 tiles), " 14140"~102,000 building records" 14141msgstr "" 14142"Este exemplo tomou 574ms no PostGIS windows 64-bit com todas as construções " 14143"de Boston e tiles aéreas (cada uma com 150x150 pixeis ~ 134,000 tiles), " 14144"~102,000 registros de construções" 14145 14146#. Tag: programlisting 14147#: reference_raster.xml:5597 14148#, no-c-format 14149msgid "" 14150"WITH\n" 14151"-- our features of interest\n" 14152" feat AS (SELECT gid As building_id, geom_26986 As geom FROM buildings AS " 14153"b\n" 14154" WHERE gid IN(100, 103,150)\n" 14155" ),\n" 14156"-- clip band 2 of raster tiles to boundaries of builds\n" 14157"-- then get stats for these clipped regions\n" 14158" b_stats AS\n" 14159" (SELECT building_id, (stats).*\n" 14160"FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,2,geom)) As stats\n" 14161" FROM aerials.boston\n" 14162" INNER JOIN feat\n" 14163" ON ST_Intersects(feat.geom,rast)\n" 14164" ) As foo\n" 14165" )\n" 14166"-- finally summarize stats\n" 14167"SELECT building_id, SUM(count) As num_pixels\n" 14168" , MIN(min) As min_pval\n" 14169" , MAX(max) As max_pval\n" 14170" , SUM(mean*count)/SUM(count) As avg_pval\n" 14171" FROM b_stats\n" 14172" WHERE count > 0\n" 14173" GROUP BY building_id\n" 14174" ORDER BY building_id;\n" 14175" building_id | num_pixels | min_pval | max_pval | avg_pval\n" 14176"-------------+------------+----------+----------+------------------\n" 14177" 100 | 1090 | 1 | 255 | 61.0697247706422\n" 14178" 103 | 655 | 7 | 182 | 70.5038167938931\n" 14179" 150 | 895 | 2 | 252 | 185.642458100559" 14180msgstr "" 14181"WITH\n" 14182"-- our features of interest\n" 14183" feat AS (SELECT gid As building_id, geom_26986 As geom FROM buildings AS " 14184"b\n" 14185" WHERE gid IN(100, 103,150)\n" 14186" ),\n" 14187"-- clip band 2 of raster tiles to boundaries of builds\n" 14188"-- then get stats for these clipped regions\n" 14189" b_stats AS\n" 14190" (SELECT building_id, (stats).*\n" 14191"FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,2,geom)) As stats\n" 14192" FROM aerials.boston\n" 14193" INNER JOIN feat\n" 14194" ON ST_Intersects(feat.geom,rast)\n" 14195" ) As foo\n" 14196" )\n" 14197"-- finally summarize stats\n" 14198"SELECT building_id, SUM(count) As num_pixels\n" 14199" , MIN(min) As min_pval\n" 14200" , MAX(max) As max_pval\n" 14201" , SUM(mean*count)/SUM(count) As avg_pval\n" 14202" FROM b_stats\n" 14203" WHERE count > 0\n" 14204" GROUP BY building_id\n" 14205" ORDER BY building_id;\n" 14206" building_id | num_pixels | min_pval | max_pval | avg_pval\n" 14207"-------------+------------+----------+----------+------------------\n" 14208" 100 | 1090 | 1 | 255 | 61.0697247706422\n" 14209" 103 | 655 | 7 | 182 | 70.5038167938931\n" 14210" 150 | 895 | 2 | 252 | 185.642458100559" 14211 14212#. Tag: title 14213#: reference_raster.xml:5601 14214#, no-c-format 14215msgid "Example: Raster coverage" 14216msgstr "Exemplo: Cobertura raster" 14217 14218#. Tag: programlisting 14219#: reference_raster.xml:5602 14220#, no-c-format 14221msgid "" 14222"-- stats for each band --\n" 14223"SELECT band, (stats).*\n" 14224"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band) As stats\n" 14225" FROM generate_series(1,3) As band) As foo;\n" 14226"\n" 14227" band | count | sum | mean | stddev | min | max\n" 14228"------+---------+--------+------------------+------------------+-----+-----\n" 14229" 1 | 8450000 | 725799 | 82.7064349112426 | 45.6800222638537 | 0 | 255\n" 14230" 2 | 8450000 | 700487 | 81.4197705325444 | 44.2161184161765 | 0 | 255\n" 14231" 3 | 8450000 | 575943 | 74.682739408284 | 44.2143885481407 | 0 | 255\n" 14232"\n" 14233"-- For a table -- will get better speed if set sampling to less than 100%\n" 14234"-- Here we set to 25% and get a much faster answer\n" 14235"SELECT band, (stats).*\n" 14236"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As " 14237"stats\n" 14238" FROM generate_series(1,3) As band) As foo;\n" 14239"\n" 14240" band | count | sum | mean | stddev | min | max\n" 14241"------+---------+--------+------------------+------------------+-----+-----\n" 14242" 1 | 2112500 | 180686 | 82.6890480473373 | 45.6961043857248 | 0 | 255\n" 14243" 2 | 2112500 | 174571 | 81.448503668639 | 44.2252623171821 | 0 | 255\n" 14244" 3 | 2112500 | 144364 | 74.6765884023669 | 44.2014869384578 | 0 | 255" 14245msgstr "" 14246"-- stats for each band --\n" 14247"SELECT band, (stats).*\n" 14248"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band) As stats\n" 14249" FROM generate_series(1,3) As band) As foo;\n" 14250"\n" 14251" band | count | sum | mean | stddev | min | max\n" 14252"------+---------+--------+------------------+------------------+-----+-----\n" 14253" 1 | 8450000 | 725799 | 82.7064349112426 | 45.6800222638537 | 0 | 255\n" 14254" 2 | 8450000 | 700487 | 81.4197705325444 | 44.2161184161765 | 0 | 255\n" 14255" 3 | 8450000 | 575943 | 74.682739408284 | 44.2143885481407 | 0 | 255\n" 14256"\n" 14257"-- For a table -- will get better speed if set sampling to less than 100%\n" 14258"-- Here we set to 25% and get a much faster answer\n" 14259"SELECT band, (stats).*\n" 14260"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As " 14261"stats\n" 14262" FROM generate_series(1,3) As band) As foo;\n" 14263"\n" 14264" band | count | sum | mean | stddev | min | max\n" 14265"------+---------+--------+------------------+------------------+-----+-----\n" 14266" 1 | 2112500 | 180686 | 82.6890480473373 | 45.6961043857248 | 0 | 255\n" 14267" 2 | 2112500 | 174571 | 81.448503668639 | 44.2252623171821 | 0 | 255\n" 14268" 3 | 2112500 | 144364 | 74.6765884023669 | 44.2014869384578 | 0 | 255" 14269 14270#. Tag: para 14271#: reference_raster.xml:5607 14272#, no-c-format 14273msgid "" 14274", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_Count\"/" 14275">, <xref linkend=\"RT_ST_Clip\"/>" 14276msgstr "" 14277", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_Count\"/" 14278">, <xref linkend=\"RT_ST_Clip\"/>" 14279 14280#. Tag: refname 14281#: reference_raster.xml:5618 14282#, no-c-format 14283msgid "ST_SummaryStatsAgg" 14284msgstr "ST_SummaryStatsAgg" 14285 14286#. Tag: refpurpose 14287#: reference_raster.xml:5619 14288#, no-c-format 14289msgid "" 14290"Aggregate. Returns summarystats consisting of count, sum, mean, stddev, min, " 14291"max for a given raster band of a set of raster. Band 1 is assumed is no band " 14292"is specified." 14293msgstr "" 14294"Agregado. Retorna as estatísticas resumidas consistindo de count, sum, mean, " 14295"stddev, min, max para uma dada banda raster de um conjunto de rasters. A " 14296"banda 1 é assumida se nenhuma banda for especificada. " 14297 14298#. Tag: funcsynopsis 14299#: reference_raster.xml:5623 14300#, no-c-format 14301msgid "" 14302"<funcprototype> <funcdef>summarystats <function>ST_SummaryStatsAgg</" 14303"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 14304"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 14305"parameter></paramdef> <paramdef><type>boolean </type> " 14306"<parameter>exclude_nodata_value</parameter></paramdef> " 14307"<paramdef><type>double precision </type> <parameter>sample_percent</" 14308"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14309"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </" 14310"type> <parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 14311"<parameter>exclude_nodata_value</parameter></paramdef> " 14312"<paramdef><type>double precision </type> <parameter>sample_percent</" 14313"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14314"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </" 14315"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14316"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14317"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 14318msgstr "" 14319"<funcprototype> <funcdef>summarystats <function>ST_SummaryStatsAgg</" 14320"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 14321"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 14322"parameter></paramdef> <paramdef><type>boolean </type> " 14323"<parameter>exclude_nodata_value</parameter></paramdef> " 14324"<paramdef><type>double precision </type> <parameter>sample_percent</" 14325"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14326"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </" 14327"type> <parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> " 14328"<parameter>exclude_nodata_value</parameter></paramdef> " 14329"<paramdef><type>double precision </type> <parameter>sample_percent</" 14330"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats " 14331"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </" 14332"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14333"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14334"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>" 14335 14336#. Tag: para 14337#: reference_raster.xml:5653 14338#, no-c-format 14339msgid "" 14340"By default only considers pixel values not equal to the <varname>NODATA</" 14341"varname> value. Set <varname>exclude_nodata_value</varname> to False to get " 14342"count of all pixels." 14343msgstr "" 14344"Por padrão só considera valores de pixeis diferentes do valor " 14345"<varname>NODATA</varname>. <varname>exclude_nodata_value</varname> é falso " 14346"para contar todos os pixeis. " 14347 14348#. Tag: para 14349#: reference_raster.xml:5655 14350#, no-c-format 14351msgid "" 14352"By default will sample all pixels. To get faster response, set " 14353"<varname>sample_percent</varname> to value between 0 and 1" 14354msgstr "" 14355"Por padrão irá tomar todos os pixeis. Para obter uma resposta mais rápida, " 14356"coloque <varname>sample_percent</varname> no valor entre zero 0 e um 1" 14357 14358#. Tag: programlisting 14359#: reference_raster.xml:5662 14360#, no-c-format 14361msgid "" 14362"WITH foo AS (\n" 14363" SELECT\n" 14364" rast.rast\n" 14365" FROM (\n" 14366" SELECT ST_SetValue(\n" 14367" ST_SetValue(\n" 14368" ST_SetValue(\n" 14369" ST_AddBand(\n" 14370" ST_MakeEmptyRaster(10, 10, " 14371"10, 10, 2, 2, 0, 0,0)\n" 14372" , 1, '64BF', 0, 0\n" 14373" )\n" 14374" , 1, 1, 1, -10\n" 14375" )\n" 14376" , 1, 5, 4, 0\n" 14377" )\n" 14378" , 1, 5, 5, 3.14159\n" 14379" ) AS rast\n" 14380" ) AS rast\n" 14381" FULL JOIN (\n" 14382" SELECT generate_series(1, 10) AS id\n" 14383" ) AS id\n" 14384" ON 1 = 1\n" 14385")\n" 14386"SELECT\n" 14387" (stats).count,\n" 14388" round((stats).sum::numeric, 3),\n" 14389" round((stats).mean::numeric, 3),\n" 14390" round((stats).stddev::numeric, 3),\n" 14391" round((stats).min::numeric, 3),\n" 14392" round((stats).max::numeric, 3)\n" 14393"FROM (\n" 14394" SELECT\n" 14395" ST_SummaryStatsAgg(rast, 1, TRUE, 1) AS stats\n" 14396" FROM foo\n" 14397") bar;\n" 14398"\n" 14399" count | round | round | round | round | round\n" 14400"-------+---------+--------+-------+---------+-------\n" 14401" 20 | -68.584 | -3.429 | 6.571 | -10.000 | 3.142\n" 14402"(1 row)" 14403msgstr "" 14404"WITH foo AS (\n" 14405" SELECT\n" 14406" rast.rast\n" 14407" FROM (\n" 14408" SELECT ST_SetValue(\n" 14409" ST_SetValue(\n" 14410" ST_SetValue(\n" 14411" ST_AddBand(\n" 14412" ST_MakeEmptyRaster(10, 10, " 14413"10, 10, 2, 2, 0, 0,0)\n" 14414" , 1, '64BF', 0, 0\n" 14415" )\n" 14416" , 1, 1, 1, -10\n" 14417" )\n" 14418" , 1, 5, 4, 0\n" 14419" )\n" 14420" , 1, 5, 5, 3.14159\n" 14421" ) AS rast\n" 14422" ) AS rast\n" 14423" FULL JOIN (\n" 14424" SELECT generate_series(1, 10) AS id\n" 14425" ) AS id\n" 14426" ON 1 = 1\n" 14427")\n" 14428"SELECT\n" 14429" (stats).count,\n" 14430" round((stats).sum::numeric, 3),\n" 14431" round((stats).mean::numeric, 3),\n" 14432" round((stats).stddev::numeric, 3),\n" 14433" round((stats).min::numeric, 3),\n" 14434" round((stats).max::numeric, 3)\n" 14435"FROM (\n" 14436" SELECT\n" 14437" ST_SummaryStatsAgg(rast, 1, TRUE, 1) AS stats\n" 14438" FROM foo\n" 14439") bar;\n" 14440"\n" 14441" count | round | round | round | round | round\n" 14442"-------+---------+--------+-------+---------+-------\n" 14443" 20 | -68.584 | -3.429 | 6.571 | -10.000 | 3.142\n" 14444"(1 row)" 14445 14446#. Tag: para 14447#: reference_raster.xml:5667 14448#, no-c-format 14449msgid "" 14450", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=\"RT_ST_Count\"/>, " 14451"<xref linkend=\"RT_ST_Clip\"/>" 14452msgstr "" 14453", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=\"RT_ST_Count\"/>, " 14454"<xref linkend=\"RT_ST_Clip\"/>" 14455 14456#. Tag: refname 14457#: reference_raster.xml:5678 14458#, no-c-format 14459msgid "ST_ValueCount" 14460msgstr "ST_ValueCount" 14461 14462#. Tag: refpurpose 14463#: reference_raster.xml:5679 14464#, no-c-format 14465msgid "" 14466"Returns a set of records containing a pixel band value and count of the " 14467"number of pixels in a given band of a raster (or a raster coverage) that " 14468"have a given set of values. If no band is specified defaults to band 1. By " 14469"default nodata value pixels are not counted. and all other values in the " 14470"pixel are output and pixel band values are rounded to the nearest integer." 14471msgstr "" 14472"Retorna o conjunto de registros contendo uma banda pixel de valor e conta do " 14473"número de pixeis em uma dada banda de um raster (ou uma cobertura raster) " 14474"que tem um dado conjunto de valores. Usa-se a banda 1 se nenhuma for " 14475"especificada. Por padrão pixeis de valor nodata não são contados. Todos os " 14476"outros valores no pixel são saída e os valores de pixeis são arredondados " 14477"para o inteiro mais próximo. " 14478 14479#. Tag: funcsynopsis 14480#: reference_raster.xml:5684 14481#, no-c-format 14482msgid "" 14483"<funcprototype> <funcdef>SETOF record <function>ST_ValueCount</function></" 14484"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 14485"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 14486"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 14487"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 14488"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</" 14489"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14490"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14491"precision </type> <parameter>OUT value</parameter></paramdef> " 14492"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14493"</funcprototype> <funcprototype> <funcdef>SETOF record " 14494"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14495"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14496"<parameter>nband</parameter></paramdef> <paramdef><type>double precision[] </" 14497"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt" 14498"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14499"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</" 14500"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</" 14501"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 14502"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14503"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </" 14504"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt" 14505"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14506"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</" 14507"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</" 14508"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 14509"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14510"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 14511"type> <parameter>searchvalue</parameter></paramdef> <paramdef choice=\"opt" 14512"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14513"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 14514"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14515"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14516"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14517"<parameter>exclude_nodata_value</parameter></paramdef> " 14518"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14519"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14520"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14521"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14522"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 14523"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14524"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14525"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14526"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14527"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> " 14528"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14529"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14530"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 14531"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 14532"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 14533"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</" 14534"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14535"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14536"precision </type> <parameter>OUT value</parameter></paramdef> " 14537"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14538"</funcprototype> <funcprototype> <funcdef>SETOF record " 14539"<function>ST_ValueCount</function></funcdef> <paramdef><type>text </type> " 14540"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 14541"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>double " 14542"precision[] </type> <parameter>searchvalues</parameter></paramdef> <paramdef " 14543"choice=\"opt\"><type>double precision </type> <parameter>roundto=0</" 14544"parameter></paramdef> <paramdef><type>double precision </type> " 14545"<parameter>OUT value</parameter></paramdef> <paramdef><type>integer </type> " 14546"<parameter>OUT count</parameter></paramdef> </funcprototype> <funcprototype> " 14547"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> " 14548"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14549"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14550"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14551"<paramdef><type>double precision[] </type> <parameter>searchvalues</" 14552"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14553"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14554"precision </type> <parameter>OUT value</parameter></paramdef> " 14555"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14556"</funcprototype> <funcprototype> <funcdef>bigint<function>ST_ValueCount</" 14557"function></funcdef> <paramdef><type>text </type> <parameter>rastertable</" 14558"parameter></paramdef> <paramdef><type>text </type> <parameter>rastercolumn</" 14559"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 14560"parameter></paramdef> <paramdef><type>boolean </type> " 14561"<parameter>exclude_nodata_value</parameter></paramdef> " 14562"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14563"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14564"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14565"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14566"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14567"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14568"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14569"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14570"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14571"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14572"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14573"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14574"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14575"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14576"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14577"<parameter>roundto=0</parameter></paramdef> </funcprototype>" 14578msgstr "" 14579"<funcprototype> <funcdef>SETOF record <function>ST_ValueCount</function></" 14580"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 14581"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 14582"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 14583"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 14584"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</" 14585"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14586"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14587"precision </type> <parameter>OUT value</parameter></paramdef> " 14588"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14589"</funcprototype> <funcprototype> <funcdef>SETOF record " 14590"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14591"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14592"<parameter>nband</parameter></paramdef> <paramdef><type>double precision[] </" 14593"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt" 14594"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14595"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</" 14596"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</" 14597"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record " 14598"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14599"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </" 14600"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt" 14601"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14602"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</" 14603"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</" 14604"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 14605"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14606"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </" 14607"type> <parameter>searchvalue</parameter></paramdef> <paramdef choice=\"opt" 14608"\"><type>double precision </type> <parameter>roundto=0</parameter></" 14609"paramdef> </funcprototype> <funcprototype> <funcdef>bigint " 14610"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> " 14611"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 14612"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> " 14613"<parameter>exclude_nodata_value</parameter></paramdef> " 14614"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14615"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14616"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14617"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14618"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 14619"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14620"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14621"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14622"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14623"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> " 14624"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14625"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14626"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 14627"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 14628"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice=" 14629"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</" 14630"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14631"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14632"precision </type> <parameter>OUT value</parameter></paramdef> " 14633"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14634"</funcprototype> <funcprototype> <funcdef>SETOF record " 14635"<function>ST_ValueCount</function></funcdef> <paramdef><type>text </type> " 14636"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> " 14637"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>double " 14638"precision[] </type> <parameter>searchvalues</parameter></paramdef> <paramdef " 14639"choice=\"opt\"><type>double precision </type> <parameter>roundto=0</" 14640"parameter></paramdef> <paramdef><type>double precision </type> " 14641"<parameter>OUT value</parameter></paramdef> <paramdef><type>integer </type> " 14642"<parameter>OUT count</parameter></paramdef> </funcprototype> <funcprototype> " 14643"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> " 14644"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14645"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14646"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14647"<paramdef><type>double precision[] </type> <parameter>searchvalues</" 14648"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 14649"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double " 14650"precision </type> <parameter>OUT value</parameter></paramdef> " 14651"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> " 14652"</funcprototype> <funcprototype> <funcdef>bigint<function>ST_ValueCount</" 14653"function></funcdef> <paramdef><type>text </type> <parameter>rastertable</" 14654"parameter></paramdef> <paramdef><type>text </type> <parameter>rastercolumn</" 14655"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</" 14656"parameter></paramdef> <paramdef><type>boolean </type> " 14657"<parameter>exclude_nodata_value</parameter></paramdef> " 14658"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14659"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14660"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14661"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14662"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14663"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14664"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14665"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14666"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> " 14667"<funcdef>bigint <function>ST_ValueCount</function></funcdef> " 14668"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> " 14669"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> " 14670"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 14671"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></" 14672"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 14673"<parameter>roundto=0</parameter></paramdef> </funcprototype>" 14674 14675#. Tag: para 14676#: reference_raster.xml:5797 14677#, no-c-format 14678msgid "" 14679"Returns a set of records with columns <varname>value</varname> " 14680"<varname>count</varname> which contain the pixel band value and count of " 14681"pixels in the raster tile or raster coverage of selected band." 14682msgstr "" 14683"Retorna um conjunto de registros com colunas <varname>value</varname> " 14684"<varname>count</varname> que contêm o valor da banda pixel e soma de pixeis " 14685"na tile raster ou cobertura raster da banda selecionada. " 14686 14687#. Tag: para 14688#: reference_raster.xml:5798 14689#, no-c-format 14690msgid "" 14691"If no band is specified <varname>nband</varname> defaults to 1. If no " 14692"<varname>searchvalues</varname> are specified, will return all pixel values " 14693"found in the raster or raster coverage. If one searchvalue is given, will " 14694"return an integer instead of records denoting the count of pixels having " 14695"that pixel band value" 14696msgstr "" 14697"Se nenhuma banda for especificada <varname>nband</varname> usa-se 1. Se " 14698"nenhum <varname>searchvalues</varname> for especificado, retornarão pixeis " 14699"com valores encontrados no raster ou cobertura raster. Se um valor de " 14700"pesquisa for dado, retornará um inteiro em vez de registros indicando a soma " 14701"de pixeis que têm aquele valor de banda pixel " 14702 14703#. Tag: programlisting 14704#: reference_raster.xml:5806 14705#, no-c-format 14706msgid "" 14707"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n" 14708"--Example will count only pixels of band 1 that are not 249. --\n" 14709"\n" 14710"SELECT (pvc).*\n" 14711"FROM (SELECT ST_ValueCount(rast) As pvc\n" 14712" FROM dummy_rast WHERE rid=2) As foo\n" 14713" ORDER BY (pvc).value;\n" 14714"\n" 14715" value | count\n" 14716"-------+-------\n" 14717" 250 | 2\n" 14718" 251 | 1\n" 14719" 252 | 2\n" 14720" 253 | 6\n" 14721" 254 | 12\n" 14722"\n" 14723"-- Example will coount all pixels of band 1 including 249 --\n" 14724"SELECT (pvc).*\n" 14725"FROM (SELECT ST_ValueCount(rast,1,false) As pvc\n" 14726" FROM dummy_rast WHERE rid=2) As foo\n" 14727" ORDER BY (pvc).value;\n" 14728"\n" 14729" value | count\n" 14730"-------+-------\n" 14731" 249 | 2\n" 14732" 250 | 2\n" 14733" 251 | 1\n" 14734" 252 | 2\n" 14735" 253 | 6\n" 14736" 254 | 12\n" 14737"\n" 14738"-- Example will count only non-nodata value pixels of band 2\n" 14739"SELECT (pvc).*\n" 14740"FROM (SELECT ST_ValueCount(rast,2) As pvc\n" 14741" FROM dummy_rast WHERE rid=2) As foo\n" 14742" ORDER BY (pvc).value;\n" 14743" value | count\n" 14744"-------+-------\n" 14745" 78 | 1\n" 14746" 79 | 1\n" 14747" 88 | 1\n" 14748" 89 | 1\n" 14749" 96 | 1\n" 14750" 97 | 1\n" 14751" 98 | 1\n" 14752" 99 | 2\n" 14753" 112 | 2\n" 14754":" 14755msgstr "" 14756"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n" 14757"--Example will count only pixels of band 1 that are not 249. --\n" 14758"\n" 14759"SELECT (pvc).*\n" 14760"FROM (SELECT ST_ValueCount(rast) As pvc\n" 14761" FROM dummy_rast WHERE rid=2) As foo\n" 14762" ORDER BY (pvc).value;\n" 14763"\n" 14764" value | count\n" 14765"-------+-------\n" 14766" 250 | 2\n" 14767" 251 | 1\n" 14768" 252 | 2\n" 14769" 253 | 6\n" 14770" 254 | 12\n" 14771"\n" 14772"-- Example will coount all pixels of band 1 including 249 --\n" 14773"SELECT (pvc).*\n" 14774"FROM (SELECT ST_ValueCount(rast,1,false) As pvc\n" 14775" FROM dummy_rast WHERE rid=2) As foo\n" 14776" ORDER BY (pvc).value;\n" 14777"\n" 14778" value | count\n" 14779"-------+-------\n" 14780" 249 | 2\n" 14781" 250 | 2\n" 14782" 251 | 1\n" 14783" 252 | 2\n" 14784" 253 | 6\n" 14785" 254 | 12\n" 14786"\n" 14787"-- Example will count only non-nodata value pixels of band 2\n" 14788"SELECT (pvc).*\n" 14789"FROM (SELECT ST_ValueCount(rast,2) As pvc\n" 14790" FROM dummy_rast WHERE rid=2) As foo\n" 14791" ORDER BY (pvc).value;\n" 14792" value | count\n" 14793"-------+-------\n" 14794" 78 | 1\n" 14795" 79 | 1\n" 14796" 88 | 1\n" 14797" 89 | 1\n" 14798" 96 | 1\n" 14799" 97 | 1\n" 14800" 98 | 1\n" 14801" 99 | 2\n" 14802" 112 | 2\n" 14803":" 14804 14805#. Tag: programlisting 14806#: reference_raster.xml:5807 14807#, no-c-format 14808msgid "" 14809"--real live example. Count all the pixels in an aerial raster tile band 2 " 14810"intersecting a geometry\n" 14811"-- and return only the pixel band values that have a count > 500\n" 14812"SELECT (pvc).value, SUM((pvc).count) As total\n" 14813"FROM (SELECT ST_ValueCount(rast,2) As pvc\n" 14814" FROM o_4_boston\n" 14815" WHERE ST_Intersects(rast,\n" 14816" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 14817"892200,224706 892151,224486 892151))',26986)\n" 14818" )\n" 14819" ) As foo\n" 14820" GROUP BY (pvc).value\n" 14821" HAVING SUM((pvc).count) > 500\n" 14822" ORDER BY (pvc).value;\n" 14823"\n" 14824" value | total\n" 14825"-------+-----\n" 14826" 51 | 502\n" 14827" 54 | 521" 14828msgstr "" 14829"--real live example. Count all the pixels in an aerial raster tile band 2 " 14830"intersecting a geometry\n" 14831"-- and return only the pixel band values that have a count > 500\n" 14832"SELECT (pvc).value, SUM((pvc).count) As total\n" 14833"FROM (SELECT ST_ValueCount(rast,2) As pvc\n" 14834" FROM o_4_boston\n" 14835" WHERE ST_Intersects(rast,\n" 14836" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 14837"892200,224706 892151,224486 892151))',26986)\n" 14838" )\n" 14839" ) As foo\n" 14840" GROUP BY (pvc).value\n" 14841" HAVING SUM((pvc).count) > 500\n" 14842" ORDER BY (pvc).value;\n" 14843"\n" 14844" value | total\n" 14845"-------+-----\n" 14846" 51 | 502\n" 14847" 54 | 521" 14848 14849#. Tag: programlisting 14850#: reference_raster.xml:5809 14851#, no-c-format 14852msgid "" 14853"-- Just return count of pixels in each raster tile that have value of 100 of " 14854"tiles that intersect a specific geometry --\n" 14855"SELECT rid, ST_ValueCount(rast,2,100) As count\n" 14856" FROM o_4_boston\n" 14857" WHERE ST_Intersects(rast,\n" 14858" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 14859"892200,224706 892151,224486 892151))',26986)\n" 14860" ) ;\n" 14861"\n" 14862" rid | count\n" 14863"-----+-------\n" 14864" 1 | 56\n" 14865" 2 | 95\n" 14866" 14 | 37\n" 14867" 15 | 64" 14868msgstr "" 14869"-- Just return count of pixels in each raster tile that have value of 100 of " 14870"tiles that intersect a specific geometry --\n" 14871"SELECT rid, ST_ValueCount(rast,2,100) As count\n" 14872" FROM o_4_boston\n" 14873" WHERE ST_Intersects(rast,\n" 14874" ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 " 14875"892200,224706 892151,224486 892151))',26986)\n" 14876" ) ;\n" 14877"\n" 14878" rid | count\n" 14879"-----+-------\n" 14880" 1 | 56\n" 14881" 2 | 95\n" 14882" 14 | 37\n" 14883" 15 | 64" 14884 14885#. Tag: para 14886#: reference_raster.xml:5814 14887#, no-c-format 14888msgid ", <xref linkend=\"RT_ST_SetBandNoDataValue\"/>" 14889msgstr ", <xref linkend=\"RT_ST_SetBandNoDataValue\"/>" 14890 14891#. Tag: title 14892#: reference_raster.xml:5820 14893#, no-c-format 14894msgid "Raster Inputs" 14895msgstr "" 14896 14897#. Tag: refname 14898#: reference_raster.xml:5823 14899#, no-c-format 14900msgid "ST_RastFromWKB" 14901msgstr "" 14902 14903#. Tag: refpurpose 14904#: reference_raster.xml:5824 14905#, no-c-format 14906msgid "Return a raster value from a Well-Known Binary (WKB) raster." 14907msgstr "" 14908 14909#. Tag: funcprototype 14910#: reference_raster.xml:5829 14911#, no-c-format 14912msgid "" 14913"<funcdef>raster <function>ST_RastFromWKB</function></funcdef> " 14914"<paramdef><type>bytea </type> <parameter>wkb</parameter></paramdef>" 14915msgstr "" 14916 14917#. Tag: para 14918#: reference_raster.xml:5839 14919#, no-c-format 14920msgid "Given a Well-Known Binary (WKB) raster, return a raster." 14921msgstr "" 14922 14923#. Tag: programlisting 14924#: reference_raster.xml:5849 14925#, no-c-format 14926msgid "" 14927"SELECT (ST_Metadata(\n" 14928" ST_RastFromWKB(\n" 14929" '\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@" 14930"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?" 14931"\\000\\000\\000\\000\\000\\000\\340?" 14932"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000'::" 14933"bytea\n" 14934" )\n" 14935")).* AS metadata;\n" 14936"\n" 14937" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy " 14938"| srid | numbands\n" 14939"------------+------------+-------+--------+--------+--------+-------+-------" 14940"+------+----------\n" 14941" 0.5 | 0.5 | 10 | 20 | 2 | 3 | 0 | 0 " 14942"| 10 | 0" 14943msgstr "" 14944 14945#. Tag: para 14946#: reference_raster.xml:5855 14947#, no-c-format 14948msgid "" 14949", <xref linkend=\"RT_ST_RastFromHexWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/" 14950">, <xref linkend=\"RT_ST_AsHexWKB\"/>" 14951msgstr "" 14952 14953#. Tag: refname 14954#: reference_raster.xml:5866 14955#, no-c-format 14956msgid "ST_RastFromHexWKB" 14957msgstr "" 14958 14959#. Tag: refpurpose 14960#: reference_raster.xml:5867 14961#, no-c-format 14962msgid "" 14963"Return a raster value from a Hex representation of Well-Known Binary (WKB) " 14964"raster." 14965msgstr "" 14966 14967#. Tag: funcprototype 14968#: reference_raster.xml:5872 14969#, no-c-format 14970msgid "" 14971"<funcdef>raster <function>ST_RastFromHexWKB</function></funcdef> " 14972"<paramdef><type>text </type> <parameter>wkb</parameter></paramdef>" 14973msgstr "" 14974 14975#. Tag: para 14976#: reference_raster.xml:5882 14977#, no-c-format 14978msgid "" 14979"Given a Well-Known Binary (WKB) raster in Hex representation, return a " 14980"raster." 14981msgstr "" 14982 14983#. Tag: programlisting 14984#: reference_raster.xml:5892 14985#, no-c-format 14986msgid "" 14987"SELECT (ST_Metadata(\n" 14988" ST_RastFromHexWKB(\n" 14989" '010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400'\n" 14990" )\n" 14991")).* AS metadata;\n" 14992"\n" 14993" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy " 14994"| srid | numbands\n" 14995"------------+------------+-------+--------+--------+--------+-------+-------" 14996"+------+----------\n" 14997" 0.5 | 0.5 | 10 | 20 | 2 | 3 | 0 | 0 " 14998"| 10 | 0" 14999msgstr "" 15000 15001#. Tag: para 15002#: reference_raster.xml:5898 15003#, no-c-format 15004msgid "" 15005", <xref linkend=\"RT_ST_RastFromWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/>, " 15006"<xref linkend=\"RT_ST_AsHexWKB\"/>" 15007msgstr "" 15008 15009#. Tag: title 15010#: reference_raster.xml:5910 15011#, no-c-format 15012msgid "Raster Outputs" 15013msgstr "Raster Outputs" 15014 15015#. Tag: refname 15016#: reference_raster.xml:5914 15017#, no-c-format 15018msgid "ST_AsBinary/ST_AsWKB" 15019msgstr "" 15020 15021#. Tag: refpurpose 15022#: reference_raster.xml:5915 15023#, no-c-format 15024msgid "Return the Well-Known Binary (WKB) representation of the raster." 15025msgstr "" 15026 15027#. Tag: funcsynopsis 15028#: reference_raster.xml:5919 15029#, no-c-format 15030msgid "" 15031"<funcprototype> <funcdef>bytea <function>ST_AsBinary</function></funcdef> " 15032"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15033"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</" 15034"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15035"<function>ST_AsWKB</function></funcdef> <paramdef><type>raster </type> " 15036"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt" 15037"\"><type>boolean </type> <parameter>outasin=FALSE</parameter></paramdef> </" 15038"funcprototype>" 15039msgstr "" 15040 15041#. Tag: para 15042#: reference_raster.xml:5936 15043#, no-c-format 15044msgid "" 15045"Returns the Binary representation of the raster. If <varname>outasin</" 15046"varname> is TRUE, out-db bands are treated as in-db. Refer to raster/doc/" 15047"RFC2-WellKnownBinaryFormat located in the PostGIS source folder for details " 15048"of the representation." 15049msgstr "" 15050 15051#. Tag: para 15052#: reference_raster.xml:5941 15053#, no-c-format 15054msgid "" 15055"This is useful in binary cursors to pull data out of the database without " 15056"converting it to a string representation." 15057msgstr "" 15058"Isso é útil em cursores binários para tirar dados do banco de dados sem " 15059"converter para uma representação de string. " 15060 15061#. Tag: para 15062#: reference_raster.xml:5946 15063#, no-c-format 15064msgid "" 15065"By default, WKB output contains the external file path for out-db bands. If " 15066"the client does not have access to the raster file underlying an out-db " 15067"band, set <varname>outasin</varname> to TRUE." 15068msgstr "" 15069"Por padrão, saída WKB contém o caminho do arquivo externo para bandas fora " 15070"do banco de dados. Se o cliente não tem acesso ao arquivo raster secreto uma " 15071"banda fora do banco de dados, <varname>outasin</varname> é VERDADE." 15072 15073#. Tag: para 15074#: reference_raster.xml:5950 15075#, no-c-format 15076msgid "Enhanced: 2.1.0 Addition of <varname>outasin</varname>" 15077msgstr "Melhorias: 2.1.0 Adição da <varname>outasin</varname>" 15078 15079#. Tag: para 15080#: reference_raster.xml:5951 15081#, no-c-format 15082msgid "Enhanced: 2.5.0 Addition of <varname>ST_AsWKB</varname>" 15083msgstr "" 15084 15085#. Tag: programlisting 15086#: reference_raster.xml:5957 15087#, no-c-format 15088msgid "" 15089"SELECT ST_AsBinary(rast) As rastbin FROM dummy_rast WHERE rid=1;\n" 15090"\n" 15091" rastbin\n" 15092"---------------------------------------------------------------------------------\n" 15093"\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@" 15094"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?" 15095"\\000\\000\\000\\000\\000\\000\\340?" 15096"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000" 15097msgstr "" 15098 15099#. Tag: para 15100#: reference_raster.xml:5963 15101#, no-c-format 15102msgid ", <xref linkend=\"RT_ST_AsHexWKB\"/>" 15103msgstr "" 15104 15105#. Tag: refname 15106#: reference_raster.xml:5972 15107#, no-c-format 15108msgid "ST_AsHexWKB" 15109msgstr "" 15110 15111#. Tag: refpurpose 15112#: reference_raster.xml:5973 15113#, no-c-format 15114msgid "Return the Well-Known Binary (WKB) in Hex representation of the raster." 15115msgstr "" 15116 15117#. Tag: funcprototype 15118#: reference_raster.xml:5978 15119#, no-c-format 15120msgid "" 15121"<funcdef>bytea <function>ST_AsHexWKB</function></funcdef> " 15122"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15123"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</" 15124"parameter></paramdef>" 15125msgstr "" 15126 15127#. Tag: para 15128#: reference_raster.xml:5989 15129#, no-c-format 15130msgid "" 15131"Returns the Binary representation in Hex representation of the raster. If " 15132"<varname>outasin</varname> is TRUE, out-db bands are treated as in-db. Refer " 15133"to raster/doc/RFC2-WellKnownBinaryFormat located in the PostGIS source " 15134"folder for details of the representation." 15135msgstr "" 15136 15137#. Tag: para 15138#: reference_raster.xml:5995 15139#, no-c-format 15140msgid "" 15141"By default, Hex WKB output contains the external file path for out-db bands. " 15142"If the client does not have access to the raster file underlying an out-db " 15143"band, set <varname>outasin</varname> to TRUE." 15144msgstr "" 15145 15146#. Tag: programlisting 15147#: reference_raster.xml:6005 15148#, no-c-format 15149msgid "" 15150"SELECT ST_AsHexWKB(rast) As rastbin FROM dummy_rast WHERE rid=1;\n" 15151"\n" 15152" st_ashexwkb\n" 15153"----------------------------------------------------------------------------------------------------------------------------\n" 15154" 010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400" 15155msgstr "" 15156 15157#. Tag: para 15158#: reference_raster.xml:6011 15159#, no-c-format 15160msgid ", <xref linkend=\"RT_ST_AsBinary\"/>" 15161msgstr "" 15162 15163#. Tag: refname 15164#: reference_raster.xml:6021 15165#, no-c-format 15166msgid "ST_AsGDALRaster" 15167msgstr "ST_AsGDALRaster" 15168 15169#. Tag: refpurpose 15170#: reference_raster.xml:6022 15171#, no-c-format 15172msgid "" 15173"Return the raster tile in the designated GDAL Raster format. Raster formats " 15174"are one of those supported by your compiled library. Use ST_GDALDrivers() to " 15175"get a list of formats supported by your library." 15176msgstr "" 15177 15178#. Tag: funcprototype 15179#: reference_raster.xml:6027 15180#, no-c-format 15181msgid "" 15182"<funcdef>bytea <function>ST_AsGDALRaster</function></funcdef> " 15183"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15184"<paramdef><type>text </type> <parameter>format</parameter></paramdef> " 15185"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15186"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15187"<parameter>srid=sameassource</parameter></paramdef>" 15188msgstr "" 15189"<funcdef>bytea <function>ST_AsGDALRaster</function></funcdef> " 15190"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15191"<paramdef><type>text </type> <parameter>format</parameter></paramdef> " 15192"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15193"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15194"<parameter>srid=sameassource</parameter></paramdef>" 15195 15196#. Tag: para 15197#: reference_raster.xml:6041 15198#, no-c-format 15199msgid "" 15200"Returns the raster tile in the designated format. Arguments are itemized " 15201"below:" 15202msgstr "" 15203"Retorna a tile raster no formato designado. Os argumentos estão listados " 15204"abaixo:" 15205 15206#. Tag: para 15207#: reference_raster.xml:6044 15208#, no-c-format 15209msgid "" 15210"<varname>format</varname> format to output. This is dependent on the drivers " 15211"compiled in your libgdal library. Generally available are 'JPEG', 'GTIff', " 15212"'PNG'. Use <xref linkend=\"RT_ST_GDALDrivers\"/> to get a list of formats " 15213"supported by your library." 15214msgstr "" 15215"<varname>format</varname> formato para saída. Isso depende dos drivers " 15216"compilados na sua biblioteca libgdal. Estão normalmente disponíveis 'JPEG', " 15217"'GTIff', 'PNG'. Use <xref linkend=\"RT_ST_GDALDrivers\"/> para conseguir uma " 15218"lista dos formatos suportados por sua biblioteca. " 15219 15220#. Tag: para 15221#: reference_raster.xml:6049 15222#, no-c-format 15223msgid "" 15224"<varname>options</varname> text array of GDAL options. Valid options are " 15225"dependent on the format. Refer to <ulink url=\"http://www.gdal.org/" 15226"frmt_various.html\">GDAL Raster format options</ulink> for more details." 15227msgstr "" 15228"<varname>options</varname> texto arranjo de opções GDAL. As opções válidas " 15229"são dependentes do formato. Recorra a <ulink url=\"http://www.gdal.org/" 15230"frmt_various.html\">GDAL Raster format options</ulink> para mais detalhes. " 15231 15232#. Tag: para 15233#: reference_raster.xml:6054 15234#, no-c-format 15235msgid "" 15236"<varname>srs</varname> The proj4text or srtext (from spatial_ref_sys) to " 15237"embed in the image" 15238msgstr "" 15239"<varname>srs</varname> O proj4text ou srtext (do spatial_ref_sys) para " 15240"embutir na imagem" 15241 15242#. Tag: title 15243#: reference_raster.xml:6064 15244#, no-c-format 15245msgid "JPEG Output Example, multiple tiles as single raster" 15246msgstr "" 15247 15248#. Tag: programlisting 15249#: reference_raster.xml:6066 15250#, no-c-format 15251msgid "" 15252"<![CDATA[SELECT ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50']) " 15253"As rastjpg\n" 15254"FROM dummy_rast\n" 15255"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);]]>" 15256msgstr "" 15257 15258#. Tag: title 15259#: reference_raster.xml:6071 15260#, no-c-format 15261msgid "Using PostgreSQL Large Object Support to export raster" 15262msgstr "" 15263 15264#. Tag: para 15265#: reference_raster.xml:6072 15266#, no-c-format 15267msgid "" 15268"One way to export raster into another format is using <ulink url=\"https://" 15269"www.postgresql.org/docs/current/static/lo-funcs.html\">PostgreSQL large " 15270"object export functions</ulink>. We'lll repeat the prior example but also " 15271"exporting. Note for this you'll need to have super user access to db since " 15272"it uses server side lo functions. It will also export to path on server " 15273"network. If you need export locally, use the psql equivalent lo_ functions " 15274"which export to the local file system instead of the server file system." 15275msgstr "" 15276 15277#. Tag: programlisting 15278#: reference_raster.xml:6076 15279#, no-c-format 15280msgid "" 15281"<![CDATA[DROP TABLE IF EXISTS tmp_out ;\n" 15282"\n" 15283"CREATE TABLE tmp_out AS\n" 15284"SELECT lo_from_bytea(0,\n" 15285" ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50'])\n" 15286" ) AS loid\n" 15287" FROM dummy_rast\n" 15288"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);\n" 15289"\n" 15290"SELECT lo_export(loid, '/tmp/dummy.jpg')\n" 15291" FROM tmp_out;\n" 15292"\n" 15293"SELECT lo_unlink(loid)\n" 15294" FROM tmp_out;]]>" 15295msgstr "" 15296 15297#. Tag: title 15298#: reference_raster.xml:6080 15299#, no-c-format 15300msgid "GTIFF Output Examples" 15301msgstr "GTIFF Output Examples" 15302 15303#. Tag: programlisting 15304#: reference_raster.xml:6082 15305#, no-c-format 15306msgid "" 15307"SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg\n" 15308"FROM dummy_rast WHERE rid=2;\n" 15309"\n" 15310"-- Out GeoTiff with jpeg compression, 90% quality\n" 15311"SELECT ST_AsGDALRaster(rast, 'GTiff',\n" 15312" ARRAY['COMPRESS=JPEG', 'JPEG_QUALITY=90'],\n" 15313" 4269) As rasttiff\n" 15314"FROM dummy_rast WHERE rid=2;" 15315msgstr "" 15316"SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg\n" 15317"FROM dummy_rast WHERE rid=2;\n" 15318"\n" 15319"-- Out GeoTiff with jpeg compression, 90% quality\n" 15320"SELECT ST_AsGDALRaster(rast, 'GTiff',\n" 15321" ARRAY['COMPRESS=JPEG', 'JPEG_QUALITY=90'],\n" 15322" 4269) As rasttiff\n" 15323"FROM dummy_rast WHERE rid=2;" 15324 15325#. Tag: para 15326#: reference_raster.xml:6089 15327#, no-c-format 15328msgid ", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_SRID\"/>" 15329msgstr "" 15330", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_SRID\"/>" 15331 15332#. Tag: refname 15333#: reference_raster.xml:6095 15334#, no-c-format 15335msgid "ST_AsJPEG" 15336msgstr "ST_AsJPEG" 15337 15338#. Tag: refpurpose 15339#: reference_raster.xml:6096 15340#, no-c-format 15341msgid "" 15342"Return the raster tile selected bands as a single Joint Photographic Exports " 15343"Group (JPEG) image (byte array). If no band is specified and 1 or more than " 15344"3 bands, then only the first band is used. If only 3 bands then all 3 bands " 15345"are used and mapped to RGB." 15346msgstr "" 15347"Retorna as bandas tile raster selecionadas como uma única Joint Photographic " 15348"Exports Group (JPEG) image (byte arranjo). Se nenhuma banda for especificada " 15349"e 1 ou mais que 3 bandas, então somente a primeira banda é usada. Se somente " 15350"3 bandas, então todas as 3 bandas serão usadas para mapear par RGB." 15351 15352#. Tag: funcsynopsis 15353#: reference_raster.xml:6100 15354#, no-c-format 15355msgid "" 15356"<funcprototype> <funcdef>bytea <function>ST_AsJPEG</function></funcdef> " 15357"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15358"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15359"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15360"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> " 15361"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 15362"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 15363"<parameter>quality</parameter></paramdef> </funcprototype> <funcprototype> " 15364"<funcdef>bytea <function>ST_AsJPEG</function></funcdef> " 15365"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15366"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15367"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15368"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15369"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> " 15370"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> " 15371"<parameter>nbands</parameter></paramdef> <paramdef choice=\"opt" 15372"\"><type>text[] </type> <parameter>options=NULL</parameter></paramdef> </" 15373"funcprototype> <funcprototype> <funcdef>bytea <function>ST_AsJPEG</" 15374"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 15375"parameter></paramdef> <paramdef><type>integer[] </type> <parameter>nbands</" 15376"parameter></paramdef> <paramdef><type>integer </type> <parameter>quality</" 15377"parameter></paramdef> </funcprototype>" 15378msgstr "" 15379"<funcprototype> <funcdef>bytea <function>ST_AsJPEG</function></funcdef> " 15380"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15381"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15382"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15383"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> " 15384"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 15385"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 15386"<parameter>quality</parameter></paramdef> </funcprototype> <funcprototype> " 15387"<funcdef>bytea <function>ST_AsJPEG</function></funcdef> " 15388"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15389"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15390"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15391"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15392"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> " 15393"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> " 15394"<parameter>nbands</parameter></paramdef> <paramdef choice=\"opt" 15395"\"><type>text[] </type> <parameter>options=NULL</parameter></paramdef> </" 15396"funcprototype> <funcprototype> <funcdef>bytea <function>ST_AsJPEG</" 15397"function></funcdef> <paramdef><type>raster </type> <parameter>rast</" 15398"parameter></paramdef> <paramdef><type>integer[] </type> <parameter>nbands</" 15399"parameter></paramdef> <paramdef><type>integer </type> <parameter>quality</" 15400"parameter></paramdef> </funcprototype>" 15401 15402#. Tag: para 15403#: reference_raster.xml:6136 15404#, no-c-format 15405msgid "" 15406"Returns the selected bands of the raster as a single Joint Photographic " 15407"Exports Group Image (JPEG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if " 15408"you need to export as less common raster types. If no band is specified and " 15409"1 or more than 3 bands, then only the first band is used. If 3 bands then " 15410"all 3 bands are used. There are many variants of the function with many " 15411"options. These are itemized below:" 15412msgstr "" 15413"Retorna as bandas selecionadas do raster como uma única Joint Photographic " 15414"Exports Group Image (JPEG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> se " 15415"precisar exportar como tipos raster menos comuns. Se nenhuma banda for " 15416"especificada e 1 ou mais que 3 bandas, então somente a primeira é usada. Se " 15417"3 bandas, então 3 bandas são usadas. Existem muitas variantes da função com " 15418"várias opções. Elas estão listadas abaixo:" 15419 15420#. Tag: para 15421#: reference_raster.xml:6139 reference_raster.xml:6230 15422#, no-c-format 15423msgid "<varname>nband</varname> is for single band exports." 15424msgstr "<varname>nband</varname> é para exportação de uma única banda." 15425 15426#. Tag: para 15427#: reference_raster.xml:6144 15428#, no-c-format 15429msgid "" 15430"<varname>nbands</varname> is an array of bands to export (note that max is 3 " 15431"for JPEG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band " 15432"3 to Red, band 2 to green and band 1 to blue" 15433msgstr "" 15434"<varname>nbands</varname> é um arranjo para exportar (note que o máximo é 3 " 15435"para JPEG) e a ordem das bandas é RGB. ex.: ARRAY[3,2,1] significa mapa " 15436"banda 3 para Vermelho, banda 2 para verde e banda 1 para azul. " 15437 15438#. Tag: para 15439#: reference_raster.xml:6149 15440#, no-c-format 15441msgid "" 15442"<varname>quality</varname> number from 0 to 100. The higher the number the " 15443"crisper the image." 15444msgstr "" 15445"<varname>quality</varname> número de 0 a 100. Quanto maior o número mais " 15446"translúcida a imagem. " 15447 15448#. Tag: para 15449#: reference_raster.xml:6154 15450#, no-c-format 15451msgid "" 15452"<varname>options</varname> text Array of GDAL options as defined for JPEG " 15453"(look at create_options for JPEG <xref linkend=\"RT_ST_GDALDrivers\"/>). For " 15454"JPEG valid ones are <varname>PROGRESSIVE</varname> ON or OFF and " 15455"<varname>QUALITY</varname> a range from 0 to 100 and default to 75. Refer to " 15456"<ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format " 15457"options</ulink> for more details." 15458msgstr "" 15459"<varname>options</varname> opções de textos Array of GDAL definidas para " 15460"JPEG (veja em create_options para JPEG <xref linkend=\"RT_ST_GDALDrivers\"/" 15461">). Para JPEG válido eles são <varname>PROGRESSIVE</varname> ON or OFF e " 15462"<varname>QUALITY</varname> a range from 0 to 100 and default to 75. Recorra " 15463"a <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format " 15464"options</ulink> para mais dealhes." 15465 15466#. Tag: title 15467#: reference_raster.xml:6171 15468#, no-c-format 15469msgid "Examples: Output" 15470msgstr "Exemplos: Saída" 15471 15472#. Tag: programlisting 15473#: reference_raster.xml:6173 15474#, no-c-format 15475msgid "" 15476"-- output first 3 bands 75% quality\n" 15477"SELECT ST_AsJPEG(rast) As rastjpg\n" 15478" FROM dummy_rast WHERE rid=2;\n" 15479"\n" 15480"-- output only first band as 90% quality\n" 15481"SELECT ST_AsJPEG(rast,1,90) As rastjpg\n" 15482" FROM dummy_rast WHERE rid=2;\n" 15483"\n" 15484"-- output first 3 bands (but make band 2 Red, band 1 green, and band 3 blue, " 15485"progressive and 90% quality\n" 15486"SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As " 15487"rastjpg\n" 15488" FROM dummy_rast WHERE rid=2;" 15489msgstr "" 15490"-- output first 3 bands 75% quality\n" 15491"SELECT ST_AsJPEG(rast) As rastjpg\n" 15492" FROM dummy_rast WHERE rid=2;\n" 15493"\n" 15494"-- output only first band as 90% quality\n" 15495"SELECT ST_AsJPEG(rast,1,90) As rastjpg\n" 15496" FROM dummy_rast WHERE rid=2;\n" 15497"\n" 15498"-- output first 3 bands (but make band 2 Red, band 1 green, and band 3 blue, " 15499"progressive and 90% quality\n" 15500"SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As " 15501"rastjpg\n" 15502" FROM dummy_rast WHERE rid=2;" 15503 15504#. Tag: para 15505#: reference_raster.xml:6180 15506#, no-c-format 15507msgid "" 15508", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_AsGDALRaster" 15509"\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref linkend=\"RT_ST_AsTIFF\"/>" 15510msgstr "" 15511", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_AsGDALRaster" 15512"\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref linkend=\"RT_ST_AsTIFF\"/>" 15513 15514#. Tag: refname 15515#: reference_raster.xml:6186 15516#, no-c-format 15517msgid "ST_AsPNG" 15518msgstr "ST_AsPNG" 15519 15520#. Tag: refpurpose 15521#: reference_raster.xml:6187 15522#, no-c-format 15523msgid "" 15524"Return the raster tile selected bands as a single portable network graphics " 15525"(PNG) image (byte array). If 1, 3, or 4 bands in raster and no bands are " 15526"specified, then all bands are used. If more 2 or more than 4 bands and no " 15527"bands specified, then only band 1 is used. Bands are mapped to RGB or RGBA " 15528"space." 15529msgstr "" 15530"Retorna as bandas tile raster selecionadas como um gráfico de rede portátil " 15531"(PNG) imagem (byte array). Se as bandas raster 1, 3 ou 4 e nenhum banda for " 15532"especificado, então todas as bandas são usadas. Se mais 2 ou mais que 4 " 15533"bandas e nenhuma banda forem especificadas, então somente a banda 1 é usada. " 15534"As bandas são mapeadas para espeço RGB ou RGBA. " 15535 15536#. Tag: funcsynopsis 15537#: reference_raster.xml:6191 15538#, no-c-format 15539msgid "" 15540"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15541"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15542"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15543"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15544"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> " 15545"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 15546"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 15547"<parameter>compression</parameter></paramdef> </funcprototype> " 15548"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15549"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15550"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15551"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15552"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15553"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> " 15554"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> " 15555"<parameter>nbands</parameter></paramdef> <paramdef><type>integer </type> " 15556"<parameter>compression</parameter></paramdef> </funcprototype> " 15557"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15558"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15559"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15560"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15561"parameter></paramdef> </funcprototype>" 15562msgstr "" 15563"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15564"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15565"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15566"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15567"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> " 15568"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 15569"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> " 15570"<parameter>compression</parameter></paramdef> </funcprototype> " 15571"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15572"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15573"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15574"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15575"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea " 15576"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> " 15577"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> " 15578"<parameter>nbands</parameter></paramdef> <paramdef><type>integer </type> " 15579"<parameter>compression</parameter></paramdef> </funcprototype> " 15580"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> " 15581"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15582"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15583"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</" 15584"parameter></paramdef> </funcprototype>" 15585 15586#. Tag: para 15587#: reference_raster.xml:6227 15588#, no-c-format 15589msgid "" 15590"Returns the selected bands of the raster as a single Portable Network " 15591"Graphics Image (PNG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if you need " 15592"to export as less common raster types. If no band is specified, then the " 15593"first 3 bands are exported. There are many variants of the function with " 15594"many options. If no <varname>srid</varname> is specified then then srid of " 15595"the raster is used. These are itemized below:" 15596msgstr "" 15597"Retorna as bandas selecionadas do raster como uma única Portable Network " 15598"Graphics Image (PNG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> se precisar " 15599"exportar como os tipo de raster menos comuns. Se nenhuma banda for " 15600"especificada, então as 3 primeiras bandas serão exportadas. Existem muitas " 15601"variantes da função com várias opções. Se nenhum <varname>srid</varname>for " 15602"especificado, o srid do raster é usado. Eles estão listados abaixo:" 15603 15604#. Tag: para 15605#: reference_raster.xml:6235 15606#, no-c-format 15607msgid "" 15608"<varname>nbands</varname> is an array of bands to export (note that max is 4 " 15609"for PNG) and the order of the bands is RGBA. e.g ARRAY[3,2,1] means map band " 15610"3 to Red, band 2 to green and band 1 to blue" 15611msgstr "" 15612"<varname>nbands</varname> é um arranjo para exportar (note que o máximo é 4 " 15613"para JPEG) e a ordem das bandas é RGB. ex.: ARRAY[3,2,1] significa mapa " 15614"banda 3 para Vermelho, banda 2 para verde e banda 1 para azul. " 15615 15616#. Tag: para 15617#: reference_raster.xml:6240 15618#, no-c-format 15619msgid "" 15620"<varname>compression</varname> number from 1 to 9. The higher the number the " 15621"greater the compression." 15622msgstr "" 15623"<varname>compression</varname> número de 1 a 9. Quanto maior o número melhor " 15624"a compressão. " 15625 15626#. Tag: para 15627#: reference_raster.xml:6245 15628#, no-c-format 15629msgid "" 15630"<varname>options</varname> text Array of GDAL options as defined for PNG " 15631"(look at create_options for PNG of <xref linkend=\"RT_ST_GDALDrivers\"/>). " 15632"For PNG valid one is only ZLEVEL (amount of time to spend on compression -- " 15633"default 6) e.g. ARRAY['ZLEVEL=9']. WORLDFILE is not allowed since the " 15634"function would have to output two outputs. Refer to <ulink url=\"http://www." 15635"gdal.org/frmt_various.html\">GDAL Raster format options</ulink> for more " 15636"details." 15637msgstr "" 15638"<varname>options</varname> opções de textos do Arranjo do GDAL como " 15639"definidas para PNG (veja em create_options para PNG da <xref linkend=" 15640"\"RT_ST_GDALDrivers\"/>). Para PNG válido é somente ZLEVEL (porção de tempo " 15641"para gastar na comprensão -- padrão 6) ex.: ARRAY['ZLEVEL=9']. WORLDFILE não " 15642"é permitido já que a função teria que gerar duas saídas. Recorra a <ulink " 15643"url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format options</" 15644"ulink> para mais detalhes. " 15645 15646#. Tag: programlisting 15647#: reference_raster.xml:6264 15648#, no-c-format 15649msgid "" 15650"SELECT ST_AsPNG(rast) As rastpng\n" 15651"FROM dummy_rast WHERE rid=2;\n" 15652"\n" 15653"-- export the first 3 bands and map band 3 to Red, band 1 to Green, band 2 " 15654"to blue\n" 15655"SELECT ST_AsPNG(rast, ARRAY[3,1,2]) As rastpng\n" 15656"FROM dummy_rast WHERE rid=2;" 15657msgstr "" 15658"SELECT ST_AsPNG(rast) As rastpng\n" 15659"FROM dummy_rast WHERE rid=2;\n" 15660"\n" 15661"-- export the first 3 bands and map band 3 to Red, band 1 to Green, band 2 " 15662"to blue\n" 15663"SELECT ST_AsPNG(rast, ARRAY[3,1,2]) As rastpng\n" 15664"FROM dummy_rast WHERE rid=2;" 15665 15666#. Tag: para 15667#: reference_raster.xml:6271 15668#, no-c-format 15669msgid "" 15670", <xref linkend=\"RT_ST_ColorMap\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, " 15671"<xref linkend=\"RT_Raster_Applications\"/>" 15672msgstr "" 15673", <xref linkend=\"RT_ST_ColorMap\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, " 15674"<xref linkend=\"RT_Raster_Applications\"/>" 15675 15676#. Tag: refname 15677#: reference_raster.xml:6277 15678#, no-c-format 15679msgid "ST_AsTIFF" 15680msgstr "ST_AsTIFF" 15681 15682#. Tag: refpurpose 15683#: reference_raster.xml:6278 15684#, no-c-format 15685msgid "" 15686"Return the raster selected bands as a single TIFF image (byte array). If no " 15687"band is specified or any of specified bands does not exist in the raster, " 15688"then will try to use all bands." 15689msgstr "" 15690 15691#. Tag: funcsynopsis 15692#: reference_raster.xml:6282 15693#, no-c-format 15694msgid "" 15695"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15696"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15697"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=''</" 15698"parameter></paramdef> <paramdef><type>integer </type> " 15699"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15700"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15701"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15702"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</" 15703"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15704"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15705"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15706"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15707"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15708"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</" 15709"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15710"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15711"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15712"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15713"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15714"<paramdef><type>text[] </type> <parameter>options</parameter></paramdef> " 15715"<paramdef><type>integer </type> <parameter>srid=sameassource</parameter></" 15716"paramdef> </funcprototype>" 15717msgstr "" 15718"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15719"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15720"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=''</" 15721"parameter></paramdef> <paramdef><type>integer </type> " 15722"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15723"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15724"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15725"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</" 15726"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15727"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15728"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15729"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15730"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15731"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</" 15732"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 15733"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> " 15734"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> " 15735"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15736"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> " 15737"<paramdef><type>text[] </type> <parameter>options</parameter></paramdef> " 15738"<paramdef><type>integer </type> <parameter>srid=sameassource</parameter></" 15739"paramdef> </funcprototype>" 15740 15741#. Tag: para 15742#: reference_raster.xml:6315 15743#, no-c-format 15744msgid "" 15745"Returns the selected bands of the raster as a single Tagged Image File " 15746"Format (TIFF). If no band is specified, will try to use all bands. This is a " 15747"wrapper around <xref linkend=\"RT_ST_AsGDALRaster\"/>. Use <xref linkend=" 15748"\"RT_ST_AsGDALRaster\"/> if you need to export as less common raster types. " 15749"There are many variants of the function with many options. If no spatial " 15750"reference SRS text is present, the spatial reference of the raster is used. " 15751"These are itemized below:" 15752msgstr "" 15753"Retorna as bandas selecionadas do raster como um formato Tagged Image File " 15754"Format (TIFF) único. Se nenhuma banda estiver especificada, tentaremos usar " 15755"todas as bandas. Isto é uma envoltório em torno da <xref linkend=" 15756"\"RT_ST_AsGDALRaster\"/>. Use <xref linkend=\"RT_ST_AsGDALRaster\"/> se " 15757"precisar exportar como tipos raster menos comuns. Existem muitas variantes " 15758"da função com diversas opções. Se nenhuma texto de referência espacial SRS " 15759"estiver presente, a referência espacial do raster é usada. Elas estão " 15760"listadas abaixo:" 15761 15762#. Tag: para 15763#: reference_raster.xml:6318 15764#, no-c-format 15765msgid "" 15766"<varname>nbands</varname> is an array of bands to export (note that max is 3 " 15767"for PNG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band " 15768"3 to Red, band 2 to green and band 1 to blue" 15769msgstr "" 15770"<varname>nbands</varname> é um arranjo de bandas para exportar (note que o " 15771"máximo é 3 para PNG) e a ordem das bandas é RGB. ex.: ARRAY[3,2,1] significa " 15772"mapear banda 3 para vermelho, banda 2 para verde e banda 1 para azul" 15773 15774#. Tag: para 15775#: reference_raster.xml:6323 15776#, no-c-format 15777msgid "" 15778"<varname>compression</varname> Compression expression -- JPEG90 (or some " 15779"other percent), LZW, JPEG, DEFLATE9." 15780msgstr "" 15781"<varname>compression</varname> Expressão de compressão -- JPEG90 (ou algum " 15782"outro percentual), LZW, JPEG, DEFLATE9." 15783 15784#. Tag: para 15785#: reference_raster.xml:6328 15786#, no-c-format 15787msgid "" 15788"<varname>options</varname> text Array of GDAL create options as defined for " 15789"GTiff (look at create_options for GTiff of <xref linkend=\"RT_ST_GDALDrivers" 15790"\"/>). or refer to <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL " 15791"Raster format options</ulink> for more details." 15792msgstr "" 15793"<varname>options</varname> text Array of GDAL create options as defined for " 15794"GTiff (look at create_options for GTiff of <xref linkend=\"RT_ST_GDALDrivers" 15795"\"/>). or refer to <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL " 15796"Raster format options</ulink> for more details." 15797 15798#. Tag: para 15799#: reference_raster.xml:6333 15800#, no-c-format 15801msgid "" 15802"<varname>srid</varname> srid of spatial_ref_sys of the raster. This is used " 15803"to populate the georeference information" 15804msgstr "" 15805"<varname>srid</varname> srid do spatial_ref_sys do raster. É usado para " 15806"popular a informação georreferência " 15807 15808#. Tag: title 15809#: reference_raster.xml:6342 15810#, no-c-format 15811msgid "Examples: Use jpeg compression 90%" 15812msgstr "Exemplo: Use jpeg compressão 90%" 15813 15814#. Tag: programlisting 15815#: reference_raster.xml:6344 15816#, no-c-format 15817msgid "" 15818"SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff\n" 15819"FROM dummy_rast WHERE rid=2;" 15820msgstr "" 15821"SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff\n" 15822"FROM dummy_rast WHERE rid=2;" 15823 15824#. Tag: para 15825#: reference_raster.xml:6351 15826#, no-c-format 15827msgid "" 15828", <xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_SRID\"/>" 15829msgstr "" 15830", <xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_SRID\"/>" 15831 15832#. Tag: title 15833#: reference_raster.xml:6357 15834#, no-c-format 15835msgid "Raster Processing" 15836msgstr "Processamento Raster" 15837 15838#. Tag: title 15839#: reference_raster.xml:6360 15840#, no-c-format 15841msgid "Map Algebra" 15842msgstr "Mapa Algébrico " 15843 15844#. Tag: refname 15845#: reference_raster.xml:6364 15846#, no-c-format 15847msgid "ST_Clip" 15848msgstr "ST_Clip" 15849 15850#. Tag: refpurpose 15851#: reference_raster.xml:6365 15852#, no-c-format 15853msgid "" 15854"Returns the raster clipped by the input geometry. If band number not is " 15855"specified, all bands are processed. If <varname>crop</varname> is not " 15856"specified or TRUE, the output raster is cropped." 15857msgstr "" 15858"Retorna o raster suprimido pela geometria de entrada. Se o número de banda " 15859"não for especificado, todas as bandas são processadas. Se <varname>crop</" 15860"varname> não for especificado ou for VERDADE, o raster de saída é cortado. " 15861 15862#. Tag: funcsynopsis 15863#: reference_raster.xml:6369 15864#, no-c-format 15865msgid "" 15866"<funcprototype> <funcdef>raster <function>ST_Clip</function></funcdef> " 15867"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15868"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> " 15869"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15870"<paramdef choice=\"opt\"><type>double precision[] </type> " 15871"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt" 15872"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </" 15873"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15874"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15875"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 15876"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15877"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</" 15878"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 15879"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> " 15880"<funcdef>raster <function>ST_Clip</function></funcdef> " 15881"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15882"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15883"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15884"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </" 15885"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15886"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15887"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15888"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 15889"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt" 15890"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </" 15891"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15892"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15893"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15894"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</" 15895"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 15896"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> " 15897"<funcdef>raster <function>ST_Clip</function></funcdef> " 15898"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15899"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15900"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </" 15901"funcprototype>" 15902msgstr "" 15903"<funcprototype> <funcdef>raster <function>ST_Clip</function></funcdef> " 15904"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15905"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> " 15906"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15907"<paramdef choice=\"opt\"><type>double precision[] </type> " 15908"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt" 15909"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </" 15910"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15911"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15912"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></" 15913"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15914"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</" 15915"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 15916"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> " 15917"<funcdef>raster <function>ST_Clip</function></funcdef> " 15918"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15919"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 15920"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15921"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </" 15922"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15923"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15924"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15925"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> " 15926"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt" 15927"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </" 15928"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></" 15929"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 15930"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 15931"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</" 15932"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 15933"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> " 15934"<funcdef>raster <function>ST_Clip</function></funcdef> " 15935"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 15936"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> " 15937"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </" 15938"funcprototype>" 15939 15940#. Tag: para 15941#: reference_raster.xml:6426 15942#, no-c-format 15943msgid "" 15944"Returns a raster that is clipped by the input geometry <varname>geom</" 15945"varname>. If band index is not specified, all bands are processed." 15946msgstr "" 15947"Retorna um raster que é suprimido pela geometria de entrada <varname>geom</" 15948"varname>. Se o índice de banda não for especificado, todas as bandas são " 15949"processadas. " 15950 15951#. Tag: para 15952#: reference_raster.xml:6430 15953#, no-c-format 15954msgid "" 15955"Rasters resulting from ST_Clip must have a nodata value assigned for areas " 15956"clipped, one for each band. If none are provided and the input raster do not " 15957"have a nodata value defined, nodata values of the resulting raster are set " 15958"to ST_MinPossibleValue(ST_BandPixelType(rast, band)). When the number of " 15959"nodata value in the array is smaller than the number of band, the last one " 15960"in the array is used for the remaining bands. If the number of nodata value " 15961"is greater than the number of band, the extra nodata values are ignored. All " 15962"variants accepting an array of nodata values also accept a single value " 15963"which will be assigned to each band." 15964msgstr "" 15965"Os rasters resultantes da ST_Clip devem ter o valor nodata designado para as " 15966"áreas suprimidas, um para cada banda. Se nenhum for promovido e o raster de " 15967"entrada não tiver nenhum valor nodata definido, os valore nodata do raster " 15968"resultante são ST_MinPossibleValue(ST_BandPixelType(rast, band)). Quando o " 15969"número de valor nodata no arranjo é menor qua o número de banda, o último no " 15970"arranjo é usado para as bandas que sobraram. Se o número de valor nodata for " 15971"maior que o número de banda, os valores extras serão ignorados. Todas as " 15972"variantes que aceitam um arranjo de valores nodata também aceitam um valor " 15973"único, que pode ser designado para cada banda. " 15974 15975#. Tag: para 15976#: reference_raster.xml:6434 15977#, no-c-format 15978msgid "" 15979"If <varname>crop</varname> is not specified, true is assumed meaning the " 15980"output raster is cropped to the intersection of the <varname>geom</" 15981"varname>and <varname>rast</varname> extents. If <varname>crop</varname> is " 15982"set to false, the new raster gets the same extent as <varname>rast</varname>." 15983msgstr "" 15984"Se <varname>crop</varname> não for especificado, é verdade, significando que " 15985"o rasetr de saída é cortado para a intersecção das extensões <varname>geom</" 15986"varname>e <varname>rast</varname>. Se <varname>crop</varname> for falso, o " 15987"novo raster tem a mesma extensão que <varname>rast</varname>." 15988 15989#. Tag: para 15990#: reference_raster.xml:6440 15991#, no-c-format 15992msgid "Enhanced: 2.1.0 Rewritten in C" 15993msgstr "Melhorias: 2.1.0 Reescrito em C" 15994 15995#. Tag: para 15996#: reference_raster.xml:6442 15997#, no-c-format 15998msgid "" 15999"Examples here use Massachusetts aerial data available on MassGIS site <ulink " 16000"url=\"http://www.mass.gov/mgis/colororthos2008.htm\">MassGIS Aerial Orthos</" 16001"ulink>. Coordinates are in Massachusetts State Plane Meters." 16002msgstr "" 16003"Os exemplos aqui utilizam os dados areais de Massachusetts disponíveis no " 16004"site MassGIS <ulink url=\"http://www.mass.gov/mgis/colororthos2008.htm" 16005"\">MassGIS Aerial Orthos</ulink>. As coordenadas estão no Massachusetts " 16006"State Plane Meters." 16007 16008#. Tag: title 16009#: reference_raster.xml:6448 16010#, no-c-format 16011msgid "Examples: 1 band clipping" 16012msgstr "Exemplos: 1 banda suprimindo " 16013 16014#. Tag: programlisting 16015#: reference_raster.xml:6450 16016#, no-c-format 16017msgid "" 16018"-- Clip the first band of an aerial tile by a 20 meter buffer.\n" 16019"SELECT ST_Clip(rast, 1,\n" 16020" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20)\n" 16021" ) from aerials.boston\n" 16022"WHERE rid = 4;" 16023msgstr "" 16024"-- Clip the first band of an aerial tile by a 20 meter buffer.\n" 16025"SELECT ST_Clip(rast, 1,\n" 16026" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20)\n" 16027" ) from aerials.boston\n" 16028"WHERE rid = 4;" 16029 16030#. Tag: programlisting 16031#: reference_raster.xml:6452 16032#, no-c-format 16033msgid "" 16034"-- Demonstrate effect of crop on final dimensions of raster\n" 16035"-- Note how final extent is clipped to that of the geometry\n" 16036"-- if crop = true\n" 16037"SELECT ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, true))) As " 16038"xmax_w_trim,\n" 16039" ST_XMax(clipper) As xmax_clipper,\n" 16040" ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, false))) As " 16041"xmax_wo_trim,\n" 16042" ST_XMax(ST_Envelope(rast)) As xmax_rast_orig\n" 16043"FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),6) As clipper\n" 16044" FROM aerials.boston\n" 16045"WHERE rid = 6) As foo;\n" 16046"\n" 16047" xmax_w_trim | xmax_clipper | xmax_wo_trim | xmax_rast_orig\n" 16048"------------------+------------------+------------------+------------------\n" 16049" 230657.436173996 | 230657.436173996 | 230666.436173996 | 230666.436173996" 16050msgstr "" 16051"-- Demonstrate effect of crop on final dimensions of raster\n" 16052"-- Note how final extent is clipped to that of the geometry\n" 16053"-- if crop = true\n" 16054"SELECT ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, true))) As " 16055"xmax_w_trim,\n" 16056" ST_XMax(clipper) As xmax_clipper,\n" 16057" ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, false))) As " 16058"xmax_wo_trim,\n" 16059" ST_XMax(ST_Envelope(rast)) As xmax_rast_orig\n" 16060"FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),6) As clipper\n" 16061" FROM aerials.boston\n" 16062"WHERE rid = 6) As foo;\n" 16063"\n" 16064" xmax_w_trim | xmax_clipper | xmax_wo_trim | xmax_rast_orig\n" 16065"------------------+------------------+------------------+------------------\n" 16066" 230657.436173996 | 230657.436173996 | 230666.436173996 | 230666.436173996" 16067 16068#. Tag: para 16069#: reference_raster.xml:6466 reference_raster.xml:6509 16070#: reference_raster.xml:6552 16071#, no-c-format 16072msgid "Full raster tile before clipping" 16073msgstr "Tile raster completa antes se suprimir " 16074 16075#. Tag: para 16076#: reference_raster.xml:6480 reference_raster.xml:6566 16077#, no-c-format 16078msgid "After Clipping" 16079msgstr "Depois de suprimir" 16080 16081#. Tag: title 16082#: reference_raster.xml:6493 16083#, no-c-format 16084msgid "" 16085"Examples: 1 band clipping with no crop and add back other bands unchanged" 16086msgstr "" 16087"Exemplos: 1 banda suprimindo sem cortes e adiciona de volta outras bandas " 16088"inalteradas" 16089 16090#. Tag: programlisting 16091#: reference_raster.xml:6495 16092#, no-c-format 16093msgid "" 16094"-- Same example as before, but we need to set crop to false to be able to " 16095"use ST_AddBand\n" 16096"-- because ST_AddBand requires all bands be the same Width and height\n" 16097"SELECT ST_AddBand(ST_Clip(rast, 1,\n" 16098" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20),false\n" 16099" ), ARRAY[ST_Band(rast,2),ST_Band(rast,3)] ) from aerials.boston\n" 16100"WHERE rid = 6;" 16101msgstr "" 16102"-- Same example as before, but we need to set crop to false to be able to " 16103"use ST_AddBand\n" 16104"-- because ST_AddBand requires all bands be the same Width and height\n" 16105"SELECT ST_AddBand(ST_Clip(rast, 1,\n" 16106" ST_Buffer(ST_Centroid(ST_Envelope(rast)),20),false\n" 16107" ), ARRAY[ST_Band(rast,2),ST_Band(rast,3)] ) from aerials.boston\n" 16108"WHERE rid = 6;" 16109 16110#. Tag: para 16111#: reference_raster.xml:6523 16112#, no-c-format 16113msgid "After Clipping - surreal" 16114msgstr "Depois de suprimir - surreal " 16115 16116#. Tag: title 16117#: reference_raster.xml:6536 16118#, no-c-format 16119msgid "Examples: Clip all bands" 16120msgstr "Exemplos: Suprime todas as bandas" 16121 16122#. Tag: programlisting 16123#: reference_raster.xml:6538 16124#, no-c-format 16125msgid "" 16126"-- Clip all bands of an aerial tile by a 20 meter buffer.\n" 16127"-- Only difference is we don't specify a specific band to clip\n" 16128"-- so all bands are clipped\n" 16129"SELECT ST_Clip(rast,\n" 16130" ST_Buffer(ST_Centroid(ST_Envelope(rast)), 20),\n" 16131" false\n" 16132" ) from aerials.boston\n" 16133"WHERE rid = 4;" 16134msgstr "" 16135"-- Clip all bands of an aerial tile by a 20 meter buffer.\n" 16136"-- Only difference is we don't specify a specific band to clip\n" 16137"-- so all bands are clipped\n" 16138"SELECT ST_Clip(rast,\n" 16139" ST_Buffer(ST_Centroid(ST_Envelope(rast)), 20),\n" 16140" false\n" 16141" ) from aerials.boston\n" 16142"WHERE rid = 4;" 16143 16144#. Tag: para 16145#: reference_raster.xml:6581 16146#, no-c-format 16147msgid "" 16148", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Intersection\"/" 16149">" 16150msgstr "" 16151", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Intersection\"/" 16152">" 16153 16154#. Tag: refname 16155#: reference_raster.xml:6591 16156#, no-c-format 16157msgid "ST_ColorMap" 16158msgstr "ST_ColorMap" 16159 16160#. Tag: refpurpose 16161#: reference_raster.xml:6592 16162#, no-c-format 16163msgid "" 16164"Creates a new raster of up to four 8BUI bands (grayscale, RGB, RGBA) from " 16165"the source raster and a specified band. Band 1 is assumed if not specified." 16166msgstr "" 16167"Cria um novo raster de até quatro bandas 8BUI (grayscale, RGB, RGBA) do " 16168"raster fonte e uma banda específica. A banda 1 usada se não especificado. " 16169 16170#. Tag: funcprototype 16171#: reference_raster.xml:6597 16172#, no-c-format 16173msgid "" 16174"<funcdef>raster <function>ST_ColorMap</function></funcdef> " 16175"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 16176"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 16177"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 16178"<parameter>colormap=grayscale</parameter></paramdef> <paramdef choice=\"opt" 16179"\"><type>text </type> <parameter>method=INTERPOLATE</parameter></paramdef>" 16180msgstr "" 16181"<funcdef>raster <function>ST_ColorMap</function></funcdef> " 16182"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 16183"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 16184"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 16185"<parameter>colormap=grayscale</parameter></paramdef> <paramdef choice=\"opt" 16186"\"><type>text </type> <parameter>method=INTERPOLATE</parameter></paramdef>" 16187 16188#. Tag: funcprototype 16189#: reference_raster.xml:6607 16190#, no-c-format 16191msgid "" 16192"<funcdef>raster <function>ST_ColorMap</function></funcdef> " 16193"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 16194"<paramdef><type>text </type> <parameter>colormap</parameter></paramdef> " 16195"<paramdef choice=\"opt\"><type>text </type> <parameter>method=INTERPOLATE</" 16196"parameter></paramdef>" 16197msgstr "" 16198"<funcdef>raster <function>ST_ColorMap</function></funcdef> " 16199"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 16200"<paramdef><type>text </type> <parameter>colormap</parameter></paramdef> " 16201"<paramdef choice=\"opt\"><type>text </type> <parameter>method=INTERPOLATE</" 16202"parameter></paramdef>" 16203 16204#. Tag: para 16205#: reference_raster.xml:6619 16206#, no-c-format 16207msgid "" 16208"Apply a <varname>colormap</varname> to the band at <varname>nband</varname> " 16209"of <varname>rast</varname> resulting a new raster comprised of up to four " 16210"8BUI bands. The number of 8BUI bands in the new raster is determined by the " 16211"number of color components defined in <varname>colormap</varname>." 16212msgstr "" 16213"Aplica um <varname>colormap</varname> à banda na <varname>nband</varname> do " 16214"<varname>rast</varname> resultando em um novo raster englobado com até " 16215"quatro bandas 8BUI. O número de bandas 8BUI no novo raster é determinado " 16216"pelo número de cores componentes definidas no <varname>colormap</varname>." 16217 16218#. Tag: para 16219#: reference_raster.xml:6623 16220#, no-c-format 16221msgid "If <varname>nband</varname> is not specified, then band 1 is assumed." 16222msgstr "" 16223"Se <varname>nband</varname> não for especificado, a banda 1 é assumida. " 16224 16225#. Tag: para 16226#: reference_raster.xml:6625 16227#, no-c-format 16228msgid "" 16229"<varname>colormap</varname> can be a keyword of a pre-defined colormap or a " 16230"set of lines defining the value and the color components." 16231msgstr "" 16232"<varname>colormap</varname> pode ser uma palavra-chave de um colormap pré " 16233"definido ou um conjunto de linhas definindo o valor e a cor dos componentes. " 16234 16235#. Tag: para 16236#: reference_raster.xml:6629 16237#, no-c-format 16238msgid "Valid pre-defined <varname>colormap</varname> keyword:" 16239msgstr "Palavra-chave válida do <varname>colormap</varname> pré definida: " 16240 16241#. Tag: para 16242#: reference_raster.xml:6635 16243#, no-c-format 16244msgid "" 16245"<varname>grayscale</varname> or <varname>greyscale</varname> for a one 8BUI " 16246"band raster of shades of gray." 16247msgstr "" 16248"<varname>grayscale</varname> ou <varname>greyscale</varname> para uma banda " 16249"raster 8BUI de tons de cinza. " 16250 16251#. Tag: para 16252#: reference_raster.xml:6640 16253#, no-c-format 16254msgid "" 16255"<varname>pseudocolor</varname> for a four 8BUI (RGBA) band raster with " 16256"colors going from blue to green to red." 16257msgstr "" 16258"<varname>pseudocolor</varname> para quatro bandas raster 8BUI (RGBA) com " 16259"cores indo de azul para verde e para vermelho. " 16260 16261#. Tag: para 16262#: reference_raster.xml:6645 16263#, no-c-format 16264msgid "" 16265"<varname>fire</varname> for a four 8BUI (RGBA) band raster with colors going " 16266"from black to red to pale yellow." 16267msgstr "" 16268"<varname>fire</varname> para quatro bandas raster 8BUI (RGBA) com cores indo " 16269"de preto para vermelho para amarelo claro. " 16270 16271#. Tag: para 16272#: reference_raster.xml:6650 16273#, no-c-format 16274msgid "" 16275"<varname>bluered</varname> for a four 8BUI (RGBA) band raster with colors " 16276"going from blue to pale white to red." 16277msgstr "" 16278"<varname>bluered</varname> para quatro bandas raster 8BUI (RGBA) com cores " 16279"indo de azul para branco para vermelho. " 16280 16281#. Tag: para 16282#: reference_raster.xml:6656 16283#, no-c-format 16284msgid "" 16285"Users can pass a set of entries (one per line) to <varname>colormap</" 16286"varname> to specify custom colormaps. Each entry generally consists of five " 16287"values: the pixel value and corresponding Red, Green, Blue, Alpha components " 16288"(color components between 0 and 255). Percent values can be used instead of " 16289"pixel values where 0% and 100% are the minimum and maximum values found in " 16290"the raster band. Values can be separated with commas (','), tabs, colons " 16291"(':') and/or spaces. The pixel value can be set to <emphasis>nv</emphasis>, " 16292"<emphasis>null</emphasis> or <emphasis>nodata</emphasis> for the NODATA " 16293"value. An example is provided below." 16294msgstr "" 16295"Os usuários podem passar um conjunto de entradas (uma por linha) para " 16296"<varname>colormap</varname> para especificar colormaps personalizados. Cada " 16297"entrada consiste de cinco valores: o valor de pixel e componentes Vermelho, " 16298"Verde, Azul, Alfa correspondentes (entre 0 e 255). Valores de porcentagem " 16299"podem ser usados em vez de valores de pixel onde 0% e 100% são os mínimos e " 16300"os máximos encontrados na banda raster. Os valores podem ser separados por " 16301"vírgulas (\",\"), tabs, dois pontos (\":\") e/ou espaços. O valor do pixel " 16302"pode ser <emphasis>nv</emphasis>, <emphasis>null</emphasis> ou " 16303"<emphasis>nodata</emphasis> para o valor NODATA. Um exemplo é fornecido " 16304"abaixo. " 16305 16306#. Tag: programlisting 16307#: reference_raster.xml:6660 16308#, no-c-format 16309msgid "" 16310"5 0 0 0 255\n" 16311"4 100:50 55 255\n" 16312"1 150,100 150 255\n" 16313"0% 255 255 255 255\n" 16314"nv 0 0 0 0" 16315msgstr "" 16316"5 0 0 0 255\n" 16317"4 100:50 55 255\n" 16318"1 150,100 150 255\n" 16319"0% 255 255 255 255\n" 16320"nv 0 0 0 0" 16321 16322#. Tag: para 16323#: reference_raster.xml:6662 16324#, no-c-format 16325msgid "" 16326"The syntax of <varname>colormap</varname> is similar to that of the color-" 16327"relief mode of GDAL <ulink url=\"http://www.gdal.org/gdaldem." 16328"html#gdaldem_color_relief\">gdaldem</ulink>." 16329msgstr "" 16330"A sintaxe do <varname>colormap</varname> é parecida com com a do modo do " 16331"auxílio de cor do GDAL <ulink url=\"http://www.gdal.org/gdaldem." 16332"html#gdaldem_color_relief\">gdaldem</ulink>." 16333 16334#. Tag: para 16335#: reference_raster.xml:6666 16336#, no-c-format 16337msgid "Valid keywords for <varname>method</varname>:" 16338msgstr "Palavras-chave válidas para <varname>method</varname>:" 16339 16340#. Tag: para 16341#: reference_raster.xml:6672 16342#, no-c-format 16343msgid "" 16344"<varname>INTERPOLATE</varname> to use linear interpolation to smoothly blend " 16345"the colors between the given pixel values" 16346msgstr "" 16347"<varname>INTERPOLATE</varname> para usar interpolação linear para misturar " 16348"suavemente as cores entre os valores do pixel" 16349 16350#. Tag: para 16351#: reference_raster.xml:6677 16352#, no-c-format 16353msgid "" 16354"<varname>EXACT</varname> to strictly match only those pixels values found in " 16355"the colormap. Pixels whose value does not match a colormap entry will be set " 16356"to 0 0 0 0 (RGBA)" 16357msgstr "" 16358"<varname>EXACT</varname> para combinar estritamente somente aqueles valores " 16359"de pixel encontrados no colormap. Os pixeis cujos valores não combinarem com " 16360"uma entrada do colormap serão 0 0 0 0 (RGBA)" 16361 16362#. Tag: para 16363#: reference_raster.xml:6682 16364#, no-c-format 16365msgid "" 16366"<varname>NEAREST</varname> to use the colormap entry whose value is closest " 16367"to the pixel value" 16368msgstr "" 16369"<varname>NEAREST</varname> para usar a entrada do colormap cujos valores são " 16370"mais próximos ao valor do pixel " 16371 16372#. Tag: para 16373#: reference_raster.xml:6689 16374#, no-c-format 16375msgid "" 16376"A great reference for colormaps is <ulink url=\"http://www.colorbrewer2.org" 16377"\">ColorBrewer</ulink>." 16378msgstr "" 16379"Uma ótima referência para o colormap é <ulink url=\"http://www.colorbrewer2." 16380"org\">ColorBrewer</ulink>." 16381 16382#. Tag: para 16383#: reference_raster.xml:6694 16384#, no-c-format 16385msgid "" 16386"The resulting bands of new raster will have no NODATA value set. Use <xref " 16387"linkend=\"RT_ST_SetBandNoDataValue\"/> to set a NODATA value if one is " 16388"needed." 16389msgstr "" 16390"As bandas resultantes do novo raster não terá nenhum valor NODATA. Use <xref " 16391"linkend=\"RT_ST_SetBandNoDataValue\"/> se precisar de um valor NODATA. " 16392 16393#. Tag: para 16394#: reference_raster.xml:6704 16395#, no-c-format 16396msgid "This is a junk table to play with" 16397msgstr "Esta não é uma boa tabela para desfrutar" 16398 16399#. Tag: programlisting 16400#: reference_raster.xml:6706 16401#, no-c-format 16402msgid "" 16403"-- setup test raster table --\n" 16404"DROP TABLE IF EXISTS funky_shapes;\n" 16405"CREATE TABLE funky_shapes(rast raster);\n" 16406"\n" 16407"INSERT INTO funky_shapes(rast)\n" 16408"WITH ref AS (\n" 16409" SELECT ST_MakeEmptyRaster( 200, 200, 0, 200, 1, -1, 0, 0) AS rast\n" 16410")\n" 16411"SELECT\n" 16412" ST_Union(rast)\n" 16413"FROM (\n" 16414" SELECT\n" 16415" ST_AsRaster(\n" 16416" ST_Rotate(\n" 16417" ST_Buffer(\n" 16418" ST_GeomFromText('LINESTRING(0 2,50 " 16419"50,150 150,125 50)'),\n" 16420" i*2\n" 16421" ),\n" 16422" pi() * i * 0.125, ST_Point(50,50)\n" 16423" ),\n" 16424" ref.rast, '8BUI'::text, i * 5\n" 16425" ) AS rast\n" 16426" FROM ref\n" 16427" CROSS JOIN generate_series(1, 10, 3) AS i\n" 16428") AS shapes;" 16429msgstr "" 16430"-- setup test raster table --\n" 16431"DROP TABLE IF EXISTS funky_shapes;\n" 16432"CREATE TABLE funky_shapes(rast raster);\n" 16433"\n" 16434"INSERT INTO funky_shapes(rast)\n" 16435"WITH ref AS (\n" 16436" SELECT ST_MakeEmptyRaster( 200, 200, 0, 200, 1, -1, 0, 0) AS rast\n" 16437")\n" 16438"SELECT\n" 16439" ST_Union(rast)\n" 16440"FROM (\n" 16441" SELECT\n" 16442" ST_AsRaster(\n" 16443" ST_Rotate(\n" 16444" ST_Buffer(\n" 16445" ST_GeomFromText('LINESTRING(0 2,50 " 16446"50,150 150,125 50)'),\n" 16447" i*2\n" 16448" ),\n" 16449" pi() * i * 0.125, ST_Point(50,50)\n" 16450" ),\n" 16451" ref.rast, '8BUI'::text, i * 5\n" 16452" ) AS rast\n" 16453" FROM ref\n" 16454" CROSS JOIN generate_series(1, 10, 3) AS i\n" 16455") AS shapes;" 16456 16457#. Tag: programlisting 16458#: reference_raster.xml:6708 16459#, no-c-format 16460msgid "" 16461"SELECT\n" 16462" ST_NumBands(rast) As n_orig,\n" 16463" ST_NumBands(ST_ColorMap(rast,1, 'greyscale')) As ngrey,\n" 16464" ST_NumBands(ST_ColorMap(rast,1, 'pseudocolor')) As npseudo,\n" 16465" ST_NumBands(ST_ColorMap(rast,1, 'fire')) As nfire,\n" 16466" ST_NumBands(ST_ColorMap(rast,1, 'bluered')) As nbluered,\n" 16467" ST_NumBands(ST_ColorMap(rast,1, '\n" 16468"100% 255 0 0\n" 16469" 80% 160 0 0\n" 16470" 50% 130 0 0\n" 16471" 30% 30 0 0\n" 16472" 20% 60 0 0\n" 16473" 0% 0 0 0\n" 16474" nv 255 255 255\n" 16475" ')) As nred\n" 16476"FROM funky_shapes;" 16477msgstr "" 16478"SELECT\n" 16479" ST_NumBands(rast) As n_orig,\n" 16480" ST_NumBands(ST_ColorMap(rast,1, 'greyscale')) As ngrey,\n" 16481" ST_NumBands(ST_ColorMap(rast,1, 'pseudocolor')) As npseudo,\n" 16482" ST_NumBands(ST_ColorMap(rast,1, 'fire')) As nfire,\n" 16483" ST_NumBands(ST_ColorMap(rast,1, 'bluered')) As nbluered,\n" 16484" ST_NumBands(ST_ColorMap(rast,1, '\n" 16485"100% 255 0 0\n" 16486" 80% 160 0 0\n" 16487" 50% 130 0 0\n" 16488" 30% 30 0 0\n" 16489" 20% 60 0 0\n" 16490" 0% 0 0 0\n" 16491" nv 255 255 255\n" 16492" ')) As nred\n" 16493"FROM funky_shapes;" 16494 16495#. Tag: screen 16496#: reference_raster.xml:6710 16497#, no-c-format 16498msgid "" 16499"n_orig | ngrey | npseudo | nfire | nbluered | nred\n" 16500"--------+-------+---------+-------+----------+------\n" 16501" 1 | 1 | 4 | 4 | 4 | 3" 16502msgstr "" 16503"n_orig | ngrey | npseudo | nfire | nbluered | nred\n" 16504"--------+-------+---------+-------+----------+------\n" 16505" 1 | 1 | 4 | 4 | 4 | 3" 16506 16507#. Tag: title 16508#: reference_raster.xml:6714 16509#, no-c-format 16510msgid "Examples: Compare different color map looks using ST_AsPNG" 16511msgstr "Exemplos: Compara cores diferentes no mapa usando ST_AsPNG" 16512 16513#. Tag: programlisting 16514#: reference_raster.xml:6715 16515#, no-c-format 16516msgid "" 16517"SELECT\n" 16518" ST_AsPNG(rast) As orig_png,\n" 16519" ST_AsPNG(ST_ColorMap(rast,1,'greyscale')) As grey_png,\n" 16520" ST_AsPNG(ST_ColorMap(rast,1, 'pseudocolor')) As pseudo_png,\n" 16521" ST_AsPNG(ST_ColorMap(rast,1, 'nfire')) As fire_png,\n" 16522" ST_AsPNG(ST_ColorMap(rast,1, 'bluered')) As bluered_png,\n" 16523" ST_AsPNG(ST_ColorMap(rast,1, '\n" 16524"100% 255 0 0\n" 16525" 80% 160 0 0\n" 16526" 50% 130 0 0\n" 16527" 30% 30 0 0\n" 16528" 20% 60 0 0\n" 16529" 0% 0 0 0\n" 16530" nv 255 255 255\n" 16531" ')) As red_png\n" 16532"FROM funky_shapes;" 16533msgstr "" 16534"SELECT\n" 16535" ST_AsPNG(rast) As orig_png,\n" 16536" ST_AsPNG(ST_ColorMap(rast,1,'greyscale')) As grey_png,\n" 16537" ST_AsPNG(ST_ColorMap(rast,1, 'pseudocolor')) As pseudo_png,\n" 16538" ST_AsPNG(ST_ColorMap(rast,1, 'nfire')) As fire_png,\n" 16539" ST_AsPNG(ST_ColorMap(rast,1, 'bluered')) As bluered_png,\n" 16540" ST_AsPNG(ST_ColorMap(rast,1, '\n" 16541"100% 255 0 0\n" 16542" 80% 160 0 0\n" 16543" 50% 130 0 0\n" 16544" 30% 30 0 0\n" 16545" 20% 60 0 0\n" 16546" 0% 0 0 0\n" 16547" nv 255 255 255\n" 16548" ')) As red_png\n" 16549"FROM funky_shapes;" 16550 16551#. Tag: para 16552#: reference_raster.xml:6729 16553#, no-c-format 16554msgid "orig_png" 16555msgstr "orig_png" 16556 16557#. Tag: para 16558#: reference_raster.xml:6743 16559#, no-c-format 16560msgid "grey_png" 16561msgstr "grey_png" 16562 16563#. Tag: para 16564#: reference_raster.xml:6757 16565#, no-c-format 16566msgid "pseudo_png" 16567msgstr "pseudo_png" 16568 16569#. Tag: para 16570#: reference_raster.xml:6773 16571#, no-c-format 16572msgid "fire_png" 16573msgstr "fire_png" 16574 16575#. Tag: para 16576#: reference_raster.xml:6787 16577#, no-c-format 16578msgid "bluered_png" 16579msgstr "bluered_png" 16580 16581#. Tag: para 16582#: reference_raster.xml:6801 16583#, no-c-format 16584msgid "red_png" 16585msgstr "red_png" 16586 16587#. Tag: para 16588#: reference_raster.xml:6815 16589#, no-c-format 16590msgid "" 16591", <xref linkend=\"RT_ST_AsRaster\"/> <xref linkend=\"RT_ST_MapAlgebra\"/>, " 16592"<xref linkend=\"RT_ST_Grayscale\"/> <xref linkend=\"RT_ST_NumBands\"/>, " 16593"<xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue" 16594"\"/>, <xref linkend=\"RT_ST_Union\"/>" 16595msgstr "" 16596 16597#. Tag: refname 16598#: reference_raster.xml:6830 16599#, no-c-format 16600msgid "ST_Grayscale" 16601msgstr "" 16602 16603#. Tag: refpurpose 16604#: reference_raster.xml:6831 16605#, no-c-format 16606msgid "" 16607"Creates a new one-8BUI band raster from the source raster and specified " 16608"bands representing Red, Green and Blue" 16609msgstr "" 16610 16611#. Tag: funcprototype 16612#: reference_raster.xml:6836 16613#, no-c-format 16614msgid "" 16615"<funcdef>(1) raster <function>ST_Grayscale</function></funcdef> " 16616"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 16617"<paramdef choice=\"opt\"><type>integer </type> <parameter>redband=1</" 16618"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 16619"<parameter>greenband=2</parameter></paramdef> <paramdef choice=\"opt" 16620"\"><type>integer </type> <parameter>blueband=3</parameter></paramdef> " 16621"<paramdef choice=\"opt\"><type>text </type> " 16622"<parameter>extenttype=INTERSECTION</parameter></paramdef>" 16623msgstr "" 16624 16625#. Tag: funcprototype 16626#: reference_raster.xml:6847 16627#, no-c-format 16628msgid "" 16629"<funcdef>(2) raster <function>ST_Grayscale</function></funcdef> " 16630"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></" 16631"paramdef> <paramdef choice=\"opt\"><type>text </type> " 16632"<parameter>extenttype=INTERSECTION</parameter></paramdef>" 16633msgstr "" 16634 16635#. Tag: para 16636#: reference_raster.xml:6858 16637#, no-c-format 16638msgid "" 16639"Create a raster with one 8BUI band given three input bands (from one or more " 16640"rasters). Any input band whose pixel type is not 8BUI will be reclassified " 16641"using <xref linkend=\"RT_ST_Reclass\"/>." 16642msgstr "" 16643 16644#. Tag: para 16645#: reference_raster.xml:6863 16646#, no-c-format 16647msgid "" 16648"This function is not like <xref linkend=\"RT_ST_ColorMap\"/> with the " 16649"<varname>grayscale</varname> keyword as ST_ColorMap operates on only one " 16650"band while this function expects three bands for RGB. This function applies " 16651"the following equation for converting RGB to Grayscale: 0.2989 * RED + " 16652"0.5870 * GREEN + 0.1140 * BLUE" 16653msgstr "" 16654 16655#. Tag: programlisting 16656#: reference_raster.xml:6875 16657#, no-c-format 16658msgid "" 16659"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n" 16660"SET postgis.enable_outdb_rasters = True;\n" 16661"\n" 16662"WITH apple AS (\n" 16663" SELECT ST_AddBand(\n" 16664" ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n" 16665" '/tmp/apple.png'::text,\n" 16666" NULL::int[]\n" 16667" ) AS rast\n" 16668")\n" 16669"SELECT\n" 16670" ST_AsPNG(rast) AS original_png,\n" 16671" ST_AsPNG(ST_Grayscale(rast)) AS grayscale_png\n" 16672"FROM apple;" 16673msgstr "" 16674 16675#. Tag: para 16676#: reference_raster.xml:6889 16677#, no-c-format 16678msgid "original_png" 16679msgstr "" 16680 16681#. Tag: para 16682#: reference_raster.xml:6903 16683#, no-c-format 16684msgid "grayscale_png" 16685msgstr "" 16686 16687#. Tag: programlisting 16688#: reference_raster.xml:6919 16689#, no-c-format 16690msgid "" 16691"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n" 16692"SET postgis.enable_outdb_rasters = True;\n" 16693"\n" 16694"WITH apple AS (\n" 16695" SELECT ST_AddBand(\n" 16696" ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n" 16697" '/tmp/apple.png'::text,\n" 16698" NULL::int[]\n" 16699" ) AS rast\n" 16700")\n" 16701"SELECT\n" 16702" ST_AsPNG(rast) AS original_png,\n" 16703" ST_AsPNG(ST_Grayscale(\n" 16704" ARRAY[\n" 16705" ROW(rast, 1)::rastbandarg, -- red\n" 16706" ROW(rast, 2)::rastbandarg, -- green\n" 16707" ROW(rast, 3)::rastbandarg, -- blue\n" 16708" ]::rastbandarg[]\n" 16709" )) AS grayscale_png\n" 16710"FROM apple;" 16711msgstr "" 16712 16713#. Tag: para 16714#: reference_raster.xml:6924 16715#, no-c-format 16716msgid ", <xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_ColorMap\"/>" 16717msgstr "" 16718 16719#. Tag: refname 16720#: reference_raster.xml:6935 16721#, no-c-format 16722msgid "ST_Intersection" 16723msgstr "ST_Intersection" 16724 16725#. Tag: refpurpose 16726#: reference_raster.xml:6936 16727#, no-c-format 16728msgid "" 16729"<refpurpose>Returns a raster or a set of geometry-pixelvalue pairs " 16730"representing the shared portion of two rasters or the geometrical " 16731"intersection of a vectorization of the raster and a geometry.</refpurpose>" 16732msgstr "" 16733"<refpurpose>Retorna uma raster ou conjunto de pares de valores de pixeis de " 16734"geometria representando a porção dividida de dois rasters ou a interseção " 16735"geométrica de uma vetorização do raster e uma geometria.</refpurpose>" 16736 16737#. Tag: funcsynopsis 16738#: reference_raster.xml:6940 16739#, no-c-format 16740msgid "" 16741"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></" 16742"funcdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 16743"paramdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 16744"paramdef> <paramdef choice=\"opt\"><type>integer </type> " 16745"<parameter>band_num=1</parameter></paramdef> </funcprototype> " 16746"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></" 16747"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 16748"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 16749"paramdef> </funcprototype> <funcprototype> <funcdef>setof geomval " 16750"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16751"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 16752"<parameter>band</parameter></paramdef> <paramdef><type>geometry </type> " 16753"<parameter>geomin</parameter></paramdef> </funcprototype> <funcprototype> " 16754"<funcdef>raster <function>ST_Intersection</function></funcdef> " 16755"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 16756"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 16757"<paramdef><type>double precision[] </type> <parameter>nodataval</parameter></" 16758"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 16759"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16760"type> <parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> " 16761"<parameter>rast2</parameter></paramdef> <paramdef choice=\"opt\"><type>text " 16762"</type> <parameter>returnband</parameter></paramdef> <paramdef choice=\"opt" 16763"\"><type>double precision[] </type> <parameter>nodataval</parameter></" 16764"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 16765"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16766"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer </" 16767"type> <parameter>band1</parameter></paramdef> <paramdef><type>raster </type> " 16768"<parameter>rast2</parameter></paramdef> <paramdef><type>integer </type> " 16769"<parameter>band2</parameter></paramdef> <paramdef><type>double precision[] </" 16770"type> <parameter>nodataval</parameter></paramdef> </funcprototype> " 16771"<funcprototype> <funcdef>raster <function>ST_Intersection</function></" 16772"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 16773"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></" 16774"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 16775"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></" 16776"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>returnband</" 16777"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 16778"type> <parameter>nodataval</parameter></paramdef> </funcprototype>" 16779msgstr "" 16780"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></" 16781"funcdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 16782"paramdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 16783"paramdef> <paramdef choice=\"opt\"><type>integer </type> " 16784"<parameter>band_num=1</parameter></paramdef> </funcprototype> " 16785"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></" 16786"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 16787"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></" 16788"paramdef> </funcprototype> <funcprototype> <funcdef>setof geomval " 16789"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16790"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 16791"<parameter>band</parameter></paramdef> <paramdef><type>geometry </type> " 16792"<parameter>geomin</parameter></paramdef> </funcprototype> <funcprototype> " 16793"<funcdef>raster <function>ST_Intersection</function></funcdef> " 16794"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 16795"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 16796"<paramdef><type>double precision[] </type> <parameter>nodataval</parameter></" 16797"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 16798"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16799"type> <parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> " 16800"<parameter>rast2</parameter></paramdef> <paramdef choice=\"opt\"><type>text " 16801"</type> <parameter>returnband</parameter></paramdef> <paramdef choice=\"opt" 16802"\"><type>double precision[] </type> <parameter>nodataval</parameter></" 16803"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 16804"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </" 16805"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer </" 16806"type> <parameter>band1</parameter></paramdef> <paramdef><type>raster </type> " 16807"<parameter>rast2</parameter></paramdef> <paramdef><type>integer </type> " 16808"<parameter>band2</parameter></paramdef> <paramdef><type>double precision[] </" 16809"type> <parameter>nodataval</parameter></paramdef> </funcprototype> " 16810"<funcprototype> <funcdef>raster <function>ST_Intersection</function></" 16811"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 16812"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></" 16813"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 16814"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></" 16815"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>returnband</" 16816"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </" 16817"type> <parameter>nodataval</parameter></paramdef> </funcprototype>" 16818 16819#. Tag: para 16820#: reference_raster.xml:7000 16821#, no-c-format 16822msgid "" 16823"<para>Returns a raster or a set of geometry-pixelvalue pairs representing " 16824"the shared portion of two rasters or the geometrical intersection of a " 16825"vectorization of the raster and a geometry.</para>" 16826msgstr "" 16827"<para>Retorna uma raster ou conjunto de pares de valores de pixeis de " 16828"geometria representando a porção dividida de dois rasters ou a interseção " 16829"geométrica de uma vetorização do raster e uma geometria.</para>" 16830 16831#. Tag: para 16832#: reference_raster.xml:7004 16833#, fuzzy, no-c-format 16834msgid "" 16835"The first three variants, returning a setof geomval, works in vector space. " 16836"The raster is first vectorized (using <xref linkend=\"RT_ST_DumpAsPolygons\"/" 16837">) into a set of geomval rows and those rows are then intersected with the " 16838"geometry using the <xref linkend=\"ST_Intersection\"/> (geometry, geometry) " 16839"PostGIS function. Geometries intersecting only with a nodata value area of a " 16840"raster returns an empty geometry. They are normally excluded from the " 16841"results by the proper usage of <xref linkend=\"RT_ST_Intersects\"/> in the " 16842"WHERE clause." 16843msgstr "" 16844"As primeiras três variantes, retornando um conjunto de geomval, funciona no " 16845"espaço vetor. Primeiramente, o raster é vetorizado (usando a " 16846"ST_DumpAsPolygon) dentro de linhas geomval e elas intersectam com a " 16847"geometria usando a função PostGIS ST_Intersection(geometria, geometria). " 16848"Somente as geometrias intersectando com uma área de valor nodata de um " 16849"raster, retornam uma geometria vazia. Normalmente, elas são excluídas dos " 16850"resultados pelo próprio uso da ST_Intersect na cláusula ONDE. " 16851 16852#. Tag: para 16853#: reference_raster.xml:7008 16854#, no-c-format 16855msgid "" 16856"You can access the geometry and the value parts of the resulting set of " 16857"geomval by surrounding them with parenthesis and adding '.geom' or '.val' at " 16858"the end of the expression. e.g. (ST_Intersection(rast, geom)).geom" 16859msgstr "" 16860"Você pode acessar a geometria e as partes do valor do conjunto geomval " 16861"resultante colocando parênteses e adicionando '.geom' ou '.val' no fim da " 16862"expressão. ex.: (ST_Intersection(rast, geom)).geom" 16863 16864#. Tag: para 16865#: reference_raster.xml:7012 16866#, no-c-format 16867msgid "" 16868"The other variants, returning a raster, works in raster space. They are " 16869"using the two rasters version of ST_MapAlgebraExpr to perform the " 16870"intersection." 16871msgstr "" 16872"As outras variantes, retornando um raster, funcionam no espaço raster. Elas " 16873"estão usando a versão de dois raster da ST_MapAlgebraExp para representar a " 16874"interseção. " 16875 16876#. Tag: para 16877#: reference_raster.xml:7016 16878#, no-c-format 16879msgid "" 16880"The extent of the resulting raster corresponds to the geometrical " 16881"intersection of the two raster extents. The resulting raster includes " 16882"'BAND1', 'BAND2' or 'BOTH' bands, following what is passed as the " 16883"<varname>returnband</varname> parameter. Nodata value areas present in any " 16884"band results in nodata value areas in every bands of the result. In other " 16885"words, any pixel intersecting with a nodata value pixel becomes a nodata " 16886"value pixel in the result." 16887msgstr "" 16888"A extensão do raster resultante corresponde à interseção geométrica das duas " 16889"extensões raster. O raster resultante inclui 'BANDA1', 'BANDA2' ou 'AMBAS' " 16890"as bandas, a seguir o que é passado como o parâmetro <varname>returnband</" 16891"varname>. As áreas do valor nodata presentes em qualquer banda resultam " 16892"áreas de valor nodata em todas as bandas do resultado. Em outras palavras, " 16893"qualquer pixel intersectando com um pixel de valor nodata se torna um pixel " 16894"de valor nodata no resultado. " 16895 16896#. Tag: para 16897#: reference_raster.xml:7020 16898#, no-c-format 16899msgid "" 16900"Rasters resulting from ST_Intersection must have a nodata value assigned for " 16901"areas not intersecting. You can define or replace the nodata value for any " 16902"resulting band by providing a <varname>nodataval[]</varname> array of one or " 16903"two nodata values depending if you request 'BAND1', 'BAND2' or 'BOTH' bands. " 16904"The first value in the array replace the nodata value in the first band and " 16905"the second value replace the nodata value in the second band. If one input " 16906"band do not have a nodata value defined and none are provided as an array, " 16907"one is chosen using the ST_MinPossibleValue function. All variant accepting " 16908"an array of nodata value can also accept a single value which will be " 16909"assigned to each requested band." 16910msgstr "" 16911"Os rasters resultantes da ST_Intersection devem ter um valor nodata " 16912"designado para áreas que não intersectam. Você pode definir ou substituir o " 16913"valor nodata para qualquer banda resultante fornecendo um arranjo " 16914"<varname>nodataval[]</varname> de um ou dois valores nodata, dependendo se " 16915"solicitou 'BANDA1', 'BANDA2' ou 'AMBAS' as bandas. O primeiro valor no " 16916"arranjo substitui o valor nodata na primeira banda e o segundo substitui o " 16917"valor nodata na segunda banda. Se uma banda de entrada não possuir o valor " 16918"nodata definido e nenhum for fornecido como arranjo, um é escolhido usando a " 16919"função ST_MinPossibleValue. Todas as variantes que aceitam um arranjo com " 16920"valor nodata também aceita um único valor que pode ser designado para cada " 16921"banda pedida. " 16922 16923#. Tag: para 16924#: reference_raster.xml:7024 16925#, no-c-format 16926msgid "" 16927"In all variants, if no band number is specified band 1 is assumed. If you " 16928"need an intersection between a raster and geometry that returns a raster, " 16929"refer to <xref linkend=\"RT_ST_Clip\"/>." 16930msgstr "" 16931"Em todas as variantes, se nenhum número de banda for especificado, a banda 1 " 16932"é assumida. Se precisar de uma interseção entre um raster e uma geometria " 16933"que retorna um raster, recorra a <xref linkend=\"RT_ST_Clip\"/>." 16934 16935#. Tag: para 16936#: reference_raster.xml:7029 16937#, no-c-format 16938msgid "" 16939"To get more control on the resulting extent or on what to return when " 16940"encountering a nodata value, use the two rasters version of <xref linkend=" 16941"\"RT_ST_MapAlgebraExpr2\"/>." 16942msgstr "" 16943"Para ter mais controle na extensão resultante ou no que retorna quando " 16944"encontra um valor nodata, use a versão de dois raster da <xref linkend=" 16945"\"RT_ST_MapAlgebraExpr2\"/>." 16946 16947#. Tag: para 16948#: reference_raster.xml:7035 16949#, no-c-format 16950msgid "" 16951"To compute the intersection of a raster band with a geometry in raster " 16952"space, use <xref linkend=\"RT_ST_Clip\"/>. ST_Clip works on multiple bands " 16953"rasters and does not return a band corresponding to the rasterized geometry." 16954msgstr "" 16955"Para calcular a interseção de uma banda raster com uma geometria em um " 16956"espaço raster, use <xref linkend=\"RT_ST_Clip\"/>. ST_Clip funciona em " 16957"várias bandas rasters e não retorna uma banda correspondente para uma " 16958"geometria rasterizada. " 16959 16960#. Tag: para 16961#: reference_raster.xml:7041 16962#, fuzzy, no-c-format 16963msgid "" 16964"ST_Intersection should be used in conjunction with <xref linkend=" 16965"\"RT_ST_Intersects\"/> and an index on the raster column and/or the geometry " 16966"column." 16967msgstr "" 16968"A ST_Intersection deveria ser usada em conjunto com a ST_Intersects e um " 16969"índice na coluna raster e/ou na coluna geométrica. " 16970 16971#. Tag: para 16972#: reference_raster.xml:7046 16973#, no-c-format 16974msgid "" 16975"Enhanced: 2.0.0 - Intersection in the raster space was introduced. In " 16976"earlier pre-2.0.0 versions, only intersection performed in vector space were " 16977"supported." 16978msgstr "" 16979"Melhorias: 2.0.0 - Interseção no espaço raster foi introduzida. Nas versões " 16980"anteriores pre-2.0.0, somente a interseção apresentada no espaço do vetor " 16981"era suportada. " 16982 16983#. Tag: title 16984#: reference_raster.xml:7052 16985#, no-c-format 16986msgid "Examples: Geometry, Raster -- resulting in geometry vals" 16987msgstr "Exemplos: Geometria, Raster -- resultando em geometria vals" 16988 16989#. Tag: programlisting 16990#: reference_raster.xml:7054 16991#, no-c-format 16992msgid "" 16993"SELECT\n" 16994" foo.rid,\n" 16995" foo.gid,\n" 16996" ST_AsText((foo.geomval).geom) As geomwkt,\n" 16997" (foo.geomval).val\n" 16998"FROM (\n" 16999" SELECT\n" 17000" A.rid,\n" 17001" g.gid,\n" 17002" ST_Intersection(A.rast, g.geom) As geomval\n" 17003" FROM dummy_rast AS A\n" 17004" CROSS JOIN (\n" 17005" VALUES\n" 17006" (1, ST_Point(3427928, 5793243.85) ),\n" 17007" (2, ST_GeomFromText('LINESTRING(3427927.85 " 17008"5793243.75,3427927.8 5793243.75,3427927.8 5793243.8)')),\n" 17009" (3, ST_GeomFromText('LINESTRING(1 2, 3 4)'))\n" 17010" ) As g(gid,geom)\n" 17011" WHERE A.rid = 2\n" 17012") As foo;\n" 17013"\n" 17014" rid | gid | " 17015"geomwkt " 17016"| val\n" 17017"-----+-----" 17018"+---------------------------------------------------------------------------------------------\n" 17019" 2 | 1 | POINT(3427928 " 17020"5793243.85) " 17021"| 249\n" 17022" 2 | 1 | POINT(3427928 " 17023"5793243.85) " 17024"| 253\n" 17025" 2 | 2 | POINT(3427927.85 " 17026"5793243.75) | " 17027"254\n" 17028" 2 | 2 | POINT(3427927.8 " 17029"5793243.8) " 17030"| 251\n" 17031" 2 | 2 | POINT(3427927.8 " 17032"5793243.8) " 17033"| 253\n" 17034" 2 | 2 | LINESTRING(3427927.8 5793243.75,3427927.8 5793243.8) | " 17035"252\n" 17036" 2 | 2 | MULTILINESTRING((3427927.8 5793243.8,3427927.8 5793243.75),...) " 17037"| 250\n" 17038" 2 | 3 | GEOMETRYCOLLECTION EMPTY" 17039msgstr "" 17040"SELECT\n" 17041" foo.rid,\n" 17042" foo.gid,\n" 17043" ST_AsText((foo.geomval).geom) As geomwkt,\n" 17044" (foo.geomval).val\n" 17045"FROM (\n" 17046" SELECT\n" 17047" A.rid,\n" 17048" g.gid,\n" 17049" ST_Intersection(A.rast, g.geom) As geomval\n" 17050" FROM dummy_rast AS A\n" 17051" CROSS JOIN (\n" 17052" VALUES\n" 17053" (1, ST_Point(3427928, 5793243.85) ),\n" 17054" (2, ST_GeomFromText('LINESTRING(3427927.85 " 17055"5793243.75,3427927.8 5793243.75,3427927.8 5793243.8)')),\n" 17056" (3, ST_GeomFromText('LINESTRING(1 2, 3 4)'))\n" 17057" ) As g(gid,geom)\n" 17058" WHERE A.rid = 2\n" 17059") As foo;\n" 17060"\n" 17061" rid | gid | " 17062"geomwkt " 17063"| val\n" 17064"-----+-----" 17065"+---------------------------------------------------------------------------------------------\n" 17066" 2 | 1 | POINT(3427928 " 17067"5793243.85) " 17068"| 249\n" 17069" 2 | 1 | POINT(3427928 " 17070"5793243.85) " 17071"| 253\n" 17072" 2 | 2 | POINT(3427927.85 " 17073"5793243.75) | " 17074"254\n" 17075" 2 | 2 | POINT(3427927.8 " 17076"5793243.8) " 17077"| 251\n" 17078" 2 | 2 | POINT(3427927.8 " 17079"5793243.8) " 17080"| 253\n" 17081" 2 | 2 | LINESTRING(3427927.8 5793243.75,3427927.8 5793243.8) | " 17082"252\n" 17083" 2 | 2 | MULTILINESTRING((3427927.8 5793243.8,3427927.8 5793243.75),...) " 17084"| 250\n" 17085" 2 | 3 | GEOMETRYCOLLECTION EMPTY" 17086 17087#. Tag: para 17088#: reference_raster.xml:7059 17089#, no-c-format 17090msgid "" 17091", <xref linkend=\"RT_ST_Intersects\"/>, <xref linkend=" 17092"\"RT_ST_MapAlgebraExpr2\"/>, <xref linkend=\"RT_ST_Clip\"/>, <xref linkend=" 17093"\"ST_AsText\"/>" 17094msgstr "" 17095", <xref linkend=\"RT_ST_Intersects\"/>, <xref linkend=" 17096"\"RT_ST_MapAlgebraExpr2\"/>, <xref linkend=\"RT_ST_Clip\"/>, <xref linkend=" 17097"\"ST_AsText\"/>" 17098 17099#. Tag: refname 17100#: reference_raster.xml:7071 17101#, fuzzy, no-c-format 17102msgid "ST_MapAlgebra (callback function version)" 17103msgstr "Funções retorno de mapa algébrico embutido" 17104 17105#. Tag: refpurpose 17106#: reference_raster.xml:7072 17107#, no-c-format 17108msgid "" 17109"Callback function version - Returns a one-band raster given one or more " 17110"input rasters, band indexes and one user-specified callback function." 17111msgstr "" 17112"Versão função retorno - Retorna um raster de uma banda dado um ou mais " 17113"rasters de entrada, os índices e uma função retorno de um usuário " 17114"específico. " 17115 17116#. Tag: funcsynopsis 17117#: reference_raster.xml:7078 17118#, no-c-format 17119msgid "" 17120"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17121"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></" 17122"paramdef> <paramdef><type>regprocedure </type> <parameter>callbackfunc</" 17123"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 17124"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17125"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17126"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17127"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17128"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> " 17129"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</" 17130"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 17131"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> " 17132"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17133"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 17134"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> " 17135"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17136"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17137"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17138"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> " 17139"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</" 17140"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 17141"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt" 17142"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> " 17143"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC " 17144"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> " 17145"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17146"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 17147"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 17148"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17149"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17150"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17151"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> " 17152"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</" 17153"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 17154"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt" 17155"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> " 17156"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC " 17157"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> " 17158"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17159"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 17160"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> " 17161"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 17162"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> " 17163"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17164"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17165"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17166"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17167"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17168"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17169"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> " 17170"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</" 17171"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 17172"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> " 17173"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17174"<paramdef><type>nband</type> <parameter>integer</parameter></paramdef> " 17175"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17176"paramdef> <paramdef><type>float8[] </type> <parameter>mask</parameter></" 17177"paramdef> <paramdef><type>boolean </type> <parameter>weighted</parameter></" 17178"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17179"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17180"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17181"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17182"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17183"\"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></" 17184"paramdef> </funcprototype>" 17185msgstr "" 17186"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17187"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></" 17188"paramdef> <paramdef><type>regprocedure </type> <parameter>callbackfunc</" 17189"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 17190"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17191"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17192"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17193"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17194"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> " 17195"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</" 17196"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 17197"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> " 17198"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17199"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 17200"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> " 17201"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17202"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17203"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17204"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> " 17205"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</" 17206"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 17207"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt" 17208"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> " 17209"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC " 17210"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> " 17211"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17212"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 17213"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 17214"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17215"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17216"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17217"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> " 17218"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</" 17219"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> " 17220"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt" 17221"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> " 17222"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC " 17223"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> " 17224"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17225"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 17226"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> " 17227"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 17228"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> " 17229"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17230"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17231"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17232"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17233"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17234"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17235"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> " 17236"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</" 17237"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> " 17238"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> " 17239"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 17240"<paramdef><type>nband</type> <parameter>integer</parameter></paramdef> " 17241"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></" 17242"paramdef> <paramdef><type>float8[] </type> <parameter>mask</parameter></" 17243"paramdef> <paramdef><type>boolean </type> <parameter>weighted</parameter></" 17244"paramdef> <paramdef choice=\"opt\"><type>text </type> " 17245"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt" 17246"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></" 17247"paramdef> <paramdef choice=\"opt\"><type>raster </type> " 17248"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt" 17249"\"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></" 17250"paramdef> </funcprototype>" 17251 17252#. Tag: para 17253#: reference_raster.xml:7150 17254#, no-c-format 17255msgid "" 17256"Returns a one-band raster given one or more input rasters, band indexes and " 17257"one user-specified callback function." 17258msgstr "" 17259"Retorna um raster de uma banda dado um ou mais rasters de entrada, os " 17260"índices e uma função retorno de um usuário específico. " 17261 17262#. Tag: term 17263#: reference_raster.xml:7156 17264#, no-c-format 17265msgid "rast,rast1,rast2, rastbandargset" 17266msgstr "rast,rast1,rast2, rastbandargset" 17267 17268#. Tag: para 17269#: reference_raster.xml:7158 17270#, no-c-format 17271msgid "Rasters on which the map algebra process is evaluated." 17272msgstr "Rasters onde o processo do mapa algébrico é avaliado. " 17273 17274#. Tag: para 17275#: reference_raster.xml:7159 17276#, no-c-format 17277msgid "" 17278"<varname>rastbandargset</varname> allows the use of a map algebra operation " 17279"on many rasters and/or many bands. See example Variant 1." 17280msgstr "" 17281"<varname>rastbandargset</varname> permite o uso de uma operação do mapa " 17282"algébrico em vários rasters e/ou bandas. Veja o exemplo da Variante 1. " 17283 17284#. Tag: term 17285#: reference_raster.xml:7164 17286#, no-c-format 17287msgid "nband, nband1, nband2" 17288msgstr "nband, nband1, nband2" 17289 17290#. Tag: para 17291#: reference_raster.xml:7166 17292#, no-c-format 17293msgid "" 17294"Band numbers of the raster to be evaluated. nband can be an integer or " 17295"integer[] denoting the bands. nband1 is band on rast1 and nband2 is band on " 17296"rast2 for hte 2 raster/2band case." 17297msgstr "" 17298"Os números de banda do raster a ser avaliado. nband pode ser um inteiro ou " 17299"inteiro [] indicando as bandas. nband1 é uma banda no rast1 e nband2 é banda " 17300"no rast2 para caso hte 2 raster/2band." 17301 17302#. Tag: term 17303#: reference_raster.xml:7172 17304#, no-c-format 17305msgid "callbackfunc" 17306msgstr "callbackfunc" 17307 17308#. Tag: para 17309#: reference_raster.xml:7174 17310#, no-c-format 17311msgid "" 17312"The <varname>callbackfunc</varname> parameter must be the name and signature " 17313"of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL " 17314"function example is: <programlisting>\n" 17315"CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], " 17316"position integer[][], VARIADIC userargs text[])\n" 17317" RETURNS double precision\n" 17318" AS $$\n" 17319" BEGIN\n" 17320" RETURN 0;\n" 17321" END;\n" 17322" $$ LANGUAGE 'plpgsql' IMMUTABLE;\n" 17323" </" 17324"programlisting> The <varname>callbackfunc</varname> must have three " 17325"arguments: a 3-dimension double precision array, a 2-dimension integer array " 17326"and a variadic 1-dimension text array. The first argument <varname>value</" 17327"varname> is the set of values (as double precision) from all input rasters. " 17328"The three dimensions (where indexes are 1-based) are: raster #, row y, " 17329"column x. The second argument <varname>position</varname> is the set of " 17330"pixel positions from the output raster and input rasters. The outer " 17331"dimension (where indexes are 0-based) is the raster #. The position at outer " 17332"dimension index 0 is the output raster's pixel position. For each outer " 17333"dimension, there are two elements in the inner dimension for X and Y. The " 17334"third argument <varname>userargs</varname> is for passing through any user-" 17335"specified arguments." 17336msgstr "" 17337"The <varname>callbackfunc</varname> parameter must be the name and signature " 17338"of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL " 17339"function example is: <programlisting>\n" 17340"CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], " 17341"position integer[][], VARIADIC userargs text[])\n" 17342" RETURNS double precision\n" 17343" AS $$\n" 17344" BEGIN\n" 17345" RETURN 0;\n" 17346" END;\n" 17347" $$ LANGUAGE 'plpgsql' IMMUTABLE;\n" 17348" </" 17349"programlisting> The <varname>callbackfunc</varname> must have three " 17350"arguments: a 3-dimension double precision array, a 2-dimension integer array " 17351"and a variadic 1-dimension text array. The first argument <varname>value</" 17352"varname> is the set of values (as double precision) from all input rasters. " 17353"The three dimensions (where indexes are 1-based) are: raster #, row y, " 17354"column x. The second argument <varname>position</varname> is the set of " 17355"pixel positions from the output raster and input rasters. The outer " 17356"dimension (where indexes are 0-based) is the raster #. The position at outer " 17357"dimension index 0 is the output raster's pixel position. For each outer " 17358"dimension, there are two elements in the inner dimension for X and Y. The " 17359"third argument <varname>userargs</varname> is for passing through any user-" 17360"specified arguments." 17361 17362#. Tag: para 17363#: reference_raster.xml:7181 17364#, no-c-format 17365msgid "" 17366"Passing a <type>regprocedure</type> argument to a SQL function requires the " 17367"full function signature to be passed, then cast to a <type>regprocedure</" 17368"type> type. To pass the above example PL/pgSQL function as an argument, the " 17369"SQL for the argument is: <programlisting>\n" 17370"'sample_callbackfunc(double precision[], integer[], text[])'::regprocedure\n" 17371" </" 17372"programlisting> Note that the argument contains the name of the function, " 17373"the types of the function arguments, quotes around the name and argument " 17374"types, and a cast to a <type>regprocedure</type>." 17375msgstr "" 17376"Passing a <type>regprocedure</type> argument to a SQL function requires the " 17377"full function signature to be passed, then cast to a <type>regprocedure</" 17378"type> type. To pass the above example PL/pgSQL function as an argument, the " 17379"SQL for the argument is: <programlisting>\n" 17380"'sample_callbackfunc(double precision[], integer[], text[])'::regprocedure\n" 17381" </" 17382"programlisting> Note that the argument contains the name of the function, " 17383"the types of the function arguments, quotes around the name and argument " 17384"types, and a cast to a <type>regprocedure</type>." 17385 17386#. Tag: term 17387#: reference_raster.xml:7193 17388#, no-c-format 17389msgid "mask" 17390msgstr "mask" 17391 17392#. Tag: para 17393#: reference_raster.xml:7195 17394#, no-c-format 17395msgid "" 17396"An n-dimensional array (matrix) of numbers used to filter what cells get " 17397"passed to map algebra call-back function. 0 means a neighbor cell value " 17398"should be treated as no-data and 1 means value should be treated as data. If " 17399"weight is set to true, then the values, are used as multipliers to multiple " 17400"the pixel value of that value in the neighborhood position." 17401msgstr "" 17402 17403#. Tag: term 17404#: reference_raster.xml:7202 17405#, no-c-format 17406msgid "weighted" 17407msgstr "weighted" 17408 17409#. Tag: para 17410#: reference_raster.xml:7204 17411#, no-c-format 17412msgid "" 17413"boolean (true/false) to denote if a mask value should be weighted " 17414"(multiplied by original value) or not (only applies to proto that takes a " 17415"mask)." 17416msgstr "" 17417"booleano (verdadeiro/falso) para indicar se o valor da máscara deveria ser " 17418"pesado (multiplicado pelo valor original) ou não (só se aplica para " 17419"protocolo que usa máscara). " 17420 17421#. Tag: term 17422#: reference_raster.xml:7211 reference_raster.xml:7536 17423#: reference_raster.xml:7831 reference_raster.xml:8385 17424#, no-c-format 17425msgid "pixeltype" 17426msgstr "pixeltype" 17427 17428#. Tag: para 17429#: reference_raster.xml:7213 17430#, no-c-format 17431msgid "" 17432"If <varname>pixeltype</varname> is passed in, the one band of the new raster " 17433"will be of that pixeltype. If pixeltype is passed NULL or left out, the new " 17434"raster band will have the same pixeltype as the specified band of the first " 17435"raster (for extent types: INTERSECTION, UNION, FIRST, CUSTOM) or the " 17436"specified band of the appropriate raster (for extent types: SECOND, LAST). " 17437"If in doubt, always specify <varname>pixeltype</varname>." 17438msgstr "" 17439"Se um <varname>pixeltype</varname> for passado, a banda do novo raster será " 17440"desse tipo de pixel. Se ele passar NULO ou for deixado, a nova banda raster " 17441"terá o mesmo tipo de pixel da banda especificada do primeiro raster (para " 17442"tipos de extensão: INTERSEÇÃO, UNIÃO, PRIMEIRO, CUSTOM) ou da banda " 17443"específica do raster apropriado (para tipos de extensão: SEGUNDO, ÚLTIMO). " 17444"Se estiver em dúvida, sempre especifique <varname>pixeltype</varname>. " 17445 17446#. Tag: para 17447#: reference_raster.xml:7216 17448#, no-c-format 17449msgid "" 17450"The resulting pixel type of the output raster must be one listed in <xref " 17451"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL." 17452msgstr "" 17453"O tipo de pixel resultante do raster de saída devem ser listados em <xref " 17454"linkend=\"RT_ST_BandPixelType\"/> ou deixado de fora ou NULO. " 17455 17456#. Tag: term 17457#: reference_raster.xml:7223 reference_raster.xml:7544 17458#: reference_raster.xml:7840 17459#, no-c-format 17460msgid "extenttype" 17461msgstr "extenttype" 17462 17463#. Tag: para 17464#: reference_raster.xml:7225 17465#, no-c-format 17466msgid "" 17467"Possible values are INTERSECTION (default), UNION, FIRST (default for one " 17468"raster variants), SECOND, LAST, CUSTOM." 17469msgstr "" 17470"Possíveis valores são INTERSEÇÃO (padrão), UNIÃO, PRIMEIRO (padrão para uma " 17471"variante raster), SEGUNDO, ÚLTIMO, CUSTOM. " 17472 17473#. Tag: term 17474#: reference_raster.xml:7232 17475#, no-c-format 17476msgid "customextent" 17477msgstr "customextent" 17478 17479#. Tag: para 17480#: reference_raster.xml:7234 17481#, no-c-format 17482msgid "" 17483"If <varname>extentype</varname> is CUSTOM, a raster must be provided for " 17484"<varname>customextent</varname>. See example 4 of Variant 1." 17485msgstr "" 17486"Se <varname>extentype</varname> for CUSTOM, um raster deve ser fornecido " 17487"para <varname>customextent</varname>. Veja o exemplo 4 de Variante 1. " 17488 17489#. Tag: term 17490#: reference_raster.xml:7241 17491#, no-c-format 17492msgid "distancex" 17493msgstr "distancex" 17494 17495#. Tag: para 17496#: reference_raster.xml:7243 17497#, no-c-format 17498msgid "" 17499"The distance in pixels from the reference cell in x direction. So width of " 17500"resulting matrix would be <code>2*distancex + 1</code>.If not specified only " 17501"the reference cell is considered (neighborhood of 0)." 17502msgstr "" 17503 17504#. Tag: term 17505#: reference_raster.xml:7250 17506#, no-c-format 17507msgid "distancey" 17508msgstr "distancey" 17509 17510#. Tag: para 17511#: reference_raster.xml:7252 17512#, no-c-format 17513msgid "" 17514"The distance in pixels from reference cell in y direction. Height of " 17515"resulting matrix would be <code>2*distancey + 1</code> .If not specified " 17516"only the reference cell is considered (neighborhood of 0)." 17517msgstr "" 17518"A distância em pixeis da célula de referência na direção y. A altura da " 17519"matriz resultante seria <code>2*distancey + 1</code>. Se não especificada, " 17520"apenas a célula referência é considerada (vizinhança de 0). " 17521 17522#. Tag: term 17523#: reference_raster.xml:7259 17524#, no-c-format 17525msgid "userargs" 17526msgstr "userargs" 17527 17528#. Tag: para 17529#: reference_raster.xml:7261 17530#, no-c-format 17531msgid "" 17532"The third argument to the <varname>callbackfunc</varname> is a " 17533"<type>variadic text</type> array. All trailing text arguments are passed " 17534"through to the specified <varname>callbackfunc</varname>, and are contained " 17535"in the <varname>userargs</varname> argument." 17536msgstr "" 17537"O terceiro argumento para a <varname>callbackfunc</varname> é um arranjo " 17538"<type>variadic text</type>. Todos os argumentos de caminho de texto são " 17539"passados pelo <varname>callbackfunc</varname> especificado, e são contados " 17540"no argumento <varname>userargs</varname>. " 17541 17542#. Tag: para 17543#: reference_raster.xml:7269 reference_raster.xml:8160 17544#: reference_raster.xml:8279 17545#, no-c-format 17546msgid "" 17547"For more information about the VARIADIC keyword, please refer to the " 17548"PostgreSQL documentation and the \"SQL Functions with Variable Numbers of " 17549"Arguments\" section of <ulink url=\"http://www.postgresql.org/docs/current/" 17550"static/xfunc-sql.html\">Query Language (SQL) Functions</ulink>." 17551msgstr "" 17552"Para maiores informações sobre a palavra-chave VARIADIC, por favor recorra à " 17553"documentação do PostgreSQL e a seção \"SQL Functions with Variable Numbers " 17554"of Arguments\" do <ulink url=\"http://www.postgresql.org/docs/current/static/" 17555"xfunc-sql.html\">Query Language (SQL) Functions</ulink>." 17556 17557#. Tag: para 17558#: reference_raster.xml:7275 17559#, no-c-format 17560msgid "" 17561"The <type>text[]</type> argument to the <varname>callbackfunc</varname> is " 17562"required, regardless of whether you choose to pass any arguments to the " 17563"callback function for processing or not." 17564msgstr "" 17565"O argumento <type>text[]</type> para a <varname>callbackfunc</varname> é " 17566"requerido, independente de onde você escolher passar qualquer argumento para " 17567"a função retorno para processar ou não. " 17568 17569#. Tag: para 17570#: reference_raster.xml:7280 17571#, no-c-format 17572msgid "" 17573"Variant 1 accepts an array of <varname>rastbandarg</varname> allowing the " 17574"use of a map algebra operation on many rasters and/or many bands. See " 17575"example Variant 1." 17576msgstr "" 17577"A Variante 1 aceita um arranjo de <varname>rastbandarg</varname> permitindo " 17578"o uso da operação de mapa algébrico em vários rasters e/ou bandas. Veja o " 17579"exemplo de Variante 1. " 17580 17581#. Tag: para 17582#: reference_raster.xml:7284 17583#, no-c-format 17584msgid "" 17585"Variants 2 and 3 operate upon one or more bands of one raster. See example " 17586"Variant 2 and 3." 17587msgstr "" 17588"As Variantes 2 e 3 operam em uma ou mais bandas de um raster. Veja os " 17589"exemplos das Variantes 2 e 3. " 17590 17591#. Tag: para 17592#: reference_raster.xml:7288 17593#, no-c-format 17594msgid "" 17595"Variant 4 operate upon two rasters with one band per raster. See example " 17596"Variant 4." 17597msgstr "" 17598"A Variante 4 opera em dois raster com uma banda por raster. Veja o exemplo " 17599"da Variante 4." 17600 17601#. Tag: para 17602#: reference_raster.xml:7292 17603#, no-c-format 17604msgid "Availability: 2.2.0: Ability to add a mask" 17605msgstr "Disponibilidade: 2.2.0: Habilidade de adicionar máscara" 17606 17607#. Tag: para 17608#: reference_raster.xml:7300 reference_raster.xml:7322 17609#, no-c-format 17610msgid "One raster, one band" 17611msgstr "Um raster, uma banda" 17612 17613#. Tag: programlisting 17614#: reference_raster.xml:7301 17615#, no-c-format 17616msgid "" 17617"WITH foo AS (\n" 17618" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17619"0, 0), 1, '16BUI', 1, 0) AS rast\n" 17620")\n" 17621"SELECT\n" 17622" ST_MapAlgebra(\n" 17623" ARRAY[ROW(rast, 1)]::rastbandarg[],\n" 17624" 'sample_callbackfunc(double precision[], int[], text[])'::" 17625"regprocedure\n" 17626" ) AS rast\n" 17627"FROM foo" 17628msgstr "" 17629"WITH foo AS (\n" 17630" SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17631"0, 0), 1, '16BUI', 1, 0) AS rast\n" 17632")\n" 17633"SELECT\n" 17634" ST_MapAlgebra(\n" 17635" ARRAY[ROW(rast, 1)]::rastbandarg[],\n" 17636" 'sample_callbackfunc(double precision[], int[], text[])'::" 17637"regprocedure\n" 17638" ) AS rast\n" 17639"FROM foo" 17640 17641#. Tag: para 17642#: reference_raster.xml:7303 reference_raster.xml:7319 17643#, no-c-format 17644msgid "One raster, several bands" 17645msgstr "Um raster, várias bandas" 17646 17647#. Tag: programlisting 17648#: reference_raster.xml:7304 17649#, no-c-format 17650msgid "" 17651"WITH foo AS (\n" 17652" SELECT 1 AS rid, " 17653"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17654"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 17655")\n" 17656"SELECT\n" 17657" ST_MapAlgebra(\n" 17658" ARRAY[ROW(rast, 3), ROW(rast, 1), ROW(rast, 3), ROW(rast, " 17659"2)]::rastbandarg[],\n" 17660" 'sample_callbackfunc(double precision[], int[], text[])'::" 17661"regprocedure\n" 17662" ) AS rast\n" 17663"FROM foo" 17664msgstr "" 17665"WITH foo AS (\n" 17666" SELECT 1 AS rid, " 17667"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17668"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 17669")\n" 17670"SELECT\n" 17671" ST_MapAlgebra(\n" 17672" ARRAY[ROW(rast, 3), ROW(rast, 1), ROW(rast, 3), ROW(rast, " 17673"2)]::rastbandarg[],\n" 17674" 'sample_callbackfunc(double precision[], int[], text[])'::" 17675"regprocedure\n" 17676" ) AS rast\n" 17677"FROM foo" 17678 17679#. Tag: para 17680#: reference_raster.xml:7306 17681#, no-c-format 17682msgid "Several rasters, several bands" 17683msgstr "Vŕios rasters, várias bandas" 17684 17685#. Tag: programlisting 17686#: reference_raster.xml:7307 17687#, no-c-format 17688msgid "" 17689"WITH foo AS (\n" 17690" SELECT 1 AS rid, " 17691"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17692"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION " 17693"ALL\n" 17694" SELECT 2 AS rid, " 17695"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, " 17696"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n" 17697")\n" 17698"SELECT\n" 17699" ST_MapAlgebra(\n" 17700" ARRAY[ROW(t1.rast, 3), ROW(t2.rast, 1), ROW(t2.rast, 3), " 17701"ROW(t1.rast, 2)]::rastbandarg[],\n" 17702" 'sample_callbackfunc(double precision[], int[], text[])'::" 17703"regprocedure\n" 17704" ) AS rast\n" 17705"FROM foo t1\n" 17706"CROSS JOIN foo t2\n" 17707"WHERE t1.rid = 1\n" 17708" AND t2.rid = 2" 17709msgstr "" 17710"WITH foo AS (\n" 17711" SELECT 1 AS rid, " 17712"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17713"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION " 17714"ALL\n" 17715" SELECT 2 AS rid, " 17716"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, " 17717"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n" 17718")\n" 17719"SELECT\n" 17720" ST_MapAlgebra(\n" 17721" ARRAY[ROW(t1.rast, 3), ROW(t2.rast, 1), ROW(t2.rast, 3), " 17722"ROW(t1.rast, 2)]::rastbandarg[],\n" 17723" 'sample_callbackfunc(double precision[], int[], text[])'::" 17724"regprocedure\n" 17725" ) AS rast\n" 17726"FROM foo t1\n" 17727"CROSS JOIN foo t2\n" 17728"WHERE t1.rid = 1\n" 17729" AND t2.rid = 2" 17730 17731#. Tag: para 17732#: reference_raster.xml:7309 17733#, no-c-format 17734msgid "" 17735"Complete example of tiles of a coverage with neighborhood. This query only " 17736"works with PostgreSQL 9.1 or higher." 17737msgstr "" 17738"Exemplo completo de tiles de uma cobertura com vizinhança. Esta consulta " 17739"funciona apenas com PostgreSQL 9.1 ou superior. " 17740 17741#. Tag: programlisting 17742#: reference_raster.xml:7310 17743#, no-c-format 17744msgid "" 17745"WITH foo AS (\n" 17746" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17747"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 17748" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), " 17749"1, '16BUI', 2, 0) AS rast UNION ALL\n" 17750" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), " 17751"1, '16BUI', 3, 0) AS rast UNION ALL\n" 17752"\n" 17753" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, " 17754"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 17755" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, " 17756"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 17757" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, " 17758"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 17759"\n" 17760" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, " 17761"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 17762" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, " 17763"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 17764" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, " 17765"0), 1, '16BUI', 300, 0) AS rast\n" 17766")\n" 17767"SELECT\n" 17768" t1.rid,\n" 17769" ST_MapAlgebra(\n" 17770" ARRAY[ROW(ST_Union(t2.rast), 1)]::rastbandarg[],\n" 17771" 'sample_callbackfunc(double precision[], int[], text[])'::" 17772"regprocedure,\n" 17773" '32BUI',\n" 17774" 'CUSTOM', t1.rast,\n" 17775" 1, 1\n" 17776" ) AS rast\n" 17777"FROM foo t1\n" 17778"CROSS JOIN foo t2\n" 17779"WHERE t1.rid = 4\n" 17780" AND t2.rid BETWEEN 0 AND 8\n" 17781" AND ST_Intersects(t1.rast, t2.rast)\n" 17782"GROUP BY t1.rid, t1.rast" 17783msgstr "" 17784"WITH foo AS (\n" 17785" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17786"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 17787" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), " 17788"1, '16BUI', 2, 0) AS rast UNION ALL\n" 17789" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), " 17790"1, '16BUI', 3, 0) AS rast UNION ALL\n" 17791"\n" 17792" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, " 17793"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 17794" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, " 17795"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 17796" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, " 17797"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 17798"\n" 17799" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, " 17800"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 17801" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, " 17802"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 17803" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, " 17804"0), 1, '16BUI', 300, 0) AS rast\n" 17805")\n" 17806"SELECT\n" 17807" t1.rid,\n" 17808" ST_MapAlgebra(\n" 17809" ARRAY[ROW(ST_Union(t2.rast), 1)]::rastbandarg[],\n" 17810" 'sample_callbackfunc(double precision[], int[], text[])'::" 17811"regprocedure,\n" 17812" '32BUI',\n" 17813" 'CUSTOM', t1.rast,\n" 17814" 1, 1\n" 17815" ) AS rast\n" 17816"FROM foo t1\n" 17817"CROSS JOIN foo t2\n" 17818"WHERE t1.rid = 4\n" 17819" AND t2.rid BETWEEN 0 AND 8\n" 17820" AND ST_Intersects(t1.rast, t2.rast)\n" 17821"GROUP BY t1.rid, t1.rast" 17822 17823#. Tag: para 17824#: reference_raster.xml:7312 17825#, no-c-format 17826msgid "" 17827"Example like the prior one for tiles of a coverage with neighborhood but " 17828"works with PostgreSQL 9.0." 17829msgstr "Exemplo como o anterior, mas funciona com o PostgreSQL 9.0." 17830 17831#. Tag: programlisting 17832#: reference_raster.xml:7313 17833#, no-c-format 17834msgid "" 17835"WITH src AS (\n" 17836" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17837"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 17838" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), " 17839"1, '16BUI', 2, 0) AS rast UNION ALL\n" 17840" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), " 17841"1, '16BUI', 3, 0) AS rast UNION ALL\n" 17842"\n" 17843" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, " 17844"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 17845" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, " 17846"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 17847" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, " 17848"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 17849"\n" 17850" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, " 17851"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 17852" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, " 17853"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 17854" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, " 17855"0), 1, '16BUI', 300, 0) AS rast\n" 17856")\n" 17857"WITH foo AS (\n" 17858" SELECT\n" 17859" t1.rid,\n" 17860" ST_Union(t2.rast) AS rast\n" 17861" FROM src t1\n" 17862" JOIN src t2\n" 17863" ON ST_Intersects(t1.rast, t2.rast)\n" 17864" AND t2.rid BETWEEN 0 AND 8\n" 17865" WHERE t1.rid = 4\n" 17866" GROUP BY t1.rid\n" 17867"), bar AS (\n" 17868" SELECT\n" 17869" t1.rid,\n" 17870" ST_MapAlgebra(\n" 17871" ARRAY[ROW(t2.rast, 1)]::rastbandarg[],\n" 17872" 'raster_nmapalgebra_test(double precision[], int[], " 17873"text[])'::regprocedure,\n" 17874" '32BUI',\n" 17875" 'CUSTOM', t1.rast,\n" 17876" 1, 1\n" 17877" ) AS rast\n" 17878" FROM src t1\n" 17879" JOIN foo t2\n" 17880" ON t1.rid = t2.rid\n" 17881")\n" 17882"SELECT\n" 17883" rid,\n" 17884" (ST_Metadata(rast)),\n" 17885" (ST_BandMetadata(rast, 1)),\n" 17886" ST_Value(rast, 1, 1, 1)\n" 17887"FROM bar;" 17888msgstr "" 17889"WITH src AS (\n" 17890" SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, " 17891"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n" 17892" SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), " 17893"1, '16BUI', 2, 0) AS rast UNION ALL\n" 17894" SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), " 17895"1, '16BUI', 3, 0) AS rast UNION ALL\n" 17896"\n" 17897" SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, " 17898"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n" 17899" SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, " 17900"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n" 17901" SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, " 17902"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n" 17903"\n" 17904" SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, " 17905"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n" 17906" SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, " 17907"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n" 17908" SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, " 17909"0), 1, '16BUI', 300, 0) AS rast\n" 17910")\n" 17911"WITH foo AS (\n" 17912" SELECT\n" 17913" t1.rid,\n" 17914" ST_Union(t2.rast) AS rast\n" 17915" FROM src t1\n" 17916" JOIN src t2\n" 17917" ON ST_Intersects(t1.rast, t2.rast)\n" 17918" AND t2.rid BETWEEN 0 AND 8\n" 17919" WHERE t1.rid = 4\n" 17920" GROUP BY t1.rid\n" 17921"), bar AS (\n" 17922" SELECT\n" 17923" t1.rid,\n" 17924" ST_MapAlgebra(\n" 17925" ARRAY[ROW(t2.rast, 1)]::rastbandarg[],\n" 17926" 'raster_nmapalgebra_test(double precision[], int[], " 17927"text[])'::regprocedure,\n" 17928" '32BUI',\n" 17929" 'CUSTOM', t1.rast,\n" 17930" 1, 1\n" 17931" ) AS rast\n" 17932" FROM src t1\n" 17933" JOIN foo t2\n" 17934" ON t1.rid = t2.rid\n" 17935")\n" 17936"SELECT\n" 17937" rid,\n" 17938" (ST_Metadata(rast)),\n" 17939" (ST_BandMetadata(rast, 1)),\n" 17940" ST_Value(rast, 1, 1, 1)\n" 17941"FROM bar;" 17942 17943#. Tag: title 17944#: reference_raster.xml:7317 17945#, no-c-format 17946msgid "Examples: Variants 2 and 3" 17947msgstr "Exemplos: Variantes 2 e 3" 17948 17949#. Tag: programlisting 17950#: reference_raster.xml:7320 17951#, no-c-format 17952msgid "" 17953"WITH foo AS (\n" 17954" SELECT 1 AS rid, " 17955"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17956"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 17957")\n" 17958"SELECT\n" 17959" ST_MapAlgebra(\n" 17960" rast, ARRAY[3, 1, 3, 2]::integer[],\n" 17961" 'sample_callbackfunc(double precision[], int[], text[])'::" 17962"regprocedure\n" 17963" ) AS rast\n" 17964"FROM foo" 17965msgstr "" 17966"WITH foo AS (\n" 17967" SELECT 1 AS rid, " 17968"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17969"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 17970")\n" 17971"SELECT\n" 17972" ST_MapAlgebra(\n" 17973" rast, ARRAY[3, 1, 3, 2]::integer[],\n" 17974" 'sample_callbackfunc(double precision[], int[], text[])'::" 17975"regprocedure\n" 17976" ) AS rast\n" 17977"FROM foo" 17978 17979#. Tag: programlisting 17980#: reference_raster.xml:7323 17981#, no-c-format 17982msgid "" 17983"WITH foo AS (\n" 17984" SELECT 1 AS rid, " 17985"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17986"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 17987")\n" 17988"SELECT\n" 17989" ST_MapAlgebra(\n" 17990" rast, 2,\n" 17991" 'sample_callbackfunc(double precision[], int[], text[])'::" 17992"regprocedure\n" 17993" ) AS rast\n" 17994"FROM foo" 17995msgstr "" 17996"WITH foo AS (\n" 17997" SELECT 1 AS rid, " 17998"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 17999"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n" 18000")\n" 18001"SELECT\n" 18002" ST_MapAlgebra(\n" 18003" rast, 2,\n" 18004" 'sample_callbackfunc(double precision[], int[], text[])'::" 18005"regprocedure\n" 18006" ) AS rast\n" 18007"FROM foo" 18008 18009#. Tag: title 18010#: reference_raster.xml:7327 18011#, no-c-format 18012msgid "Examples: Variant 4" 18013msgstr "Exemplos: Variante 4" 18014 18015#. Tag: para 18016#: reference_raster.xml:7329 18017#, no-c-format 18018msgid "Two rasters, two bands" 18019msgstr "Dois rasters, duas bandas" 18020 18021#. Tag: programlisting 18022#: reference_raster.xml:7330 18023#, no-c-format 18024msgid "" 18025"WITH foo AS (\n" 18026" SELECT 1 AS rid, " 18027"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 18028"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION " 18029"ALL\n" 18030" SELECT 2 AS rid, " 18031"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, " 18032"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n" 18033")\n" 18034"SELECT\n" 18035" ST_MapAlgebra(\n" 18036" t1.rast, 2,\n" 18037" t2.rast, 1,\n" 18038" 'sample_callbackfunc(double precision[], int[], text[])'::" 18039"regprocedure\n" 18040" ) AS rast\n" 18041"FROM foo t1\n" 18042"CROSS JOIN foo t2\n" 18043"WHERE t1.rid = 1\n" 18044" AND t2.rid = 2" 18045msgstr "" 18046"WITH foo AS (\n" 18047" SELECT 1 AS rid, " 18048"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 18049"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION " 18050"ALL\n" 18051" SELECT 2 AS rid, " 18052"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, " 18053"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n" 18054")\n" 18055"SELECT\n" 18056" ST_MapAlgebra(\n" 18057" t1.rast, 2,\n" 18058" t2.rast, 1,\n" 18059" 'sample_callbackfunc(double precision[], int[], text[])'::" 18060"regprocedure\n" 18061" ) AS rast\n" 18062"FROM foo t1\n" 18063"CROSS JOIN foo t2\n" 18064"WHERE t1.rid = 1\n" 18065" AND t2.rid = 2" 18066 18067#. Tag: title 18068#: reference_raster.xml:7335 18069#, no-c-format 18070msgid "Examples: Using Masks" 18071msgstr "Exemplos: Utilizando Máscaras" 18072 18073#. Tag: programlisting 18074#: reference_raster.xml:7336 18075#, no-c-format 18076msgid "" 18077"WITH foo AS (SELECT\n" 18078" ST_SetBandNoDataValue(\n" 18079"ST_SetValue(ST_SetValue(ST_AsRaster(\n" 18080" ST_Buffer(\n" 18081" ST_GeomFromText('LINESTRING(50 50,100 90,100 50)'), " 18082"5,'join=bevel'),\n" 18083" 200,200,ARRAY['8BUI'], ARRAY[100], ARRAY[0]), " 18084"ST_Buffer('POINT(70 70)'::geometry,10,'quad_segs=1') ,50),\n" 18085" 'LINESTRING(20 20, 100 100, 150 98)'::geometry,1),0) AS rast )\n" 18086"SELECT 'original' AS title, rast\n" 18087"FROM foo\n" 18088"UNION ALL\n" 18089"SELECT 'no mask mean value' AS title, " 18090"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::" 18091"regprocedure) AS rast\n" 18092"FROM foo\n" 18093"UNION ALL\n" 18094"SELECT 'mask only consider neighbors, exclude center' AS title, " 18095"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::" 18096"regprocedure,\n" 18097" '{{1,1,1}, {1,0,1}, {1,1,1}}'::double precision[], false) As rast\n" 18098"FROM foo\n" 18099"\n" 18100"UNION ALL\n" 18101"SELECT 'mask weighted only consider neighbors, exclude center multi otehr " 18102"pixel values by 2' AS title, ST_MapAlgebra(rast,1,'ST_mean4ma(double " 18103"precision[], int[], text[])'::regprocedure,\n" 18104" '{{2,2,2}, {2,0,2}, {2,2,2}}'::double precision[], true) As rast\n" 18105"FROM foo;" 18106msgstr "" 18107"WITH foo AS (SELECT\n" 18108" ST_SetBandNoDataValue(\n" 18109"ST_SetValue(ST_SetValue(ST_AsRaster(\n" 18110" ST_Buffer(\n" 18111" ST_GeomFromText('LINESTRING(50 50,100 90,100 50)'), " 18112"5,'join=bevel'),\n" 18113" 200,200,ARRAY['8BUI'], ARRAY[100], ARRAY[0]), " 18114"ST_Buffer('POINT(70 70)'::geometry,10,'quad_segs=1') ,50),\n" 18115" 'LINESTRING(20 20, 100 100, 150 98)'::geometry,1),0) AS rast )\n" 18116"SELECT 'original' AS title, rast\n" 18117"FROM foo\n" 18118"UNION ALL\n" 18119"SELECT 'no mask mean value' AS title, " 18120"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::" 18121"regprocedure) AS rast\n" 18122"FROM foo\n" 18123"UNION ALL\n" 18124"SELECT 'mask only consider neighbors, exclude center' AS title, " 18125"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::" 18126"regprocedure,\n" 18127" '{{1,1,1}, {1,0,1}, {1,1,1}}'::double precision[], false) As rast\n" 18128"FROM foo\n" 18129"\n" 18130"UNION ALL\n" 18131"SELECT 'mask weighted only consider neighbors, exclude center multi otehr " 18132"pixel values by 2' AS title, ST_MapAlgebra(rast,1,'ST_mean4ma(double " 18133"precision[], int[], text[])'::regprocedure,\n" 18134" '{{2,2,2}, {2,0,2}, {2,2,2}}'::double precision[], true) As rast\n" 18135"FROM foo;" 18136 18137#. Tag: para 18138#: reference_raster.xml:7350 18139#, no-c-format 18140msgid "original" 18141msgstr "original" 18142 18143#. Tag: para 18144#: reference_raster.xml:7364 18145#, no-c-format 18146msgid "no mask mean value (same as having all 1s in mask matrix)" 18147msgstr "" 18148"nenhuma máscara significa valor (é o mesmo que todos 1s na matriz máscara)" 18149 18150#. Tag: para 18151#: reference_raster.xml:7380 18152#, no-c-format 18153msgid "mask only consider neighbors, exclude center" 18154msgstr "máscara considera somente vizinhos, exclui centro" 18155 18156#. Tag: para 18157#: reference_raster.xml:7394 18158#, no-c-format 18159msgid "" 18160"mask weighted only consider neighbors, exclude center multi other pixel " 18161"values by 2" 18162msgstr "" 18163"máscara pesada considera somente vizinhos, exclui centro multi outros " 18164"valores de pixel por 2" 18165 18166#. Tag: para 18167#: reference_raster.xml:7411 18168#, no-c-format 18169msgid "" 18170", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra_expr\"/>" 18171msgstr "" 18172", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra_expr\"/>" 18173 18174#. Tag: refname 18175#: reference_raster.xml:7422 18176#, fuzzy, no-c-format 18177msgid "ST_MapAlgebra (expression version)" 18178msgstr "ST_MapAlgebraExpr" 18179 18180#. Tag: refpurpose 18181#: reference_raster.xml:7423 18182#, no-c-format 18183msgid "" 18184"<refpurpose>Expression version - Returns a one-band raster given one or two " 18185"input rasters, band indexes and one or more user-specified SQL expressions.</" 18186"refpurpose>" 18187msgstr "" 18188"<refpurpose>Versão expressão - Retorna um raster de uma banda dado um ou " 18189"mais rasters de entrada, índices de banda e uma ou mais expressões SQL de " 18190"usuários específicos.</refpurpose>" 18191 18192#. Tag: funcsynopsis 18193#: reference_raster.xml:7429 18194#, no-c-format 18195msgid "" 18196"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18197"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 18198"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 18199"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 18200"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18201"<paramdef choice=\"opt\"><type>double precision </type> " 18202"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18203"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18204"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 18205"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 18206"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18207"<paramdef choice=\"opt\"><type>double precision </type> " 18208"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18209"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18210"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 18211"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> " 18212"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 18213"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> " 18214"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18215"<paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=NULL</" 18216"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18217"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice=" 18218"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></" 18219"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18220"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18221"\"><type>double precision </type> <parameter>nodatanodataval=NULL</" 18222"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 18223"<function>ST_MapAlgebra</function></funcdef> <paramdef><type>raster </type> " 18224"<parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> " 18225"<parameter>rast2</parameter></paramdef> <paramdef><type>text </type> " 18226"<parameter>expression</parameter></paramdef> <paramdef choice=\"opt" 18227"\"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef> " 18228"<paramdef choice=\"opt\"><type>text </type> " 18229"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice=" 18230"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></" 18231"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18232"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18233"\"><type>double precision </type> <parameter>nodatanodataval=NULL</" 18234"parameter></paramdef> </funcprototype>" 18235msgstr "" 18236"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18237"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 18238"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 18239"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 18240"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18241"<paramdef choice=\"opt\"><type>double precision </type> " 18242"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18243"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18244"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 18245"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 18246"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18247"<paramdef choice=\"opt\"><type>double precision </type> " 18248"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18249"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> " 18250"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> " 18251"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> " 18252"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> " 18253"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> " 18254"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> " 18255"<paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=NULL</" 18256"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18257"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice=" 18258"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></" 18259"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18260"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18261"\"><type>double precision </type> <parameter>nodatanodataval=NULL</" 18262"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 18263"<function>ST_MapAlgebra</function></funcdef> <paramdef><type>raster </type> " 18264"<parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> " 18265"<parameter>rast2</parameter></paramdef> <paramdef><type>text </type> " 18266"<parameter>expression</parameter></paramdef> <paramdef choice=\"opt" 18267"\"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef> " 18268"<paramdef choice=\"opt\"><type>text </type> " 18269"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice=" 18270"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></" 18271"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18272"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18273"\"><type>double precision </type> <parameter>nodatanodataval=NULL</" 18274"parameter></paramdef> </funcprototype>" 18275 18276#. Tag: para 18277#: reference_raster.xml:7480 18278#, no-c-format 18279msgid "" 18280"<para>Expression version - Returns a one-band raster given one or two input " 18281"rasters, band indexes and one or more user-specified SQL expressions.</para>" 18282msgstr "" 18283"<para>Versão expressão - Retorna um raster de uma banda dado um ou mais " 18284"rasters de entrada, índices de banda e uma ou mais expressões SQL de " 18285"usuários específicos.</para>" 18286 18287#. Tag: title 18288#: reference_raster.xml:7488 18289#, no-c-format 18290msgid "Description: Variants 1 and 2 (one raster)" 18291msgstr "Descrição: Variantes 1 e 2 (um raster)" 18292 18293#. Tag: para 18294#: reference_raster.xml:7490 18295#, no-c-format 18296msgid "" 18297"Creates a new one band raster formed by applying a valid PostgreSQL " 18298"algebraic operation defined by the <varname>expression</varname> on the " 18299"input raster (<varname>rast</varname>). If <varname>nband</varname> is not " 18300"provided, band 1 is assumed. The new raster will have the same georeference, " 18301"width, and height as the original raster but will only have one band." 18302msgstr "" 18303"Cria uma nova banda raster formada pela aplicação válida de uma operação " 18304"algébrica PostgreSQL definida pela <varname>expression</varname> no raster " 18305"de saída (<varname>rast</varname>). Se <varname>nband</varname> não for " 18306"dado, a banda 1 é assumida. O novo raster terá a mesma georreferência, " 18307"largura e altura que o raster original, mas só terá uma banda. " 18308 18309#. Tag: para 18310#: reference_raster.xml:7494 reference_raster.xml:7696 18311#: reference_raster.xml:8144 18312#, no-c-format 18313msgid "" 18314"If <varname>pixeltype</varname> is passed in, then the new raster will have " 18315"a band of that pixeltype. If pixeltype is passed NULL, then the new raster " 18316"band will have the same pixeltype as the input <varname>rast</varname> band." 18317msgstr "" 18318"Se um <varname>pixeltype</varname> passar, então o novo raster terá a mesma " 18319"banda dele. Se o tipo de pixel passar NULO, a nova banda raster terá o mesmo " 18320"tipo de pixel que a banda de entrada <varname>rast</varname>." 18321 18322#. Tag: para 18323#: reference_raster.xml:7499 18324#, no-c-format 18325msgid "Keywords permitted for <varname>expression</varname>" 18326msgstr "Palavras-chave permitidas para <varname>expression</varname>" 18327 18328#. Tag: para 18329#: reference_raster.xml:7502 18330#, no-c-format 18331msgid "<varname>[rast]</varname> - Pixel value of the pixel of interest" 18332msgstr "<varname>[rast]</varname> - Valor do pixel de interesse " 18333 18334#. Tag: para 18335#: reference_raster.xml:7505 18336#, no-c-format 18337msgid "<varname>[rast.val]</varname> - Pixel value of the pixel of interest" 18338msgstr "<varname>[rast.val]</varname> - Valor do pixel de interesse " 18339 18340#. Tag: para 18341#: reference_raster.xml:7508 18342#, no-c-format 18343msgid "" 18344"<varname>[rast.x]</varname> - 1-based pixel column of the pixel of interest" 18345msgstr "" 18346"<varname>[rast.x]</varname> - coluna pixel 1-baseada do pixel de interesse " 18347 18348#. Tag: para 18349#: reference_raster.xml:7511 18350#, no-c-format 18351msgid "" 18352"<varname>[rast.y]</varname> - 1-based pixel row of the pixel of interest" 18353msgstr "" 18354"<varname>[rast.y]</varname> - linha pixel 1-baseada do pixel de interesse " 18355 18356#. Tag: title 18357#: reference_raster.xml:7520 18358#, no-c-format 18359msgid "Description: Variants 3 and 4 (two raster)" 18360msgstr "Descrição: Variantes 3 e 4 (dois rasters)" 18361 18362#. Tag: para 18363#: reference_raster.xml:7522 reference_raster.xml:7816 18364#, no-c-format 18365msgid "" 18366"Creates a new one band raster formed by applying a valid PostgreSQL " 18367"algebraic operation to the two bands defined by the <varname>expression</" 18368"varname> on the two input raster bands <varname>rast1</varname>, " 18369"(<varname>rast2</varname>). If no <varname>band1</varname>, <varname>band2</" 18370"varname> is specified band 1 is assumed. The resulting raster will be " 18371"aligned (scale, skew and pixel corners) on the grid defined by the first " 18372"raster. The resulting raster will have the extent defined by the " 18373"<varname>extenttype</varname> parameter." 18374msgstr "" 18375"Cria uma nova banda raster formada pela aplicação válida de uma operação " 18376"algébrica PostgreSQL definida pela <varname>expression</varname> no raster " 18377"de saída (<varname>rast</varname>). Se <varname>nband</varname>, " 18378"<varname>band2</varname> não forem especificados, a banda 1 é assumida. O " 18379"raster resultante será alinhado (escala, inclinação e cantos de pixel) na " 18380"grade definida pelo primeiro raster. O raster resultante terá de ser " 18381"definido pelo primeiro raster. O raster resultante terá a extensão definida " 18382"pelo parâmetro <varname>extenttype</varname>." 18383 18384#. Tag: term 18385#: reference_raster.xml:7528 reference_raster.xml:7822 18386#, no-c-format 18387msgid "expression" 18388msgstr "expressão " 18389 18390#. Tag: para 18391#: reference_raster.xml:7530 reference_raster.xml:7824 18392#, no-c-format 18393msgid "" 18394"A PostgreSQL algebraic expression involving the two rasters and PostgreSQL " 18395"defined functions/operators that will define the pixel value when pixels " 18396"intersect. e.g. (([rast1] + [rast2])/2.0)::integer" 18397msgstr "" 18398"Uma expressão algébrica PostgreSQL envolvendo dois rasters e funções/" 18399"operadores PostgreSQL definidos que irão elucidar o valor do pixel quando " 18400"eles se intersectarem. ex.: (([rast1] + [rast2])/2.0)::integer" 18401 18402#. Tag: para 18403#: reference_raster.xml:7538 reference_raster.xml:7833 18404#, no-c-format 18405msgid "" 18406"The resulting pixel type of the output raster. Must be one listed in <xref " 18407"linkend=\"RT_ST_BandPixelType\"/>, left out or set to NULL. If not passed in " 18408"or set to NULL, will default to the pixeltype of the first raster." 18409msgstr "" 18410"O tipo de pixel resultante do raster de saída. Deve ser um listado em <xref " 18411"linkend=\"RT_ST_BandPixelType\"/>, deixado de fora ou NULO. Se não passar ou " 18412"for NULO, usa-se o tipo de pixel do primeiro raster." 18413 18414#. Tag: para 18415#: reference_raster.xml:7546 reference_raster.xml:7842 18416#, no-c-format 18417msgid "Controls the extent of resulting raster" 18418msgstr "Controla a extensão do raster resultante" 18419 18420#. Tag: para 18421#: reference_raster.xml:7552 reference_raster.xml:7845 18422#, no-c-format 18423msgid "" 18424"<varname>INTERSECTION</varname> - The extent of the new raster is the " 18425"intersection of the two rasters. This is the default." 18426msgstr "" 18427"<varname>INTERSECTION</varname> - A extensão do novo raster é a interseção " 18428"de dois rasters. Este é o padrão. " 18429 18430#. Tag: para 18431#: reference_raster.xml:7557 reference_raster.xml:7850 18432#, no-c-format 18433msgid "" 18434"<varname>UNION</varname> - The extent of the new raster is the union of the " 18435"two rasters." 18436msgstr "" 18437"<varname>UNION</varname> - A extensão do novo raster é a união dos dois " 18438"raster. " 18439 18440#. Tag: para 18441#: reference_raster.xml:7562 reference_raster.xml:7855 18442#, no-c-format 18443msgid "" 18444"<varname>FIRST</varname> - The extent of the new raster is the same as the " 18445"one of the first raster." 18446msgstr "" 18447"<varname>FIRST</varname> - A extensão do novo raster é a mesma da do " 18448"primeiro raster. " 18449 18450#. Tag: para 18451#: reference_raster.xml:7567 reference_raster.xml:7860 18452#, no-c-format 18453msgid "" 18454"<varname>SECOND</varname> - The extent of the new raster is the same as the " 18455"one of the second raster." 18456msgstr "" 18457"<varname>SECOND</varname> - A extensão do novo raster é a mesma da do " 18458"segundo raster. " 18459 18460#. Tag: term 18461#: reference_raster.xml:7575 reference_raster.xml:7869 18462#, no-c-format 18463msgid "nodata1expr" 18464msgstr "nodata1expr" 18465 18466#. Tag: para 18467#: reference_raster.xml:7577 reference_raster.xml:7871 18468#, no-c-format 18469msgid "" 18470"An algebraic expression involving only <varname>rast2</varname> or a " 18471"constant that defines what to return when pixels of <varname>rast1</varname> " 18472"are nodata values and spatially corresponding rast2 pixels have values." 18473msgstr "" 18474"Uma expressão algébrica envolvendo somente <varname>rast2</varname> ou uma " 18475"constante que define o que retornar quando pixeis de <varname>rast1</" 18476"varname> são valores nodata e os pixeis rast2 têm valores. " 18477 18478#. Tag: term 18479#: reference_raster.xml:7583 reference_raster.xml:7878 18480#, no-c-format 18481msgid "nodata2expr" 18482msgstr "nodata2expr" 18483 18484#. Tag: para 18485#: reference_raster.xml:7585 reference_raster.xml:7880 18486#, no-c-format 18487msgid "" 18488"An algebraic expression involving only <varname>rast1</varname> or a " 18489"constant that defines what to return when pixels of <varname>rast2</varname> " 18490"are nodata values and spatially corresponding rast1 pixels have values." 18491msgstr "" 18492"Uma expressão algébrica envolvendo somente <varname>rast1</varname> ou uma " 18493"constante que define o que retornar quando pixeis de <varname>rast2</" 18494"varname> são valores nodata e os pixeis rast1 têm valores. " 18495 18496#. Tag: term 18497#: reference_raster.xml:7591 reference_raster.xml:7887 18498#, no-c-format 18499msgid "nodatanodataval" 18500msgstr "nodatanodataval" 18501 18502#. Tag: para 18503#: reference_raster.xml:7593 reference_raster.xml:7889 18504#, no-c-format 18505msgid "" 18506"A numeric constant to return when spatially corresponding rast1 and rast2 " 18507"pixels are both nodata values." 18508msgstr "" 18509"Uma constante numérica para retornar quando os pixeis rast1 e raste2 forem " 18510"ambos valores nodata. " 18511 18512#. Tag: para 18513#: reference_raster.xml:7601 18514#, no-c-format 18515msgid "" 18516"Keywords permitted in <varname>expression</varname>, <varname>nodata1expr</" 18517"varname> and <varname>nodata2expr</varname>" 18518msgstr "" 18519"Palavras-chave permitidas em <varname>expression</varname>, " 18520"<varname>nodata1expr</varname> e <varname>nodata2expr</varname>" 18521 18522#. Tag: para 18523#: reference_raster.xml:7604 18524#, no-c-format 18525msgid "" 18526"<varname>[rast1]</varname> - Pixel value of the pixel of interest from " 18527"<varname>rast1</varname>" 18528msgstr "" 18529"<varname>[rast1]</varname> - Valor do pixel de interesse do <varname>rast1</" 18530"varname>" 18531 18532#. Tag: para 18533#: reference_raster.xml:7607 18534#, no-c-format 18535msgid "" 18536"<varname>[rast1.val]</varname> - Pixel value of the pixel of interest from " 18537"<varname>rast1</varname>" 18538msgstr "" 18539"<varname>[rast1.val]</varname> - Valor do pixel de interesse do " 18540"<varname>rast1</varname>" 18541 18542#. Tag: para 18543#: reference_raster.xml:7610 18544#, no-c-format 18545msgid "" 18546"<varname>[rast1.x]</varname> - 1-based pixel column of the pixel of interest " 18547"from <varname>rast1</varname>" 18548msgstr "" 18549"<varname>[rast1.x]</varname> - coluna pixel 1-based do pixel de interesse " 18550"do<varname>rast1</varname>" 18551 18552#. Tag: para 18553#: reference_raster.xml:7613 18554#, no-c-format 18555msgid "" 18556"<varname>[rast1.y]</varname> - 1-based pixel row of the pixel of interest " 18557"from <varname>rast1</varname>" 18558msgstr "" 18559"<varname>[rast1.y]</varname> - linha pixel 1-based do pixel de interesse " 18560"do<varname>rast1</varname>" 18561 18562#. Tag: para 18563#: reference_raster.xml:7616 18564#, no-c-format 18565msgid "" 18566"<varname>[rast2]</varname> - Pixel value of the pixel of interest from " 18567"<varname>rast2</varname>" 18568msgstr "" 18569"<varname>[rast2]</varname> - Valor do pixel de interesse do <varname>rast2</" 18570"varname>" 18571 18572#. Tag: para 18573#: reference_raster.xml:7619 18574#, no-c-format 18575msgid "" 18576"<varname>[rast2.val]</varname> - Pixel value of the pixel of interest from " 18577"<varname>rast2</varname>" 18578msgstr "" 18579"<varname>[rast2.val]</varname> - Valor do pixel de interesse do " 18580"<varname>rast2</varname>" 18581 18582#. Tag: para 18583#: reference_raster.xml:7622 18584#, no-c-format 18585msgid "" 18586"<varname>[rast2.x]</varname> - 1-based pixel column of the pixel of interest " 18587"from <varname>rast2</varname>" 18588msgstr "" 18589"<varname>[rast2.x]</varname> - coluna pixel 1-based do pixel de interesse " 18590"do<varname>rast2</varname>" 18591 18592#. Tag: para 18593#: reference_raster.xml:7625 18594#, no-c-format 18595msgid "" 18596"<varname>[rast2.y]</varname> - 1-based pixel row of the pixel of interest " 18597"from <varname>rast2</varname>" 18598msgstr "" 18599"<varname>[rast2.y]</varname> - linha pixel 1-based do pixel de interesse " 18600"do<varname>rast2</varname>" 18601 18602#. Tag: title 18603#: reference_raster.xml:7633 18604#, no-c-format 18605msgid "Examples: Variants 1 and 2" 18606msgstr "Exemplos: Variantes 1 e 2" 18607 18608#. Tag: programlisting 18609#: reference_raster.xml:7635 18610#, no-c-format 18611msgid "" 18612"WITH foo AS (\n" 18613" SELECT ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 0, 0, 0), " 18614"'32BF'::text, 1, -1) AS rast\n" 18615")\n" 18616"SELECT\n" 18617" ST_MapAlgebra(rast, 1, NULL, 'ceil([rast]*[rast.x]/[rast.y]+[rast." 18618"val])')\n" 18619"FROM foo;" 18620msgstr "" 18621 18622#. Tag: title 18623#: reference_raster.xml:7639 18624#, no-c-format 18625msgid "Examples: Variant 3 and 4" 18626msgstr "Exemplos: Variantes 3 e 4" 18627 18628#. Tag: programlisting 18629#: reference_raster.xml:7641 18630#, no-c-format 18631msgid "" 18632"WITH foo AS (\n" 18633" SELECT 1 AS rid, " 18634"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, " 18635"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI'::text, 100, 0) AS rast " 18636"UNION ALL\n" 18637" SELECT 2 AS rid, " 18638"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, " 18639"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI'::text, 300, 0) AS rast\n" 18640")\n" 18641"SELECT\n" 18642" ST_MapAlgebra(\n" 18643" t1.rast, 2,\n" 18644" t2.rast, 1,\n" 18645" '([rast2] + [rast1.val]) / 2'\n" 18646" ) AS rast\n" 18647"FROM foo t1\n" 18648"CROSS JOIN foo t2\n" 18649"WHERE t1.rid = 1\n" 18650" AND t2.rid = 2;" 18651msgstr "" 18652 18653#. Tag: para 18654#: reference_raster.xml:7647 18655#, no-c-format 18656msgid ", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra\"/>" 18657msgstr "" 18658", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra\"/>" 18659 18660#. Tag: refname 18661#: reference_raster.xml:7657 reference_raster.xml:7771 18662#, no-c-format 18663msgid "ST_MapAlgebraExpr" 18664msgstr "ST_MapAlgebraExpr" 18665 18666#. Tag: refpurpose 18667#: reference_raster.xml:7658 18668#, no-c-format 18669msgid "" 18670"1 raster band version: Creates a new one band raster formed by applying a " 18671"valid PostgreSQL algebraic operation on the input raster band and of " 18672"pixeltype provided. Band 1 is assumed if no band is specified." 18673msgstr "" 18674"Versão de banda raster 1: Cria uma nova banda raster formada pela aplicação " 18675"de ma operação algébrica válida do PostgreSQL na banda raster de entrada de " 18676"um tipo de pixel fornecido. A banda 1 é assumida se nenhuma banda for " 18677"especificada. " 18678 18679#. Tag: funcsynopsis 18680#: reference_raster.xml:7662 18681#, no-c-format 18682msgid "" 18683"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18684"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 18685"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 18686"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 18687"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18688"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 18689"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18690"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18691"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 18692"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 18693"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18694"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 18695"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>" 18696msgstr "" 18697"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18698"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 18699"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></" 18700"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 18701"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18702"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 18703"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 18704"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18705"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></" 18706"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></" 18707"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18708"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 18709"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>" 18710 18711#. Tag: para 18712#: reference_raster.xml:7687 reference_raster.xml:7811 18713#, no-c-format 18714msgid "" 18715"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra_expr\"/> " 18716"instead." 18717msgstr "" 18718"é menosprezado como do 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra_expr\"/>." 18719 18720#. Tag: para 18721#: reference_raster.xml:7692 18722#, no-c-format 18723msgid "" 18724"Creates a new one band raster formed by applying a valid PostgreSQL " 18725"algebraic operation defined by the <varname>expression</varname> on the " 18726"input raster (<varname>rast</varname>). If no <varname>band</varname> is " 18727"specified band 1 is assumed. The new raster will have the same georeference, " 18728"width, and height as the original raster but will only have one band." 18729msgstr "" 18730"Cria uma nova banda raster formada pela aplicação válida de uma operação " 18731"algébrica PostgreSQL definida pela <varname>expression</varname> no raster " 18732"de entrada (<varname>rast</varname>). Se <varname>band</varname> não for " 18733"dado, a banda 1 é assumida. O novo raster terá a mesma georreferência, " 18734"largura e altura que o raster original, mas só terá uma banda. " 18735 18736#. Tag: para 18737#: reference_raster.xml:7700 18738#, no-c-format 18739msgid "" 18740"In the expression you can use the term <varname>[rast]</varname> to refer to " 18741"the pixel value of the original band, <varname>[rast.x]</varname> to refer " 18742"to the 1-based pixel column index, <varname>[rast.y]</varname> to refer to " 18743"the 1-based pixel row index." 18744msgstr "" 18745"Na expressão você pode usar o termo <varname>[rast]</varname> para referir o " 18746"valor do pixel da banda original, <varname>[rast.x]</varname> para referir " 18747"ao índice da coluna pixel 1-baseada, <varname>[rast.y]</varname> para " 18748"referir ao índice da linha pixel 1-baseada. " 18749 18750#. Tag: para 18751#: reference_raster.xml:7710 reference_raster.xml:7909 18752#: reference_raster.xml:8173 18753#, no-c-format 18754msgid "" 18755"Create a new 1 band raster from our original that is a function of modulo 2 " 18756"of the original raster band." 18757msgstr "" 18758"Cria uma nova banda raster 1 a partir da nossa original que é uma função de " 18759"módulo 2 da banda raster original. " 18760 18761#. Tag: programlisting 18762#: reference_raster.xml:7711 18763#, no-c-format 18764msgid "" 18765"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n" 18766"UPDATE dummy_rast SET map_rast = ST_MapAlgebraExpr(rast,NULL,'mod([rast]::" 18767"numeric,2)') WHERE rid = 2;\n" 18768"\n" 18769"SELECT\n" 18770" ST_Value(rast,1,i,j) As origval,\n" 18771" ST_Value(map_rast, 1, i, j) As mapval\n" 18772"FROM dummy_rast\n" 18773"CROSS JOIN generate_series(1, 3) AS i\n" 18774"CROSS JOIN generate_series(1,3) AS j\n" 18775"WHERE rid = 2;\n" 18776"\n" 18777" origval | mapval\n" 18778"---------+--------\n" 18779" 253 | 1\n" 18780" 254 | 0\n" 18781" 253 | 1\n" 18782" 253 | 1\n" 18783" 254 | 0\n" 18784" 254 | 0\n" 18785" 250 | 0\n" 18786" 254 | 0\n" 18787" 254 | 0" 18788msgstr "" 18789 18790#. Tag: para 18791#: reference_raster.xml:7713 18792#, no-c-format 18793msgid "" 18794"Create a new 1 band raster of pixel-type 2BUI from our original that is " 18795"reclassified and set the nodata value to be 0." 18796msgstr "" 18797"Cria uma nova banda raster 1 do tipo de pixel 2BUI a partir da nossa " 18798"original que é reclassificada e obtém valor nodata 0." 18799 18800#. Tag: programlisting 18801#: reference_raster.xml:7714 18802#, no-c-format 18803msgid "" 18804"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n" 18805"UPDATE dummy_rast SET\n" 18806" map_rast2 = ST_MapAlgebraExpr(rast,'2BUI'::text,'CASE WHEN [rast] " 18807"BETWEEN 100 and 250 THEN 1 WHEN [rast] = 252 THEN 2 WHEN [rast] BETWEEN 253 " 18808"and 254 THEN 3 ELSE 0 END'::text, '0')\n" 18809"WHERE rid = 2;\n" 18810"\n" 18811"SELECT DISTINCT\n" 18812" ST_Value(rast,1,i,j) As origval,\n" 18813" ST_Value(map_rast2, 1, i, j) As mapval\n" 18814"FROM dummy_rast\n" 18815"CROSS JOIN generate_series(1, 5) AS i\n" 18816"CROSS JOIN generate_series(1,5) AS j\n" 18817"WHERE rid = 2;\n" 18818"\n" 18819" origval | mapval\n" 18820"---------+--------\n" 18821" 249 | 1\n" 18822" 250 | 1\n" 18823" 251 |\n" 18824" 252 | 2\n" 18825" 253 | 3\n" 18826" 254 | 3\n" 18827"\n" 18828"SELECT\n" 18829" ST_BandPixelType(map_rast2) As b1pixtyp\n" 18830"FROM dummy_rast\n" 18831"WHERE rid = 2;\n" 18832"\n" 18833" b1pixtyp\n" 18834"----------\n" 18835" 2BUI" 18836msgstr "" 18837 18838#. Tag: para 18839#: reference_raster.xml:7728 18840#, no-c-format 18841msgid "original (column rast_view)" 18842msgstr "" 18843 18844#. Tag: para 18845#: reference_raster.xml:7742 reference_raster.xml:8196 18846#, no-c-format 18847msgid "rast_view_ma" 18848msgstr "rast_view_ma" 18849 18850#. Tag: para 18851#: reference_raster.xml:7753 reference_raster.xml:8204 18852#, no-c-format 18853msgid "" 18854"Create a new 3 band raster same pixel type from our original 3 band raster " 18855"with first band altered by map algebra and remaining 2 bands unaltered." 18856msgstr "" 18857"Cria uma nova banda raster 3 do mesmo tipo de pixel da nossa banda 3 " 18858"original, com a primeira banda alterada pelo mapa algébrico e 2 bandas " 18859"permanecem inalteradas. " 18860 18861#. Tag: programlisting 18862#: reference_raster.xml:7754 18863#, no-c-format 18864msgid "" 18865"SELECT\n" 18866" ST_AddBand(\n" 18867" ST_AddBand(\n" 18868" ST_AddBand(\n" 18869" ST_MakeEmptyRaster(rast_view),\n" 18870" ST_MapAlgebraExpr(rast_view,1," 18871"NULL,'tan([rast])*[rast]')\n" 18872" ),\n" 18873" ST_Band(rast_view,2)\n" 18874" ),\n" 18875" ST_Band(rast_view, 3)\n" 18876" ) As rast_view_ma\n" 18877"FROM wind\n" 18878"WHERE rid=167;" 18879msgstr "" 18880 18881#. Tag: para 18882#: reference_raster.xml:7759 18883#, no-c-format 18884msgid "" 18885", <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref linkend=" 18886"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, <xref " 18887"linkend=\"RT_ST_Value\"/>" 18888msgstr "" 18889", <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref linkend=" 18890"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, <xref " 18891"linkend=\"RT_ST_Value\"/>" 18892 18893#. Tag: refpurpose 18894#: reference_raster.xml:7772 18895#, no-c-format 18896msgid "" 18897"2 raster band version: Creates a new one band raster formed by applying a " 18898"valid PostgreSQL algebraic operation on the two input raster bands and of " 18899"pixeltype provided. band 1 of each raster is assumed if no band numbers are " 18900"specified. The resulting raster will be aligned (scale, skew and pixel " 18901"corners) on the grid defined by the first raster and have its extent defined " 18902"by the \"extenttype\" parameter. Values for \"extenttype\" can be: " 18903"INTERSECTION, UNION, FIRST, SECOND." 18904msgstr "" 18905"Versão de banda raster 2: Cria uma banda raster nova formada pela aplicação " 18906"de uma operação algébrica válida PostgreSQL nas duas bandas raster de " 18907"entrada e do tipo de pixel fornecido. A banda 1 de cada raster é assumida se " 18908"nenhum número de bandas for especificado. O raster resultante será alinhado " 18909"(escala, inclinação e cantos de pixel) na grade definida pelo primeiro " 18910"raster e tem sua extensão definida pelo parâmetro \"extenttype\". O valores " 18911"para \"extenttype\" pode ser: INTERSEÇÃO, UNIÃO, PRIMEIRO, SEGUNDO. " 18912 18913#. Tag: funcsynopsis 18914#: reference_raster.xml:7778 18915#, no-c-format 18916msgid "" 18917"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18918"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 18919"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 18920"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18921"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18922"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef " 18923"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</" 18924"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18925"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18926"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> " 18927"<paramdef choice=\"opt\"><type>double precision </type> " 18928"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype> " 18929"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18930"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 18931"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></" 18932"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 18933"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></" 18934"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18935"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18936"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef " 18937"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</" 18938"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18939"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18940"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> " 18941"<paramdef choice=\"opt\"><type>double precision </type> " 18942"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype>" 18943msgstr "" 18944"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18945"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 18946"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 18947"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18948"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18949"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef " 18950"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</" 18951"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18952"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18953"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> " 18954"<paramdef choice=\"opt\"><type>double precision </type> " 18955"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype> " 18956"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></" 18957"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></" 18958"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></" 18959"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></" 18960"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></" 18961"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></" 18962"paramdef> <paramdef choice=\"opt\"><type>text </type> " 18963"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef " 18964"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</" 18965"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 18966"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt" 18967"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> " 18968"<paramdef choice=\"opt\"><type>double precision </type> " 18969"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype>" 18970 18971#. Tag: para 18972#: reference_raster.xml:7896 18973#, no-c-format 18974msgid "" 18975"If <varname>pixeltype</varname> is passed in, then the new raster will have " 18976"a band of that pixeltype. If pixeltype is passed NULL or no pixel type " 18977"specified, then the new raster band will have the same pixeltype as the " 18978"input <varname>rast1</varname> band." 18979msgstr "" 18980"Se <varname>pixeltype</varname> passar, o novo raster terá uma banda desse " 18981"tipo de pixel. Se o tipo de pixel passar NULOou nenhum tipo for " 18982"especificado, a nova banda raster terá o mesmo tipo de pixel da banda de " 18983"entrada <varname>rast1</varname>." 18984 18985#. Tag: para 18986#: reference_raster.xml:7899 18987#, no-c-format 18988msgid "" 18989"Use the term <varname>[rast1.val]</varname> <varname>[rast2.val]</varname> " 18990"to refer to the pixel value of the original raster bands and <varname>[rast1." 18991"x]</varname>, <varname>[rast1.y]</varname> etc. to refer to the column / row " 18992"positions of the pixels." 18993msgstr "" 18994"Use o termo <varname>[rast1.val]</varname> <varname>[rast2.val]</varname> " 18995"para referir-se ao valor de pixel das bandas rasters originais e " 18996"<varname>[rast1.x]</varname>, <varname>[rast1.y]</varname> etc. para referir-" 18997"se à posição da coluna/linha dos pixeis. " 18998 18999#. Tag: title 19000#: reference_raster.xml:7907 19001#, no-c-format 19002msgid "Example: 2 Band Intersection and Union" 19003msgstr "Exemplo: 2 Interseção de Banda e União" 19004 19005#. Tag: programlisting 19006#: reference_raster.xml:7910 19007#, no-c-format 19008msgid "" 19009"--Create a cool set of rasters --\n" 19010"DROP TABLE IF EXISTS fun_shapes;\n" 19011"CREATE TABLE fun_shapes(rid serial PRIMARY KEY, fun_name text, rast " 19012"raster);\n" 19013"\n" 19014"-- Insert some cool shapes around Boston in Massachusetts state plane meters " 19015"--\n" 19016"INSERT INTO fun_shapes(fun_name, rast)\n" 19017"VALUES ('ref', ST_AsRaster(ST_MakeEnvelope(235229, 899970, 237229, " 19018"901930,26986),200,200,'8BUI',0,0));\n" 19019"\n" 19020"INSERT INTO fun_shapes(fun_name,rast)\n" 19021"WITH ref(rast) AS (SELECT rast FROM fun_shapes WHERE fun_name = 'ref' )\n" 19022"SELECT 'area' AS fun_name, ST_AsRaster(ST_Buffer(ST_SetSRID(ST_Point(236229, " 19023"900930),26986), 1000),\n" 19024" ref.rast,'8BUI', 10, 0) As rast\n" 19025"FROM ref\n" 19026"UNION ALL\n" 19027"SELECT 'rand bubbles',\n" 19028" ST_AsRaster(\n" 19029" (SELECT ST_Collect(geom)\n" 19030" FROM (SELECT ST_Buffer(ST_SetSRID(ST_Point(236229 + i*random()*100, " 19031"900930 + j*random()*100),26986), random()*20) As geom\n" 19032" FROM generate_series(1,10) As i, " 19033"generate_series(1,10) As j\n" 19034" ) As foo ), ref.rast,'8BUI', 200, 0)\n" 19035"FROM ref;\n" 19036"\n" 19037"--map them -\n" 19038"SELECT ST_MapAlgebraExpr(\n" 19039" area.rast, bub.rast, '[rast2.val]', '8BUI', 'INTERSECTION', " 19040"'[rast2.val]', '[rast1.val]') As interrast,\n" 19041" ST_MapAlgebraExpr(\n" 19042" area.rast, bub.rast, '[rast2.val]', '8BUI', 'UNION', " 19043"'[rast2.val]', '[rast1.val]') As unionrast\n" 19044"FROM\n" 19045" (SELECT rast FROM fun_shapes WHERE\n" 19046" fun_name = 'area') As area\n" 19047"CROSS JOIN (SELECT rast\n" 19048"FROM fun_shapes WHERE\n" 19049" fun_name = 'rand bubbles') As bub" 19050msgstr "" 19051"--Create a cool set of rasters --\n" 19052"DROP TABLE IF EXISTS fun_shapes;\n" 19053"CREATE TABLE fun_shapes(rid serial PRIMARY KEY, fun_name text, rast " 19054"raster);\n" 19055"\n" 19056"-- Insert some cool shapes around Boston in Massachusetts state plane meters " 19057"--\n" 19058"INSERT INTO fun_shapes(fun_name, rast)\n" 19059"VALUES ('ref', ST_AsRaster(ST_MakeEnvelope(235229, 899970, 237229, " 19060"901930,26986),200,200,'8BUI',0,0));\n" 19061"\n" 19062"INSERT INTO fun_shapes(fun_name,rast)\n" 19063"WITH ref(rast) AS (SELECT rast FROM fun_shapes WHERE fun_name = 'ref' )\n" 19064"SELECT 'area' AS fun_name, ST_AsRaster(ST_Buffer(ST_SetSRID(ST_Point(236229, " 19065"900930),26986), 1000),\n" 19066" ref.rast,'8BUI', 10, 0) As rast\n" 19067"FROM ref\n" 19068"UNION ALL\n" 19069"SELECT 'rand bubbles',\n" 19070" ST_AsRaster(\n" 19071" (SELECT ST_Collect(geom)\n" 19072" FROM (SELECT ST_Buffer(ST_SetSRID(ST_Point(236229 + i*random()*100, " 19073"900930 + j*random()*100),26986), random()*20) As geom\n" 19074" FROM generate_series(1,10) As i, " 19075"generate_series(1,10) As j\n" 19076" ) As foo ), ref.rast,'8BUI', 200, 0)\n" 19077"FROM ref;\n" 19078"\n" 19079"--map them -\n" 19080"SELECT ST_MapAlgebraExpr(\n" 19081" area.rast, bub.rast, '[rast2.val]', '8BUI', 'INTERSECTION', " 19082"'[rast2.val]', '[rast1.val]') As interrast,\n" 19083" ST_MapAlgebraExpr(\n" 19084" area.rast, bub.rast, '[rast2.val]', '8BUI', 'UNION', " 19085"'[rast2.val]', '[rast1.val]') As unionrast\n" 19086"FROM\n" 19087" (SELECT rast FROM fun_shapes WHERE\n" 19088" fun_name = 'area') As area\n" 19089"CROSS JOIN (SELECT rast\n" 19090"FROM fun_shapes WHERE\n" 19091" fun_name = 'rand bubbles') As bub" 19092 19093#. Tag: para 19094#: reference_raster.xml:7924 19095#, no-c-format 19096msgid "mapalgebra intersection" 19097msgstr "interseção de mapa algébrico" 19098 19099#. Tag: para 19100#: reference_raster.xml:7938 19101#, no-c-format 19102msgid "map algebra union" 19103msgstr "união de mapa algébrico" 19104 19105#. Tag: title 19106#: reference_raster.xml:7951 reference_raster.xml:8290 19107#, no-c-format 19108msgid "Example: Overlaying rasters on a canvas as separate bands" 19109msgstr "Exemplo: Revestindo rasters em um quadro como bandas separadas " 19110 19111#. Tag: programlisting 19112#: reference_raster.xml:7952 19113#, no-c-format 19114msgid "" 19115"-- we use ST_AsPNG to render the image so all single band ones look grey --\n" 19116"WITH mygeoms\n" 19117" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(1,5),10) As geom\n" 19118" UNION ALL\n" 19119" SELECT 3 AS bnum,\n" 19120" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 " 19121"50)'), 10,'join=bevel') As geom\n" 19122" UNION ALL\n" 19123" SELECT 1 As bnum,\n" 19124" ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 150,150 " 19125"50)'), 5,'join=bevel') As geom\n" 19126" ),\n" 19127" -- define our canvas to be 1 to 1 pixel to geometry\n" 19128" canvas\n" 19129" AS (SELECT ST_AddBand(ST_MakeEmptyRaster(200,\n" 19130" 200,\n" 19131" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0) , '8BUI'::" 19132"text,0) As rast\n" 19133" FROM (SELECT ST_Extent(geom) As e,\n" 19134" Max(ST_SRID(geom)) As srid\n" 19135" from mygeoms\n" 19136" ) As foo\n" 19137" ),\n" 19138" rbands AS (SELECT ARRAY(SELECT ST_MapAlgebraExpr(canvas.rast, " 19139"ST_AsRaster(m.geom, canvas.rast, '8BUI', 100),\n" 19140" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1." 19141"val]') As rast\n" 19142" FROM mygeoms AS m CROSS JOIN canvas\n" 19143" ORDER BY m.bnum) As rasts\n" 19144" )\n" 19145" SELECT rasts[1] As rast1 , rasts[2] As rast2, rasts[3] As rast3, " 19146"ST_AddBand(\n" 19147" ST_AddBand(rasts[1],rasts[2]), rasts[3]) As final_rast\n" 19148" FROM rbands;" 19149msgstr "" 19150"-- we use ST_AsPNG to render the image so all single band ones look grey --\n" 19151"WITH mygeoms\n" 19152" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(1,5),10) As geom\n" 19153" UNION ALL\n" 19154" SELECT 3 AS bnum,\n" 19155" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 " 19156"50)'), 10,'join=bevel') As geom\n" 19157" UNION ALL\n" 19158" SELECT 1 As bnum,\n" 19159" ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 150,150 " 19160"50)'), 5,'join=bevel') As geom\n" 19161" ),\n" 19162" -- define our canvas to be 1 to 1 pixel to geometry\n" 19163" canvas\n" 19164" AS (SELECT ST_AddBand(ST_MakeEmptyRaster(200,\n" 19165" 200,\n" 19166" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0) , '8BUI'::" 19167"text,0) As rast\n" 19168" FROM (SELECT ST_Extent(geom) As e,\n" 19169" Max(ST_SRID(geom)) As srid\n" 19170" from mygeoms\n" 19171" ) As foo\n" 19172" ),\n" 19173" rbands AS (SELECT ARRAY(SELECT ST_MapAlgebraExpr(canvas.rast, " 19174"ST_AsRaster(m.geom, canvas.rast, '8BUI', 100),\n" 19175" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1." 19176"val]') As rast\n" 19177" FROM mygeoms AS m CROSS JOIN canvas\n" 19178" ORDER BY m.bnum) As rasts\n" 19179" )\n" 19180" SELECT rasts[1] As rast1 , rasts[2] As rast2, rasts[3] As rast3, " 19181"ST_AddBand(\n" 19182" ST_AddBand(rasts[1],rasts[2]), rasts[3]) As final_rast\n" 19183" FROM rbands;" 19184 19185#. Tag: para 19186#: reference_raster.xml:7965 19187#, no-c-format 19188msgid "rast1" 19189msgstr "rast1" 19190 19191#. Tag: para 19192#: reference_raster.xml:7978 19193#, no-c-format 19194msgid "rast2" 19195msgstr "rast2" 19196 19197#. Tag: para 19198#: reference_raster.xml:7994 19199#, no-c-format 19200msgid "rast3" 19201msgstr "rast3" 19202 19203#. Tag: para 19204#: reference_raster.xml:8008 19205#, no-c-format 19206msgid "final_rast" 19207msgstr "final_rast" 19208 19209#. Tag: title 19210#: reference_raster.xml:8021 19211#, no-c-format 19212msgid "" 19213"Example: Overlay 2 meter boundary of select parcels over an aerial imagery" 19214msgstr "" 19215"Exemplo: Cobre 2 metros de limite das parcelas selecionadas sobre uma área " 19216"imaginária" 19217 19218#. Tag: programlisting 19219#: reference_raster.xml:8023 19220#, no-c-format 19221msgid "" 19222"-- Create new 3 band raster composed of first 2 clipped bands, and overlay " 19223"of 3rd band with our geometry\n" 19224"-- This query took 3.6 seconds on PostGIS windows 64-bit install\n" 19225"WITH pr AS\n" 19226"-- Note the order of operation: we clip all the rasters to dimensions of our " 19227"region\n" 19228"(SELECT ST_Clip(rast,ST_Expand(geom,50) ) As rast, g.geom\n" 19229" FROM aerials.o_2_boston AS r INNER JOIN\n" 19230"-- union our parcels of interest so they form a single geometry we can later " 19231"intersect with\n" 19232" (SELECT ST_Union(ST_Transform(the_geom,26986)) AS geom\n" 19233" FROM landparcels WHERE pid IN('0303890000', '0303900000')) " 19234"As g\n" 19235" ON ST_Intersects(rast::geometry, ST_Expand(g.geom,50))\n" 19236"),\n" 19237"-- we then union the raster shards together\n" 19238"-- ST_Union on raster is kinda of slow but much faster the smaller you can " 19239"get the rasters\n" 19240"-- therefore we want to clip first and then union\n" 19241"prunion AS\n" 19242"(SELECT ST_AddBand(NULL, ARRAY[ST_Union(rast,1),ST_Union(rast,2)," 19243"ST_Union(rast,3)] ) As clipped,geom\n" 19244"FROM pr\n" 19245"GROUP BY geom)\n" 19246"-- return our final raster which is the unioned shard with\n" 19247"-- with the overlay of our parcel boundaries\n" 19248"-- add first 2 bands, then mapalgebra of 3rd band + geometry\n" 19249"SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2])\n" 19250" , ST_MapAlgebraExpr(ST_Band(clipped,3), " 19251"ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250),\n" 19252" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As " 19253"rast\n" 19254"FROM prunion;" 19255msgstr "" 19256"-- Create new 3 band raster composed of first 2 clipped bands, and overlay " 19257"of 3rd band with our geometry\n" 19258"-- This query took 3.6 seconds on PostGIS windows 64-bit install\n" 19259"WITH pr AS\n" 19260"-- Note the order of operation: we clip all the rasters to dimensions of our " 19261"region\n" 19262"(SELECT ST_Clip(rast,ST_Expand(geom,50) ) As rast, g.geom\n" 19263" FROM aerials.o_2_boston AS r INNER JOIN\n" 19264"-- union our parcels of interest so they form a single geometry we can later " 19265"intersect with\n" 19266" (SELECT ST_Union(ST_Transform(the_geom,26986)) AS geom\n" 19267" FROM landparcels WHERE pid IN('0303890000', '0303900000')) " 19268"As g\n" 19269" ON ST_Intersects(rast::geometry, ST_Expand(g.geom,50))\n" 19270"),\n" 19271"-- we then union the raster shards together\n" 19272"-- ST_Union on raster is kinda of slow but much faster the smaller you can " 19273"get the rasters\n" 19274"-- therefore we want to clip first and then union\n" 19275"prunion AS\n" 19276"(SELECT ST_AddBand(NULL, ARRAY[ST_Union(rast,1),ST_Union(rast,2)," 19277"ST_Union(rast,3)] ) As clipped,geom\n" 19278"FROM pr\n" 19279"GROUP BY geom)\n" 19280"-- return our final raster which is the unioned shard with\n" 19281"-- with the overlay of our parcel boundaries\n" 19282"-- add first 2 bands, then mapalgebra of 3rd band + geometry\n" 19283"SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2])\n" 19284" , ST_MapAlgebraExpr(ST_Band(clipped,3), " 19285"ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250),\n" 19286" '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As " 19287"rast\n" 19288"FROM prunion;" 19289 19290#. Tag: para 19291#: reference_raster.xml:8037 19292#, no-c-format 19293msgid "The blue lines are the boundaries of select parcels" 19294msgstr "As linhas azuis são os limites das parcelas selecionadas " 19295 19296#. Tag: para 19297#: reference_raster.xml:8051 19298#, no-c-format 19299msgid "" 19300", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref " 19301"linkend=\"RT_ST_AsRaster\"/>, <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref " 19302"linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, " 19303"<xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Union\"/>, <xref " 19304"linkend=\"ST_Union\"/>" 19305msgstr "" 19306", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref " 19307"linkend=\"RT_ST_AsRaster\"/>, <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref " 19308"linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, " 19309"<xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Union\"/>, <xref " 19310"linkend=\"ST_Union\"/>" 19311 19312#. Tag: refname 19313#: reference_raster.xml:8068 reference_raster.xml:8221 19314#, no-c-format 19315msgid "ST_MapAlgebraFct" 19316msgstr "ST_MapAlgebraFct" 19317 19318#. Tag: refpurpose 19319#: reference_raster.xml:8069 19320#, no-c-format 19321msgid "" 19322"1 band version - Creates a new one band raster formed by applying a valid " 19323"PostgreSQL function on the input raster band and of pixeltype prodived. Band " 19324"1 is assumed if no band is specified." 19325msgstr "" 19326"Versão de banda raster 1: Cria uma nova banda raster formada pela aplicação " 19327"de uma função válida do PostgreSQL na banda raster de entrada de um tipo de " 19328"pixel fornecido. A banda 1 é assumida se nenhuma banda for especificada. " 19329 19330#. Tag: funcsynopsis 19331#: reference_raster.xml:8073 19332#, no-c-format 19333msgid "" 19334"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19335"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19336"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19337"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19338"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19339"type> <parameter>rast</parameter></paramdef> <paramdef><type>regprocedure</" 19340"type> <parameter>onerasteruserfunc</parameter></paramdef> " 19341"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 19342"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19343"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19344"type> <parameter>rast</parameter></paramdef> <paramdef><type>text</type> " 19345"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</" 19346"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19347"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19348"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19349"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></" 19350"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19351"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19352"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19353"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19354"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> " 19355"<parameter>band</parameter></paramdef> <paramdef><type>regprocedure</type> " 19356"<parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19357"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19358"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19359"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></" 19360"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19361"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19362"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19363"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19364"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> " 19365"<parameter>band</parameter></paramdef> <paramdef><type>text</type> " 19366"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</" 19367"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19368"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19369"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19370"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></" 19371"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></" 19372"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19373"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19374"args</parameter></paramdef> </funcprototype>" 19375msgstr "" 19376"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19377"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19378"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19379"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19380"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19381"type> <parameter>rast</parameter></paramdef> <paramdef><type>regprocedure</" 19382"type> <parameter>onerasteruserfunc</parameter></paramdef> " 19383"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 19384"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19385"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19386"type> <parameter>rast</parameter></paramdef> <paramdef><type>text</type> " 19387"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</" 19388"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19389"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19390"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19391"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></" 19392"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19393"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19394"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19395"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19396"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> " 19397"<parameter>band</parameter></paramdef> <paramdef><type>regprocedure</type> " 19398"<parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19399"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19400"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19401"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></" 19402"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19403"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19404"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19405"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19406"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> " 19407"<parameter>band</parameter></paramdef> <paramdef><type>text</type> " 19408"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</" 19409"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> " 19410"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19411"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></" 19412"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></" 19413"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></" 19414"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</" 19415"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC " 19416"args</parameter></paramdef> </funcprototype>" 19417 19418#. Tag: para 19419#: reference_raster.xml:8137 reference_raster.xml:8255 19420#: reference_raster.xml:8368 19421#, no-c-format 19422msgid "" 19423"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra\"/> instead." 19424msgstr "" 19425"é menosprezado como do 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra\"/>." 19426 19427#. Tag: para 19428#: reference_raster.xml:8142 19429#, no-c-format 19430msgid "" 19431"Creates a new one band raster formed by applying a valid PostgreSQL function " 19432"specified by the <varname>onerasteruserfunc</varname> on the input raster " 19433"(<varname>rast</varname>). If no <varname>band</varname> is specified, band " 19434"1 is assumed. The new raster will have the same georeference, width, and " 19435"height as the original raster but will only have one band." 19436msgstr "" 19437"Cria uma nova banda raster formada pela aplicação válida de uma função " 19438"PostgreSQL definida pela <varname>onerasteruserfunc</varname> no raster de " 19439"entrada (<varname>rast</varname>). Se <varname>band</varname> não for dado, " 19440"a banda 1 é assumida. O novo raster terá a mesma georreferência, largura e " 19441"altura que o raster original, mas só terá uma banda. " 19442 19443#. Tag: para 19444#: reference_raster.xml:8146 19445#, no-c-format 19446msgid "" 19447"The <varname>onerasteruserfunc</varname> parameter must be the name and " 19448"signature of a SQL or PL/pgSQL function, cast to a regprocedure. A very " 19449"simple and quite useless PL/pgSQL function example is: " 19450"<programlisting>CREATE OR REPLACE FUNCTION simple_function(pixel FLOAT, pos " 19451"INTEGER[], VARIADIC args TEXT[])\n" 19452" RETURNS FLOAT\n" 19453" AS $$ BEGIN\n" 19454" RETURN 0.0;\n" 19455" END; $$\n" 19456" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The " 19457"<varname>userfunction</varname> may accept two or three arguments: a float " 19458"value, an optional integer array, and a variadic text array. The first " 19459"argument is the value of an individual raster cell (regardless of the raster " 19460"datatype). The second argument is the position of the current processing " 19461"cell in the form '{x,y}'. The third argument indicates that all remaining " 19462"parameters to <xref linkend=\"RT_ST_MapAlgebraFct\"/> shall be passed " 19463"through to the <varname>userfunction</varname>." 19464msgstr "" 19465"The <varname>onerasteruserfunc</varname> parameter must be the name and " 19466"signature of a SQL or PL/pgSQL function, cast to a regprocedure. A very " 19467"simple and quite useless PL/pgSQL function example is: " 19468"<programlisting>CREATE OR REPLACE FUNCTION simple_function(pixel FLOAT, pos " 19469"INTEGER[], VARIADIC args TEXT[])\n" 19470" RETURNS FLOAT\n" 19471" AS $$ BEGIN\n" 19472" RETURN 0.0;\n" 19473" END; $$\n" 19474" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The " 19475"<varname>userfunction</varname> may accept two or three arguments: a float " 19476"value, an optional integer array, and a variadic text array. The first " 19477"argument is the value of an individual raster cell (regardless of the raster " 19478"datatype). The second argument is the position of the current processing " 19479"cell in the form '{x,y}'. The third argument indicates that all remaining " 19480"parameters to <xref linkend=\"RT_ST_MapAlgebraFct\"/> shall be passed " 19481"through to the <varname>userfunction</varname>." 19482 19483#. Tag: para 19484#: reference_raster.xml:8151 19485#, no-c-format 19486msgid "" 19487"Passing a <type>regprodedure</type> argument to a SQL function requires the " 19488"full function signature to be passed, then cast to a <type>regprocedure</" 19489"type> type. To pass the above example PL/pgSQL function as an argument, the " 19490"SQL for the argument is:<programlisting>'simple_function(float,integer[]," 19491"text[])'::regprocedure</programlisting>Note that the argument contains the " 19492"name of the function, the types of the function arguments, quotes around the " 19493"name and argument types, and a cast to a <type>regprocedure</type>." 19494msgstr "" 19495"Passing a <type>regprodedure</type> argument to a SQL function requires the " 19496"full function signature to be passed, then cast to a <type>regprocedure</" 19497"type> type. To pass the above example PL/pgSQL function as an argument, the " 19498"SQL for the argument is:<programlisting>'simple_function(float,integer[]," 19499"text[])'::regprocedure</programlisting>Note that the argument contains the " 19500"name of the function, the types of the function arguments, quotes around the " 19501"name and argument types, and a cast to a <type>regprocedure</type>." 19502 19503#. Tag: para 19504#: reference_raster.xml:8155 19505#, no-c-format 19506msgid "" 19507"The third argument to the <varname>userfunction</varname> is a " 19508"<type>variadic text</type> array. All trailing text arguments to any <xref " 19509"linkend=\"RT_ST_MapAlgebraFct\"/> call are passed through to the specified " 19510"<varname>userfunction</varname>, and are contained in the <varname>args</" 19511"varname> argument." 19512msgstr "" 19513"O terceiro argumento para a <varname>userfunction</varname> é um " 19514"<type>variadic text</type> arranjo. Todos os argumentos seguindo qualquer " 19515"chamada <xref linkend=\"RT_ST_MapAlgebraFct\"/> passam pela " 19516"<varname>userfunction</varname> especificada, e são contidos no argumento " 19517"<varname>args</varname>." 19518 19519#. Tag: para 19520#: reference_raster.xml:8164 19521#, no-c-format 19522msgid "" 19523"The <type>text[]</type> argument to the <varname>userfunction</varname> is " 19524"required, regardless of whether you choose to pass any arguments to your " 19525"user function for processing or not." 19526msgstr "" 19527"O argumento <type>text[]</type> para o <varname>userfunction</varname> é " 19528"requerido, independente se escolher passar argumentos para sua função " 19529"usuário processar ou não. " 19530 19531#. Tag: programlisting 19532#: reference_raster.xml:8174 19533#, no-c-format 19534msgid "" 19535"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n" 19536"CREATE FUNCTION mod_fct(pixel float, pos integer[], variadic args text[])\n" 19537"RETURNS float\n" 19538"AS $$\n" 19539"BEGIN\n" 19540" RETURN pixel::integer % 2;\n" 19541"END;\n" 19542"$$\n" 19543"LANGUAGE 'plpgsql' IMMUTABLE;\n" 19544"\n" 19545"UPDATE dummy_rast SET map_rast = ST_MapAlgebraFct(rast,NULL,'mod_fct(float," 19546"integer[],text[])'::regprocedure) WHERE rid = 2;\n" 19547"\n" 19548"SELECT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast, 1, i, j) As " 19549"mapval\n" 19550"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 19551"generate_series(1,3) AS j\n" 19552"WHERE rid = 2;\n" 19553"\n" 19554" origval | mapval\n" 19555"---------+--------\n" 19556" 253 | 1\n" 19557" 254 | 0\n" 19558" 253 | 1\n" 19559" 253 | 1\n" 19560" 254 | 0\n" 19561" 254 | 0\n" 19562" 250 | 0\n" 19563" 254 | 0\n" 19564" 254 | 0" 19565msgstr "" 19566"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n" 19567"CREATE FUNCTION mod_fct(pixel float, pos integer[], variadic args text[])\n" 19568"RETURNS float\n" 19569"AS $$\n" 19570"BEGIN\n" 19571" RETURN pixel::integer % 2;\n" 19572"END;\n" 19573"$$\n" 19574"LANGUAGE 'plpgsql' IMMUTABLE;\n" 19575"\n" 19576"UPDATE dummy_rast SET map_rast = ST_MapAlgebraFct(rast,NULL,'mod_fct(float," 19577"integer[],text[])'::regprocedure) WHERE rid = 2;\n" 19578"\n" 19579"SELECT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast, 1, i, j) As " 19580"mapval\n" 19581"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 19582"generate_series(1,3) AS j\n" 19583"WHERE rid = 2;\n" 19584"\n" 19585" origval | mapval\n" 19586"---------+--------\n" 19587" 253 | 1\n" 19588" 254 | 0\n" 19589" 253 | 1\n" 19590" 253 | 1\n" 19591" 254 | 0\n" 19592" 254 | 0\n" 19593" 250 | 0\n" 19594" 254 | 0\n" 19595" 254 | 0" 19596 19597#. Tag: para 19598#: reference_raster.xml:8176 19599#, no-c-format 19600msgid "" 19601"Create a new 1 band raster of pixel-type 2BUI from our original that is " 19602"reclassified and set the nodata value to a passed parameter to the user " 19603"function (0)." 19604msgstr "" 19605"Cria uma nova banda raster 1 de tipo pixel 2BUI da original que é " 19606"reclassificada e adquire valor sem dados para uma parâmetro passado à função " 19607"usuário (0). " 19608 19609#. Tag: programlisting 19610#: reference_raster.xml:8177 19611#, no-c-format 19612msgid "" 19613"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n" 19614"CREATE FUNCTION classify_fct(pixel float, pos integer[], variadic args " 19615"text[])\n" 19616"RETURNS float\n" 19617"AS\n" 19618"$$\n" 19619"DECLARE\n" 19620" nodata float := 0;\n" 19621"BEGIN\n" 19622" IF NOT args[1] IS NULL THEN\n" 19623" nodata := args[1];\n" 19624" END IF;\n" 19625" IF pixel < 251 THEN\n" 19626" RETURN 1;\n" 19627" ELSIF pixel = 252 THEN\n" 19628" RETURN 2;\n" 19629" ELSIF pixel > 252 THEN\n" 19630" RETURN 3;\n" 19631" ELSE\n" 19632" RETURN nodata;\n" 19633" END IF;\n" 19634"END;\n" 19635"$$\n" 19636"LANGUAGE 'plpgsql';\n" 19637"UPDATE dummy_rast SET map_rast2 = " 19638"ST_MapAlgebraFct(rast,'2BUI','classify_fct(float,integer[],text[])'::" 19639"regprocedure, '0') WHERE rid = 2;\n" 19640"\n" 19641"SELECT DISTINCT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast2, 1, i, " 19642"j) As mapval\n" 19643"FROM dummy_rast CROSS JOIN generate_series(1, 5) AS i CROSS JOIN " 19644"generate_series(1,5) AS j\n" 19645"WHERE rid = 2;\n" 19646"\n" 19647" origval | mapval\n" 19648"---------+--------\n" 19649" 249 | 1\n" 19650" 250 | 1\n" 19651" 251 |\n" 19652" 252 | 2\n" 19653" 253 | 3\n" 19654" 254 | 3\n" 19655"\n" 19656"SELECT ST_BandPixelType(map_rast2) As b1pixtyp\n" 19657"FROM dummy_rast WHERE rid = 2;\n" 19658"\n" 19659" b1pixtyp\n" 19660"----------\n" 19661" 2BUI" 19662msgstr "" 19663"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n" 19664"CREATE FUNCTION classify_fct(pixel float, pos integer[], variadic args " 19665"text[])\n" 19666"RETURNS float\n" 19667"AS\n" 19668"$$\n" 19669"DECLARE\n" 19670" nodata float := 0;\n" 19671"BEGIN\n" 19672" IF NOT args[1] IS NULL THEN\n" 19673" nodata := args[1];\n" 19674" END IF;\n" 19675" IF pixel < 251 THEN\n" 19676" RETURN 1;\n" 19677" ELSIF pixel = 252 THEN\n" 19678" RETURN 2;\n" 19679" ELSIF pixel > 252 THEN\n" 19680" RETURN 3;\n" 19681" ELSE\n" 19682" RETURN nodata;\n" 19683" END IF;\n" 19684"END;\n" 19685"$$\n" 19686"LANGUAGE 'plpgsql';\n" 19687"UPDATE dummy_rast SET map_rast2 = " 19688"ST_MapAlgebraFct(rast,'2BUI','classify_fct(float,integer[],text[])'::" 19689"regprocedure, '0') WHERE rid = 2;\n" 19690"\n" 19691"SELECT DISTINCT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast2, 1, i, " 19692"j) As mapval\n" 19693"FROM dummy_rast CROSS JOIN generate_series(1, 5) AS i CROSS JOIN " 19694"generate_series(1,5) AS j\n" 19695"WHERE rid = 2;\n" 19696"\n" 19697" origval | mapval\n" 19698"---------+--------\n" 19699" 249 | 1\n" 19700" 250 | 1\n" 19701" 251 |\n" 19702" 252 | 2\n" 19703" 253 | 3\n" 19704" 254 | 3\n" 19705"\n" 19706"SELECT ST_BandPixelType(map_rast2) As b1pixtyp\n" 19707"FROM dummy_rast WHERE rid = 2;\n" 19708"\n" 19709" b1pixtyp\n" 19710"----------\n" 19711" 2BUI" 19712 19713#. Tag: para 19714#: reference_raster.xml:8188 19715#, no-c-format 19716msgid "original (column rast-view)" 19717msgstr "original (column rast-view)" 19718 19719#. Tag: programlisting 19720#: reference_raster.xml:8205 19721#, no-c-format 19722msgid "" 19723"CREATE FUNCTION rast_plus_tan(pixel float, pos integer[], variadic args " 19724"text[])\n" 19725"RETURNS float\n" 19726"AS\n" 19727"$$\n" 19728"BEGIN\n" 19729" RETURN tan(pixel) * pixel;\n" 19730"END;\n" 19731"$$\n" 19732"LANGUAGE 'plpgsql';\n" 19733"\n" 19734"SELECT ST_AddBand(\n" 19735" ST_AddBand(\n" 19736" ST_AddBand(\n" 19737" ST_MakeEmptyRaster(rast_view),\n" 19738" ST_MapAlgebraFct(rast_view,1," 19739"NULL,'rast_plus_tan(float,integer[],text[])'::regprocedure)\n" 19740" ),\n" 19741" ST_Band(rast_view,2)\n" 19742" ),\n" 19743" ST_Band(rast_view, 3) As rast_view_ma\n" 19744")\n" 19745"FROM wind\n" 19746"WHERE rid=167;" 19747msgstr "" 19748"CREATE FUNCTION rast_plus_tan(pixel float, pos integer[], variadic args " 19749"text[])\n" 19750"RETURNS float\n" 19751"AS\n" 19752"$$\n" 19753"BEGIN\n" 19754" RETURN tan(pixel) * pixel;\n" 19755"END;\n" 19756"$$\n" 19757"LANGUAGE 'plpgsql';\n" 19758"\n" 19759"SELECT ST_AddBand(\n" 19760" ST_AddBand(\n" 19761" ST_AddBand(\n" 19762" ST_MakeEmptyRaster(rast_view),\n" 19763" ST_MapAlgebraFct(rast_view,1," 19764"NULL,'rast_plus_tan(float,integer[],text[])'::regprocedure)\n" 19765" ),\n" 19766" ST_Band(rast_view,2)\n" 19767" ),\n" 19768" ST_Band(rast_view, 3) As rast_view_ma\n" 19769")\n" 19770"FROM wind\n" 19771"WHERE rid=167;" 19772 19773#. Tag: para 19774#: reference_raster.xml:8210 reference_raster.xml:8333 19775#, no-c-format 19776msgid "" 19777", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference" 19778"\"/>, <xref linkend=\"RT_ST_SetValue\"/>" 19779msgstr "" 19780", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference" 19781"\"/>, <xref linkend=\"RT_ST_SetValue\"/>" 19782 19783#. Tag: refpurpose 19784#: reference_raster.xml:8222 19785#, no-c-format 19786msgid "" 19787"2 band version - Creates a new one band raster formed by applying a valid " 19788"PostgreSQL function on the 2 input raster bands and of pixeltype prodived. " 19789"Band 1 is assumed if no band is specified. Extent type defaults to " 19790"INTERSECTION if not specified." 19791msgstr "" 19792"Versão de banda 2 - Cria uma nova banda raster um formada pela aplicação de " 19793"uma função PostgreSQL na 2 entrada de bandas raster e do tipo de pixel " 19794"fornecido. A banda 1 é assumida se nenhuma banda for especificada. Tipo de " 19795"extensão torna-se INTERSEÇÃO se não especificada. " 19796 19797#. Tag: funcsynopsis 19798#: reference_raster.xml:8226 19799#, no-c-format 19800msgid "" 19801"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19802"funcdef> <paramdef><type>raster</type> <parameter>rast1</parameter></" 19803"paramdef> <paramdef><type>raster</type> <parameter>rast2</parameter></" 19804"paramdef> <paramdef><type>regprocedure</type> <parameter>tworastuserfunc</" 19805"parameter></paramdef> <paramdef choice=\"opt\"><type>text</type> " 19806"<parameter>pixeltype=same_as_rast1</parameter></paramdef> <paramdef choice=" 19807"\"opt\"><type>text</type> <parameter>extenttype=INTERSECTION</parameter></" 19808"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 19809"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19810"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19811"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer</type> " 19812"<parameter>band1</parameter></paramdef> <paramdef><type>raster</type> " 19813"<parameter>rast2</parameter></paramdef> <paramdef><type>integer</type> " 19814"<parameter>band2</parameter></paramdef> <paramdef><type>regprocedure</type> " 19815"<parameter>tworastuserfunc</parameter></paramdef> <paramdef choice=\"opt" 19816"\"><type>text</type> <parameter>pixeltype=same_as_rast1</parameter></" 19817"paramdef> <paramdef choice=\"opt\"><type>text</type> " 19818"<parameter>extenttype=INTERSECTION</parameter></paramdef> " 19819"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></" 19820"paramdef> </funcprototype>" 19821msgstr "" 19822"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></" 19823"funcdef> <paramdef><type>raster</type> <parameter>rast1</parameter></" 19824"paramdef> <paramdef><type>raster</type> <parameter>rast2</parameter></" 19825"paramdef> <paramdef><type>regprocedure</type> <parameter>tworastuserfunc</" 19826"parameter></paramdef> <paramdef choice=\"opt\"><type>text</type> " 19827"<parameter>pixeltype=same_as_rast1</parameter></paramdef> <paramdef choice=" 19828"\"opt\"><type>text</type> <parameter>extenttype=INTERSECTION</parameter></" 19829"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 19830"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 19831"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</" 19832"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer</type> " 19833"<parameter>band1</parameter></paramdef> <paramdef><type>raster</type> " 19834"<parameter>rast2</parameter></paramdef> <paramdef><type>integer</type> " 19835"<parameter>band2</parameter></paramdef> <paramdef><type>regprocedure</type> " 19836"<parameter>tworastuserfunc</parameter></paramdef> <paramdef choice=\"opt" 19837"\"><type>text</type> <parameter>pixeltype=same_as_rast1</parameter></" 19838"paramdef> <paramdef choice=\"opt\"><type>text</type> " 19839"<parameter>extenttype=INTERSECTION</parameter></paramdef> " 19840"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></" 19841"paramdef> </funcprototype>" 19842 19843#. Tag: para 19844#: reference_raster.xml:8260 19845#, no-c-format 19846msgid "" 19847"Creates a new one band raster formed by applying a valid PostgreSQL function " 19848"specified by the <varname>tworastuserfunc</varname> on the input raster " 19849"<varname>rast1</varname>, <varname>rast2</varname>. If no <varname>band1</" 19850"varname> or <varname>band2</varname> is specified, band 1 is assumed. The " 19851"new raster will have the same georeference, width, and height as the " 19852"original rasters but will only have one band." 19853msgstr "" 19854"Cria uma nova banda raster um formada pela aplicação válida de uma função " 19855"PostgreSQL definida pela <varname>tworastuserfunc</varname> no raster de " 19856"entrada <varname>rast1</varname>, <varname>rast1</varname>. Se " 19857"<varname>band1</varname> ou <varname>band2</varname> não forem " 19858"especificadas, a banda 1 é assumida. O novo raster terá a mesma " 19859"georreferência, largura e altura que o raster original, mas só terá uma " 19860"banda. " 19861 19862#. Tag: para 19863#: reference_raster.xml:8263 19864#, no-c-format 19865msgid "" 19866"If <varname>pixeltype</varname> is passed in, then the new raster will have " 19867"a band of that pixeltype. If pixeltype is passed NULL or left out, then the " 19868"new raster band will have the same pixeltype as the input <varname>rast1</" 19869"varname> band." 19870msgstr "" 19871"Se um <varname>pixeltype</varname> passar, então o novo raster terá a mesma " 19872"banda dele. Se o tipo de pixel passar NULO, a nova banda raster terá o mesmo " 19873"tipo de pixel que a banda de entrada <varname>rast1</varname>." 19874 19875#. Tag: para 19876#: reference_raster.xml:8266 19877#, no-c-format 19878msgid "" 19879"The <varname>tworastuserfunc</varname> parameter must be the name and " 19880"signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example " 19881"PL/pgSQL function example is: <programlisting>CREATE OR REPLACE FUNCTION " 19882"simple_function_for_two_rasters(pixel1 FLOAT, pixel2 FLOAT, pos INTEGER[], " 19883"VARIADIC args TEXT[])\n" 19884" RETURNS FLOAT\n" 19885" AS $$ BEGIN\n" 19886" RETURN 0.0;\n" 19887" END; $$\n" 19888" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The " 19889"<varname>tworastuserfunc</varname> may accept three or four arguments: a " 19890"double precision value, a double precision value, an optional integer array, " 19891"and a variadic text array. The first argument is the value of an individual " 19892"raster cell in <varname>rast1</varname> (regardless of the raster datatype). " 19893"The second argument is an individual raster cell value in <varname>rast2</" 19894"varname>. The third argument is the position of the current processing cell " 19895"in the form '{x,y}'. The fourth argument indicates that all remaining " 19896"parameters to <xref linkend=\"RT_ST_MapAlgebraFct2\"/> shall be passed " 19897"through to the <varname>tworastuserfunc</varname>." 19898msgstr "" 19899"The <varname>tworastuserfunc</varname> parameter must be the name and " 19900"signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example " 19901"PL/pgSQL function example is: <programlisting>CREATE OR REPLACE FUNCTION " 19902"simple_function_for_two_rasters(pixel1 FLOAT, pixel2 FLOAT, pos INTEGER[], " 19903"VARIADIC args TEXT[])\n" 19904" RETURNS FLOAT\n" 19905" AS $$ BEGIN\n" 19906" RETURN 0.0;\n" 19907" END; $$\n" 19908" LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The " 19909"<varname>tworastuserfunc</varname> may accept three or four arguments: a " 19910"double precision value, a double precision value, an optional integer array, " 19911"and a variadic text array. The first argument is the value of an individual " 19912"raster cell in <varname>rast1</varname> (regardless of the raster datatype). " 19913"The second argument is an individual raster cell value in <varname>rast2</" 19914"varname>. The third argument is the position of the current processing cell " 19915"in the form '{x,y}'. The fourth argument indicates that all remaining " 19916"parameters to <xref linkend=\"RT_ST_MapAlgebraFct2\"/> shall be passed " 19917"through to the <varname>tworastuserfunc</varname>." 19918 19919#. Tag: para 19920#: reference_raster.xml:8272 19921#, no-c-format 19922msgid "" 19923"Passing a <type>regprodedure</type> argument to a SQL function requires the " 19924"full function signature to be passed, then cast to a <type>regprocedure</" 19925"type> type. To pass the above example PL/pgSQL function as an argument, the " 19926"SQL for the argument is:<programlisting>'simple_function(double precision, " 19927"double precision, integer[], text[])'::regprocedure</programlisting>Note " 19928"that the argument contains the name of the function, the types of the " 19929"function arguments, quotes around the name and argument types, and a cast to " 19930"a <type>regprocedure</type>." 19931msgstr "" 19932"Passing a <type>regprodedure</type> argument to a SQL function requires the " 19933"full function signature to be passed, then cast to a <type>regprocedure</" 19934"type> type. To pass the above example PL/pgSQL function as an argument, the " 19935"SQL for the argument is:<programlisting>'simple_function(double precision, " 19936"double precision, integer[], text[])'::regprocedure</programlisting>Note " 19937"that the argument contains the name of the function, the types of the " 19938"function arguments, quotes around the name and argument types, and a cast to " 19939"a <type>regprocedure</type>." 19940 19941#. Tag: para 19942#: reference_raster.xml:8275 19943#, no-c-format 19944msgid "" 19945"The fourth argument to the <varname>tworastuserfunc</varname> is a " 19946"<type>variadic text</type> array. All trailing text arguments to any <xref " 19947"linkend=\"RT_ST_MapAlgebraFct2\"/> call are passed through to the specified " 19948"<varname>tworastuserfunc</varname>, and are contained in the " 19949"<varname>userargs</varname> argument." 19950msgstr "" 19951 19952#. Tag: para 19953#: reference_raster.xml:8283 19954#, no-c-format 19955msgid "" 19956"The <type>text[]</type> argument to the <varname>tworastuserfunc</varname> " 19957"is required, regardless of whether you choose to pass any arguments to your " 19958"user function for processing or not." 19959msgstr "" 19960"O argumento <type>text[]</type> para a <varname>tworastuserfunc</varname> é " 19961"requerido, independente se escolher passar argumentos para sua função " 19962"usuário processar ou não. " 19963 19964#. Tag: programlisting 19965#: reference_raster.xml:8291 19966#, no-c-format 19967msgid "" 19968"-- define our user defined function --\n" 19969"CREATE OR REPLACE FUNCTION raster_mapalgebra_union(\n" 19970" rast1 double precision,\n" 19971" rast2 double precision,\n" 19972" pos integer[],\n" 19973" VARIADIC userargs text[]\n" 19974")\n" 19975" RETURNS double precision\n" 19976" AS $$\n" 19977" DECLARE\n" 19978" BEGIN\n" 19979" CASE\n" 19980" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n" 19981" RETURN ((rast1 + rast2)/2.);\n" 19982" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n" 19983" RETURN NULL;\n" 19984" WHEN rast1 IS NULL THEN\n" 19985" RETURN rast2;\n" 19986" ELSE\n" 19987" RETURN rast1;\n" 19988" END CASE;\n" 19989"\n" 19990" RETURN NULL;\n" 19991" END;\n" 19992" $$ LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n" 19993"\n" 19994"-- prep our test table of rasters\n" 19995"DROP TABLE IF EXISTS map_shapes;\n" 19996"CREATE TABLE map_shapes(rid serial PRIMARY KEY, rast raster, bnum integer, " 19997"descrip text);\n" 19998"INSERT INTO map_shapes(rast,bnum, descrip)\n" 19999"WITH mygeoms\n" 20000" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(90,90),30) As geom, 'circle' " 20001"As descrip\n" 20002" UNION ALL\n" 20003" SELECT 3 AS bnum,\n" 20004" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 " 20005"50)'), 15) As geom, 'big road' As descrip\n" 20006" UNION ALL\n" 20007" SELECT 1 As bnum,\n" 20008" ST_Translate(ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 " 20009"150,150 50)'), 8,'join=bevel'), 10,-6) As geom, 'small road' As descrip\n" 20010" ),\n" 20011" -- define our canvas to be 1 to 1 pixel to geometry\n" 20012" canvas\n" 20013" AS ( SELECT ST_AddBand(ST_MakeEmptyRaster(250,\n" 20014" 250,\n" 20015" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0 ) , '8BUI'::" 20016"text,0) As rast\n" 20017" FROM (SELECT ST_Extent(geom) As e,\n" 20018" Max(ST_SRID(geom)) As srid\n" 20019" from mygeoms\n" 20020" ) As foo\n" 20021" )\n" 20022"-- return our rasters aligned with our canvas\n" 20023"SELECT ST_AsRaster(m.geom, canvas.rast, '8BUI', 240) As rast, bnum, descrip\n" 20024" FROM mygeoms AS m CROSS JOIN canvas\n" 20025"UNION ALL\n" 20026"SELECT canvas.rast, 4, 'canvas'\n" 20027"FROM canvas;\n" 20028"\n" 20029"-- Map algebra on single band rasters and then collect with ST_AddBand\n" 20030"INSERT INTO map_shapes(rast,bnum,descrip)\n" 20031"SELECT ST_AddBand(ST_AddBand(rasts[1], rasts[2]),rasts[3]), 4, 'map bands " 20032"overlay fct union (canvas)'\n" 20033" FROM (SELECT ARRAY(SELECT ST_MapAlgebraFct(m1.rast, m2.rast,\n" 20034" 'raster_mapalgebra_union(double precision, double " 20035"precision, integer[], text[])'::regprocedure, '8BUI', 'FIRST')\n" 20036" FROM map_shapes As m1 CROSS JOIN map_shapes As m2\n" 20037" WHERE m1.descrip = 'canvas' AND m2.descrip <> 'canvas' ORDER " 20038"BY m2.bnum) As rasts) As foo;" 20039msgstr "" 20040"-- define our user defined function --\n" 20041"CREATE OR REPLACE FUNCTION raster_mapalgebra_union(\n" 20042" rast1 double precision,\n" 20043" rast2 double precision,\n" 20044" pos integer[],\n" 20045" VARIADIC userargs text[]\n" 20046")\n" 20047" RETURNS double precision\n" 20048" AS $$\n" 20049" DECLARE\n" 20050" BEGIN\n" 20051" CASE\n" 20052" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n" 20053" RETURN ((rast1 + rast2)/2.);\n" 20054" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n" 20055" RETURN NULL;\n" 20056" WHEN rast1 IS NULL THEN\n" 20057" RETURN rast2;\n" 20058" ELSE\n" 20059" RETURN rast1;\n" 20060" END CASE;\n" 20061"\n" 20062" RETURN NULL;\n" 20063" END;\n" 20064" $$ LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n" 20065"\n" 20066"-- prep our test table of rasters\n" 20067"DROP TABLE IF EXISTS map_shapes;\n" 20068"CREATE TABLE map_shapes(rid serial PRIMARY KEY, rast raster, bnum integer, " 20069"descrip text);\n" 20070"INSERT INTO map_shapes(rast,bnum, descrip)\n" 20071"WITH mygeoms\n" 20072" AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(90,90),30) As geom, 'circle' " 20073"As descrip\n" 20074" UNION ALL\n" 20075" SELECT 3 AS bnum,\n" 20076" ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 " 20077"50)'), 15) As geom, 'big road' As descrip\n" 20078" UNION ALL\n" 20079" SELECT 1 As bnum,\n" 20080" ST_Translate(ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 " 20081"150,150 50)'), 8,'join=bevel'), 10,-6) As geom, 'small road' As descrip\n" 20082" ),\n" 20083" -- define our canvas to be 1 to 1 pixel to geometry\n" 20084" canvas\n" 20085" AS ( SELECT ST_AddBand(ST_MakeEmptyRaster(250,\n" 20086" 250,\n" 20087" ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0 ) , '8BUI'::" 20088"text,0) As rast\n" 20089" FROM (SELECT ST_Extent(geom) As e,\n" 20090" Max(ST_SRID(geom)) As srid\n" 20091" from mygeoms\n" 20092" ) As foo\n" 20093" )\n" 20094"-- return our rasters aligned with our canvas\n" 20095"SELECT ST_AsRaster(m.geom, canvas.rast, '8BUI', 240) As rast, bnum, descrip\n" 20096" FROM mygeoms AS m CROSS JOIN canvas\n" 20097"UNION ALL\n" 20098"SELECT canvas.rast, 4, 'canvas'\n" 20099"FROM canvas;\n" 20100"\n" 20101"-- Map algebra on single band rasters and then collect with ST_AddBand\n" 20102"INSERT INTO map_shapes(rast,bnum,descrip)\n" 20103"SELECT ST_AddBand(ST_AddBand(rasts[1], rasts[2]),rasts[3]), 4, 'map bands " 20104"overlay fct union (canvas)'\n" 20105" FROM (SELECT ARRAY(SELECT ST_MapAlgebraFct(m1.rast, m2.rast,\n" 20106" 'raster_mapalgebra_union(double precision, double " 20107"precision, integer[], text[])'::regprocedure, '8BUI', 'FIRST')\n" 20108" FROM map_shapes As m1 CROSS JOIN map_shapes As m2\n" 20109" WHERE m1.descrip = 'canvas' AND m2.descrip <> 'canvas' ORDER " 20110"BY m2.bnum) As rasts) As foo;" 20111 20112#. Tag: para 20113#: reference_raster.xml:8304 20114#, no-c-format 20115msgid "map bands overlay (canvas) (R: small road, G: circle, B: big road)" 20116msgstr "" 20117"bandas mapa cobrem (quadro) (R: rua pequena, G: círculo, B: rua grande)" 20118 20119#. Tag: title 20120#: reference_raster.xml:8316 20121#, no-c-format 20122msgid "User Defined function that takes extra args" 20123msgstr "Função de usuário definido que toma argumentos extras" 20124 20125#. Tag: programlisting 20126#: reference_raster.xml:8317 20127#, no-c-format 20128msgid "" 20129"CREATE OR REPLACE FUNCTION raster_mapalgebra_userargs(\n" 20130" rast1 double precision,\n" 20131" rast2 double precision,\n" 20132" pos integer[],\n" 20133" VARIADIC userargs text[]\n" 20134")\n" 20135" RETURNS double precision\n" 20136" AS $$\n" 20137" DECLARE\n" 20138" BEGIN\n" 20139" CASE\n" 20140" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n" 20141" RETURN least(userargs[1]::integer,(rast1 + " 20142"rast2)/2.);\n" 20143" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n" 20144" RETURN userargs[2]::integer;\n" 20145" WHEN rast1 IS NULL THEN\n" 20146" RETURN greatest(rast2,random()*userargs[3]::" 20147"integer)::integer;\n" 20148" ELSE\n" 20149" RETURN greatest(rast1, random()*userargs[4]::" 20150"integer)::integer;\n" 20151" END CASE;\n" 20152"\n" 20153" RETURN NULL;\n" 20154" END;\n" 20155" $$ LANGUAGE 'plpgsql' VOLATILE COST 1000;\n" 20156"\n" 20157"SELECT ST_MapAlgebraFct(m1.rast, 1, m1.rast, 3,\n" 20158" 'raster_mapalgebra_userargs(double precision, double " 20159"precision, integer[], text[])'::regprocedure,\n" 20160" '8BUI', 'INTERSECT', '100','200','200','0')\n" 20161" FROM map_shapes As m1\n" 20162" WHERE m1.descrip = 'map bands overlay fct union (canvas)';" 20163msgstr "" 20164"CREATE OR REPLACE FUNCTION raster_mapalgebra_userargs(\n" 20165" rast1 double precision,\n" 20166" rast2 double precision,\n" 20167" pos integer[],\n" 20168" VARIADIC userargs text[]\n" 20169")\n" 20170" RETURNS double precision\n" 20171" AS $$\n" 20172" DECLARE\n" 20173" BEGIN\n" 20174" CASE\n" 20175" WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n" 20176" RETURN least(userargs[1]::integer,(rast1 + " 20177"rast2)/2.);\n" 20178" WHEN rast1 IS NULL AND rast2 IS NULL THEN\n" 20179" RETURN userargs[2]::integer;\n" 20180" WHEN rast1 IS NULL THEN\n" 20181" RETURN greatest(rast2,random()*userargs[3]::" 20182"integer)::integer;\n" 20183" ELSE\n" 20184" RETURN greatest(rast1, random()*userargs[4]::" 20185"integer)::integer;\n" 20186" END CASE;\n" 20187"\n" 20188" RETURN NULL;\n" 20189" END;\n" 20190" $$ LANGUAGE 'plpgsql' VOLATILE COST 1000;\n" 20191"\n" 20192"SELECT ST_MapAlgebraFct(m1.rast, 1, m1.rast, 3,\n" 20193" 'raster_mapalgebra_userargs(double precision, double " 20194"precision, integer[], text[])'::regprocedure,\n" 20195" '8BUI', 'INTERSECT', '100','200','200','0')\n" 20196" FROM map_shapes As m1\n" 20197" WHERE m1.descrip = 'map bands overlay fct union (canvas)';" 20198 20199#. Tag: para 20200#: reference_raster.xml:8325 20201#, no-c-format 20202msgid "user defined with extra args and different bands from same raster" 20203msgstr "" 20204"usuário definido com argumentos extras e bandas diferentes do mesmo raster " 20205 20206#. Tag: refname 20207#: reference_raster.xml:8344 20208#, no-c-format 20209msgid "ST_MapAlgebraFctNgb" 20210msgstr "ST_MapAlgebraFctNgb" 20211 20212#. Tag: refpurpose 20213#: reference_raster.xml:8345 20214#, no-c-format 20215msgid "" 20216"1-band version: Map Algebra Nearest Neighbor using user-defined PostgreSQL " 20217"function. Return a raster which values are the result of a PLPGSQL user " 20218"function involving a neighborhood of values from the input raster band." 20219msgstr "" 20220"Versão 1-banda: o vizinho mais próximo no mapa algébrico usando a função de " 20221"usuário definido PostgreSQL. Retorna um raster cujos valores são o resultado " 20222"de uma função usuário PLPGSQL envolvendo uma vizinhança de valores da banda " 20223"raster de entrada. " 20224 20225#. Tag: funcprototype 20226#: reference_raster.xml:8350 20227#, no-c-format 20228msgid "" 20229"<funcdef>raster <function>ST_MapAlgebraFctNgb</function></funcdef> " 20230"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20231"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 20232"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 20233"<paramdef><type>integer </type> <parameter>ngbwidth</parameter></paramdef> " 20234"<paramdef><type>integer </type> <parameter>ngbheight</parameter></paramdef> " 20235"<paramdef><type>regprocedure </type> <parameter>onerastngbuserfunc</" 20236"parameter></paramdef> <paramdef><type>text </type> <parameter>nodatamode</" 20237"parameter></paramdef> <paramdef><type>text[] </type> <parameter>VARIADIC " 20238"args</parameter></paramdef>" 20239msgstr "" 20240"<funcdef>raster <function>ST_MapAlgebraFctNgb</function></funcdef> " 20241"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20242"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 20243"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 20244"<paramdef><type>integer </type> <parameter>ngbwidth</parameter></paramdef> " 20245"<paramdef><type>integer </type> <parameter>ngbheight</parameter></paramdef> " 20246"<paramdef><type>regprocedure </type> <parameter>onerastngbuserfunc</" 20247"parameter></paramdef> <paramdef><type>text </type> <parameter>nodatamode</" 20248"parameter></paramdef> <paramdef><type>text[] </type> <parameter>VARIADIC " 20249"args</parameter></paramdef>" 20250 20251#. Tag: para 20252#: reference_raster.xml:8373 20253#, no-c-format 20254msgid "" 20255"(one raster version) Return a raster which values are the result of a " 20256"PLPGSQL user function involving a neighborhood of values from the input " 20257"raster band. The user function takes the neighborhood of pixel values as an " 20258"array of numbers, for each pixel, returns the result from the user function, " 20259"replacing pixel value of currently inspected pixel with the function result." 20260msgstr "" 20261"(versão raster um) Retorna um raster cujos valores são o resultado de uma " 20262"função usuário PLPGSQL envolvendo uma vizinhança de valores da banda raster " 20263"de entrada. A função usuário toma a vizinhança de valores de pixel como um " 20264"arranjo de números, para cada pixel, retorna o resultado da função usuário, " 20265"substituindo o valor do pixel, inspecionado no momento, pelo resultado da " 20266"função. " 20267 20268#. Tag: term 20269#: reference_raster.xml:8377 20270#, no-c-format 20271msgid "rast" 20272msgstr "rast" 20273 20274#. Tag: para 20275#: reference_raster.xml:8378 20276#, no-c-format 20277msgid "Raster on which the user function is evaluated." 20278msgstr "Raster no qual a função usuário é avaliada. " 20279 20280#. Tag: term 20281#: reference_raster.xml:8381 20282#, no-c-format 20283msgid "band" 20284msgstr "banda" 20285 20286#. Tag: para 20287#: reference_raster.xml:8382 20288#, no-c-format 20289msgid "Band number of the raster to be evaluated. Default to 1." 20290msgstr "Número de banda do raster a ser avaliado. Padrão é 1. " 20291 20292#. Tag: para 20293#: reference_raster.xml:8386 20294#, no-c-format 20295msgid "" 20296"The resulting pixel type of the output raster. Must be one listed in <xref " 20297"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL. If not passed " 20298"in or set to NULL, will default to the pixeltype of the <varname>rast</" 20299"varname>. Results are truncated if they are larger than what is allowed for " 20300"the pixeltype." 20301msgstr "" 20302"O tipo de pixel resultante do raster de saída. Deve estar listado em <xref " 20303"linkend=\"RT_ST_BandPixelType\"/> ou ser deixado de fora ou ser NULO. Se não " 20304"passar ou não for NULO, o padrão será o tipo de pixel do <varname>rast</" 20305"varname>. Os resultados são cortados se eles forem maiores que o permitido " 20306"para o tipo de pixel. " 20307 20308#. Tag: term 20309#: reference_raster.xml:8389 20310#, no-c-format 20311msgid "ngbwidth" 20312msgstr "ngbwidth" 20313 20314#. Tag: para 20315#: reference_raster.xml:8390 20316#, no-c-format 20317msgid "The width of the neighborhood, in cells." 20318msgstr "A largura da vizinhança, nas células. " 20319 20320#. Tag: term 20321#: reference_raster.xml:8393 20322#, no-c-format 20323msgid "ngbheight" 20324msgstr "ngbheight" 20325 20326#. Tag: para 20327#: reference_raster.xml:8394 20328#, no-c-format 20329msgid "The height of the neighborhood, in cells." 20330msgstr "A altura da vizinhança, nas células. " 20331 20332#. Tag: term 20333#: reference_raster.xml:8397 20334#, no-c-format 20335msgid "onerastngbuserfunc" 20336msgstr "onerastngbuserfunc" 20337 20338#. Tag: para 20339#: reference_raster.xml:8398 20340#, no-c-format 20341msgid "" 20342"PLPGSQL/psql user function to apply to neighborhood pixels of a single band " 20343"of a raster. The first element is a 2-dimensional array of numbers " 20344"representing the rectangular pixel neighborhood" 20345msgstr "" 20346"A função usuário PLPGSQL/psq para aplicar uma vizinhança de pixeis de uma " 20347"única banda de um raster. O primeiro elemento é um arranjo 2-dimensional de " 20348"números representando a vizinhança do pixel retangular " 20349 20350#. Tag: term 20351#: reference_raster.xml:8401 20352#, no-c-format 20353msgid "nodatamode" 20354msgstr "nodatamode" 20355 20356#. Tag: para 20357#: reference_raster.xml:8403 20358#, no-c-format 20359msgid "" 20360"Defines what value to pass to the function for a neighborhood pixel that is " 20361"nodata or NULL" 20362msgstr "" 20363"Define qual valor passar para a função para uma vizinhança de pixel que é " 20364"sem dados ou NULA " 20365 20366#. Tag: para 20367#: reference_raster.xml:8404 20368#, no-c-format 20369msgid "" 20370"'ignore': any NODATA values encountered in the neighborhood are ignored by " 20371"the computation -- this flag must be sent to the user callback function, and " 20372"the user function decides how to ignore it." 20373msgstr "" 20374"'ignore': quaisquer valores NODATA encontrados na vizinhança são ignorados " 20375"pelo cálculo -- esta bandeira deve ser enviada para o retorno da função " 20376"usuário, e ela decide como ignorar. " 20377 20378#. Tag: para 20379#: reference_raster.xml:8405 20380#, no-c-format 20381msgid "" 20382"'NULL': any NODATA values encountered in the neighborhood will cause the " 20383"resulting pixel to be NULL -- the user callback function is skipped in this " 20384"case." 20385msgstr "" 20386"'NULL': quaisquer valores NODATA encontrados na vizinhança acusamos o pixel " 20387"de ser NULL -- neste caso, o retorno da função usuário é pulado." 20388 20389#. Tag: para 20390#: reference_raster.xml:8406 20391#, no-c-format 20392msgid "" 20393"'value': any NODATA values encountered in the neighborhood are replaced by " 20394"the reference pixel (the one in the center of the neighborhood). Note that " 20395"if this value is NODATA, the behavior is the same as 'NULL' (for the " 20396"affected neighborhood)" 20397msgstr "" 20398"'value': quaisquer valores NODATA encontrados na vizinhança são substituídos " 20399"pelo pixel referência (o no centro da vizinhança). Note que se este valor " 20400"for NODATA, o comportamento é o mesmo ce 'NULL' (para a vizinhança afetada) " 20401 20402#. Tag: term 20403#: reference_raster.xml:8410 20404#, no-c-format 20405msgid "args" 20406msgstr "args" 20407 20408#. Tag: para 20409#: reference_raster.xml:8411 20410#, no-c-format 20411msgid "Arguments to pass into the user function." 20412msgstr "Argumentos para passar dentro da função usuário. " 20413 20414#. Tag: para 20415#: reference_raster.xml:8421 20416#, no-c-format 20417msgid "" 20418"Examples utilize the katrina raster loaded as a single tile described in " 20419"<ulink url=\"http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html\">http://" 20420"trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</ulink> and then prepared in " 20421"the <xref linkend=\"RT_ST_Rescale\"/> examples" 20422msgstr "" 20423"Exemplos utilizam o raster katrina carregado como única tile descrita em " 20424"<ulink url=\"http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html\">http://" 20425"trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</ulink> e preparada nos " 20426"exemplos <xref linkend=\"RT_ST_Rescale\"/>" 20427 20428#. Tag: programlisting 20429#: reference_raster.xml:8423 20430#, no-c-format 20431msgid "" 20432"--\n" 20433"-- A simple 'callback' user function that averages up all the values in a " 20434"neighborhood.\n" 20435"--\n" 20436"CREATE OR REPLACE FUNCTION rast_avg(matrix float[][], nodatamode text, " 20437"variadic args text[])\n" 20438" RETURNS float AS\n" 20439" $$\n" 20440" DECLARE\n" 20441" _matrix float[][];\n" 20442" x1 integer;\n" 20443" x2 integer;\n" 20444" y1 integer;\n" 20445" y2 integer;\n" 20446" sum float;\n" 20447" BEGIN\n" 20448" _matrix := matrix;\n" 20449" sum := 0;\n" 20450" FOR x in array_lower(matrix, 1)..array_upper(matrix, 1) LOOP\n" 20451" FOR y in array_lower(matrix, 2)..array_upper(matrix, 2) LOOP\n" 20452" sum := sum + _matrix[x][y];\n" 20453" END LOOP;\n" 20454" END LOOP;\n" 20455" RETURN (sum*1.0/(array_upper(matrix,1)*array_upper(matrix,2) ))::" 20456"integer ;\n" 20457" END;\n" 20458" $$\n" 20459"LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n" 20460"\n" 20461"-- now we apply to our raster averaging pixels within 2 pixels of each other " 20462"in X and Y direction --\n" 20463"SELECT ST_MapAlgebraFctNgb(rast, 1, '8BUI', 4,4,\n" 20464" 'rast_avg(float[][], text, text[])'::regprocedure, 'NULL', " 20465"NULL) As nn_with_border\n" 20466" FROM katrinas_rescaled\n" 20467" limit 1;" 20468msgstr "" 20469"--\n" 20470"-- A simple 'callback' user function that averages up all the values in a " 20471"neighborhood.\n" 20472"--\n" 20473"CREATE OR REPLACE FUNCTION rast_avg(matrix float[][], nodatamode text, " 20474"variadic args text[])\n" 20475" RETURNS float AS\n" 20476" $$\n" 20477" DECLARE\n" 20478" _matrix float[][];\n" 20479" x1 integer;\n" 20480" x2 integer;\n" 20481" y1 integer;\n" 20482" y2 integer;\n" 20483" sum float;\n" 20484" BEGIN\n" 20485" _matrix := matrix;\n" 20486" sum := 0;\n" 20487" FOR x in array_lower(matrix, 1)..array_upper(matrix, 1) LOOP\n" 20488" FOR y in array_lower(matrix, 2)..array_upper(matrix, 2) LOOP\n" 20489" sum := sum + _matrix[x][y];\n" 20490" END LOOP;\n" 20491" END LOOP;\n" 20492" RETURN (sum*1.0/(array_upper(matrix,1)*array_upper(matrix,2) ))::" 20493"integer ;\n" 20494" END;\n" 20495" $$\n" 20496"LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n" 20497"\n" 20498"-- now we apply to our raster averaging pixels within 2 pixels of each other " 20499"in X and Y direction --\n" 20500"SELECT ST_MapAlgebraFctNgb(rast, 1, '8BUI', 4,4,\n" 20501" 'rast_avg(float[][], text, text[])'::regprocedure, 'NULL', " 20502"NULL) As nn_with_border\n" 20503" FROM katrinas_rescaled\n" 20504" limit 1;" 20505 20506#. Tag: para 20507#: reference_raster.xml:8437 20508#, no-c-format 20509msgid "First band of our raster" 20510msgstr "Primeira banda do nosso raster" 20511 20512#. Tag: para 20513#: reference_raster.xml:8451 20514#, no-c-format 20515msgid "new raster after averaging pixels withing 4x4 pixels of each other" 20516msgstr "novo raster depois de calcular pixeis atando 4x4 pixeis de cada um " 20517 20518#. Tag: para 20519#: reference_raster.xml:8466 20520#, no-c-format 20521msgid "" 20522", <xref linkend=\"RT_ST_MapAlgebraExpr\"/>, <xref linkend=\"RT_ST_Rescale\"/>" 20523msgstr "" 20524", <xref linkend=\"RT_ST_MapAlgebraExpr\"/>, <xref linkend=\"RT_ST_Rescale\"/>" 20525 20526#. Tag: refname 20527#: reference_raster.xml:8476 20528#, no-c-format 20529msgid "ST_Reclass" 20530msgstr "ST_Reclass" 20531 20532#. Tag: refpurpose 20533#: reference_raster.xml:8477 20534#, no-c-format 20535msgid "" 20536"Creates a new raster composed of band types reclassified from original. The " 20537"nband is the band to be changed. If nband is not specified assumed to be 1. " 20538"All other bands are returned unchanged. Use case: convert a 16BUI band to a " 20539"8BUI and so forth for simpler rendering as viewable formats." 20540msgstr "" 20541"Cria um novo raster composto por tipos de banda reclassificados do original. " 20542"A nband pode ser alterada. Se nenhuma nband for especificada, usa-se a 1. " 20543"Todas as outras bandas são retornadas inalteradas. Use caso: converta uma " 20544"banda 16BUI para 8BUI e então adiante para uma renderização mais simples " 20545"como formatos visíveis. " 20546 20547#. Tag: funcsynopsis 20548#: reference_raster.xml:8481 20549#, no-c-format 20550msgid "" 20551"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> " 20552"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20553"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 20554"<paramdef><type>text </type> <parameter>reclassexpr</parameter></paramdef> " 20555"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 20556"<paramdef choice=\"opt\"><type>double precision </type> " 20557"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 20558"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> " 20559"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20560"<paramdef><type>reclassarg[] </type> <parameter>VARIADIC reclassargset</" 20561"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 20562"<function>ST_Reclass</function></funcdef> <paramdef><type>raster </type> " 20563"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> " 20564"<parameter>reclassexpr</parameter></paramdef> <paramdef><type>text </type> " 20565"<parameter>pixeltype</parameter></paramdef> </funcprototype>" 20566msgstr "" 20567"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> " 20568"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20569"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 20570"<paramdef><type>text </type> <parameter>reclassexpr</parameter></paramdef> " 20571"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> " 20572"<paramdef choice=\"opt\"><type>double precision </type> " 20573"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> " 20574"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> " 20575"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 20576"<paramdef><type>reclassarg[] </type> <parameter>VARIADIC reclassargset</" 20577"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster " 20578"<function>ST_Reclass</function></funcdef> <paramdef><type>raster </type> " 20579"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> " 20580"<parameter>reclassexpr</parameter></paramdef> <paramdef><type>text </type> " 20581"<parameter>pixeltype</parameter></paramdef> </funcprototype>" 20582 20583#. Tag: para 20584#: reference_raster.xml:8509 20585#, no-c-format 20586msgid "" 20587"Creates a new raster formed by applying a valid PostgreSQL algebraic " 20588"operation defined by the <varname>reclassexpr</varname> on the input raster " 20589"(<varname>rast</varname>). If no <varname>band</varname> is specified band 1 " 20590"is assumed. The new raster will have the same georeference, width, and " 20591"height as the original raster. Bands not designated will come back " 20592"unchanged. Refer to <xref linkend=\"reclassarg\"/> for description of valid " 20593"reclassification expressions." 20594msgstr "" 20595"Cria um novo raster formado pela aplicação de uma operação algébrica válida " 20596"PostgreSQL definida pela <varname>reclassexpr</varname> no raster de entrada " 20597"(<varname>rast</varname>). Se nenhum <varname>band</varname> for " 20598"especificada, usa-se a banda 1. O novo raster terá a mesma georreferência. " 20599"largura e altura do raster original. As bandar não designadas voltarão " 20600"inalteradas. Recorra a <xref linkend=\"reclassarg\"/> para descrição de " 20601"expressões de reclassificação válidas. " 20602 20603#. Tag: para 20604#: reference_raster.xml:8511 20605#, no-c-format 20606msgid "" 20607"The bands of the new raster will have pixel type of <varname>pixeltype</" 20608"varname>. If <varname>reclassargset</varname> is passed in then each " 20609"reclassarg defines behavior of each band generated." 20610msgstr "" 20611"As bandas do novo raster terão o mesmo tipo de pixel do <varname>pixeltype</" 20612"varname>. Se <varname>reclassargset</varname> passar, então, cada argumento " 20613"reclassificado define o comportamento de cada banda gerada. " 20614 20615#. Tag: para 20616#: reference_raster.xml:8518 20617#, no-c-format 20618msgid "" 20619"Create a new raster from the original where band 2 is converted from 8BUI to " 20620"4BUI and all values from 101-254 are set to nodata value." 20621msgstr "" 20622"Cria um novo raster a partir do original onde banda 2 é convertida de 8BUI " 20623"para 4BUI e todos os valores de 101-254 são definidos para valor nodata." 20624 20625#. Tag: programlisting 20626#: reference_raster.xml:8519 20627#, no-c-format 20628msgid "" 20629"ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster;\n" 20630"UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, " 20631"88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;\n" 20632"\n" 20633"SELECT i as col, j as row, ST_Value(rast,2,i,j) As origval,\n" 20634" ST_Value(reclass_rast, 2, i, j) As reclassval,\n" 20635" ST_Value(reclass_rast, 2, i, j, false) As reclassval_include_nodata\n" 20636"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 20637"generate_series(1,3) AS j\n" 20638"WHERE rid = 2;\n" 20639"\n" 20640" col | row | origval | reclassval | reclassval_include_nodata\n" 20641"-----+-----+---------+------------+---------------------------\n" 20642" 1 | 1 | 78 | 9 | 9\n" 20643" 2 | 1 | 98 | 14 | 14\n" 20644" 3 | 1 | 122 | | 0\n" 20645" 1 | 2 | 96 | 14 | 14\n" 20646" 2 | 2 | 118 | | 0\n" 20647" 3 | 2 | 180 | | 0\n" 20648" 1 | 3 | 99 | 15 | 15\n" 20649" 2 | 3 | 112 | | 0\n" 20650" 3 | 3 | 169 | | 0" 20651msgstr "" 20652"ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster;\n" 20653"UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, " 20654"88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;\n" 20655"\n" 20656"SELECT i as col, j as row, ST_Value(rast,2,i,j) As origval,\n" 20657" ST_Value(reclass_rast, 2, i, j) As reclassval,\n" 20658" ST_Value(reclass_rast, 2, i, j, false) As reclassval_include_nodata\n" 20659"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 20660"generate_series(1,3) AS j\n" 20661"WHERE rid = 2;\n" 20662"\n" 20663" col | row | origval | reclassval | reclassval_include_nodata\n" 20664"-----+-----+---------+------------+---------------------------\n" 20665" 1 | 1 | 78 | 9 | 9\n" 20666" 2 | 1 | 98 | 14 | 14\n" 20667" 3 | 1 | 122 | | 0\n" 20668" 1 | 2 | 96 | 14 | 14\n" 20669" 2 | 2 | 118 | | 0\n" 20670" 3 | 2 | 180 | | 0\n" 20671" 1 | 3 | 99 | 15 | 15\n" 20672" 2 | 3 | 112 | | 0\n" 20673" 3 | 3 | 169 | | 0" 20674 20675#. Tag: title 20676#: reference_raster.xml:8523 20677#, no-c-format 20678msgid "Example: Advanced using multiple reclassargs" 20679msgstr "Exemplo: Uso avançado de múltiplos reclassargs" 20680 20681#. Tag: para 20682#: reference_raster.xml:8525 20683#, no-c-format 20684msgid "" 20685"Create a new raster from the original where band 1,2,3 is converted to " 20686"1BB,4BUI, 4BUI respectively and reclassified. Note this uses the variadic " 20687"<varname>reclassarg</varname> argument which can take as input an indefinite " 20688"number of reclassargs (theoretically as many bands as you have)" 20689msgstr "" 20690"Cria um novo raster do original onde banda 1,2,3 é convertida para 1BB, " 20691"4BUI, 4BUI respectivamente e reclassificada. Note que isto usa o argumento " 20692"variado <varname>reclassarg</varname> que pode pegar como entrada e número " 20693"indefinido de reclssargs (teoricamente quantas bandas tiver) " 20694 20695#. Tag: programlisting 20696#: reference_raster.xml:8526 20697#, no-c-format 20698msgid "" 20699"UPDATE dummy_rast SET reclass_rast =\n" 20700" ST_Reclass(rast,\n" 20701" ROW(2,'0-87]:1-10, (87-100]:11-15, (101-254]:0-0', '4BUI',NULL)::" 20702"reclassarg,\n" 20703" ROW(1,'0-253]:1, 254:0', '1BB', NULL)::reclassarg,\n" 20704" ROW(3,'0-70]:1, (70-86:2, [86-150):3, [150-255:4', '4BUI', NULL)::" 20705"reclassarg\n" 20706" ) WHERE rid = 2;\n" 20707"\n" 20708"SELECT i as col, j as row,ST_Value(rast,1,i,j) As ov1, " 20709"ST_Value(reclass_rast, 1, i, j) As rv1,\n" 20710" ST_Value(rast,2,i,j) As ov2, ST_Value(reclass_rast, 2, i, j) As rv2,\n" 20711" ST_Value(rast,3,i,j) As ov3, ST_Value(reclass_rast, 3, i, j) As rv3\n" 20712"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 20713"generate_series(1,3) AS j\n" 20714"WHERE rid = 2;\n" 20715"\n" 20716"col | row | ov1 | rv1 | ov2 | rv2 | ov3 | rv3\n" 20717"----+-----+-----+-----+-----+-----+-----+-----\n" 20718" 1 | 1 | 253 | 1 | 78 | 9 | 70 | 1\n" 20719" 2 | 1 | 254 | 0 | 98 | 14 | 86 | 3\n" 20720" 3 | 1 | 253 | 1 | 122 | 0 | 100 | 3\n" 20721" 1 | 2 | 253 | 1 | 96 | 14 | 80 | 2\n" 20722" 2 | 2 | 254 | 0 | 118 | 0 | 108 | 3\n" 20723" 3 | 2 | 254 | 0 | 180 | 0 | 162 | 4\n" 20724" 1 | 3 | 250 | 1 | 99 | 15 | 90 | 3\n" 20725" 2 | 3 | 254 | 0 | 112 | 0 | 108 | 3\n" 20726" 3 | 3 | 254 | 0 | 169 | 0 | 175 | 4" 20727msgstr "" 20728"UPDATE dummy_rast SET reclass_rast =\n" 20729" ST_Reclass(rast,\n" 20730" ROW(2,'0-87]:1-10, (87-100]:11-15, (101-254]:0-0', '4BUI',NULL)::" 20731"reclassarg,\n" 20732" ROW(1,'0-253]:1, 254:0', '1BB', NULL)::reclassarg,\n" 20733" ROW(3,'0-70]:1, (70-86:2, [86-150):3, [150-255:4', '4BUI', NULL)::" 20734"reclassarg\n" 20735" ) WHERE rid = 2;\n" 20736"\n" 20737"SELECT i as col, j as row,ST_Value(rast,1,i,j) As ov1, " 20738"ST_Value(reclass_rast, 1, i, j) As rv1,\n" 20739" ST_Value(rast,2,i,j) As ov2, ST_Value(reclass_rast, 2, i, j) As rv2,\n" 20740" ST_Value(rast,3,i,j) As ov3, ST_Value(reclass_rast, 3, i, j) As rv3\n" 20741"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN " 20742"generate_series(1,3) AS j\n" 20743"WHERE rid = 2;\n" 20744"\n" 20745"col | row | ov1 | rv1 | ov2 | rv2 | ov3 | rv3\n" 20746"----+-----+-----+-----+-----+-----+-----+-----\n" 20747" 1 | 1 | 253 | 1 | 78 | 9 | 70 | 1\n" 20748" 2 | 1 | 254 | 0 | 98 | 14 | 86 | 3\n" 20749" 3 | 1 | 253 | 1 | 122 | 0 | 100 | 3\n" 20750" 1 | 2 | 253 | 1 | 96 | 14 | 80 | 2\n" 20751" 2 | 2 | 254 | 0 | 118 | 0 | 108 | 3\n" 20752" 3 | 2 | 254 | 0 | 180 | 0 | 162 | 4\n" 20753" 1 | 3 | 250 | 1 | 99 | 15 | 90 | 3\n" 20754" 2 | 3 | 254 | 0 | 112 | 0 | 108 | 3\n" 20755" 3 | 3 | 254 | 0 | 169 | 0 | 175 | 4" 20756 20757#. Tag: title 20758#: reference_raster.xml:8530 20759#, no-c-format 20760msgid "" 20761"Example: Advanced Map a single band 32BF raster to multiple viewable bands" 20762msgstr "" 20763"Exemplo: Mapeamento avançado de uma única banda raster 32BF para multiplicar " 20764"bandas visíveis" 20765 20766#. Tag: para 20767#: reference_raster.xml:8531 20768#, no-c-format 20769msgid "" 20770"Create a new 3 band (8BUI,8BUI,8BUI viewable raster) from a raster that has " 20771"only one 32bf band" 20772msgstr "" 20773"Cria uma nova banda 3 (8BUI,8BUI,8BUI raster visível) a partir de um raster " 20774"que tem apena uma banda 32bf" 20775 20776#. Tag: programlisting 20777#: reference_raster.xml:8532 20778#, no-c-format 20779msgid "" 20780"ALTER TABLE wind ADD COLUMN rast_view raster;\n" 20781"UPDATE wind\n" 20782" set rast_view = ST_AddBand( NULL,\n" 20783" ARRAY[\n" 20784" ST_Reclass(rast, 1,'0.1-10]:1-10,9-10]:11,(11-33:0'::text, '8BUI'::" 20785"text,0),\n" 20786" ST_Reclass(rast,1, '11-33):0-255,[0-32:0,(34-1000:0'::text, '8BUI'::" 20787"text,0),\n" 20788" ST_Reclass(rast,1,'0-32]:0,(32-100:100-255'::text, '8BUI'::text,0)\n" 20789" ]\n" 20790" );" 20791msgstr "" 20792"ALTER TABLE wind ADD COLUMN rast_view raster;\n" 20793"UPDATE wind\n" 20794" set rast_view = ST_AddBand( NULL,\n" 20795" ARRAY[\n" 20796" ST_Reclass(rast, 1,'0.1-10]:1-10,9-10]:11,(11-33:0'::text, '8BUI'::" 20797"text,0),\n" 20798" ST_Reclass(rast,1, '11-33):0-255,[0-32:0,(34-1000:0'::text, '8BUI'::" 20799"text,0),\n" 20800" ST_Reclass(rast,1,'0-32]:0,(32-100:100-255'::text, '8BUI'::text,0)\n" 20801" ]\n" 20802" );" 20803 20804#. Tag: para 20805#: reference_raster.xml:8537 20806#, no-c-format 20807msgid "" 20808", <xref linkend=\"RT_ST_Band\"/>, <xref linkend=\"RT_ST_BandPixelType\"/>, " 20809"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"reclassarg\"/>, " 20810"<xref linkend=\"RT_ST_Value\"/>" 20811msgstr "" 20812", <xref linkend=\"RT_ST_Band\"/>, <xref linkend=\"RT_ST_BandPixelType\"/>, " 20813"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"reclassarg\"/>, " 20814"<xref linkend=\"RT_ST_Value\"/>" 20815 20816#. Tag: refname 20817#: reference_raster.xml:8550 20818#, no-c-format 20819msgid "ST_Union" 20820msgstr "ST_Union" 20821 20822#. Tag: refpurpose 20823#: reference_raster.xml:8551 20824#, no-c-format 20825msgid "" 20826"Returns the union of a set of raster tiles into a single raster composed of " 20827"1 or more bands." 20828msgstr "" 20829"Retorna a união de um conjunto de tiles raster em um único raster composto " 20830"de 1 ou mais bandas. " 20831 20832#. Tag: funcprototype 20833#: reference_raster.xml:8556 20834#, no-c-format 20835msgid "" 20836"<funcdef>raster <function>ST_Union</function></funcdef> " 20837"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef>" 20838msgstr "" 20839"<funcdef>raster <function>ST_Union</function></funcdef> " 20840"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef>" 20841 20842#. Tag: funcprototype 20843#: reference_raster.xml:8562 20844#, no-c-format 20845msgid "" 20846"<funcdef>raster <function>ST_Union</function></funcdef> " 20847"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef> " 20848"<paramdef><type>unionarg[] </type> <parameter>unionargset</parameter></" 20849"paramdef>" 20850msgstr "" 20851"<funcdef>raster <function>ST_Union</function></funcdef> " 20852"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef> " 20853"<paramdef><type>unionarg[] </type> <parameter>unionargset</parameter></" 20854"paramdef>" 20855 20856#. Tag: funcprototype 20857#: reference_raster.xml:8569 20858#, no-c-format 20859msgid "" 20860"<funcdef>raster <function>ST_Union</function></funcdef> " 20861"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20862"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef>" 20863msgstr "" 20864"<funcdef>raster <function>ST_Union</function></funcdef> " 20865"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20866"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef>" 20867 20868#. Tag: funcprototype 20869#: reference_raster.xml:8576 20870#, no-c-format 20871msgid "" 20872"<funcdef>raster <function>ST_Union</function></funcdef> " 20873"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20874"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>" 20875msgstr "" 20876"<funcdef>raster <function>ST_Union</function></funcdef> " 20877"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20878"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>" 20879 20880#. Tag: funcprototype 20881#: reference_raster.xml:8583 20882#, no-c-format 20883msgid "" 20884"<funcdef>raster <function>ST_Union</function></funcdef> " 20885"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20886"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef> " 20887"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>" 20888msgstr "" 20889"<funcdef>raster <function>ST_Union</function></funcdef> " 20890"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> " 20891"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef> " 20892"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>" 20893 20894#. Tag: para 20895#: reference_raster.xml:8595 20896#, no-c-format 20897msgid "" 20898"Returns the union of a set of raster tiles into a single raster composed of " 20899"at least one band. The resulting raster's extent is the extent of the whole " 20900"set. In the case of intersection, the resulting value is defined by " 20901"<varname>uniontype</varname> which is one of the following: LAST (default), " 20902"FIRST, MIN, MAX, COUNT, SUM, MEAN, RANGE." 20903msgstr "" 20904"Retorna a união de um conjunto de tiles raster em um único raster composto " 20905"de pelo menos uma banda. A extensão resultante do raster é a extensão do " 20906"conjunto todo. No caso da interseção, o valor resultante é definido pelo " 20907"<varname>uniontype</varname> que é um dos seguintes: LAST (default), FIRST, " 20908"MIN, MAX, COUNT, SUM, MEAN, RANGE." 20909 20910#. Tag: para 20911#: reference_raster.xml:8598 20912#, no-c-format 20913msgid "" 20914"In order for rasters to be unioned, they must all have the same alignment. " 20915"Use <xref linkend=\"RT_ST_SameAlignment\"/> and <xref linkend=" 20916"\"RT_ST_NotSameAlignmentReason\"/> for more details and help. One way to fix " 20917"alignment issues is to use <xref linkend=\"RT_ST_Resample\"/> and use the " 20918"same reference raster for alignment." 20919msgstr "" 20920 20921#. Tag: para 20922#: reference_raster.xml:8602 20923#, no-c-format 20924msgid "Enhanced: 2.1.0 Improved Speed (fully C-Based)." 20925msgstr "Melhorias: 2.1.0 Velocidade aprimorada (fully C-Based) " 20926 20927#. Tag: para 20928#: reference_raster.xml:8603 20929#, no-c-format 20930msgid "Availability: 2.1.0 ST_Union(rast, unionarg) variant was introduced." 20931msgstr "" 20932"Disponibilidade: 2.1.0 variante ST_Union(rast, unionarg) foi introduzida." 20933 20934#. Tag: para 20935#: reference_raster.xml:8604 20936#, no-c-format 20937msgid "" 20938"Enhanced: 2.1.0 ST_Union(rast) (variant 1) unions all bands of all input " 20939"rasters. Prior versions of PostGIS assumed the first band." 20940msgstr "" 20941"Melhorias: 2.1.0 uniões ST_Union(rast) (variante 1) todas as bandas de todos " 20942"os rasters de entrada. As versões anteriores do PostGIS assumiam a primeira " 20943"banda. " 20944 20945#. Tag: para 20946#: reference_raster.xml:8605 20947#, no-c-format 20948msgid "" 20949"Enhanced: 2.1.0 ST_Union(rast, uniontype) (variant 4) unions all bands of " 20950"all input rasters." 20951msgstr "" 20952"Melhorias: 2.1.0 ST_Union(rast, uniontype) (variante 4) uniões de todas as " 20953"bandas de todos os rasters de entrada. " 20954 20955#. Tag: title 20956#: reference_raster.xml:8608 20957#, no-c-format 20958msgid "Examples: Reconstitute a single band chunked raster tile" 20959msgstr "Exemplos: Reconstitui uma única tile banda raster em pedaços " 20960 20961#. Tag: programlisting 20962#: reference_raster.xml:8609 20963#, no-c-format 20964msgid "" 20965"-- this creates a single band from first band of raster tiles\n" 20966"-- that form the original file system tile\n" 20967"SELECT filename, ST_Union(rast,1) As file_rast\n" 20968"FROM sometable WHERE filename IN('dem01', 'dem02') GROUP BY filename;" 20969msgstr "" 20970"-- this creates a single band from first band of raster tiles\n" 20971"-- that form the original file system tile\n" 20972"SELECT filename, ST_Union(rast,1) As file_rast\n" 20973"FROM sometable WHERE filename IN('dem01', 'dem02') GROUP BY filename;" 20974 20975#. Tag: title 20976#: reference_raster.xml:8613 reference_raster.xml:8617 20977#, no-c-format 20978msgid "" 20979"Examples: Return a multi-band raster that is the union of tiles intersecting " 20980"geometry" 20981msgstr "" 20982"Exemplos: Retorna uma multi banda raster que é a união de tiles " 20983"intersectando geometrias" 20984 20985#. Tag: programlisting 20986#: reference_raster.xml:8614 20987#, no-c-format 20988msgid "" 20989"-- this creates a multi band raster collecting all the tiles that intersect " 20990"a line\n" 20991"-- Note: In 2.0, this would have just returned a single band raster\n" 20992"-- , new union works on all bands by default\n" 20993"-- this is equivalent to unionarg: ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), " 20994"ROW(3, 'LAST')]::unionarg[]\n" 20995"SELECT ST_Union(rast)\n" 20996"FROM aerials.boston\n" 20997"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 " 20998"88772)',26986) );" 20999msgstr "" 21000"-- this creates a multi band raster collecting all the tiles that intersect " 21001"a line\n" 21002"-- Note: In 2.0, this would have just returned a single band raster\n" 21003"-- , new union works on all bands by default\n" 21004"-- this is equivalent to unionarg: ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), " 21005"ROW(3, 'LAST')]::unionarg[]\n" 21006"SELECT ST_Union(rast)\n" 21007"FROM aerials.boston\n" 21008"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 " 21009"88772)',26986) );" 21010 21011#. Tag: para 21012#: reference_raster.xml:8618 21013#, no-c-format 21014msgid "" 21015"Here we use the longer syntax if we only wanted a subset of bands or we want " 21016"to change order of bands" 21017msgstr "" 21018"Aqui, usamos a sintaxe mais longa se só queremos uma subset de bandas ou " 21019"queremos alterar a ordem das bandas" 21020 21021#. Tag: programlisting 21022#: reference_raster.xml:8619 21023#, no-c-format 21024msgid "" 21025"-- this creates a multi band raster collecting all the tiles that intersect " 21026"a line\n" 21027"SELECT ST_Union(rast,ARRAY[ROW(2, 'LAST'), ROW(1, 'LAST'), ROW(3, 'LAST')]::" 21028"unionarg[])\n" 21029"FROM aerials.boston\n" 21030"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 " 21031"88772)',26986) );" 21032msgstr "" 21033"-- this creates a multi band raster collecting all the tiles that intersect " 21034"a line\n" 21035"SELECT ST_Union(rast,ARRAY[ROW(2, 'LAST'), ROW(1, 'LAST'), ROW(3, 'LAST')]::" 21036"unionarg[])\n" 21037"FROM aerials.boston\n" 21038"WHERE ST_Intersects(rast, ST_GeomFromText('LINESTRING(230486 887771, 230500 " 21039"88772)',26986) );" 21040 21041#. Tag: para 21042#: reference_raster.xml:8625 21043#, no-c-format 21044msgid "" 21045", <xref linkend=\"RT_ST_Envelope\"/>, <xref linkend=\"RT_ST_ConvexHull\"/>, " 21046"<xref linkend=\"RT_ST_Clip\"/>, <xref linkend=\"ST_Union\"/>" 21047msgstr "" 21048", <xref linkend=\"RT_ST_Envelope\"/>, <xref linkend=\"RT_ST_ConvexHull\"/>, " 21049"<xref linkend=\"RT_ST_Clip\"/>, <xref linkend=\"ST_Union\"/>" 21050 21051#. Tag: title 21052#: reference_raster.xml:8638 21053#, no-c-format 21054msgid "Built-in Map Algebra Callback Functions" 21055msgstr "Funções retorno de mapa algébrico embutido" 21056 21057#. Tag: refname 21058#: reference_raster.xml:8642 21059#, no-c-format 21060msgid "ST_Distinct4ma" 21061msgstr "ST_Distinct4ma" 21062 21063#. Tag: refpurpose 21064#: reference_raster.xml:8643 21065#, no-c-format 21066msgid "" 21067"Raster processing function that calculates the number of unique pixel values " 21068"in a neighborhood." 21069msgstr "" 21070"Função de processamento raster que calcula o resumo de valores únicos de " 21071"pixel em uma vizinhança. " 21072 21073#. Tag: funcsynopsis 21074#: reference_raster.xml:8647 21075#, no-c-format 21076msgid "" 21077"<funcprototype> <funcdef>float8 <function>ST_Distinct4ma</function></" 21078"funcdef> <paramdef><type>float8[][]</type> <parameter>matrix</parameter></" 21079"paramdef> <paramdef><type>text</type> <parameter>nodatamode</parameter></" 21080"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC args</" 21081"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double " 21082"precision <function>ST_Distinct4ma</function></funcdef> " 21083"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21084"paramdef> <paramdef><type>integer[][] </type> <parameter>pos</parameter></" 21085"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21086"parameter></paramdef> </funcprototype>" 21087msgstr "" 21088"<funcprototype> <funcdef>float8 <function>ST_Distinct4ma</function></" 21089"funcdef> <paramdef><type>float8[][]</type> <parameter>matrix</parameter></" 21090"paramdef> <paramdef><type>text</type> <parameter>nodatamode</parameter></" 21091"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC args</" 21092"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double " 21093"precision <function>ST_Distinct4ma</function></funcdef> " 21094"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21095"paramdef> <paramdef><type>integer[][] </type> <parameter>pos</parameter></" 21096"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21097"parameter></paramdef> </funcprototype>" 21098 21099#. Tag: para 21100#: reference_raster.xml:8667 21101#, no-c-format 21102msgid "" 21103"Calculate the number of unique pixel values in a neighborhood of pixels." 21104msgstr "Calcula o número de valores únicos de pixel em uma vizinhança. " 21105 21106#. Tag: para 21107#: reference_raster.xml:8670 reference_raster.xml:8809 21108#: reference_raster.xml:8884 reference_raster.xml:8969 21109#: reference_raster.xml:9094 reference_raster.xml:9165 21110#: reference_raster.xml:9240 21111#, no-c-format 21112msgid "" 21113"Variant 1 is a specialized callback function for use as a callback parameter " 21114"to <xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>." 21115msgstr "" 21116"A variante 1 é uma função retorno especializada em uso como um parâmetro de " 21117"retorno para <xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>." 21118 21119#. Tag: para 21120#: reference_raster.xml:8674 reference_raster.xml:8813 21121#: reference_raster.xml:8888 reference_raster.xml:8975 21122#: reference_raster.xml:9098 reference_raster.xml:9169 21123#: reference_raster.xml:9244 21124#, no-c-format 21125msgid "" 21126"Variant 2 is a specialized callback function for use as a callback parameter " 21127"to <xref linkend=\"RT_ST_MapAlgebra\"/>." 21128msgstr "" 21129"A variante 2 é uma função retorno especializada em uso como um parâmetro de " 21130"retorno para <xref linkend=\"RT_ST_MapAlgebra\"/>." 21131 21132#. Tag: para 21133#: reference_raster.xml:8680 reference_raster.xml:8819 21134#: reference_raster.xml:8894 reference_raster.xml:8981 21135#: reference_raster.xml:9104 reference_raster.xml:9175 21136#: reference_raster.xml:9250 21137#, no-c-format 21138msgid "" 21139"Use of Variant 1 is discouraged since <xref linkend=\"RT_ST_MapAlgebraFctNgb" 21140"\"/> has been deprecated as of 2.1.0." 21141msgstr "" 21142"Uso da variante 1 é desencorajado desde que <xref linkend=" 21143"\"RT_ST_MapAlgebraFctNgb\"/> foi menosprezada como de 2.1.0." 21144 21145#. Tag: para 21146#: reference_raster.xml:8686 reference_raster.xml:8825 21147#: reference_raster.xml:8900 reference_raster.xml:8987 21148#: reference_raster.xml:9110 reference_raster.xml:9181 21149#: reference_raster.xml:9256 21150#, no-c-format 21151msgid "Enhanced: 2.1.0 Addition of Variant 2" 21152msgstr "Melhorias: 2.1.0 Adição da variante 2" 21153 21154#. Tag: programlisting 21155#: reference_raster.xml:8692 21156#, no-c-format 21157msgid "" 21158"SELECT\n" 21159" rid,\n" 21160" st_value(\n" 21161" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][]," 21162"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21163" )\n" 21164"FROM dummy_rast\n" 21165"WHERE rid = 2;\n" 21166" rid | st_value\n" 21167"-----+----------\n" 21168" 2 | 3\n" 21169"(1 row)" 21170msgstr "" 21171"SELECT\n" 21172" rid,\n" 21173" st_value(\n" 21174" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][]," 21175"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21176" )\n" 21177"FROM dummy_rast\n" 21178"WHERE rid = 2;\n" 21179" rid | st_value\n" 21180"-----+----------\n" 21181" 2 | 3\n" 21182"(1 row)" 21183 21184#. Tag: para 21185#: reference_raster.xml:8698 reference_raster.xml:9122 21186#: reference_raster.xml:9193 21187#, no-c-format 21188msgid "" 21189", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21190"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref " 21191"linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21192"linkend=\"RT_ST_StdDev4ma\"/>" 21193msgstr "" 21194", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21195"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref " 21196"linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21197"linkend=\"RT_ST_StdDev4ma\"/>" 21198 21199#. Tag: refname 21200#: reference_raster.xml:8713 21201#, no-c-format 21202msgid "ST_InvDistWeight4ma" 21203msgstr "ST_InvDistWeight4ma" 21204 21205#. Tag: refpurpose 21206#: reference_raster.xml:8714 21207#, no-c-format 21208msgid "" 21209"Raster processing function that interpolates a pixel's value from the " 21210"pixel's neighborhood." 21211msgstr "" 21212"Função de processamento raster que interpola um valor de pixel de uma " 21213"vizinhança. " 21214 21215#. Tag: funcprototype 21216#: reference_raster.xml:8719 21217#, no-c-format 21218msgid "" 21219"<funcdef>double precision <function>ST_InvDistWeight4ma</function></funcdef> " 21220"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21221"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></" 21222"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21223"parameter></paramdef>" 21224msgstr "" 21225"<funcdef>double precision <function>ST_InvDistWeight4ma</function></funcdef> " 21226"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21227"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></" 21228"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21229"parameter></paramdef>" 21230 21231#. Tag: para 21232#: reference_raster.xml:8731 21233#, no-c-format 21234msgid "" 21235"Calculate an interpolated value for a pixel using the Inverse Distance " 21236"Weighted method." 21237msgstr "" 21238"Calcula um valor interpolado para um pixel usando o método do inverso da " 21239"potência das distâncias. " 21240 21241#. Tag: para 21242#: reference_raster.xml:8733 21243#, no-c-format 21244msgid "" 21245"There are two optional parameters that can be passed through " 21246"<varname>userargs</varname>. The first parameter is the power factor " 21247"(variable k in the equation below) between 0 and 1 used in the Inverse " 21248"Distance Weighted equation. If not specified, default value is 1. The second " 21249"parameter is the weight percentage applied only when the value of the pixel " 21250"of interest is included with the interpolated value from the neighborhood. " 21251"If not specified and the pixel of interest has a value, that value is " 21252"returned." 21253msgstr "" 21254"Existem dois parâmetros opcionais que podem ser passados pelos " 21255"<varname>userargs</varname>. O primeiro parâmetro é o fator de força " 21256"(variável k na equação abaixo) entre 0 e 1 usado na equação do inverso da " 21257"potência das distâncias. Se não especificado, usa-se 1. O segundo parâmetro " 21258"é a porcentagem aplicada somente quando o valor do pixel de interesse " 21259"estiver incluso no valor da vizinhança. Se não especificado e o pixel de " 21260"interesse possuir um valor, o valor é retornado. " 21261 21262#. Tag: para 21263#: reference_raster.xml:8737 21264#, no-c-format 21265msgid "The basic inverse distance weight equation is:" 21266msgstr "A equação do inverso da potência das distâncias é:" 21267 21268#. Tag: para 21269#: reference_raster.xml:8746 21270#, no-c-format 21271msgid "k = power factor, a real number between 0 and 1" 21272msgstr "k = fator força, um número real entre 0 e 1" 21273 21274#. Tag: para 21275#: reference_raster.xml:8755 reference_raster.xml:9040 21276#, no-c-format 21277msgid "" 21278"This function is a specialized callback function for use as a callback " 21279"parameter to <xref linkend=\"RT_ST_MapAlgebra\"/>." 21280msgstr "" 21281"Esta função é uma função retorno especializada em uso como parâmetro de " 21282"retorno para <xref linkend=\"RT_ST_MapAlgebra\"/>." 21283 21284#. Tag: programlisting 21285#: reference_raster.xml:8763 reference_raster.xml:9048 21286#, no-c-format 21287msgid "-- NEEDS EXAMPLE" 21288msgstr "-- PRECISA DE EXEMPLO" 21289 21290#. Tag: para 21291#: reference_raster.xml:8768 21292#, no-c-format 21293msgid ", <xref linkend=\"RT_ST_MinDist4ma\"/>" 21294msgstr ", <xref linkend=\"RT_ST_MinDist4ma\"/>" 21295 21296#. Tag: refname 21297#: reference_raster.xml:8777 21298#, no-c-format 21299msgid "ST_Max4ma" 21300msgstr "ST_Max4ma" 21301 21302#. Tag: refpurpose 21303#: reference_raster.xml:8778 21304#, no-c-format 21305msgid "" 21306"Raster processing function that calculates the maximum pixel value in a " 21307"neighborhood." 21308msgstr "" 21309"Função de processamento raster que calcula o valor máximo de pixel em uma " 21310"vizinhança. " 21311 21312#. Tag: funcsynopsis 21313#: reference_raster.xml:8782 21314#, no-c-format 21315msgid "" 21316"<funcprototype> <funcdef>float8 <function>ST_Max4ma</function></funcdef> " 21317"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21318"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21319"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21320"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21321"<function>ST_Max4ma</function></funcdef> <paramdef><type>double precision[][]" 21322"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21323"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21324"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21325msgstr "" 21326"<funcprototype> <funcdef>float8 <function>ST_Max4ma</function></funcdef> " 21327"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21328"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21329"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21330"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21331"<function>ST_Max4ma</function></funcdef> <paramdef><type>double precision[][]" 21332"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21333"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21334"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21335 21336#. Tag: para 21337#: reference_raster.xml:8802 21338#, no-c-format 21339msgid "Calculate the maximum pixel value in a neighborhood of pixels." 21340msgstr "Calcula o valor de pixel máximo em uma vizinhança de pixeis." 21341 21342#. Tag: para 21343#: reference_raster.xml:8804 reference_raster.xml:8879 21344#: reference_raster.xml:8964 reference_raster.xml:9089 21345#: reference_raster.xml:9235 21346#, no-c-format 21347msgid "" 21348"For Variant 2, a substitution value for NODATA pixels can be specified by " 21349"passing that value to userargs." 21350msgstr "" 21351"Para Variante 2, um valor de substituição para pixeis NODATA podem ser " 21352"especificados passando aquele valor para userargs. " 21353 21354#. Tag: programlisting 21355#: reference_raster.xml:8831 21356#, no-c-format 21357msgid "" 21358"SELECT\n" 21359" rid,\n" 21360" st_value(\n" 21361" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_max4ma(float[][],text," 21362"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21363" )\n" 21364"FROM dummy_rast\n" 21365"WHERE rid = 2;\n" 21366" rid | st_value\n" 21367"-----+----------\n" 21368" 2 | 254\n" 21369"(1 row)" 21370msgstr "" 21371"SELECT\n" 21372" rid,\n" 21373" st_value(\n" 21374" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_max4ma(float[][],text," 21375"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21376" )\n" 21377"FROM dummy_rast\n" 21378"WHERE rid = 2;\n" 21379" rid | st_value\n" 21380"-----+----------\n" 21381" 2 | 254\n" 21382"(1 row)" 21383 21384#. Tag: para 21385#: reference_raster.xml:8837 21386#, no-c-format 21387msgid "" 21388", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21389"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21390"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21391"linkend=\"RT_ST_StdDev4ma\"/>" 21392msgstr "" 21393", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21394"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21395"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21396"linkend=\"RT_ST_StdDev4ma\"/>" 21397 21398#. Tag: refname 21399#: reference_raster.xml:8852 21400#, no-c-format 21401msgid "ST_Mean4ma" 21402msgstr "ST_Mean4ma" 21403 21404#. Tag: refpurpose 21405#: reference_raster.xml:8853 21406#, no-c-format 21407msgid "" 21408"Raster processing function that calculates the mean pixel value in a " 21409"neighborhood." 21410msgstr "" 21411"Função de processamento raster que calcula o menor valor de pixel em uma " 21412"vizinhança. " 21413 21414#. Tag: funcsynopsis 21415#: reference_raster.xml:8857 21416#, no-c-format 21417msgid "" 21418"<funcprototype> <funcdef>float8 <function>ST_Mean4ma</function></funcdef> " 21419"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21420"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21421"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21422"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21423"<function>ST_Mean4ma</function></funcdef> <paramdef><type>double precision[]" 21424"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21425"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21426"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21427msgstr "" 21428"<funcprototype> <funcdef>float8 <function>ST_Mean4ma</function></funcdef> " 21429"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21430"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21431"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21432"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21433"<function>ST_Mean4ma</function></funcdef> <paramdef><type>double precision[]" 21434"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21435"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21436"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21437 21438#. Tag: para 21439#: reference_raster.xml:8877 21440#, no-c-format 21441msgid "Calculate the mean pixel value in a neighborhood of pixels." 21442msgstr "Calcula o menor valor de pixel em uma vizinhança de pixeis." 21443 21444#. Tag: programlisting 21445#: reference_raster.xml:8906 21446#, no-c-format 21447msgid "" 21448"SELECT\n" 21449" rid,\n" 21450" st_value(\n" 21451" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_mean4ma(float[][]," 21452"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21453" )\n" 21454"FROM dummy_rast\n" 21455"WHERE rid = 2;\n" 21456" rid | st_value\n" 21457"-----+------------------\n" 21458" 2 | 253.222229003906\n" 21459"(1 row)" 21460msgstr "" 21461"SELECT\n" 21462" rid,\n" 21463" st_value(\n" 21464" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_mean4ma(float[][]," 21465"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21466" )\n" 21467"FROM dummy_rast\n" 21468"WHERE rid = 2;\n" 21469" rid | st_value\n" 21470"-----+------------------\n" 21471" 2 | 253.222229003906\n" 21472"(1 row)" 21473 21474#. Tag: programlisting 21475#: reference_raster.xml:8913 21476#, no-c-format 21477msgid "" 21478"SELECT\n" 21479" rid,\n" 21480" st_value(\n" 21481" ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], " 21482"integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1)\n" 21483" , 2, 2)\n" 21484" FROM dummy_rast\n" 21485" WHERE rid = 2;\n" 21486" rid | st_value\n" 21487"-----+------------------\n" 21488" 2 | 253.222229003906\n" 21489"(1 row)" 21490msgstr "" 21491"SELECT\n" 21492" rid,\n" 21493" st_value(\n" 21494" ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], " 21495"integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1)\n" 21496" , 2, 2)\n" 21497" FROM dummy_rast\n" 21498" WHERE rid = 2;\n" 21499" rid | st_value\n" 21500"-----+------------------\n" 21501" 2 | 253.222229003906\n" 21502"(1 row)" 21503 21504#. Tag: para 21505#: reference_raster.xml:8919 21506#, no-c-format 21507msgid "" 21508", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21509"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref " 21510"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_StdDev4ma\"/>" 21511msgstr "" 21512", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21513"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref " 21514"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_StdDev4ma\"/>" 21515 21516#. Tag: refname 21517#: reference_raster.xml:8933 21518#, no-c-format 21519msgid "ST_Min4ma" 21520msgstr "ST_Min4ma" 21521 21522#. Tag: refpurpose 21523#: reference_raster.xml:8934 21524#, no-c-format 21525msgid "" 21526"Raster processing function that calculates the minimum pixel value in a " 21527"neighborhood." 21528msgstr "" 21529"Função de processamento raster que calcula o valor mínimo de pixel em uma " 21530"vizinhança. " 21531 21532#. Tag: funcsynopsis 21533#: reference_raster.xml:8940 21534#, no-c-format 21535msgid "" 21536"<funcprototype> <funcdef>float8 <function>ST_Min4ma</function></funcdef> " 21537"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21538"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> " 21539"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21540"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21541"<function>ST_Min4ma</function></funcdef> <paramdef><type>double precision[][]" 21542"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21543"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21544"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21545msgstr "" 21546"<funcprototype> <funcdef>float8 <function>ST_Min4ma</function></funcdef> " 21547"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21548"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> " 21549"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21550"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21551"<function>ST_Min4ma</function></funcdef> <paramdef><type>double precision[][]" 21552"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21553"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21554"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21555 21556#. Tag: para 21557#: reference_raster.xml:8960 21558#, no-c-format 21559msgid "Calculate the minimum pixel value in a neighborhood of pixels." 21560msgstr "Calcula o valor de pixel mínimo em uma vizinhança de pixeis." 21561 21562#. Tag: programlisting 21563#: reference_raster.xml:8993 21564#, no-c-format 21565msgid "" 21566"SELECT\n" 21567" rid,\n" 21568" st_value(\n" 21569" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text," 21570"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21571" )\n" 21572"FROM dummy_rast\n" 21573"WHERE rid = 2;\n" 21574" rid | st_value\n" 21575"-----+----------\n" 21576" 2 | 250\n" 21577"(1 row)" 21578msgstr "" 21579"SELECT\n" 21580" rid,\n" 21581" st_value(\n" 21582" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text," 21583"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21584" )\n" 21585"FROM dummy_rast\n" 21586"WHERE rid = 2;\n" 21587" rid | st_value\n" 21588"-----+----------\n" 21589" 2 | 250\n" 21590"(1 row)" 21591 21592#. Tag: para 21593#: reference_raster.xml:8998 21594#, no-c-format 21595msgid "" 21596", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, " 21597"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21598"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21599"linkend=\"RT_ST_StdDev4ma\"/>" 21600msgstr "" 21601", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, " 21602"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21603"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21604"linkend=\"RT_ST_StdDev4ma\"/>" 21605 21606#. Tag: refname 21607#: reference_raster.xml:9013 21608#, no-c-format 21609msgid "ST_MinDist4ma" 21610msgstr "ST_MinDist4ma" 21611 21612#. Tag: refpurpose 21613#: reference_raster.xml:9014 21614#, no-c-format 21615msgid "" 21616"Raster processing function that returns the minimum distance (in number of " 21617"pixels) between the pixel of interest and a neighboring pixel with value." 21618msgstr "" 21619"Função de processamento raster que retorna a distância mínima (em números de " 21620"pixeis) entre o pixel de interesse e um pixel vizinho de interesse com " 21621"valor. " 21622 21623#. Tag: funcprototype 21624#: reference_raster.xml:9019 21625#, no-c-format 21626msgid "" 21627"<funcdef>double precision <function>ST_MinDist4ma</function></funcdef> " 21628"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21629"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></" 21630"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21631"parameter></paramdef>" 21632msgstr "" 21633"<funcdef>double precision <function>ST_MinDist4ma</function></funcdef> " 21634"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></" 21635"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></" 21636"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</" 21637"parameter></paramdef>" 21638 21639#. Tag: para 21640#: reference_raster.xml:9031 21641#, no-c-format 21642msgid "" 21643"Return the shortest distance (in number of pixels) between the pixel of " 21644"interest and the closest pixel with value in the neighborhood." 21645msgstr "" 21646"Retorna a menor função (em números de pixeis) entre o pixel de interesse e o " 21647"pixel mais próximo com valor na vizinhança. " 21648 21649#. Tag: para 21650#: reference_raster.xml:9034 21651#, no-c-format 21652msgid "" 21653"The intent of this function is to provide an informative data point that " 21654"helps infer the usefulness of the pixel of interest's interpolated value " 21655"from <xref linkend=\"RT_ST_InvDistWeight4ma\"/>. This function is " 21656"particularly useful when the neighborhood is sparsely populated." 21657msgstr "" 21658"A intenção desta função é fornecer um ponto de dados informativos que ajude " 21659"inferir a utilidade do valor interpolado do pixel de interesse da <xref " 21660"linkend=\"RT_ST_InvDistWeight4ma\"/>. Esta função é particularmente útil " 21661"quando a vizinhança é esparsamente populada." 21662 21663#. Tag: para 21664#: reference_raster.xml:9053 21665#, no-c-format 21666msgid ", <xref linkend=\"RT_ST_InvDistWeight4ma\"/>" 21667msgstr ", <xref linkend=\"RT_ST_InvDistWeight4ma\"/>" 21668 21669#. Tag: refname 21670#: reference_raster.xml:9062 21671#, no-c-format 21672msgid "ST_Range4ma" 21673msgstr "ST_Range4ma" 21674 21675#. Tag: refpurpose 21676#: reference_raster.xml:9063 21677#, no-c-format 21678msgid "" 21679"Raster processing function that calculates the range of pixel values in a " 21680"neighborhood." 21681msgstr "" 21682"Função de processamento raster que calcula a varição de valores de pixel em " 21683"uma vizinhança. " 21684 21685#. Tag: funcsynopsis 21686#: reference_raster.xml:9067 21687#, no-c-format 21688msgid "" 21689"<funcprototype> <funcdef>float8 <function>ST_Range4ma</function></funcdef> " 21690"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21691"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21692"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21693"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21694"<function>ST_Range4ma</function></funcdef> <paramdef><type>double precision[]" 21695"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21696"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21697"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21698msgstr "" 21699"<funcprototype> <funcdef>float8 <function>ST_Range4ma</function></funcdef> " 21700"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21701"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21702"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21703"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21704"<function>ST_Range4ma</function></funcdef> <paramdef><type>double precision[]" 21705"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21706"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21707"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21708 21709#. Tag: para 21710#: reference_raster.xml:9087 21711#, no-c-format 21712msgid "Calculate the range of pixel values in a neighborhood of pixels." 21713msgstr "Calcula a variação de valores de pixel em uma vizinhança de pixeis." 21714 21715#. Tag: programlisting 21716#: reference_raster.xml:9116 21717#, no-c-format 21718msgid "" 21719"SELECT\n" 21720" rid,\n" 21721" st_value(\n" 21722" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_range4ma(float[][],text," 21723"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21724" )\n" 21725"FROM dummy_rast\n" 21726"WHERE rid = 2;\n" 21727" rid | st_value\n" 21728"-----+----------\n" 21729" 2 | 4\n" 21730"(1 row)" 21731msgstr "" 21732"SELECT\n" 21733" rid,\n" 21734" st_value(\n" 21735" st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_range4ma(float[][],text," 21736"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21737" )\n" 21738"FROM dummy_rast\n" 21739"WHERE rid = 2;\n" 21740" rid | st_value\n" 21741"-----+----------\n" 21742" 2 | 4\n" 21743"(1 row)" 21744 21745#. Tag: refname 21746#: reference_raster.xml:9137 21747#, no-c-format 21748msgid "ST_StdDev4ma" 21749msgstr "ST_StdDev4ma" 21750 21751#. Tag: refpurpose 21752#: reference_raster.xml:9138 21753#, no-c-format 21754msgid "" 21755"Raster processing function that calculates the standard deviation of pixel " 21756"values in a neighborhood." 21757msgstr "" 21758"Função de processamento raster que calcula o padrão de divergência de " 21759"valores de pixel em uma vizinhança. " 21760 21761#. Tag: funcsynopsis 21762#: reference_raster.xml:9142 21763#, no-c-format 21764msgid "" 21765"<funcprototype> <funcdef>float8 <function>ST_StdDev4ma</function></funcdef> " 21766"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21767"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> " 21768"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21769"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21770"<function>ST_StdDev4ma</function></funcdef> <paramdef><type>double " 21771"precision[][][]</type> <parameter>value</parameter></paramdef> " 21772"<paramdef><type>integer[][] </type> <parameter>pos</parameter></paramdef> " 21773"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></" 21774"paramdef> </funcprototype>" 21775msgstr "" 21776"<funcprototype> <funcdef>float8 <function>ST_StdDev4ma</function></funcdef> " 21777"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21778"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> " 21779"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21780"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21781"<function>ST_StdDev4ma</function></funcdef> <paramdef><type>double " 21782"precision[][][]</type> <parameter>value</parameter></paramdef> " 21783"<paramdef><type>integer[][] </type> <parameter>pos</parameter></paramdef> " 21784"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></" 21785"paramdef> </funcprototype>" 21786 21787#. Tag: para 21788#: reference_raster.xml:9162 21789#, no-c-format 21790msgid "" 21791"Calculate the standard deviation of pixel values in a neighborhood of pixels." 21792msgstr "" 21793"Calcula o padrão de divergência de valores de pixel em uma vizinhança de " 21794"pixeis." 21795 21796#. Tag: programlisting 21797#: reference_raster.xml:9187 21798#, no-c-format 21799msgid "" 21800"SELECT\n" 21801" rid,\n" 21802" st_value(\n" 21803" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_stddev4ma(float[][]," 21804"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21805" )\n" 21806"FROM dummy_rast\n" 21807"WHERE rid = 2;\n" 21808" rid | st_value\n" 21809"-----+------------------\n" 21810" 2 | 1.30170822143555\n" 21811"(1 row)" 21812msgstr "" 21813"SELECT\n" 21814" rid,\n" 21815" st_value(\n" 21816" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_stddev4ma(float[][]," 21817"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21818" )\n" 21819"FROM dummy_rast\n" 21820"WHERE rid = 2;\n" 21821" rid | st_value\n" 21822"-----+------------------\n" 21823" 2 | 1.30170822143555\n" 21824"(1 row)" 21825 21826#. Tag: refname 21827#: reference_raster.xml:9208 21828#, no-c-format 21829msgid "ST_Sum4ma" 21830msgstr "ST_Sum4ma" 21831 21832#. Tag: refpurpose 21833#: reference_raster.xml:9209 21834#, no-c-format 21835msgid "" 21836"Raster processing function that calculates the sum of all pixel values in a " 21837"neighborhood." 21838msgstr "" 21839"Função de processamento raster que calcula o resumo de todos os valores de " 21840"pixel em uma vizinhança. " 21841 21842#. Tag: funcsynopsis 21843#: reference_raster.xml:9213 21844#, no-c-format 21845msgid "" 21846"<funcprototype> <funcdef>float8 <function>ST_Sum4ma</function></funcdef> " 21847"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21848"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21849"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21850"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21851"<function>ST_Sum4ma</function></funcdef> <paramdef><type>double precision[][]" 21852"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21853"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21854"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21855msgstr "" 21856"<funcprototype> <funcdef>float8 <function>ST_Sum4ma</function></funcdef> " 21857"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> " 21858"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> " 21859"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></" 21860"paramdef> </funcprototype> <funcprototype> <funcdef>double precision " 21861"<function>ST_Sum4ma</function></funcdef> <paramdef><type>double precision[][]" 21862"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]" 21863"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</" 21864"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>" 21865 21866#. Tag: para 21867#: reference_raster.xml:9233 21868#, no-c-format 21869msgid "Calculate the sum of all pixel values in a neighborhood of pixels." 21870msgstr "" 21871"Calcula o resumo de todos os valores de pixel em uma vizinhança de pixeis." 21872 21873#. Tag: programlisting 21874#: reference_raster.xml:9262 21875#, no-c-format 21876msgid "" 21877"SELECT\n" 21878" rid,\n" 21879" st_value(\n" 21880" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_sum4ma(float[][],text," 21881"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21882" )\n" 21883"FROM dummy_rast\n" 21884"WHERE rid = 2;\n" 21885" rid | st_value\n" 21886"-----+----------\n" 21887" 2 | 2279\n" 21888"(1 row)" 21889msgstr "" 21890"SELECT\n" 21891" rid,\n" 21892" st_value(\n" 21893" st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_sum4ma(float[][],text," 21894"text[])'::regprocedure, 'ignore', NULL), 2, 2\n" 21895" )\n" 21896"FROM dummy_rast\n" 21897"WHERE rid = 2;\n" 21898" rid | st_value\n" 21899"-----+----------\n" 21900" 2 | 2279\n" 21901"(1 row)" 21902 21903#. Tag: para 21904#: reference_raster.xml:9268 21905#, no-c-format 21906msgid "" 21907", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21908"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21909"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21910"linkend=\"RT_ST_StdDev4ma\"/>" 21911msgstr "" 21912", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, " 21913"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref " 21914"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref " 21915"linkend=\"RT_ST_StdDev4ma\"/>" 21916 21917#. Tag: title 21918#: reference_raster.xml:9284 21919#, no-c-format 21920msgid "DEM (Elevation)" 21921msgstr "DEM (Elevação)" 21922 21923#. Tag: refname 21924#: reference_raster.xml:9288 21925#, no-c-format 21926msgid "ST_Aspect" 21927msgstr "ST_Aspect" 21928 21929#. Tag: refpurpose 21930#: reference_raster.xml:9289 21931#, no-c-format 21932msgid "" 21933"Returns the aspect (in degrees by default) of an elevation raster band. " 21934"Useful for analyzing terrain." 21935msgstr "" 21936"Retorna o aspecto (em graus) de uma banda raster de elevação. Útil para " 21937"analisar terrenos. " 21938 21939#. Tag: funcsynopsis 21940#: reference_raster.xml:9292 21941#, no-c-format 21942msgid "" 21943"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> " 21944"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 21945"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 21946"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 21947"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 21948"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 21949"<paramdef choice=\"opt\"><type>boolean </type> " 21950"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype> " 21951"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> " 21952"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 21953"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 21954"<paramdef><type>raster </type> <parameter>customextent</parameter></" 21955"paramdef> <paramdef choice=\"opt\"><type>text </type> " 21956"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 21957"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 21958"<paramdef choice=\"opt\"><type>boolean </type> " 21959"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>" 21960msgstr "" 21961"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> " 21962"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 21963"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 21964"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 21965"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 21966"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 21967"<paramdef choice=\"opt\"><type>boolean </type> " 21968"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype> " 21969"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> " 21970"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 21971"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> " 21972"<paramdef><type>raster </type> <parameter>customextent</parameter></" 21973"paramdef> <paramdef choice=\"opt\"><type>text </type> " 21974"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 21975"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 21976"<paramdef choice=\"opt\"><type>boolean </type> " 21977"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>" 21978 21979#. Tag: para 21980#: reference_raster.xml:9317 21981#, no-c-format 21982msgid "" 21983"Returns the aspect (in degrees by default) of an elevation raster band. " 21984"Utilizes map algebra and applies the aspect equation to neighboring pixels." 21985msgstr "" 21986"Retorna o aspecto (em graus) de uma banda raster de elevação. Utiliza mapa " 21987"algébrico e aplica o aspecto de equação para pixeis vizinhos. " 21988 21989#. Tag: para 21990#: reference_raster.xml:9319 21991#, no-c-format 21992msgid "" 21993"<varname>units</varname> indicates the units of the aspect. Possible values " 21994"are: RADIANS, DEGREES (default)." 21995msgstr "" 21996"<varname>units</varname> indica as unidade do aspecto. Possíveis valores " 21997"são: RADIANOS, GRAUS (padrão). " 21998 21999#. Tag: para 22000#: reference_raster.xml:9323 22001#, no-c-format 22002msgid "" 22003"When <varname>units</varname> = RADIANS, values are between 0 and 2 * pi " 22004"radians measured clockwise from North." 22005msgstr "" 22006"Quando <varname>units</varname> = RADIANOS, valoers são entre 0 e 2 * pi " 22007"radianos medidos sentido horário a partir do Norte. " 22008 22009#. Tag: para 22010#: reference_raster.xml:9327 22011#, no-c-format 22012msgid "" 22013"When <varname>units</varname> = DEGREES, values are between 0 and 360 " 22014"degrees measured clockwise from North." 22015msgstr "" 22016"Quando <varname>units</varname> = GRAUS, valores são entre 0 e 360 graus " 22017"medidos a partir do Norte. " 22018 22019#. Tag: para 22020#: reference_raster.xml:9331 22021#, no-c-format 22022msgid "If slope of pixel is zero, aspect of pixel is -1." 22023msgstr "Se o declive de pixel for zero, o aspecto do pixel é -1. " 22024 22025#. Tag: para 22026#: reference_raster.xml:9336 22027#, no-c-format 22028msgid "" 22029"For more information about Slope, Aspect and Hillshade, please refer to " 22030"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?" 22031"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and " 22032"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/" 22033"wwhelp.htm?context=FieldGuide&file=Aspect_Images.html\">ERDAS Field " 22034"Guide - Aspect Images</ulink>." 22035msgstr "" 22036"Para maiores informações sobre declive, aspecto e sombreado, por favor " 22037"recorra a <ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?" 22038"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> e " 22039"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/" 22040"wwhelp.htm?context=FieldGuide&file=Aspect_Images.html\">ERDAS Field " 22041"Guide - Aspect Images</ulink>." 22042 22043#. Tag: para 22044#: reference_raster.xml:9342 reference_raster.xml:9438 22045#, no-c-format 22046msgid "" 22047"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional " 22048"<varname>interpolate_nodata</varname> function parameter" 22049msgstr "" 22050"melhorias: 2.1.0 Usa ST_MapAlgebra() e foi adicionado uma função parâmetro " 22051"opcional <varname>interpolate_nodata</varname>" 22052 22053#. Tag: para 22054#: reference_raster.xml:9343 reference_raster.xml:9567 22055#, no-c-format 22056msgid "" 22057"Changed: 2.1.0 In prior versions, return values were in radians. Now, return " 22058"values default to degrees" 22059msgstr "" 22060"Alterações: 2.1.0 Nas versões anteriores, os valores retornados eram em " 22061"radianos. Agora, eles retornam em graus " 22062 22063#. Tag: programlisting 22064#: reference_raster.xml:9348 22065#, no-c-format 22066msgid "" 22067"WITH foo AS (\n" 22068" SELECT ST_SetValues(\n" 22069" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22070"1, '32BF', 0, -9999),\n" 22071" 1, 1, 1, ARRAY[\n" 22072" [1, 1, 1, 1, 1],\n" 22073" [1, 2, 2, 2, 1],\n" 22074" [1, 2, 3, 2, 1],\n" 22075" [1, 2, 2, 2, 1],\n" 22076" [1, 1, 1, 1, 1]\n" 22077" ]::double precision[][]\n" 22078" ) AS rast\n" 22079")\n" 22080"SELECT\n" 22081" ST_DumpValues(ST_Aspect(rast, 1, '32BF'))\n" 22082"FROM foo\n" 22083"\n" 22084" st_dumpvalues\n" 22085"\n" 22086"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22087"----------------------------------\n" 22088" (1,\"{{315,341.565063476562,0,18.4349479675293,45}," 22089"{288.434936523438,315,0,45,71.5650482177734},{270,270,-1,90,90}," 22090"{251.565048217773,225,180,135,108.434951782227},{225,198.43495178\n" 22091"2227,180,161.565048217773,135}}\")\n" 22092"(1 row)" 22093msgstr "" 22094"WITH foo AS (\n" 22095" SELECT ST_SetValues(\n" 22096" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22097"1, '32BF', 0, -9999),\n" 22098" 1, 1, 1, ARRAY[\n" 22099" [1, 1, 1, 1, 1],\n" 22100" [1, 2, 2, 2, 1],\n" 22101" [1, 2, 3, 2, 1],\n" 22102" [1, 2, 2, 2, 1],\n" 22103" [1, 1, 1, 1, 1]\n" 22104" ]::double precision[][]\n" 22105" ) AS rast\n" 22106")\n" 22107"SELECT\n" 22108" ST_DumpValues(ST_Aspect(rast, 1, '32BF'))\n" 22109"FROM foo\n" 22110"\n" 22111" st_dumpvalues\n" 22112"\n" 22113"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22114"----------------------------------\n" 22115" (1,\"{{315,341.565063476562,0,18.4349479675293,45}," 22116"{288.434936523438,315,0,45,71.5650482177734},{270,270,-1,90,90}," 22117"{251.565048217773,225,180,135,108.434951782227},{225,198.43495178\n" 22118"2227,180,161.565048217773,135}}\")\n" 22119"(1 row)" 22120 22121#. Tag: para 22122#: reference_raster.xml:9354 reference_raster.xml:9451 22123#: reference_raster.xml:9579 22124#, no-c-format 22125msgid "" 22126"Complete example of tiles of a coverage. This query only works with " 22127"PostgreSQL 9.1 or higher." 22128msgstr "" 22129"Exemplo completo de tiles de uma cobertura. Esta consulta funciona apenas " 22130"com PostgreSQL 9.1 ou superior. " 22131 22132#. Tag: programlisting 22133#: reference_raster.xml:9356 22134#, no-c-format 22135msgid "" 22136"WITH foo AS (\n" 22137" SELECT ST_Tile(\n" 22138" ST_SetValues(\n" 22139" ST_AddBand(\n" 22140" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22141"0),\n" 22142" 1, '32BF', 0, -9999\n" 22143" ),\n" 22144" 1, 1, 1, ARRAY[\n" 22145" [1, 1, 1, 1, 1, 1],\n" 22146" [1, 1, 1, 1, 2, 1],\n" 22147" [1, 2, 2, 3, 3, 1],\n" 22148" [1, 1, 3, 2, 1, 1],\n" 22149" [1, 2, 2, 1, 2, 1],\n" 22150" [1, 1, 1, 1, 1, 1]\n" 22151" ]::double precision[]\n" 22152" ),\n" 22153" 2, 2\n" 22154" ) AS rast\n" 22155")\n" 22156"SELECT\n" 22157" t1.rast,\n" 22158" ST_Aspect(ST_Union(t2.rast), 1, t1.rast)\n" 22159"FROM foo t1\n" 22160"CROSS JOIN foo t2\n" 22161"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22162"GROUP BY t1.rast;" 22163msgstr "" 22164"WITH foo AS (\n" 22165" SELECT ST_Tile(\n" 22166" ST_SetValues(\n" 22167" ST_AddBand(\n" 22168" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22169"0),\n" 22170" 1, '32BF', 0, -9999\n" 22171" ),\n" 22172" 1, 1, 1, ARRAY[\n" 22173" [1, 1, 1, 1, 1, 1],\n" 22174" [1, 1, 1, 1, 2, 1],\n" 22175" [1, 2, 2, 3, 3, 1],\n" 22176" [1, 1, 3, 2, 1, 1],\n" 22177" [1, 2, 2, 1, 2, 1],\n" 22178" [1, 1, 1, 1, 1, 1]\n" 22179" ]::double precision[]\n" 22180" ),\n" 22181" 2, 2\n" 22182" ) AS rast\n" 22183")\n" 22184"SELECT\n" 22185" t1.rast,\n" 22186" ST_Aspect(ST_Union(t2.rast), 1, t1.rast)\n" 22187"FROM foo t1\n" 22188"CROSS JOIN foo t2\n" 22189"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22190"GROUP BY t1.rast;" 22191 22192#. Tag: para 22193#: reference_raster.xml:9361 22194#, no-c-format 22195msgid "" 22196", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22197"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22198"linkend=\"RT_ST_Slope\"/>" 22199msgstr "" 22200", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22201"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22202"linkend=\"RT_ST_Slope\"/>" 22203 22204#. Tag: refname 22205#: reference_raster.xml:9374 22206#, no-c-format 22207msgid "ST_HillShade" 22208msgstr "ST_HillShade" 22209 22210#. Tag: refpurpose 22211#: reference_raster.xml:9375 22212#, no-c-format 22213msgid "" 22214"Returns the hypothetical illumination of an elevation raster band using " 22215"provided azimuth, altitude, brightness and scale inputs." 22216msgstr "" 22217"Retorna a iluminação hipotética de uma banda raster de elevação usando as " 22218"entradas de azimute, altitude, claridade e escala fornecidas. " 22219 22220#. Tag: funcsynopsis 22221#: reference_raster.xml:9378 22222#, no-c-format 22223msgid "" 22224"<funcprototype> <funcdef>raster <function>ST_HillShade</function></funcdef> " 22225"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22226"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 22227"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 22228"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 22229"\"><type>double precision </type> <parameter>azimuth=315</parameter></" 22230"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22231"<parameter>altitude=45</parameter></paramdef> <paramdef choice=\"opt" 22232"\"><type>double precision </type> <parameter>max_bright=255</parameter></" 22233"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22234"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22235"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22236"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 22237"<function>ST_HillShade</function></funcdef> <paramdef><type>raster </type> " 22238"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 22239"<parameter>band</parameter></paramdef> <paramdef><type>raster </type> " 22240"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22241"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> " 22242"<paramdef choice=\"opt\"><type>double precision </type> " 22243"<parameter>azimuth=315</parameter></paramdef> <paramdef choice=\"opt" 22244"\"><type>double precision </type> <parameter>altitude=45</parameter></" 22245"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22246"<parameter>max_bright=255</parameter></paramdef> <paramdef choice=\"opt" 22247"\"><type>double precision </type> <parameter>scale=1.0</parameter></" 22248"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 22249"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>" 22250msgstr "" 22251"<funcprototype> <funcdef>raster <function>ST_HillShade</function></funcdef> " 22252"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22253"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</" 22254"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 22255"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 22256"\"><type>double precision </type> <parameter>azimuth=315</parameter></" 22257"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22258"<parameter>altitude=45</parameter></paramdef> <paramdef choice=\"opt" 22259"\"><type>double precision </type> <parameter>max_bright=255</parameter></" 22260"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22261"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22262"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22263"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 22264"<function>ST_HillShade</function></funcdef> <paramdef><type>raster </type> " 22265"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 22266"<parameter>band</parameter></paramdef> <paramdef><type>raster </type> " 22267"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22268"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> " 22269"<paramdef choice=\"opt\"><type>double precision </type> " 22270"<parameter>azimuth=315</parameter></paramdef> <paramdef choice=\"opt" 22271"\"><type>double precision </type> <parameter>altitude=45</parameter></" 22272"paramdef> <paramdef choice=\"opt\"><type>double precision </type> " 22273"<parameter>max_bright=255</parameter></paramdef> <paramdef choice=\"opt" 22274"\"><type>double precision </type> <parameter>scale=1.0</parameter></" 22275"paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 22276"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>" 22277 22278#. Tag: para 22279#: reference_raster.xml:9409 22280#, no-c-format 22281msgid "" 22282"Returns the hypothetical illumination of an elevation raster band using the " 22283"azimuth, altitude, brightness, and scale inputs. Utilizes map algebra and " 22284"applies the hill shade equation to neighboring pixels. Return pixel values " 22285"are between 0 and 255." 22286msgstr "" 22287"Retorna a iluminação hipotética de uma banda raster de elevação usando as " 22288"entradas de azimute, altitude, claridade e escala fornecidas. Utiliza mapa " 22289"algébrico e aplica a equação sombreada nos pixeis vizinhos. Os valores de " 22290"pixel retornados estão entre 0 e 255. " 22291 22292#. Tag: para 22293#: reference_raster.xml:9411 22294#, no-c-format 22295msgid "" 22296"<varname>azimuth</varname> is a value between 0 and 360 degrees measured " 22297"clockwise from North." 22298msgstr "" 22299"<varname>azimuth</varname> é um valor entre 0 e 360 graus medidos no sentido " 22300"horário a partir do Norte." 22301 22302#. Tag: para 22303#: reference_raster.xml:9415 22304#, no-c-format 22305msgid "" 22306"<varname>altitude</varname> is a value between 0 and 90 degrees where 0 " 22307"degrees is at the horizon and 90 degrees is directly overhead." 22308msgstr "" 22309"<varname>altitude</varname> é um valor entre 0 e 90 graus onde 0 grau está " 22310"no horizonte e 90 graus estão diretamente em cima. " 22311 22312#. Tag: para 22313#: reference_raster.xml:9419 22314#, no-c-format 22315msgid "" 22316"<varname>max_bright</varname> is a value between 0 and 255 with 0 as no " 22317"brightness and 255 as max brightness." 22318msgstr "" 22319"<varname>max_bright</varname> é um valor entre 0 e 255 com 0 sendo nenhuma " 22320"claridade e 255 sendo a claridade máxima. " 22321 22322#. Tag: para 22323#: reference_raster.xml:9423 reference_raster.xml:9551 22324#, no-c-format 22325msgid "" 22326"<varname>scale</varname> is the ratio of vertical units to horizontal. For " 22327"Feet:LatLon use scale=370400, for Meters:LatLon use scale=111120." 22328msgstr "" 22329"<varname>scale</varname> is the ratio of vertical units to horizontal. For " 22330"Feet:LatLon use scale=370400, for Meters:LatLon use scale=111120." 22331 22332#. Tag: para 22333#: reference_raster.xml:9427 22334#, no-c-format 22335msgid "" 22336"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels " 22337"from the input raster will be interpolated using <xref linkend=" 22338"\"RT_ST_InvDistWeight4ma\"/> before computing the hillshade illumination." 22339msgstr "" 22340"Se <varname>interpolate_nodata</varname> for VERDADE, valores para pixeis " 22341"NODATA do raster de entrada serão interpolados usando <xref linkend=" 22342"\"RT_ST_InvDistWeight4ma\"/> antes de calcular a iluminação sombreada. " 22343 22344#. Tag: para 22345#: reference_raster.xml:9432 22346#, no-c-format 22347msgid "" 22348"For more information about Hillshade, please refer to <ulink url=\"http://" 22349"webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade" 22350"%20works\">How hillshade works</ulink>." 22351msgstr "" 22352"para maiores informações sobre sombreamento, por favor recorra a <ulink url=" 22353"\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How" 22354"%20Hillshade%20works\">How hillshade works</ulink>." 22355 22356#. Tag: para 22357#: reference_raster.xml:9439 22358#, no-c-format 22359msgid "" 22360"Changed: 2.1.0 In prior versions, azimuth and altitude were expressed in " 22361"radians. Now, azimuth and altitude are expressed in degrees" 22362msgstr "" 22363"Alterações: 2.1.0 Nas versões anteriores, o azimute e a altitude eram " 22364"expressados em radianos. Agora, são representados em graus " 22365 22366#. Tag: programlisting 22367#: reference_raster.xml:9445 22368#, no-c-format 22369msgid "" 22370"WITH foo AS (\n" 22371" SELECT ST_SetValues(\n" 22372" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22373"1, '32BF', 0, -9999),\n" 22374" 1, 1, 1, ARRAY[\n" 22375" [1, 1, 1, 1, 1],\n" 22376" [1, 2, 2, 2, 1],\n" 22377" [1, 2, 3, 2, 1],\n" 22378" [1, 2, 2, 2, 1],\n" 22379" [1, 1, 1, 1, 1]\n" 22380" ]::double precision[][]\n" 22381" ) AS rast\n" 22382")\n" 22383"SELECT\n" 22384" ST_DumpValues(ST_Hillshade(rast, 1, '32BF'))\n" 22385"FROM foo\n" 22386"\n" 22387" st_dumpvalues\n" 22388"\n" 22389"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22390"-----------------------------------------------------------------------\n" 22391" (1,\"{{NULL,NULL,NULL,NULL,NULL}," 22392"{NULL,251.32763671875,220.749786376953,147.224319458008,NULL}," 22393"{NULL,220.749786376953,180.312225341797,67.7497863769531,NULL}," 22394"{NULL,147.224319458008\n" 22395",67.7497863769531,43.1210060119629,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 22396"(1 row)" 22397msgstr "" 22398"WITH foo AS (\n" 22399" SELECT ST_SetValues(\n" 22400" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22401"1, '32BF', 0, -9999),\n" 22402" 1, 1, 1, ARRAY[\n" 22403" [1, 1, 1, 1, 1],\n" 22404" [1, 2, 2, 2, 1],\n" 22405" [1, 2, 3, 2, 1],\n" 22406" [1, 2, 2, 2, 1],\n" 22407" [1, 1, 1, 1, 1]\n" 22408" ]::double precision[][]\n" 22409" ) AS rast\n" 22410")\n" 22411"SELECT\n" 22412" ST_DumpValues(ST_Hillshade(rast, 1, '32BF'))\n" 22413"FROM foo\n" 22414"\n" 22415" st_dumpvalues\n" 22416"\n" 22417"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22418"-----------------------------------------------------------------------\n" 22419" (1,\"{{NULL,NULL,NULL,NULL,NULL}," 22420"{NULL,251.32763671875,220.749786376953,147.224319458008,NULL}," 22421"{NULL,220.749786376953,180.312225341797,67.7497863769531,NULL}," 22422"{NULL,147.224319458008\n" 22423",67.7497863769531,43.1210060119629,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n" 22424"(1 row)" 22425 22426#. Tag: programlisting 22427#: reference_raster.xml:9453 22428#, no-c-format 22429msgid "" 22430"WITH foo AS (\n" 22431" SELECT ST_Tile(\n" 22432" ST_SetValues(\n" 22433" ST_AddBand(\n" 22434" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22435"0),\n" 22436" 1, '32BF', 0, -9999\n" 22437" ),\n" 22438" 1, 1, 1, ARRAY[\n" 22439" [1, 1, 1, 1, 1, 1],\n" 22440" [1, 1, 1, 1, 2, 1],\n" 22441" [1, 2, 2, 3, 3, 1],\n" 22442" [1, 1, 3, 2, 1, 1],\n" 22443" [1, 2, 2, 1, 2, 1],\n" 22444" [1, 1, 1, 1, 1, 1]\n" 22445" ]::double precision[]\n" 22446" ),\n" 22447" 2, 2\n" 22448" ) AS rast\n" 22449")\n" 22450"SELECT\n" 22451" t1.rast,\n" 22452" ST_Hillshade(ST_Union(t2.rast), 1, t1.rast)\n" 22453"FROM foo t1\n" 22454"CROSS JOIN foo t2\n" 22455"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22456"GROUP BY t1.rast;" 22457msgstr "" 22458"WITH foo AS (\n" 22459" SELECT ST_Tile(\n" 22460" ST_SetValues(\n" 22461" ST_AddBand(\n" 22462" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22463"0),\n" 22464" 1, '32BF', 0, -9999\n" 22465" ),\n" 22466" 1, 1, 1, ARRAY[\n" 22467" [1, 1, 1, 1, 1, 1],\n" 22468" [1, 1, 1, 1, 2, 1],\n" 22469" [1, 2, 2, 3, 3, 1],\n" 22470" [1, 1, 3, 2, 1, 1],\n" 22471" [1, 2, 2, 1, 2, 1],\n" 22472" [1, 1, 1, 1, 1, 1]\n" 22473" ]::double precision[]\n" 22474" ),\n" 22475" 2, 2\n" 22476" ) AS rast\n" 22477")\n" 22478"SELECT\n" 22479" t1.rast,\n" 22480" ST_Hillshade(ST_Union(t2.rast), 1, t1.rast)\n" 22481"FROM foo t1\n" 22482"CROSS JOIN foo t2\n" 22483"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22484"GROUP BY t1.rast;" 22485 22486#. Tag: para 22487#: reference_raster.xml:9458 22488#, no-c-format 22489msgid "" 22490", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22491"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_Aspect\"/>, <xref " 22492"linkend=\"RT_ST_Slope\"/>" 22493msgstr "" 22494", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22495"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_Aspect\"/>, <xref " 22496"linkend=\"RT_ST_Slope\"/>" 22497 22498#. Tag: refname 22499#: reference_raster.xml:9471 22500#, no-c-format 22501msgid "ST_Roughness" 22502msgstr "ST_Roughness" 22503 22504#. Tag: refpurpose 22505#: reference_raster.xml:9472 22506#, no-c-format 22507msgid "Returns a raster with the calculated \"roughness\" of a DEM." 22508msgstr "Retorna um raster com a \"robustez\" calculada de um DEM. " 22509 22510#. Tag: funcprototype 22511#: reference_raster.xml:9477 22512#, no-c-format 22513msgid "" 22514"<funcdef>raster <function>ST_Roughness</function></funcdef> " 22515"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22516"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 22517"<paramdef><type>raster </type> <parameter>customextent</parameter></" 22518"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=" 22519"\"32BF\"</parameter> </paramdef> <paramdef choice=\"opt\"><type>boolean </" 22520"type> <parameter> interpolate_nodata=FALSE </parameter> </paramdef>" 22521msgstr "" 22522"<funcdef>raster <function>ST_Roughness</function></funcdef> " 22523"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22524"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> " 22525"<paramdef><type>raster </type> <parameter>customextent</parameter></" 22526"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=" 22527"\"32BF\"</parameter> </paramdef> <paramdef choice=\"opt\"><type>boolean </" 22528"type> <parameter> interpolate_nodata=FALSE </parameter> </paramdef>" 22529 22530#. Tag: para 22531#: reference_raster.xml:9490 22532#, no-c-format 22533msgid "" 22534"Calculates the \"roughness\" of a DEM, by subtracting the maximum from the " 22535"minimum for a given area." 22536msgstr "" 22537"Calcula a \"robustez\" de um DEM, subtraindo o máximo do mínimo de uma dada " 22538"área. " 22539 22540#. Tag: programlisting 22541#: reference_raster.xml:9496 reference_raster.xml:9629 22542#: reference_raster.xml:9680 22543#, no-c-format 22544msgid "-- needs examples" 22545msgstr "-- precisa de exemplos" 22546 22547#. Tag: para 22548#: reference_raster.xml:9501 22549#, no-c-format 22550msgid "" 22551", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22552"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22553"linkend=\"RT_ST_Aspect\"/>" 22554msgstr "" 22555", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22556"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22557"linkend=\"RT_ST_Aspect\"/>" 22558 22559#. Tag: refname 22560#: reference_raster.xml:9514 22561#, no-c-format 22562msgid "ST_Slope" 22563msgstr "ST_Slope" 22564 22565#. Tag: refpurpose 22566#: reference_raster.xml:9515 22567#, no-c-format 22568msgid "" 22569"Returns the slope (in degrees by default) of an elevation raster band. " 22570"Useful for analyzing terrain." 22571msgstr "" 22572"Retorna o declive (em graus) de uma banda raster de elevação. Útil para " 22573"analisar terrenos. " 22574 22575#. Tag: funcsynopsis 22576#: reference_raster.xml:9518 22577#, no-c-format 22578msgid "" 22579"<funcprototype> <funcdef>raster <function>ST_Slope</function></funcdef> " 22580"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22581"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 22582"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 22583"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 22584"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 22585"<paramdef choice=\"opt\"><type>double precision </type> " 22586"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22587"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22588"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 22589"<function>ST_Slope</function></funcdef> <paramdef><type>raster </type> " 22590"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 22591"<parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22592"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22593"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> " 22594"<paramdef choice=\"opt\"><type>text </type> <parameter>units=DEGREES</" 22595"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 22596"type> <parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22597"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22598"paramdef> </funcprototype>" 22599msgstr "" 22600"<funcprototype> <funcdef>raster <function>ST_Slope</function></funcdef> " 22601"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 22602"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</" 22603"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> " 22604"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt" 22605"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> " 22606"<paramdef choice=\"opt\"><type>double precision </type> " 22607"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22608"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22609"paramdef> </funcprototype> <funcprototype> <funcdef>raster " 22610"<function>ST_Slope</function></funcdef> <paramdef><type>raster </type> " 22611"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> " 22612"<parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22613"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22614"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> " 22615"<paramdef choice=\"opt\"><type>text </type> <parameter>units=DEGREES</" 22616"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </" 22617"type> <parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt" 22618"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></" 22619"paramdef> </funcprototype>" 22620 22621#. Tag: para 22622#: reference_raster.xml:9545 22623#, no-c-format 22624msgid "" 22625"Returns the slope (in degrees by default) of an elevation raster band. " 22626"Utilizes map algebra and applies the slope equation to neighboring pixels." 22627msgstr "" 22628"Retorna o declive (em graus) de uma banda raster de elevação. Utiliza mapa " 22629"algébrico e aplica a equação de declive nos pixeis vizinhos. " 22630 22631#. Tag: para 22632#: reference_raster.xml:9547 22633#, no-c-format 22634msgid "" 22635"<varname>units</varname> indicates the units of the slope. Possible values " 22636"are: RADIANS, DEGREES (default), PERCENT." 22637msgstr "" 22638"<varname>units</varname> indica as unidades do declive. Possíveis valores " 22639"são: RADIANOS, GRAUS (padrão), PORCENTAGEM. " 22640 22641#. Tag: para 22642#: reference_raster.xml:9555 22643#, no-c-format 22644msgid "" 22645"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels " 22646"from the input raster will be interpolated using <xref linkend=" 22647"\"RT_ST_InvDistWeight4ma\"/> before computing the surface slope." 22648msgstr "" 22649"Se <varname>interpolate_nodata</varname> for VERDADE, valores para pixeis " 22650"NODATA do raster de entrada serão interpolados usando <xref linkend=" 22651"\"RT_ST_InvDistWeight4ma\"/> antes de calcular a superfície inclinada. " 22652 22653#. Tag: para 22654#: reference_raster.xml:9560 22655#, no-c-format 22656msgid "" 22657"For more information about Slope, Aspect and Hillshade, please refer to " 22658"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?" 22659"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and " 22660"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/" 22661"wwhelp.htm?context=FieldGuide&file=Slope_Images.html\">ERDAS Field Guide " 22662"- Slope Images</ulink>." 22663msgstr "" 22664"Para maiores informações sobre declive, aspecto e sombreado, por favor " 22665"recorra a <ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?" 22666"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and " 22667"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/" 22668"wwhelp.htm?context=FieldGuide&file=Slope_Images.html\">ERDAS Field Guide " 22669"- Slope Images</ulink>." 22670 22671#. Tag: para 22672#: reference_raster.xml:9566 22673#, no-c-format 22674msgid "" 22675"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional <varname>units</" 22676"varname>, <varname>scale</varname>, <varname>interpolate_nodata</varname> " 22677"function parameters" 22678msgstr "" 22679"Melhorias: 2.1.0 Usa ST_MapAlgebra() e foi adicionado a função parâmetros " 22680"opcionais <varname>units</varname>, <varname>scale</varname>, " 22681"<varname>interpolate_nodata</varname> " 22682 22683#. Tag: programlisting 22684#: reference_raster.xml:9573 22685#, no-c-format 22686msgid "" 22687"WITH foo AS (\n" 22688" SELECT ST_SetValues(\n" 22689" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22690"1, '32BF', 0, -9999),\n" 22691" 1, 1, 1, ARRAY[\n" 22692" [1, 1, 1, 1, 1],\n" 22693" [1, 2, 2, 2, 1],\n" 22694" [1, 2, 3, 2, 1],\n" 22695" [1, 2, 2, 2, 1],\n" 22696" [1, 1, 1, 1, 1]\n" 22697" ]::double precision[][]\n" 22698" ) AS rast\n" 22699")\n" 22700"SELECT\n" 22701" ST_DumpValues(ST_Slope(rast, 1, '32BF'))\n" 22702"FROM foo\n" 22703"\n" 22704" st_dumpvalues\n" 22705"\n" 22706"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22707"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22708"---------------------------------------------------------------------\n" 22709" (1," 22710"\"{{10.0249881744385,21.5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}," 22711"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},\n" 22712"{26.5650520324707,36.8698959350586,0,36.8698959350586,26.5650520324707}," 22713"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154}," 22714"{10.0249881744385,21.\n" 22715"5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}}\")\n" 22716"(1 row)" 22717msgstr "" 22718"WITH foo AS (\n" 22719" SELECT ST_SetValues(\n" 22720" ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), " 22721"1, '32BF', 0, -9999),\n" 22722" 1, 1, 1, ARRAY[\n" 22723" [1, 1, 1, 1, 1],\n" 22724" [1, 2, 2, 2, 1],\n" 22725" [1, 2, 3, 2, 1],\n" 22726" [1, 2, 2, 2, 1],\n" 22727" [1, 1, 1, 1, 1]\n" 22728" ]::double precision[][]\n" 22729" ) AS rast\n" 22730")\n" 22731"SELECT\n" 22732" ST_DumpValues(ST_Slope(rast, 1, '32BF'))\n" 22733"FROM foo\n" 22734"\n" 22735" st_dumpvalues\n" 22736"\n" 22737"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22738"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n" 22739"---------------------------------------------------------------------\n" 22740" (1," 22741"\"{{10.0249881744385,21.5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}," 22742"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},\n" 22743"{26.5650520324707,36.8698959350586,0,36.8698959350586,26.5650520324707}," 22744"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154}," 22745"{10.0249881744385,21.\n" 22746"5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}}\")\n" 22747"(1 row)" 22748 22749#. Tag: programlisting 22750#: reference_raster.xml:9581 22751#, no-c-format 22752msgid "" 22753"WITH foo AS (\n" 22754" SELECT ST_Tile(\n" 22755" ST_SetValues(\n" 22756" ST_AddBand(\n" 22757" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22758"0),\n" 22759" 1, '32BF', 0, -9999\n" 22760" ),\n" 22761" 1, 1, 1, ARRAY[\n" 22762" [1, 1, 1, 1, 1, 1],\n" 22763" [1, 1, 1, 1, 2, 1],\n" 22764" [1, 2, 2, 3, 3, 1],\n" 22765" [1, 1, 3, 2, 1, 1],\n" 22766" [1, 2, 2, 1, 2, 1],\n" 22767" [1, 1, 1, 1, 1, 1]\n" 22768" ]::double precision[]\n" 22769" ),\n" 22770" 2, 2\n" 22771" ) AS rast\n" 22772")\n" 22773"SELECT\n" 22774" t1.rast,\n" 22775" ST_Slope(ST_Union(t2.rast), 1, t1.rast)\n" 22776"FROM foo t1\n" 22777"CROSS JOIN foo t2\n" 22778"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22779"GROUP BY t1.rast;" 22780msgstr "" 22781"WITH foo AS (\n" 22782" SELECT ST_Tile(\n" 22783" ST_SetValues(\n" 22784" ST_AddBand(\n" 22785" ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, " 22786"0),\n" 22787" 1, '32BF', 0, -9999\n" 22788" ),\n" 22789" 1, 1, 1, ARRAY[\n" 22790" [1, 1, 1, 1, 1, 1],\n" 22791" [1, 1, 1, 1, 2, 1],\n" 22792" [1, 2, 2, 3, 3, 1],\n" 22793" [1, 1, 3, 2, 1, 1],\n" 22794" [1, 2, 2, 1, 2, 1],\n" 22795" [1, 1, 1, 1, 1, 1]\n" 22796" ]::double precision[]\n" 22797" ),\n" 22798" 2, 2\n" 22799" ) AS rast\n" 22800")\n" 22801"SELECT\n" 22802" t1.rast,\n" 22803" ST_Slope(ST_Union(t2.rast), 1, t1.rast)\n" 22804"FROM foo t1\n" 22805"CROSS JOIN foo t2\n" 22806"WHERE ST_Intersects(t1.rast, t2.rast)\n" 22807"GROUP BY t1.rast;" 22808 22809#. Tag: para 22810#: reference_raster.xml:9586 22811#, no-c-format 22812msgid "" 22813", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22814"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22815"linkend=\"RT_ST_Aspect\"/>" 22816msgstr "" 22817", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22818"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22819"linkend=\"RT_ST_Aspect\"/>" 22820 22821#. Tag: refname 22822#: reference_raster.xml:9599 22823#, no-c-format 22824msgid "ST_TPI" 22825msgstr "ST_TPI" 22826 22827#. Tag: refpurpose 22828#: reference_raster.xml:9600 22829#, no-c-format 22830msgid "Returns a raster with the calculated Topographic Position Index." 22831msgstr "Retorna um raster com o índice de posição topográfico calculado. " 22832 22833#. Tag: funcprototype 22834#: reference_raster.xml:9605 22835#, no-c-format 22836msgid "" 22837"<funcdef>raster <function>ST_TPI</function></funcdef> <paramdef><type>raster " 22838"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 22839"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22840"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22841"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> " 22842"<paramdef choice=\"opt\"><type>boolean </type> <parameter> " 22843"interpolate_nodata=FALSE </parameter> </paramdef>" 22844msgstr "" 22845"<funcdef>raster <function>ST_TPI</function></funcdef> <paramdef><type>raster " 22846"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 22847"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22848"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22849"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> " 22850"<paramdef choice=\"opt\"><type>boolean </type> <parameter> " 22851"interpolate_nodata=FALSE </parameter> </paramdef>" 22852 22853#. Tag: para 22854#: reference_raster.xml:9619 22855#, no-c-format 22856msgid "" 22857"Calculates the Topographic Position Index, which is defined as the focal " 22858"mean with radius of one minus the center cell." 22859msgstr "" 22860 22861#. Tag: para 22862#: reference_raster.xml:9622 reference_raster.xml:9672 22863#, no-c-format 22864msgid "This function only supports a focalmean radius of one." 22865msgstr "Esta função suporta apenas o raio mínimo central. " 22866 22867#. Tag: para 22868#: reference_raster.xml:9634 22869#, no-c-format 22870msgid "" 22871", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_Roughness\"/>, <xref " 22872"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22873"linkend=\"RT_ST_Aspect\"/>" 22874msgstr "" 22875", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_Roughness\"/>, <xref " 22876"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22877"linkend=\"RT_ST_Aspect\"/>" 22878 22879#. Tag: refname 22880#: reference_raster.xml:9647 22881#, no-c-format 22882msgid "ST_TRI" 22883msgstr "ST_TRI" 22884 22885#. Tag: refpurpose 22886#: reference_raster.xml:9648 22887#, no-c-format 22888msgid "Returns a raster with the calculated Terrain Ruggedness Index." 22889msgstr "Retorna um raster com o índice de aspereza do terreno calculado. " 22890 22891#. Tag: funcprototype 22892#: reference_raster.xml:9653 22893#, no-c-format 22894msgid "" 22895"<funcdef>raster <function>ST_TRI</function></funcdef> <paramdef><type>raster " 22896"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 22897"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22898"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22899"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> " 22900"<paramdef choice=\"opt\"><type>boolean </type> <parameter> " 22901"interpolate_nodata=FALSE </parameter> </paramdef>" 22902msgstr "" 22903"<funcdef>raster <function>ST_TRI</function></funcdef> <paramdef><type>raster " 22904"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </" 22905"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> " 22906"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt" 22907"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> " 22908"<paramdef choice=\"opt\"><type>boolean </type> <parameter> " 22909"interpolate_nodata=FALSE </parameter> </paramdef>" 22910 22911#. Tag: para 22912#: reference_raster.xml:9667 22913#, no-c-format 22914msgid "" 22915"Terrain Ruggedness Index is calculated by comparing a central pixel with its " 22916"neighbors, taking the absolute values of the differences, and averaging the " 22917"result." 22918msgstr "" 22919"O índice de aspereza do terreno é calculado pela comparação de um pixel " 22920"central com seus vizinhos, pegando os valores absolutos das diferenças, e " 22921"calculando o resultado. " 22922 22923#. Tag: para 22924#: reference_raster.xml:9685 22925#, no-c-format 22926msgid "" 22927", <xref linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22928"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22929"linkend=\"RT_ST_Aspect\"/>" 22930msgstr "" 22931", <xref linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref " 22932"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref " 22933"linkend=\"RT_ST_Aspect\"/>" 22934 22935#. Tag: title 22936#: reference_raster.xml:9699 22937#, no-c-format 22938msgid "Raster to Geometry" 22939msgstr "Raster para Geometria " 22940 22941#. Tag: refname 22942#: reference_raster.xml:9703 22943#, no-c-format 22944msgid "Box3D" 22945msgstr "Caixa3D" 22946 22947#. Tag: refpurpose 22948#: reference_raster.xml:9704 22949#, no-c-format 22950msgid "Returns the box 3d representation of the enclosing box of the raster." 22951msgstr "Retorna a representação da caixa 3d da caixa encerrada do raster. " 22952 22953#. Tag: funcprototype 22954#: reference_raster.xml:9709 22955#, no-c-format 22956msgid "" 22957"<funcdef>box3d <function>Box3D</function></funcdef> <paramdef><type>raster </" 22958"type> <parameter>rast</parameter></paramdef>" 22959msgstr "" 22960"<funcdef>box3d <function>Box3D</function></funcdef> <paramdef><type>raster </" 22961"type> <parameter>rast</parameter></paramdef>" 22962 22963#. Tag: para 22964#: reference_raster.xml:9719 22965#, no-c-format 22966msgid "Returns the box representing the extent of the raster." 22967msgstr "Retorna a caixa representando a extensão do raster. " 22968 22969#. Tag: para 22970#: reference_raster.xml:9720 22971#, no-c-format 22972msgid "" 22973"The polygon is defined by the corner points of the bounding box " 22974"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MAXX</" 22975"varname>, <varname>MAXY</varname>))" 22976msgstr "" 22977"O polígono é definido pelos pontos de canto da caixa delimitadora " 22978"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MAXX</" 22979"varname>, <varname>MAXY</varname>))" 22980 22981#. Tag: para 22982#: reference_raster.xml:9724 22983#, no-c-format 22984msgid "" 22985"Changed: 2.0.0 In pre-2.0 versions, there used to be a box2d instead of " 22986"box3d. Since box2d is a deprecated type, this was changed to box3d." 22987msgstr "" 22988"Alterações: 2.0.0 Nas versões pre-2.0, costumava existir uma caixa2d em vez " 22989"de uma caixa3d. Já que a caixa2d é um tipo inferior, foi alterado para " 22990"caixa3d. " 22991 22992#. Tag: programlisting 22993#: reference_raster.xml:9730 22994#, no-c-format 22995msgid "" 22996"SELECT\n" 22997" rid,\n" 22998" Box3D(rast) AS rastbox\n" 22999"FROM dummy_rast;\n" 23000"\n" 23001"rid | rastbox\n" 23002"----+-------------------------------------------------\n" 23003"1 | BOX3D(0.5 0.5 0,20.5 60.5 0)\n" 23004"2 | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)" 23005msgstr "" 23006"SELECT\n" 23007" rid,\n" 23008" Box3D(rast) AS rastbox\n" 23009"FROM dummy_rast;\n" 23010"\n" 23011"rid | rastbox\n" 23012"----+-------------------------------------------------\n" 23013"1 | BOX3D(0.5 0.5 0,20.5 60.5 0)\n" 23014"2 | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)" 23015 23016#. Tag: refname 23017#: reference_raster.xml:9743 23018#, no-c-format 23019msgid "ST_ConvexHull" 23020msgstr "ST_ConvexHull" 23021 23022#. Tag: refpurpose 23023#: reference_raster.xml:9744 23024#, no-c-format 23025msgid "" 23026"Return the convex hull geometry of the raster including pixel values equal " 23027"to BandNoDataValue. For regular shaped and non-skewed rasters, this gives " 23028"the same result as ST_Envelope so only useful for irregularly shaped or " 23029"skewed rasters." 23030msgstr "" 23031"Retorna o casco convexo da geometria do raster incluindo valores iguais ao " 23032"BandNoDataValue. Para rasters com formas normais e não desviadas, o " 23033"resultado é o mesmo que ST_Envelope, então só é útil para rasters com formas " 23034"irregulares ou desviados. " 23035 23036#. Tag: funcprototype 23037#: reference_raster.xml:9751 23038#, no-c-format 23039msgid "" 23040"<funcdef>geometry <function>ST_ConvexHull</function></funcdef> " 23041"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 23042msgstr "" 23043"<funcdef>geometry <function>ST_ConvexHull</function></funcdef> " 23044"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 23045 23046#. Tag: para 23047#: reference_raster.xml:9761 23048#, no-c-format 23049msgid "" 23050"Return the convex hull geometry of the raster including the NoDataBandValue " 23051"band pixels. For regular shaped and non-skewed rasters, this gives more or " 23052"less the same result as ST_Envelope so only useful for irregularly shaped or " 23053"skewed rasters." 23054msgstr "" 23055"Retorna o casco convexo da geometria do raster incluindo valores iguais ao " 23056"NoDataBandValue pixeis banda. Para rasters com formas normais e não " 23057"desviadas, o resultado é o mesmo que ST_Envelope, então só é útil para " 23058"rasters com formas irregulares ou desviados. " 23059 23060#. Tag: para 23061#: reference_raster.xml:9765 23062#, no-c-format 23063msgid "" 23064"ST_Envelope floors the coordinates and hence add a little buffer around the " 23065"raster so the answer is subtly different from ST_ConvexHull which does not " 23066"floor." 23067msgstr "" 23068"ST_Envelope derruba as coordenadas e por isso adiciona um pequeno buffer em " 23069"torno do raster, então a resposta é um pouco diferente da ST_ConvexHull que " 23070"não derruba. " 23071 23072#. Tag: para 23073#: reference_raster.xml:9772 23074#, no-c-format 23075msgid "" 23076"Refer to <ulink url=\"http://trac.osgeo.org/postgis/wiki/WKTRaster/" 23077"SpecificationWorking01\">PostGIS Raster Specification</ulink> for a diagram " 23078"of this." 23079msgstr "" 23080"Recorra a <ulink url=\"http://trac.osgeo.org/postgis/wiki/WKTRaster/" 23081"SpecificationWorking01\">PostGIS Raster Specification</ulink> para um " 23082"diagrama. " 23083 23084#. Tag: programlisting 23085#: reference_raster.xml:9773 23086#, no-c-format 23087msgid "" 23088"-- Note envelope and convexhull are more or less the same\n" 23089"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n" 23090" ST_AsText(ST_Envelope(rast)) As env\n" 23091"FROM dummy_rast WHERE rid=1;\n" 23092"\n" 23093" convhull | " 23094"env\n" 23095"--------------------------------------------------------" 23096"+------------------------------------\n" 23097" POLYGON((0.5 0.5,20.5 0.5,20.5 60.5,0.5 60.5,0.5 0.5)) | POLYGON((0 0,20 " 23098"0,20 60,0 60,0 0))" 23099msgstr "" 23100"-- Note envelope and convexhull are more or less the same\n" 23101"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n" 23102" ST_AsText(ST_Envelope(rast)) As env\n" 23103"FROM dummy_rast WHERE rid=1;\n" 23104"\n" 23105" convhull | " 23106"env\n" 23107"--------------------------------------------------------" 23108"+------------------------------------\n" 23109" POLYGON((0.5 0.5,20.5 0.5,20.5 60.5,0.5 60.5,0.5 0.5)) | POLYGON((0 0,20 " 23110"0,20 60,0 60,0 0))" 23111 23112#. Tag: programlisting 23113#: reference_raster.xml:9774 23114#, no-c-format 23115msgid "" 23116"-- now we skew the raster\n" 23117"-- note how the convex hull and envelope are now different\n" 23118"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n" 23119" ST_AsText(ST_Envelope(rast)) As env\n" 23120"FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast\n" 23121" FROM dummy_rast WHERE rid=1) As foo;\n" 23122"\n" 23123" convhull | " 23124"env\n" 23125"--------------------------------------------------------" 23126"+------------------------------------\n" 23127" POLYGON((0.5 0.5,20.5 1.5,22.5 61.5,2.5 60.5,0.5 0.5)) | POLYGON((0 0,22 " 23128"0,22 61,0 61,0 0))" 23129msgstr "" 23130"-- now we skew the raster\n" 23131"-- note how the convex hull and envelope are now different\n" 23132"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n" 23133" ST_AsText(ST_Envelope(rast)) As env\n" 23134"FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast\n" 23135" FROM dummy_rast WHERE rid=1) As foo;\n" 23136"\n" 23137" convhull | " 23138"env\n" 23139"--------------------------------------------------------" 23140"+------------------------------------\n" 23141" POLYGON((0.5 0.5,20.5 1.5,22.5 61.5,2.5 60.5,0.5 0.5)) | POLYGON((0 0,22 " 23142"0,22 61,0 61,0 0))" 23143 23144#. Tag: para 23145#: reference_raster.xml:9780 23146#, no-c-format 23147msgid "" 23148", <xref linkend=\"RT_ST_MinConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/" 23149">, <xref linkend=\"ST_AsText\"/>" 23150msgstr "" 23151", <xref linkend=\"RT_ST_MinConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/" 23152">, <xref linkend=\"ST_AsText\"/>" 23153 23154#. Tag: refname 23155#: reference_raster.xml:9791 23156#, no-c-format 23157msgid "ST_DumpAsPolygons" 23158msgstr "ST_DumpAsPolygons" 23159 23160#. Tag: refpurpose 23161#: reference_raster.xml:9792 23162#, no-c-format 23163msgid "" 23164"Returns a set of geomval (geom,val) rows, from a given raster band. If no " 23165"band number is specified, band num defaults to 1." 23166msgstr "" 23167"Retorna um conjunto de linhas geomval (geom,val), de uma dada banda raster. " 23168"Se nenhum número de banda for especificado, o número de banda torna-se 1. " 23169 23170#. Tag: funcprototype 23171#: reference_raster.xml:9797 23172#, no-c-format 23173msgid "" 23174"<funcdef>setof geomval <function>ST_DumpAsPolygons</function></funcdef> " 23175"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23176"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</" 23177"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 23178"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 23179msgstr "" 23180"<funcdef>setof geomval <function>ST_DumpAsPolygons</function></funcdef> " 23181"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23182"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</" 23183"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> " 23184"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>" 23185 23186#. Tag: para 23187#: reference_raster.xml:9808 23188#, no-c-format 23189msgid "" 23190"This is a set-returning function (SRF). It returns a set of geomval rows, " 23191"formed by a geometry (geom) and a pixel band value (val). Each polygon is " 23192"the union of all pixels for that band that have the same pixel value denoted " 23193"by val." 23194msgstr "" 23195"Esta é uma função retorno (SRF). Ela retorna um conjunto de linhas geomval, " 23196"formadas por uma geometria (geom) e uma banda pixel valor (val). Cada " 23197"polígono é a união de todos os pixeis para aquela banda que tem o mesmo " 23198"valor de pixel indicado pelo val. " 23199 23200#. Tag: para 23201#: reference_raster.xml:9812 23202#, no-c-format 23203msgid "" 23204"ST_DumpAsPolygon is useful for polygonizing rasters. It is the reverse of a " 23205"GROUP BY in that it creates new rows. For example it can be used to expand a " 23206"single raster into multiple POLYGONS/MULTIPOLYGONS." 23207msgstr "" 23208"ST_DumpAsPolygon é útil para poligonizar rasters. É o reverso de um GRUPO " 23209"POR onde cria novas filas. Por exemplo, pode ser usada para expandir um " 23210"único raster em POLÍGONOS/MULTIPOLÍGONOS. " 23211 23212#. Tag: para 23213#: reference_raster.xml:9816 23214#, no-c-format 23215msgid "Availability: Requires GDAL 1.7 or higher." 23216msgstr "Disponibilidade: Requer GDAL 1.7 ou superior. " 23217 23218#. Tag: para 23219#: reference_raster.xml:9817 23220#, no-c-format 23221msgid "" 23222"If there is a no data value set for a band, pixels with that value will not " 23223"be returned except in the case of exclude_nodata_value=false." 23224msgstr "" 23225 23226#. Tag: para 23227#: reference_raster.xml:9818 23228#, no-c-format 23229msgid "" 23230"If you only care about count of pixels with a given value in a raster, it is " 23231"faster to use <xref linkend=\"RT_ST_ValueCount\"/>." 23232msgstr "" 23233"Se você se importa somente com pixeis contados com um dado valor em um " 23234"raster, é mais rápido usar: <xref linkend=\"RT_ST_ValueCount\"/>." 23235 23236#. Tag: para 23237#: reference_raster.xml:9820 23238#, no-c-format 23239msgid "" 23240"This is different than ST_PixelAsPolygons where one geometry is returned for " 23241"each pixel regardless of pixel value." 23242msgstr "" 23243"Isto é diferente da ST_PixelAsPolygons onde uma geometria retorna para cada " 23244"pixel independente do valor do pixel. " 23245 23246#. Tag: programlisting 23247#: reference_raster.xml:9828 23248#, no-c-format 23249msgid "" 23250"-- this syntax requires PostgreSQL 9.3+\n" 23251"SELECT val, ST_AsText(geom) As geomwkt\n" 23252"FROM (\n" 23253"SELECT dp.*\n" 23254"FROM dummy_rast, LATERAL ST_DumpAsPolygons(rast) AS dp\n" 23255"WHERE rid = 2\n" 23256") As foo\n" 23257"WHERE val BETWEEN 249 and 251\n" 23258"ORDER BY val;\n" 23259"\n" 23260" val | geomwkt\n" 23261"-----" 23262"+--------------------------------------------------------------------------\n" 23263" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 " 23264"5793243.85,\n" 23265" 3427928 5793243.95,3427927.95 5793243.95))\n" 23266" 250 | POLYGON((3427927.75 5793243.9,3427927.75 5793243.85,3427927.8 " 23267"5793243.85,\n" 23268" 3427927.8 5793243.9,3427927.75 5793243.9))\n" 23269" 250 | POLYGON((3427927.8 5793243.8,3427927.8 5793243.75,3427927.85 " 23270"5793243.75,\n" 23271" 3427927.85 5793243.8, 3427927.8 5793243.8))\n" 23272" 251 | POLYGON((3427927.75 5793243.85,3427927.75 5793243.8,3427927.8 " 23273"5793243.8,\n" 23274" 3427927.8 5793243.85,3427927.75 5793243.85))" 23275msgstr "" 23276 23277#. Tag: para 23278#: reference_raster.xml:9833 23279#, no-c-format 23280msgid "" 23281", <xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Polygon\"/>, <xref " 23282"linkend=\"RT_ST_ValueCount\"/>" 23283msgstr "" 23284", <xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Polygon\"/>, <xref " 23285"linkend=\"RT_ST_ValueCount\"/>" 23286 23287#. Tag: refname 23288#: reference_raster.xml:9844 23289#, no-c-format 23290msgid "ST_Envelope" 23291msgstr "ST_Envelope" 23292 23293#. Tag: refpurpose 23294#: reference_raster.xml:9845 23295#, no-c-format 23296msgid "Returns the polygon representation of the extent of the raster." 23297msgstr "Retorna a representação de polígono da extensão do raster." 23298 23299#. Tag: funcprototype 23300#: reference_raster.xml:9850 23301#, no-c-format 23302msgid "" 23303"<funcdef>geometry <function>ST_Envelope</function></funcdef> " 23304"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 23305msgstr "" 23306"<funcdef>geometry <function>ST_Envelope</function></funcdef> " 23307"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>" 23308 23309#. Tag: para 23310#: reference_raster.xml:9860 23311#, no-c-format 23312msgid "" 23313"Returns the polygon representation of the extent of the raster in spatial " 23314"coordinate units defined by srid. It is a float8 minimum bounding box " 23315"represented as a polygon." 23316msgstr "" 23317"Retorna a representação de polígono da extensão do raster em unidades de " 23318"coordenadas espaciais definidas pelo srid. É uma caixa delimitadora float8 " 23319"mínima representada como um polígono. " 23320 23321#. Tag: para 23322#: reference_raster.xml:9862 23323#, no-c-format 23324msgid "" 23325"The polygon is defined by the corner points of the bounding box " 23326"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MINX</" 23327"varname>, <varname>MAXY</varname>), (<varname>MAXX</varname>, <varname>MAXY</" 23328"varname>), (<varname>MAXX</varname>, <varname>MINY</varname>), " 23329"(<varname>MINX</varname>, <varname>MINY</varname>))" 23330msgstr "" 23331"O polígono é definido pelos pontos do canto da caixa delimitadora " 23332"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MINX</" 23333"varname>, <varname>MAXY</varname>), (<varname>MAXX</varname>, <varname>MAXY</" 23334"varname>), (<varname>MAXX</varname>, <varname>MINY</varname>), " 23335"(<varname>MINX</varname>, <varname>MINY</varname>))" 23336 23337#. Tag: programlisting 23338#: reference_raster.xml:9874 23339#, no-c-format 23340msgid "" 23341"SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt\n" 23342"FROM dummy_rast;\n" 23343"\n" 23344" rid | envgeomwkt\n" 23345"-----+--------------------------------------------------------------------\n" 23346" 1 | POLYGON((0 0,20 0,20 60,0 60,0 0))\n" 23347" 2 | POLYGON((3427927 5793243,3427928 5793243,\n" 23348" 3427928 5793244,3427927 5793244, 3427927 5793243))" 23349msgstr "" 23350"SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt\n" 23351"FROM dummy_rast;\n" 23352"\n" 23353" rid | envgeomwkt\n" 23354"-----+--------------------------------------------------------------------\n" 23355" 1 | POLYGON((0 0,20 0,20 60,0 60,0 0))\n" 23356" 2 | POLYGON((3427927 5793243,3427928 5793243,\n" 23357" 3427928 5793244,3427927 5793244, 3427927 5793243))" 23358 23359#. Tag: para 23360#: reference_raster.xml:9879 23361#, no-c-format 23362msgid ", <xref linkend=\"ST_AsText\"/>, <xref linkend=\"RT_ST_SRID\"/>" 23363msgstr ", <xref linkend=\"ST_AsText\"/>, <xref linkend=\"RT_ST_SRID\"/>" 23364 23365#. Tag: refname 23366#: reference_raster.xml:9889 23367#, no-c-format 23368msgid "ST_MinConvexHull" 23369msgstr "ST_MinConvexHull" 23370 23371#. Tag: refpurpose 23372#: reference_raster.xml:9890 23373#, no-c-format 23374msgid "Return the convex hull geometry of the raster excluding NODATA pixels." 23375msgstr "" 23376"Retorna a geometria de casco convexo do raster excluindo os pixeis SEM " 23377"DADOS. " 23378 23379#. Tag: funcprototype 23380#: reference_raster.xml:9897 23381#, no-c-format 23382msgid "" 23383"<funcdef>geometry <function>ST_MinConvexHull</function></funcdef> " 23384"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23385"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=NULL</" 23386"parameter></paramdef>" 23387msgstr "" 23388"<funcdef>geometry <function>ST_MinConvexHull</function></funcdef> " 23389"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23390"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=NULL</" 23391"parameter></paramdef>" 23392 23393#. Tag: para 23394#: reference_raster.xml:9908 23395#, no-c-format 23396msgid "" 23397"Return the convex hull geometry of the raster excluding NODATA pixels. If " 23398"<varname>nband</varname> is NULL, all bands of the raster are considered." 23399msgstr "" 23400"Retorna a geometria de casco convexo do raster excluindo os pixeis NODATA. " 23401"Se <varname>nband</varname> for NULL, todas as bandas do raster serão " 23402"consideradas. " 23403 23404#. Tag: programlisting 23405#: reference_raster.xml:9917 23406#, no-c-format 23407msgid "" 23408"WITH foo AS (\n" 23409" SELECT\n" 23410" ST_SetValues(\n" 23411" ST_SetValues(\n" 23412" ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(9, " 23413"9, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0), 2, '8BUI', 1, 0),\n" 23414" 1, 1, 1,\n" 23415" ARRAY[\n" 23416" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23417" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23418" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23419" [0, 0, 0, 1, 0, 0, 0, 0, 1],\n" 23420" [0, 0, 0, 1, 1, 0, 0, 0, 0],\n" 23421" [0, 0, 0, 1, 0, 0, 0, 0, 0],\n" 23422" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23423" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23424" [0, 0, 0, 0, 0, 0, 0, 0, 0]\n" 23425" ]::double precision[][]\n" 23426" ),\n" 23427" 2, 1, 1,\n" 23428" ARRAY[\n" 23429" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23430" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23431" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23432" [1, 0, 0, 0, 0, 1, 0, 0, 0],\n" 23433" [0, 0, 0, 0, 1, 1, 0, 0, 0],\n" 23434" [0, 0, 0, 0, 0, 1, 0, 0, 0],\n" 23435" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23436" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23437" [0, 0, 1, 0, 0, 0, 0, 0, 0]\n" 23438" ]::double precision[][]\n" 23439" ) AS rast\n" 23440")\n" 23441"SELECT\n" 23442" ST_AsText(ST_ConvexHull(rast)) AS hull,\n" 23443" ST_AsText(ST_MinConvexHull(rast)) AS mhull,\n" 23444" ST_AsText(ST_MinConvexHull(rast, 1)) AS mhull_1,\n" 23445" ST_AsText(ST_MinConvexHull(rast, 2)) AS mhull_2\n" 23446"FROM foo\n" 23447"\n" 23448" hull | mhull " 23449"| mhull_1 | mhull_2\n" 23450"----------------------------------+-------------------------------------" 23451"+-------------------------------------" 23452"+-------------------------------------\n" 23453" POLYGON((0 0,9 0,9 -9,0 -9,0 0)) | POLYGON((0 -3,9 -3,9 -9,0 -9,0 -3)) | " 23454"POLYGON((3 -3,9 -3,9 -6,3 -6,3 -3)) | POLYGON((0 -3,6 -3,6 -9,0 -9,0 -3))" 23455msgstr "" 23456"WITH foo AS (\n" 23457" SELECT\n" 23458" ST_SetValues(\n" 23459" ST_SetValues(\n" 23460" ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(9, " 23461"9, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0), 2, '8BUI', 1, 0),\n" 23462" 1, 1, 1,\n" 23463" ARRAY[\n" 23464" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23465" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23466" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23467" [0, 0, 0, 1, 0, 0, 0, 0, 1],\n" 23468" [0, 0, 0, 1, 1, 0, 0, 0, 0],\n" 23469" [0, 0, 0, 1, 0, 0, 0, 0, 0],\n" 23470" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23471" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23472" [0, 0, 0, 0, 0, 0, 0, 0, 0]\n" 23473" ]::double precision[][]\n" 23474" ),\n" 23475" 2, 1, 1,\n" 23476" ARRAY[\n" 23477" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23478" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23479" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23480" [1, 0, 0, 0, 0, 1, 0, 0, 0],\n" 23481" [0, 0, 0, 0, 1, 1, 0, 0, 0],\n" 23482" [0, 0, 0, 0, 0, 1, 0, 0, 0],\n" 23483" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23484" [0, 0, 0, 0, 0, 0, 0, 0, 0],\n" 23485" [0, 0, 1, 0, 0, 0, 0, 0, 0]\n" 23486" ]::double precision[][]\n" 23487" ) AS rast\n" 23488")\n" 23489"SELECT\n" 23490" ST_AsText(ST_ConvexHull(rast)) AS hull,\n" 23491" ST_AsText(ST_MinConvexHull(rast)) AS mhull,\n" 23492" ST_AsText(ST_MinConvexHull(rast, 1)) AS mhull_1,\n" 23493" ST_AsText(ST_MinConvexHull(rast, 2)) AS mhull_2\n" 23494"FROM foo\n" 23495"\n" 23496" hull | mhull " 23497"| mhull_1 | mhull_2\n" 23498"----------------------------------+-------------------------------------" 23499"+-------------------------------------" 23500"+-------------------------------------\n" 23501" POLYGON((0 0,9 0,9 -9,0 -9,0 0)) | POLYGON((0 -3,9 -3,9 -9,0 -9,0 -3)) | " 23502"POLYGON((3 -3,9 -3,9 -6,3 -6,3 -3)) | POLYGON((0 -3,6 -3,6 -9,0 -9,0 -3))" 23503 23504#. Tag: para 23505#: reference_raster.xml:9922 23506#, no-c-format 23507msgid "" 23508", <xref linkend=\"RT_ST_ConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/>, " 23509"<xref linkend=\"ST_AsText\"/>" 23510msgstr "" 23511", <xref linkend=\"RT_ST_ConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/>, " 23512"<xref linkend=\"ST_AsText\"/>" 23513 23514#. Tag: refname 23515#: reference_raster.xml:9933 23516#, no-c-format 23517msgid "ST_Polygon" 23518msgstr "ST_Polygon" 23519 23520#. Tag: refpurpose 23521#: reference_raster.xml:9934 23522#, no-c-format 23523msgid "" 23524"Returns a multipolygon geometry formed by the union of pixels that have a " 23525"pixel value that is not no data value. If no band number is specified, band " 23526"num defaults to 1." 23527msgstr "" 23528"Retorna um multipolígono formado pela união de pixeis que têm um valor que " 23529"não é um valor sem dados. Se um número de banda for especificado, usa-se 1. " 23530 23531#. Tag: funcprototype 23532#: reference_raster.xml:9939 23533#, no-c-format 23534msgid "" 23535"<funcdef>geometry <function>ST_Polygon</function></funcdef> " 23536"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23537"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</" 23538"parameter></paramdef>" 23539msgstr "" 23540"<funcdef>geometry <function>ST_Polygon</function></funcdef> " 23541"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> " 23542"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</" 23543"parameter></paramdef>" 23544 23545#. Tag: para 23546#: reference_raster.xml:9949 23547#, no-c-format 23548msgid "Availability: 0.1.6 Requires GDAL 1.7 or higher." 23549msgstr "Disponibilidade: 0.1.6 Requer GDAL 1.7 ou superior." 23550 23551#. Tag: para 23552#: reference_raster.xml:9950 23553#, no-c-format 23554msgid "" 23555"Enhanced: 2.1.0 Improved Speed (fully C-Based) and the returning " 23556"multipolygon is ensured to be valid." 23557msgstr "" 23558"Melhorias: 2.1.0 Velocidade aprimorada (fully C-Based) e o multipolígono que " 23559"retorna é assegurado como válido. " 23560 23561#. Tag: para 23562#: reference_raster.xml:9951 23563#, no-c-format 23564msgid "" 23565"Changed: 2.1.0 In prior versions would sometimes return a polygon, changed " 23566"to always return multipolygon." 23567msgstr "" 23568"Alterações: 2.1.0 Nas versões anteriores retornaria polígono, foi alterado " 23569"para sempre voltar multipolígono. " 23570 23571#. Tag: programlisting 23572#: reference_raster.xml:9956 23573#, no-c-format 23574msgid "" 23575"-- by default no data band value is 0 or not set, so polygon will return a " 23576"square polygon\n" 23577"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n" 23578"FROM dummy_rast\n" 23579"WHERE rid = 2;\n" 23580"\n" 23581"geomwkt\n" 23582"--------------------------------------------\n" 23583"MULTIPOLYGON(((3427927.75 5793244,3427928 5793244,3427928 " 23584"5793243.75,3427927.75 5793243.75,3427927.75 5793244)))\n" 23585"\n" 23586"\n" 23587"-- now we change the no data value of first band\n" 23588"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,1,254)\n" 23589"WHERE rid = 2;\n" 23590"SELECt rid, ST_BandNoDataValue(rast)\n" 23591"from dummy_rast where rid = 2;\n" 23592"\n" 23593"-- ST_Polygon excludes the pixel value 254 and returns a multipolygon\n" 23594"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n" 23595"FROM dummy_rast\n" 23596"WHERE rid = 2;\n" 23597"\n" 23598"geomwkt\n" 23599"---------------------------------------------------------\n" 23600"MULTIPOLYGON(((3427927.9 5793243.95,3427927.85 5793243.95,3427927.85 " 23601"5793244,3427927.9 5793244,3427927.9 5793243.95)),((3427928 " 23602"5793243.85,3427928 5793243.8,3427927.95 5793243.8,3427927.95 " 23603"5793243.85,3427927.9 5793243.85,3427927.9 5793243.9,3427927.9 " 23604"5793243.95,3427927.95 5793243.95,3427928 5793243.95,3427928 5793243.85))," 23605"((3427927.8 5793243.75,3427927.75 5793243.75,3427927.75 5793243.8,3427927.75 " 23606"5793243.85,3427927.75 5793243.9,3427927.75 5793244,3427927.8 " 23607"5793244,3427927.8 5793243.9,3427927.8 5793243.85,3427927.85 " 23608"5793243.85,3427927.85 5793243.8,3427927.85 5793243.75,3427927.8 " 23609"5793243.75)))\n" 23610"\n" 23611"-- Or if you want the no data value different for just one time\n" 23612"\n" 23613"SELECT ST_AsText(\n" 23614" ST_Polygon(\n" 23615" ST_SetBandNoDataValue(rast,1,252)\n" 23616" )\n" 23617" ) As geomwkt\n" 23618"FROM dummy_rast\n" 23619"WHERE rid =2;\n" 23620"\n" 23621"geomwkt\n" 23622"---------------------------------\n" 23623"MULTIPOLYGON(((3427928 5793243.85,3427928 5793243.8,3427928 " 23624"5793243.75,3427927.85 5793243.75,3427927.8 5793243.75,3427927.8 " 23625"5793243.8,3427927.75 5793243.8,3427927.75 5793243.85,3427927.75 " 23626"5793243.9,3427927.75 5793244,3427927.8 5793244,3427927.85 5793244,3427927.9 " 23627"5793244,3427928 5793244,3427928 5793243.95,3427928 5793243.85),(3427927.9 " 23628"5793243.9,3427927.9 5793243.85,3427927.95 5793243.85,3427927.95 " 23629"5793243.9,3427927.9 5793243.9)))" 23630msgstr "" 23631"-- by default no data band value is 0 or not set, so polygon will return a " 23632"square polygon\n" 23633"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n" 23634"FROM dummy_rast\n" 23635"WHERE rid = 2;\n" 23636"\n" 23637"geomwkt\n" 23638"--------------------------------------------\n" 23639"MULTIPOLYGON(((3427927.75 5793244,3427928 5793244,3427928 " 23640"5793243.75,3427927.75 5793243.75,3427927.75 5793244)))\n" 23641"\n" 23642"\n" 23643"-- now we change the no data value of first band\n" 23644"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,1,254)\n" 23645"WHERE rid = 2;\n" 23646"SELECt rid, ST_BandNoDataValue(rast)\n" 23647"from dummy_rast where rid = 2;\n" 23648"\n" 23649"-- ST_Polygon excludes the pixel value 254 and returns a multipolygon\n" 23650"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n" 23651"FROM dummy_rast\n" 23652"WHERE rid = 2;\n" 23653"\n" 23654"geomwkt\n" 23655"---------------------------------------------------------\n" 23656"MULTIPOLYGON(((3427927.9 5793243.95,3427927.85 5793243.95,3427927.85 " 23657"5793244,3427927.9 5793244,3427927.9 5793243.95)),((3427928 " 23658"5793243.85,3427928 5793243.8,3427927.95 5793243.8,3427927.95 " 23659"5793243.85,3427927.9 5793243.85,3427927.9 5793243.9,3427927.9 " 23660"5793243.95,3427927.95 5793243.95,3427928 5793243.95,3427928 5793243.85))," 23661"((3427927.8 5793243.75,3427927.75 5793243.75,3427927.75 5793243.8,3427927.75 " 23662"5793243.85,3427927.75 5793243.9,3427927.75 5793244,3427927.8 " 23663"5793244,3427927.8 5793243.9,3427927.8 5793243.85,3427927.85 " 23664"5793243.85,3427927.85 5793243.8,3427927.85 5793243.75,3427927.8 " 23665"5793243.75)))\n" 23666"\n" 23667"-- Or if you want the no data value different for just one time\n" 23668"\n" 23669"SELECT ST_AsText(\n" 23670" ST_Polygon(\n" 23671" ST_SetBandNoDataValue(rast,1,252)\n" 23672" )\n" 23673" ) As geomwkt\n" 23674"FROM dummy_rast\n" 23675"WHERE rid =2;\n" 23676"\n" 23677"geomwkt\n" 23678"---------------------------------\n" 23679"MULTIPOLYGON(((3427928 5793243.85,3427928 5793243.8,3427928 " 23680"5793243.75,3427927.85 5793243.75,3427927.8 5793243.75,3427927.8 " 23681"5793243.8,3427927.75 5793243.8,3427927.75 5793243.85,3427927.75 " 23682"5793243.9,3427927.75 5793244,3427927.8 5793244,3427927.85 5793244,3427927.9 " 23683"5793244,3427928 5793244,3427928 5793243.95,3427928 5793243.85),(3427927.9 " 23684"5793243.9,3427927.9 5793243.85,3427927.95 5793243.85,3427927.95 " 23685"5793243.9,3427927.9 5793243.9)))" 23686 23687#. Tag: title 23688#: reference_raster.xml:9973 23689#, no-c-format 23690msgid "Raster Operators" 23691msgstr "Operadores Raster" 23692 23693#. Tag: refname 23694#: reference_raster.xml:9976 23695#, no-c-format 23696msgid "&&" 23697msgstr "&&" 23698 23699#. Tag: refpurpose 23700#: reference_raster.xml:9978 23701#, no-c-format 23702msgid "" 23703"Returns <varname>TRUE</varname> if A's bounding box intersects B's bounding " 23704"box." 23705msgstr "" 23706"Retorna <varname>VERDADE</varname> se a caixa limitadora de A intersecta a " 23707"caixa limitadora de B. " 23708 23709#. Tag: funcsynopsis 23710#: reference_raster.xml:9982 23711#, no-c-format 23712msgid "" 23713"<funcprototype> <funcdef>boolean <function>&&</function></funcdef> " 23714"<paramdef> <type>raster </type> <parameter>A</parameter> </paramdef> " 23715"<paramdef> <type>raster </type> <parameter>B</parameter> </paramdef> </" 23716"funcprototype> <funcprototype> <funcdef>boolean <function>&&</" 23717"function></funcdef> <paramdef> <type>raster </type> <parameter>A</parameter> " 23718"</paramdef> <paramdef> <type>geometry </type> <parameter>B</parameter> </" 23719"paramdef> </funcprototype> <funcprototype> <funcdef>boolean <function>&" 23720"&</function></funcdef> <paramdef> <type>geometry </type> <parameter>B</" 23721"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>A</" 23722"parameter> </paramdef> </funcprototype>" 23723msgstr "" 23724"<funcprototype> <funcdef>boolean <function>&&</function></funcdef> " 23725"<paramdef> <type>raster </type> <parameter>A</parameter> </paramdef> " 23726"<paramdef> <type>raster </type> <parameter>B</parameter> </paramdef> </" 23727"funcprototype> <funcprototype> <funcdef>boolean <function>&&</" 23728"function></funcdef> <paramdef> <type>raster </type> <parameter>A</parameter> " 23729"</paramdef> <paramdef> <type>geometry </type> <parameter>B</parameter> </" 23730"paramdef> </funcprototype> <funcprototype> <funcdef>boolean <function>&" 23731"&</function></funcdef> <paramdef> <type>geometry </type> <parameter>B</" 23732"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>A</" 23733"parameter> </paramdef> </funcprototype>" 23734 23735#. Tag: para 23736#: reference_raster.xml:10024 23737#, no-c-format 23738msgid "" 23739"The <varname>&&</varname> operator returns <varname>TRUE</varname> " 23740"if the bounding box of raster/geometr A intersects the bounding box of " 23741"raster/geometr B." 23742msgstr "" 23743"O operador <varname>&&</varname> retorna <varname>TRUE</varname> se " 23744"a caixa limitadora da geometria/raster A intersecta a caixa limitadora da " 23745"geometria/raster B." 23746 23747#. Tag: para 23748#: reference_raster.xml:10026 reference_raster.xml:10073 23749#: reference_raster.xml:10277 reference_raster.xml:11287 23750#: reference_raster.xml:11388 reference_raster.xml:11481 23751#, no-c-format 23752msgid "" 23753"This operand will make use of any indexes that may be available on the " 23754"rasters." 23755msgstr "" 23756"Este operador fará uso de qualquer índice que pode estar disponível nos " 23757"rasters. " 23758 23759#. Tag: programlisting 23760#: reference_raster.xml:10035 23761#, no-c-format 23762msgid "" 23763"SELECT A.rid As a_rid, B.rid As b_rid, A.rast && B.rast As " 23764"intersect\n" 23765" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;\n" 23766"\n" 23767" a_rid | b_rid | intersect\n" 23768"-------+-------+---------\n" 23769" 2 | 2 | t\n" 23770" 2 | 3 | f\n" 23771" 2 | 1 | f" 23772msgstr "" 23773"SELECT A.rid As a_rid, B.rid As b_rid, A.rast && B.rast As " 23774"intersect\n" 23775" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;\n" 23776"\n" 23777" a_rid | b_rid | intersect\n" 23778"-------+-------+---------\n" 23779" 2 | 2 | t\n" 23780" 2 | 3 | f\n" 23781" 2 | 1 | f" 23782 23783#. Tag: refname 23784#: reference_raster.xml:10041 23785#, no-c-format 23786msgid "&<" 23787msgstr "&<" 23788 23789#. Tag: refpurpose 23790#: reference_raster.xml:10043 23791#, no-c-format 23792msgid "" 23793"Returns <varname>TRUE</varname> if A's bounding box is to the left of B's." 23794msgstr "" 23795"Retorna <varname>VERDADE</varname> se uma caixa limitadora de A está à " 23796"esquerda da de B." 23797 23798#. Tag: funcprototype 23799#: reference_raster.xml:10048 23800#, no-c-format 23801msgid "" 23802"<funcdef>boolean <function>&<</function></funcdef> <paramdef> " 23803"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23804"<type>raster </type> <parameter>B</parameter> </paramdef>" 23805msgstr "" 23806"<funcdef>boolean <function>&<</function></funcdef> <paramdef> " 23807"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23808"<type>raster </type> <parameter>B</parameter> </paramdef>" 23809 23810#. Tag: para 23811#: reference_raster.xml:10069 23812#, no-c-format 23813msgid "" 23814"The <varname>&<</varname> operator returns <varname>TRUE</varname> if " 23815"the bounding box of raster A overlaps or is to the left of the bounding box " 23816"of raster B, or more accurately, overlaps or is NOT to the right of the " 23817"bounding box of raster B." 23818msgstr "" 23819"O operador <varname>&<</varname> retorna <varname>VERDADE</varname> " 23820"se a caixa limitadora da geometria A sobrepõe ou está à esquerda da caixa da " 23821"geometria B, ou mais precisamente, sobrepõe ou NÃO está à direita da caixa " 23822"limitadora da geometria B. " 23823 23824#. Tag: programlisting 23825#: reference_raster.xml:10079 23826#, no-c-format 23827msgid "" 23828"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &< B.rast As overleft\n" 23829" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 23830"\n" 23831"a_rid | b_rid | overleft\n" 23832"------+-------+----------\n" 23833" 2 | 2 | t\n" 23834" 2 | 3 | f\n" 23835" 2 | 1 | f\n" 23836" 3 | 2 | t\n" 23837" 3 | 3 | t\n" 23838" 3 | 1 | f\n" 23839" 1 | 2 | t\n" 23840" 1 | 3 | t\n" 23841" 1 | 1 | t" 23842msgstr "" 23843"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &< B.rast As overleft\n" 23844" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 23845"\n" 23846"a_rid | b_rid | overleft\n" 23847"------+-------+----------\n" 23848" 2 | 2 | t\n" 23849" 2 | 3 | f\n" 23850" 2 | 1 | f\n" 23851" 3 | 2 | t\n" 23852" 3 | 3 | t\n" 23853" 3 | 1 | f\n" 23854" 1 | 2 | t\n" 23855" 1 | 3 | t\n" 23856" 1 | 1 | t" 23857 23858#. Tag: refname 23859#: reference_raster.xml:10085 23860#, no-c-format 23861msgid "&>" 23862msgstr "&>" 23863 23864#. Tag: refpurpose 23865#: reference_raster.xml:10087 23866#, no-c-format 23867msgid "" 23868"Returns <varname>TRUE</varname> if A's bounding box is to the right of B's." 23869msgstr "" 23870"Retorna <varname>VERDADE</varname> se uma caixa limitadora de A está à " 23871"direita da de B." 23872 23873#. Tag: funcprototype 23874#: reference_raster.xml:10092 23875#, no-c-format 23876msgid "" 23877"<funcdef>boolean <function>&></function></funcdef> <paramdef> " 23878"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23879"<type>raster </type> <parameter>B</parameter> </paramdef>" 23880msgstr "" 23881"<funcdef>boolean <function>&></function></funcdef> <paramdef> " 23882"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23883"<type>raster </type> <parameter>B</parameter> </paramdef>" 23884 23885#. Tag: para 23886#: reference_raster.xml:10113 23887#, no-c-format 23888msgid "" 23889"The <varname>&></varname> operator returns <varname>TRUE</varname> if " 23890"the bounding box of raster A overlaps or is to the right of the bounding box " 23891"of raster B, or more accurately, overlaps or is NOT to the left of the " 23892"bounding box of raster B." 23893msgstr "" 23894"O operador <varname>&></varname> retorna <varname>TRUE</varname> se a " 23895"caixa delimitadora do raster A sobrepuser ou estiver à direita da do raster " 23896"B, ou mais precisamente, sobrepuser ou NÃO estiver à esquerda da do raster " 23897"B. " 23898 23899#. Tag: para 23900#: reference_raster.xml:10117 23901#, no-c-format 23902msgid "" 23903"This operand will make use of any indexes that may be available on the " 23904"geometries." 23905msgstr "" 23906"Este operador fará uso de qualquer um dos indexes que talvez estejam " 23907"disponíveis nas geometrias. " 23908 23909#. Tag: programlisting 23910#: reference_raster.xml:10124 23911#, no-c-format 23912msgid "" 23913"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &> B.rast As overright\n" 23914" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 23915"\n" 23916" a_rid | b_rid | overright\n" 23917"-------+-------+----------\n" 23918" 2 | 2 | t\n" 23919" 2 | 3 | t\n" 23920" 2 | 1 | t\n" 23921" 3 | 2 | f\n" 23922" 3 | 3 | t\n" 23923" 3 | 1 | f\n" 23924" 1 | 2 | f\n" 23925" 1 | 3 | t\n" 23926" 1 | 1 | t" 23927msgstr "" 23928"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &> B.rast As overright\n" 23929" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 23930"\n" 23931" a_rid | b_rid | overright\n" 23932"-------+-------+----------\n" 23933" 2 | 2 | t\n" 23934" 2 | 3 | t\n" 23935" 2 | 1 | t\n" 23936" 3 | 2 | f\n" 23937" 3 | 3 | t\n" 23938" 3 | 1 | f\n" 23939" 1 | 2 | f\n" 23940" 1 | 3 | t\n" 23941" 1 | 1 | t" 23942 23943#. Tag: refname 23944#: reference_raster.xml:10130 23945#, no-c-format 23946msgid "=" 23947msgstr "=" 23948 23949#. Tag: refpurpose 23950#: reference_raster.xml:10132 23951#, no-c-format 23952msgid "" 23953"Returns <varname>TRUE</varname> if A's bounding box is the same as B's. Uses " 23954"double precision bounding box." 23955msgstr "" 23956"Retorna <varname>VERDADE</varname>se a caixa limitadora de A for a mesma de " 23957"B. Utiliza precisão dupla de caixa limitadora." 23958 23959#. Tag: funcprototype 23960#: reference_raster.xml:10137 23961#, no-c-format 23962msgid "" 23963"<funcdef>boolean <function>=</function></funcdef> <paramdef> " 23964"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23965"<type>raster </type> <parameter>B</parameter> </paramdef>" 23966msgstr "" 23967"<funcdef>boolean <function>=</function></funcdef> <paramdef> " 23968"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 23969"<type>raster </type> <parameter>B</parameter> </paramdef>" 23970 23971#. Tag: para 23972#: reference_raster.xml:10158 23973#, no-c-format 23974msgid "" 23975"The <varname>=</varname> operator returns <varname>TRUE</varname> if the " 23976"bounding box of raster A is the same as the bounding box of raster B. " 23977"PostgreSQL uses the =, <, and > operators defined for rasters to " 23978"perform internal orderings and comparison of rasters (ie. in a GROUP BY or " 23979"ORDER BY clause)." 23980msgstr "" 23981"O operador <varname>=</varname> retorna <varname>VERDADE</varname> se a " 23982"caixa limitadora da geometria/geografia A é a mesma da de B. O PostgreSQL " 23983"usa o operadores =, <, e > definidos para geometrias para representar " 23984"ordens e comparações internas de geometrias (ex. em um GRUPO ou ORDEM por " 23985"oração)." 23986 23987#. Tag: para 23988#: reference_raster.xml:10162 23989#, no-c-format 23990msgid "" 23991"This operand will NOT make use of any indexes that may be available on the " 23992"rasters. Use <xref linkend=\"RT_Raster_Same\"/> instead. This operator " 23993"exists mostly so one can group by the raster column." 23994msgstr "" 23995"Este operador NÃO fará uso de nenhum índice que podem estar disponíveis nos " 23996"rasters. Use <xref linkend=\"RT_Raster_Same\"/>. Este operador existe em sua " 23997"maioria para poder ser agrupado pela coluna raster. " 23998 23999#. Tag: refname 24000#: reference_raster.xml:10178 24001#, no-c-format 24002msgid "<refname>@</refname>" 24003msgstr "<refname>@</refname>" 24004 24005#. Tag: refpurpose 24006#: reference_raster.xml:10180 24007#, no-c-format 24008msgid "" 24009"Returns <varname>TRUE</varname> if A's bounding box is contained by B's. " 24010"Uses double precision bounding box." 24011msgstr "" 24012"Retorna <varname>VERDADE</varname>se a caixa limitadora de A estiver contida " 24013"pela de B. Utiliza precisão dupla de caixa limitadora." 24014 24015#. Tag: funcsynopsis 24016#: reference_raster.xml:10184 24017#, no-c-format 24018msgid "" 24019"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24020"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 24021"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24022"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24023"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> " 24024"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24025"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24026"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> " 24027"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>" 24028msgstr "" 24029"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24030"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 24031"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24032"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24033"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> " 24034"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24035"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> " 24036"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> " 24037"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>" 24038 24039#. Tag: para 24040#: reference_raster.xml:10227 24041#, no-c-format 24042msgid "" 24043"The <varname>@</varname> operator returns <varname>TRUE</varname> if the " 24044"bounding box of raster/geometry A is contained by bounding box of raster/" 24045"geometr B." 24046msgstr "" 24047"O operador <varname>@</varname> retorna <varname>TRUE</varname> se a caixa " 24048"delimitadora do raster/geometria A estiver contida pela caixa delimitadora " 24049"do raster/geometria B. " 24050 24051#. Tag: para 24052#: reference_raster.xml:10230 reference_raster.xml:10350 24053#, no-c-format 24054msgid "This operand will use spatial indexes on the rasters." 24055msgstr "Este operador usará índices espaciais nos rasters. " 24056 24057#. Tag: para 24058#: reference_raster.xml:10232 24059#, no-c-format 24060msgid "Availability: 2.0.0 raster @ raster, raster @ geometry introduced" 24061msgstr "" 24062"Disponibilidade: 2.0.0 raster @ raster, raster @ geometria introduzida " 24063 24064#. Tag: para 24065#: reference_raster.xml:10233 24066#, no-c-format 24067msgid "Availability: 2.0.5 geometry @ raster introduced" 24068msgstr "Disponibilidade: 2.0.5 geometria @ raster introduzida" 24069 24070#. Tag: refname 24071#: reference_raster.xml:10246 24072#, no-c-format 24073msgid "<refname>~=</refname>" 24074msgstr "<refname>~=</refname>" 24075 24076#. Tag: refpurpose 24077#: reference_raster.xml:10248 24078#, no-c-format 24079msgid "Returns <varname>TRUE</varname> if A's bounding box is the same as B's." 24080msgstr "" 24081"Retorna <varname>VERDADE</varname> se a caixa limitadora de A é a mesma de B." 24082 24083#. Tag: funcprototype 24084#: reference_raster.xml:10253 24085#, no-c-format 24086msgid "" 24087"<funcdef>boolean <function>~=</function></funcdef> <paramdef> <type>raster </" 24088"type> <parameter>A</parameter> </paramdef> <paramdef> <type>raster </type> " 24089"<parameter>B</parameter> </paramdef>" 24090msgstr "" 24091"<funcdef>boolean <function>~=</function></funcdef> <paramdef> <type>raster </" 24092"type> <parameter>A</parameter> </paramdef> <paramdef> <type>raster </type> " 24093"<parameter>B</parameter> </paramdef>" 24094 24095#. Tag: para 24096#: reference_raster.xml:10274 24097#, no-c-format 24098msgid "" 24099"The <varname>~=</varname> operator returns <varname>TRUE</varname> if the " 24100"bounding box of raster A is the same as the bounding box of raster B." 24101msgstr "" 24102"O operador <varname>~=</varname> retorna <varname>TRUE</varname> se a caixa " 24103"delimitadora do raster A for a mesma da do raster B." 24104 24105#. Tag: para 24106#: reference_raster.xml:10286 24107#, no-c-format 24108msgid "" 24109"Very useful usecase is for taking two sets of single band rasters that are " 24110"of the same chunk but represent different themes and creating a multi-band " 24111"raster" 24112msgstr "" 24113"Casos de uso muito úteis é pegar dois conjuntos de bandas raster únicas que " 24114"são do mesmo pedaço, mas representam temas diferentes e criar uma multi " 24115"banda raster " 24116 24117#. Tag: programlisting 24118#: reference_raster.xml:10287 24119#, no-c-format 24120msgid "" 24121"SELECT ST_AddBand(prec.rast, alt.rast) As new_rast\n" 24122" FROM prec INNER JOIN alt ON (prec.rast ~= alt.rast);" 24123msgstr "" 24124"SELECT ST_AddBand(prec.rast, alt.rast) As new_rast\n" 24125" FROM prec INNER JOIN alt ON (prec.rast ~= alt.rast);" 24126 24127#. Tag: para 24128#: reference_raster.xml:10292 24129#, no-c-format 24130msgid ", <xref linkend=\"RT_Raster_EQ\"/>" 24131msgstr ", <xref linkend=\"RT_Raster_EQ\"/>" 24132 24133#. Tag: refname 24134#: reference_raster.xml:10298 24135#, no-c-format 24136msgid "<refname>~</refname>" 24137msgstr "<refname>~</refname>" 24138 24139#. Tag: refpurpose 24140#: reference_raster.xml:10300 24141#, no-c-format 24142msgid "" 24143"Returns <varname>TRUE</varname> if A's bounding box is contains B's. Uses " 24144"double precision bounding box." 24145msgstr "" 24146"Retorna <varname>TRUE</varname> se a caixa delimitadora de A estiver contida " 24147"na do B. Utiliza caixa delimitadora de precisão dupla. " 24148 24149#. Tag: funcsynopsis 24150#: reference_raster.xml:10304 24151#, no-c-format 24152msgid "" 24153"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24154"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 24155"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24156"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24157"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> " 24158"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24159"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24160"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> " 24161"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>" 24162msgstr "" 24163"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24164"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> " 24165"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24166"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24167"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> " 24168"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> " 24169"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> " 24170"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> " 24171"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>" 24172 24173#. Tag: para 24174#: reference_raster.xml:10347 24175#, no-c-format 24176msgid "" 24177"The <varname>~</varname> operator returns <varname>TRUE</varname> if the " 24178"bounding box of raster/geometry A is contains bounding box of raster/geometr " 24179"B." 24180msgstr "" 24181"O operador <varname>~</varname> retorna <varname>TRUE</varname> se a caixa " 24182"delimitadora do raster/geometria A estiver contida na caixa delimitadora do " 24183"raster/geometria B. " 24184 24185#. Tag: title 24186#: reference_raster.xml:10365 24187#, no-c-format 24188msgid "Raster and Raster Band Spatial Relationships" 24189msgstr "Relações raster e raster de banda espacial " 24190 24191#. Tag: refname 24192#: reference_raster.xml:10369 24193#, no-c-format 24194msgid "ST_Contains" 24195msgstr "ST_Contains" 24196 24197#. Tag: refpurpose 24198#: reference_raster.xml:10370 24199#, no-c-format 24200msgid "" 24201"Return true if no points of raster rastB lie in the exterior of raster rastA " 24202"and at least one point of the interior of rastB lies in the interior of " 24203"rastA." 24204msgstr "" 24205"Retorna verdade se nenhum ponto do raster rasteB estiver no exterior do " 24206"raster rastA e pelo menos um ponto do interior do rastB estiver no interior " 24207"do rastA. " 24208 24209#. Tag: funcsynopsis 24210#: reference_raster.xml:10376 24211#, no-c-format 24212msgid "" 24213"<funcprototype> <funcdef>boolean <function>ST_Contains</function></funcdef> " 24214"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24215"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24216"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24217"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24218"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Contains</" 24219"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24220"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24221"parameter> </paramdef> </funcprototype>" 24222msgstr "" 24223"<funcprototype> <funcdef>boolean <function>ST_Contains</function></funcdef> " 24224"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24225"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24226"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24227"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24228"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Contains</" 24229"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24230"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24231"parameter> </paramdef> </funcprototype>" 24232 24233#. Tag: para 24234#: reference_raster.xml:10415 24235#, no-c-format 24236msgid "" 24237"Raster rastA contains rastB if and only if no points of rastB lie in the " 24238"exterior of rastA and at least one point of the interior of rastB lies in " 24239"the interior of rastA. If the band number is not provided (or set to NULL), " 24240"only the convex hull of the raster is considered in the test. If the band " 24241"number is provided, only those pixels with value (not NODATA) are considered " 24242"in the test." 24243msgstr "" 24244"O raster rastA contém o rastB se e somente se nenhum ponto do rastB estiver " 24245"no exterior do rastA. Se o número de banda não for fornecido (ou for NULL), " 24246"apenas o casco convexo do raster será considerado no teste. Se o número de " 24247"banda for fornecido, somente aqueles pixeis com valor (não NODATA) são " 24248"considerados no teste. " 24249 24250#. Tag: para 24251#: reference_raster.xml:10420 reference_raster.xml:10513 24252#: reference_raster.xml:10594 reference_raster.xml:10675 24253#: reference_raster.xml:10885 reference_raster.xml:10969 24254#: reference_raster.xml:11049 24255#, no-c-format 24256msgid "" 24257"This function will make use of any indexes that may be available on the " 24258"rasters." 24259msgstr "" 24260"Esta função fará uso de qualquer índice que possa estar disponível nos " 24261"rasters. " 24262 24263#. Tag: para 24264#: reference_raster.xml:10426 24265#, no-c-format 24266msgid "" 24267"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24268"on the raster, e.g. ST_Contains(ST_Polygon(raster), geometry) or " 24269"ST_Contains(geometry, ST_Polygon(raster))." 24270msgstr "" 24271"Para testar a relação espacial de um raster e uma geometria, usa ST_Polygon " 24272"no raster, ex.: ST_Contains(ST_Polygon(raster), geometria) ou " 24273"ST_Contains(geometria, ST_Polygon(raster))." 24274 24275#. Tag: para 24276#: reference_raster.xml:10432 24277#, no-c-format 24278msgid "" 24279"ST_Contains() is the inverse of ST_Within(). So, ST_Contains(rastA, rastB) " 24280"implies ST_Within(rastB, rastA)." 24281msgstr "" 24282"ST_Contains() é o inverso da ST_Within(). Logo, ST_Contains(rastA, rastB) " 24283"implica ST_Within(rastB, rastA)." 24284 24285#. Tag: programlisting 24286#: reference_raster.xml:10443 24287#, no-c-format 24288msgid "" 24289"-- specified band numbers\n" 24290"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24291"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n" 24292"\n" 24293"NOTICE: The first raster provided has no bands\n" 24294" rid | rid | st_contains\n" 24295"-----+-----+-------------\n" 24296" 1 | 1 |\n" 24297" 1 | 2 | f" 24298msgstr "" 24299"-- specified band numbers\n" 24300"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24301"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n" 24302"\n" 24303"NOTICE: The first raster provided has no bands\n" 24304" rid | rid | st_contains\n" 24305"-----+-----+-------------\n" 24306" 1 | 1 |\n" 24307" 1 | 2 | f" 24308 24309#. Tag: programlisting 24310#: reference_raster.xml:10445 24311#, no-c-format 24312msgid "" 24313"-- no band numbers specified\n" 24314"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, r2.rast) FROM dummy_rast r1 " 24315"CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n" 24316" rid | rid | st_contains\n" 24317"-----+-----+-------------\n" 24318" 1 | 1 | t\n" 24319" 1 | 2 | f" 24320msgstr "" 24321"-- no band numbers specified\n" 24322"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, r2.rast) FROM dummy_rast r1 " 24323"CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n" 24324" rid | rid | st_contains\n" 24325"-----+-----+-------------\n" 24326" 1 | 1 | t\n" 24327" 1 | 2 | f" 24328 24329#. Tag: para 24330#: reference_raster.xml:10449 24331#, no-c-format 24332msgid ", <xref linkend=\"RT_ST_Within\"/>" 24333msgstr ", <xref linkend=\"RT_ST_Within\"/>" 24334 24335#. Tag: refname 24336#: reference_raster.xml:10458 24337#, no-c-format 24338msgid "ST_ContainsProperly" 24339msgstr "ST_ContainsProperly" 24340 24341#. Tag: refpurpose 24342#: reference_raster.xml:10459 24343#, no-c-format 24344msgid "" 24345"Return true if rastB intersects the interior of rastA but not the boundary " 24346"or exterior of rastA." 24347msgstr "" 24348"Retorna verdade se o rastB intersectar o interior do rastA, mas não o limite " 24349"ou exterior do ratA. " 24350 24351#. Tag: funcsynopsis 24352#: reference_raster.xml:10465 24353#, no-c-format 24354msgid "" 24355"<funcprototype> <funcdef>boolean <function>ST_ContainsProperly</function></" 24356"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 24357"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 24358"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 24359"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 24360"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 24361"<function>ST_ContainsProperly</function></funcdef> <paramdef> <type>raster </" 24362"type> <parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </" 24363"type> <parameter>rastB</parameter> </paramdef> </funcprototype>" 24364msgstr "" 24365"<funcprototype> <funcdef>boolean <function>ST_ContainsProperly</function></" 24366"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 24367"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 24368"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 24369"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 24370"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 24371"<function>ST_ContainsProperly</function></funcdef> <paramdef> <type>raster </" 24372"type> <parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </" 24373"type> <parameter>rastB</parameter> </paramdef> </funcprototype>" 24374 24375#. Tag: para 24376#: reference_raster.xml:10504 24377#, no-c-format 24378msgid "" 24379"Raster rastA contains properly rastB if rastB intersects the interior of " 24380"rastA but not the boundary or exterior of rastA. If the band number is not " 24381"provided (or set to NULL), only the convex hull of the raster is considered " 24382"in the test. If the band number is provided, only those pixels with value " 24383"(not NODATA) are considered in the test." 24384msgstr "" 24385"O raster rastA contém devidamente o rastB se ele intersectar o interior do " 24386"rastA, mas não o limite ou exterior do rastA. Se o número de banda não for " 24387"fornecido (ou for NULL), apenas o casco convexo do raster será considerado " 24388"no teste. Se o número de banda for fornecido, somente aqueles pixeis com " 24389"valor (não NODATA) serão considerados no teste. " 24390 24391#. Tag: para 24392#: reference_raster.xml:10508 24393#, no-c-format 24394msgid "Raster rastA does not contain properly itself but does contain itself." 24395msgstr "O rastA não se contém devidamente, mas se contém. " 24396 24397#. Tag: para 24398#: reference_raster.xml:10519 24399#, no-c-format 24400msgid "" 24401"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24402"on the raster, e.g. ST_ContainsProperly(ST_Polygon(raster), geometry) or " 24403"ST_ContainsProperly(geometry, ST_Polygon(raster))." 24404msgstr "" 24405"Para testar a relação espacial de um raster e uma geometria, usa ST_Polygon " 24406"no raster, ex.: ST_ContainsProperly(ST_Polygon(raster), geometria) ou " 24407"ST_ContainsProperly(geometria, ST_Polygon(raster))." 24408 24409#. Tag: programlisting 24410#: reference_raster.xml:10530 24411#, no-c-format 24412msgid "" 24413"SELECT r1.rid, r2.rid, ST_ContainsProperly(r1.rast, 1, r2.rast, 1) FROM " 24414"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24415"\n" 24416" rid | rid | st_containsproperly\n" 24417"-----+-----+---------------------\n" 24418" 2 | 1 | f\n" 24419" 2 | 2 | f" 24420msgstr "" 24421"SELECT r1.rid, r2.rid, ST_ContainsProperly(r1.rast, 1, r2.rast, 1) FROM " 24422"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24423"\n" 24424" rid | rid | st_containsproperly\n" 24425"-----+-----+---------------------\n" 24426" 2 | 1 | f\n" 24427" 2 | 2 | f" 24428 24429#. Tag: para 24430#: reference_raster.xml:10534 24431#, no-c-format 24432msgid ", <xref linkend=\"RT_ST_Contains\"/>" 24433msgstr ", <xref linkend=\"RT_ST_Contains\"/>" 24434 24435#. Tag: refname 24436#: reference_raster.xml:10543 24437#, no-c-format 24438msgid "ST_Covers" 24439msgstr "ST_Covers" 24440 24441#. Tag: refpurpose 24442#: reference_raster.xml:10544 24443#, no-c-format 24444msgid "Return true if no points of raster rastB lie outside raster rastA." 24445msgstr "Retorna verdade se nenhum ponto do rastB estiver de fora do rastA. " 24446 24447#. Tag: funcsynopsis 24448#: reference_raster.xml:10550 24449#, no-c-format 24450msgid "" 24451"<funcprototype> <funcdef>boolean <function>ST_Covers</function></funcdef> " 24452"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24453"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24454"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24455"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24456"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Covers</" 24457"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24458"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24459"parameter> </paramdef> </funcprototype>" 24460msgstr "" 24461"<funcprototype> <funcdef>boolean <function>ST_Covers</function></funcdef> " 24462"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24463"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24464"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24465"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24466"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Covers</" 24467"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24468"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24469"parameter> </paramdef> </funcprototype>" 24470 24471#. Tag: para 24472#: reference_raster.xml:10589 24473#, no-c-format 24474msgid "" 24475"Raster rastA covers rastB if and only if no points of rastB lie in the " 24476"exterior of rastA. If the band number is not provided (or set to NULL), only " 24477"the convex hull of the raster is considered in the test. If the band number " 24478"is provided, only those pixels with value (not NODATA) are considered in the " 24479"test." 24480msgstr "" 24481"O rastA cobre rastB se e somente se nenhum ponto do rastB estiver no " 24482"exterior do rastA. Se o número de banda não for fornecido ( ou for NULO), " 24483"apenas o casco convexo do raster é considerado no teste. Se o número de " 24484"banda for fornecido, apenas aqueles pixeis com valor (não NODATA) serão " 24485"considerados no teste. " 24486 24487#. Tag: para 24488#: reference_raster.xml:10600 24489#, no-c-format 24490msgid "" 24491"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24492"on the raster, e.g. ST_Covers(ST_Polygon(raster), geometry) or " 24493"ST_Covers(geometry, ST_Polygon(raster))." 24494msgstr "" 24495"Para testar a relação espacial de um raster e uma geometria, usa ST_Polygon " 24496"no raster, ex.: ST_Coveres(ST_Polygon(raster), geometria) ou " 24497"ST_Coveres(geometria, ST_Polygon(raster))." 24498 24499#. Tag: programlisting 24500#: reference_raster.xml:10611 24501#, no-c-format 24502msgid "" 24503"SELECT r1.rid, r2.rid, ST_Covers(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 24504"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24505"\n" 24506" rid | rid | st_covers\n" 24507"-----+-----+-----------\n" 24508" 2 | 1 | f\n" 24509" 2 | 2 | t" 24510msgstr "" 24511"SELECT r1.rid, r2.rid, ST_Covers(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 24512"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24513"\n" 24514" rid | rid | st_covers\n" 24515"-----+-----+-----------\n" 24516" 2 | 1 | f\n" 24517" 2 | 2 | t" 24518 24519#. Tag: para 24520#: reference_raster.xml:10615 24521#, no-c-format 24522msgid ", <xref linkend=\"RT_ST_CoveredBy\"/>" 24523msgstr ", <xref linkend=\"RT_ST_CoveredBy\"/>" 24524 24525#. Tag: refname 24526#: reference_raster.xml:10624 24527#, no-c-format 24528msgid "ST_CoveredBy" 24529msgstr "ST_CoveredBy" 24530 24531#. Tag: refpurpose 24532#: reference_raster.xml:10625 24533#, no-c-format 24534msgid "Return true if no points of raster rastA lie outside raster rastB." 24535msgstr "Retorna verdade se nenhum ponto do rastA estiver de fora do rastB." 24536 24537#. Tag: funcsynopsis 24538#: reference_raster.xml:10631 24539#, no-c-format 24540msgid "" 24541"<funcprototype> <funcdef>boolean <function>ST_CoveredBy</function></funcdef> " 24542"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24543"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24544"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24545"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24546"funcprototype> <funcprototype> <funcdef>boolean <function>ST_CoveredBy</" 24547"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24548"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24549"parameter> </paramdef> </funcprototype>" 24550msgstr "" 24551"<funcprototype> <funcdef>boolean <function>ST_CoveredBy</function></funcdef> " 24552"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24553"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24554"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24555"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24556"funcprototype> <funcprototype> <funcdef>boolean <function>ST_CoveredBy</" 24557"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24558"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24559"parameter> </paramdef> </funcprototype>" 24560 24561#. Tag: para 24562#: reference_raster.xml:10670 24563#, no-c-format 24564msgid "" 24565"Raster rastA is covered by rastB if and only if no points of rastA lie in " 24566"the exterior of rastB. If the band number is not provided (or set to NULL), " 24567"only the convex hull of the raster is considered in the test. If the band " 24568"number is provided, only those pixels with value (not NODATA) are considered " 24569"in the test." 24570msgstr "" 24571"O rastA está coberto pelo rastB se e somente se nenhum ponto do rastA " 24572"estiver no exterior do rastB. Se o número de banda não for fornecido ( ou " 24573"for NULO), apenas o casco convexo do raster é considerado no teste. Se o " 24574"número de banda for fornecido, apenas aqueles pixeis com valor (não NODATA) " 24575"serão considerados no teste. " 24576 24577#. Tag: para 24578#: reference_raster.xml:10681 24579#, no-c-format 24580msgid "" 24581"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24582"on the raster, e.g. ST_CoveredBy(ST_Polygon(raster), geometry) or " 24583"ST_CoveredBy(geometry, ST_Polygon(raster))." 24584msgstr "" 24585"Para testar a relação espacial de um raster e uma geometria, usa ST_Polygon " 24586"no raster, ex.: ST_CoveredBy(ST_Polygon(raster), geometria) ou " 24587"ST_CoveredBy(geometria, ST_Polygon(raster))." 24588 24589#. Tag: programlisting 24590#: reference_raster.xml:10692 24591#, no-c-format 24592msgid "" 24593"SELECT r1.rid, r2.rid, ST_CoveredBy(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24594"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24595"\n" 24596" rid | rid | st_coveredby\n" 24597"-----+-----+--------------\n" 24598" 2 | 1 | f\n" 24599" 2 | 2 | t" 24600msgstr "" 24601"SELECT r1.rid, r2.rid, ST_CoveredBy(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24602"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24603"\n" 24604" rid | rid | st_coveredby\n" 24605"-----+-----+--------------\n" 24606" 2 | 1 | f\n" 24607" 2 | 2 | t" 24608 24609#. Tag: para 24610#: reference_raster.xml:10696 24611#, no-c-format 24612msgid ", <xref linkend=\"RT_ST_Covers\"/>" 24613msgstr ", <xref linkend=\"RT_ST_Covers\"/>" 24614 24615#. Tag: refname 24616#: reference_raster.xml:10705 24617#, no-c-format 24618msgid "ST_Disjoint" 24619msgstr "ST_Disjoint" 24620 24621#. Tag: refpurpose 24622#: reference_raster.xml:10706 24623#, no-c-format 24624msgid "Return true if raster rastA does not spatially intersect rastB." 24625msgstr "" 24626"Retorna verdade se raster rastA não intersectar espacialmente com o rastB. " 24627 24628#. Tag: funcsynopsis 24629#: reference_raster.xml:10712 24630#, no-c-format 24631msgid "" 24632"<funcprototype> <funcdef>boolean <function>ST_Disjoint</function></funcdef> " 24633"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24634"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24635"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24636"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24637"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Disjoint</" 24638"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24639"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24640"parameter> </paramdef> </funcprototype>" 24641msgstr "" 24642"<funcprototype> <funcdef>boolean <function>ST_Disjoint</function></funcdef> " 24643"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24644"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24645"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24646"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24647"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Disjoint</" 24648"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24649"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24650"parameter> </paramdef> </funcprototype>" 24651 24652#. Tag: para 24653#: reference_raster.xml:10751 24654#, no-c-format 24655msgid "" 24656"Raster rastA and rastB are disjointed if they do not share any space " 24657"together. If the band number is not provided (or set to NULL), only the " 24658"convex hull of the raster is considered in the test. If the band number is " 24659"provided, only those pixels with value (not NODATA) are considered in the " 24660"test." 24661msgstr "" 24662"O rastA e rastB estarão disjuntos se eles não dividirem nenhum espaço. Se o " 24663"número de banda não for fornecido ( ou for NULL), apenas o casco convexo do " 24664"raster é considerado no teste. Se o número de banda for fornecido, apenas " 24665"aqueles pixeis com valor (não NODATA) serão considerados no teste. " 24666 24667#. Tag: para 24668#: reference_raster.xml:10756 24669#, no-c-format 24670msgid "This function does NOT use any indexes." 24671msgstr "Esta função NÃO usa nenhum índice. " 24672 24673#. Tag: para 24674#: reference_raster.xml:10762 24675#, no-c-format 24676msgid "" 24677"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24678"on the raster, e.g. ST_Disjoint(ST_Polygon(raster), geometry)." 24679msgstr "" 24680"Para testar a relação espacial de um raster e uma geometria, use ST_Polygon " 24681"no raster, ex.: ST_Disjoint(ST_Polygon(raster), geometria)." 24682 24683#. Tag: programlisting 24684#: reference_raster.xml:10773 24685#, no-c-format 24686msgid "" 24687"-- rid = 1 has no bands, hence the NOTICE and the NULL value for " 24688"st_disjoint\n" 24689"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24690"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24691"\n" 24692"NOTICE: The second raster provided has no bands\n" 24693" rid | rid | st_disjoint\n" 24694"-----+-----+-------------\n" 24695" 2 | 1 |\n" 24696" 2 | 2 | f" 24697msgstr "" 24698"-- rid = 1 has no bands, hence the NOTICE and the NULL value for " 24699"st_disjoint\n" 24700"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, 1, r2.rast, 1) FROM dummy_rast " 24701"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24702"\n" 24703"NOTICE: The second raster provided has no bands\n" 24704" rid | rid | st_disjoint\n" 24705"-----+-----+-------------\n" 24706" 2 | 1 |\n" 24707" 2 | 2 | f" 24708 24709#. Tag: programlisting 24710#: reference_raster.xml:10775 24711#, no-c-format 24712msgid "" 24713"-- this time, without specifying band numbers\n" 24714"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, r2.rast) FROM dummy_rast r1 " 24715"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24716"\n" 24717" rid | rid | st_disjoint\n" 24718"-----+-----+-------------\n" 24719" 2 | 1 | t\n" 24720" 2 | 2 | f" 24721msgstr "" 24722"-- this time, without specifying band numbers\n" 24723"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, r2.rast) FROM dummy_rast r1 " 24724"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 24725"\n" 24726" rid | rid | st_disjoint\n" 24727"-----+-----+-------------\n" 24728" 2 | 1 | t\n" 24729" 2 | 2 | f" 24730 24731#. Tag: refname 24732#: reference_raster.xml:10788 24733#, no-c-format 24734msgid "ST_Intersects" 24735msgstr "ST_Intersects" 24736 24737#. Tag: refpurpose 24738#: reference_raster.xml:10789 24739#, no-c-format 24740msgid "Return true if raster rastA spatially intersects raster rastB." 24741msgstr "" 24742"Retorna verdade se o raster rastA intersectar espacialmente com o raster " 24743"rastB. " 24744 24745#. Tag: funcsynopsis 24746#: reference_raster.xml:10793 24747#, no-c-format 24748msgid "" 24749"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></" 24750"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 24751"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 24752"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 24753"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 24754"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 24755"<function>ST_Intersects</function></funcdef> <paramdef> <type>raster </type> " 24756"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> " 24757"<parameter>rastB</parameter> </paramdef> </funcprototype> <funcprototype> " 24758"<funcdef>boolean <function>ST_Intersects</function></funcdef> <paramdef> " 24759"<type>raster </type> <parameter>rast</parameter> </paramdef> <paramdef> " 24760"<type>integer </type> <parameter>nband</parameter> </paramdef> <paramdef> " 24761"<type>geometry </type> <parameter>geommin</parameter> </paramdef> </" 24762"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Intersects</" 24763"function></funcdef> <paramdef> <type>raster </type> <parameter>rast</" 24764"parameter> </paramdef> <paramdef> <type>geometry </type> <parameter>geommin</" 24765"parameter> </paramdef> <paramdef choice=\"opt\"> <type>integer </type> " 24766"<parameter>nband=NULL</parameter> </paramdef> </funcprototype> " 24767"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></" 24768"funcdef> <paramdef> <type>geometry </type> <parameter>geommin</parameter> </" 24769"paramdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 24770"paramdef> <paramdef choice=\"opt\"> <type>integer </type> " 24771"<parameter>nband=NULL</parameter> </paramdef> </funcprototype>" 24772msgstr "" 24773"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></" 24774"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 24775"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 24776"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 24777"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 24778"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 24779"<function>ST_Intersects</function></funcdef> <paramdef> <type>raster </type> " 24780"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> " 24781"<parameter>rastB</parameter> </paramdef> </funcprototype> <funcprototype> " 24782"<funcdef>boolean <function>ST_Intersects</function></funcdef> <paramdef> " 24783"<type>raster </type> <parameter>rast</parameter> </paramdef> <paramdef> " 24784"<type>integer </type> <parameter>nband</parameter> </paramdef> <paramdef> " 24785"<type>geometry </type> <parameter>geommin</parameter> </paramdef> </" 24786"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Intersects</" 24787"function></funcdef> <paramdef> <type>raster </type> <parameter>rast</" 24788"parameter> </paramdef> <paramdef> <type>geometry </type> <parameter>geommin</" 24789"parameter> </paramdef> <paramdef choice=\"opt\"> <type>integer </type> " 24790"<parameter>nband=NULL</parameter> </paramdef> </funcprototype> " 24791"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></" 24792"funcdef> <paramdef> <type>geometry </type> <parameter>geommin</parameter> </" 24793"paramdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </" 24794"paramdef> <paramdef choice=\"opt\"> <type>integer </type> " 24795"<parameter>nband=NULL</parameter> </paramdef> </funcprototype>" 24796 24797#. Tag: para 24798#: reference_raster.xml:10880 24799#, no-c-format 24800msgid "" 24801"Return true if raster rastA spatially intersects raster rastB. If the band " 24802"number is not provided (or set to NULL), only the convex hull of the raster " 24803"is considered in the test. If the band number is provided, only those pixels " 24804"with value (not NODATA) are considered in the test." 24805msgstr "" 24806"Retorna verdade se o rastA se intersectar espacialmente com o rastB. Se o " 24807"número de banda não for fornecido ( ou for NULO), apenas o casco convexo do " 24808"raster é considerado no teste. Se o número de banda for fornecido, apenas " 24809"aqueles pixeis com valor (não NODATA) serão considerados no teste. " 24810 24811#. Tag: para 24812#: reference_raster.xml:10890 24813#, no-c-format 24814msgid "Enhanced: 2.0.0 support raster/raster intersects was introduced." 24815msgstr "" 24816"Melhorias: 2.0.0 suporte para interseções raster/raster foi introduzido. " 24817 24818#. Tag: para 24819#: reference_raster.xml:10895 24820#, no-c-format 24821msgid "" 24822"Changed: 2.1.0 The behavior of the ST_Intersects(raster, geometry) variants " 24823"changed to match that of ST_Intersects(geometry, raster)." 24824msgstr "" 24825"Alterações: 2.1.0 O comportamento das variantes ST_Intersects(raster, " 24826"geometria) foi alterado para combinar com ST_Intersects(geometria, raster)." 24827 24828#. Tag: programlisting 24829#: reference_raster.xml:10904 24830#, no-c-format 24831msgid "" 24832"-- different bands of same raster\n" 24833"SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;\n" 24834"\n" 24835" st_intersects\n" 24836"---------------\n" 24837" t" 24838msgstr "" 24839"-- different bands of same raster\n" 24840"SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;\n" 24841"\n" 24842" st_intersects\n" 24843"---------------\n" 24844" t" 24845 24846#. Tag: para 24847#: reference_raster.xml:10909 24848#, no-c-format 24849msgid ", <xref linkend=\"RT_ST_Disjoint\"/>" 24850msgstr ", <xref linkend=\"RT_ST_Disjoint\"/>" 24851 24852#. Tag: refname 24853#: reference_raster.xml:10918 24854#, no-c-format 24855msgid "ST_Overlaps" 24856msgstr "ST_Overlaps" 24857 24858#. Tag: refpurpose 24859#: reference_raster.xml:10919 24860#, no-c-format 24861msgid "" 24862"Return true if raster rastA and rastB intersect but one does not completely " 24863"contain the other." 24864msgstr "" 24865"Retorna verdade se o raster rastA e rastB se intersectam, mas um deles não " 24866"contém o outro completamente. " 24867 24868#. Tag: funcsynopsis 24869#: reference_raster.xml:10925 24870#, no-c-format 24871msgid "" 24872"<funcprototype> <funcdef>boolean <function>ST_Overlaps</function></funcdef> " 24873"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24874"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24875"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24876"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24877"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Overlaps</" 24878"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24879"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24880"parameter> </paramdef> </funcprototype>" 24881msgstr "" 24882"<funcprototype> <funcdef>boolean <function>ST_Overlaps</function></funcdef> " 24883"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24884"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24885"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24886"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24887"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Overlaps</" 24888"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24889"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24890"parameter> </paramdef> </funcprototype>" 24891 24892#. Tag: para 24893#: reference_raster.xml:10964 24894#, no-c-format 24895msgid "" 24896"Return true if raster rastA spatially overlaps raster rastB. This means that " 24897"rastA and rastB intersect but one does not completely contain the other. If " 24898"the band number is not provided (or set to NULL), only the convex hull of " 24899"the raster is considered in the test. If the band number is provided, only " 24900"those pixels with value (not NODATA) are considered in the test." 24901msgstr "" 24902"Retorna verdade se o raster rastA tocar espacialmente o raster rastB. Isso " 24903"significa que eles se intersectam, mas um não contém o outro completamente. " 24904"Se o número banda não for fornecido (ou for NULO), apenas o casco convexo do " 24905"raster é considerado no teste. Se o número de banda for fornecido, apenas os " 24906"pixeis com valor (não NODATA) serão considerados no teste. " 24907 24908#. Tag: para 24909#: reference_raster.xml:10975 24910#, no-c-format 24911msgid "" 24912"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24913"on the raster, e.g. ST_Overlaps(ST_Polygon(raster), geometry)." 24914msgstr "" 24915"Para testar a relação espacial de um raster e uma geometria, use ST_Polygon " 24916"no raster, ex.: ST_Overlaps(ST_Polygon(raster), geometria)." 24917 24918#. Tag: programlisting 24919#: reference_raster.xml:10986 24920#, no-c-format 24921msgid "" 24922"-- comparing different bands of same raster\n" 24923"SELECT ST_Overlaps(rast, 1, rast, 2) FROM dummy_rast WHERE rid = 2;\n" 24924"\n" 24925" st_overlaps\n" 24926"-------------\n" 24927" f" 24928msgstr "" 24929"-- comparing different bands of same raster\n" 24930"SELECT ST_Overlaps(rast, 1, rast, 2) FROM dummy_rast WHERE rid = 2;\n" 24931"\n" 24932" st_overlaps\n" 24933"-------------\n" 24934" f" 24935 24936#. Tag: refname 24937#: reference_raster.xml:10998 24938#, no-c-format 24939msgid "ST_Touches" 24940msgstr "ST_Touches" 24941 24942#. Tag: refpurpose 24943#: reference_raster.xml:10999 24944#, no-c-format 24945msgid "" 24946"Return true if raster rastA and rastB have at least one point in common but " 24947"their interiors do not intersect." 24948msgstr "" 24949"Retorna verdade se o raster rastA e rastB têm pelo menos um ponto em comum, " 24950"mas seus interiores não se intersectarem. " 24951 24952#. Tag: funcsynopsis 24953#: reference_raster.xml:11005 24954#, no-c-format 24955msgid "" 24956"<funcprototype> <funcdef>boolean <function>ST_Touches</function></funcdef> " 24957"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24958"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24959"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24960"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24961"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Touches</" 24962"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24963"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24964"parameter> </paramdef> </funcprototype>" 24965msgstr "" 24966"<funcprototype> <funcdef>boolean <function>ST_Touches</function></funcdef> " 24967"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 24968"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 24969"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 24970"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 24971"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Touches</" 24972"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 24973"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 24974"parameter> </paramdef> </funcprototype>" 24975 24976#. Tag: para 24977#: reference_raster.xml:11044 24978#, no-c-format 24979msgid "" 24980"Return true if raster rastA spatially touches raster rastB. This means that " 24981"rastA and rastB have at least one point in common but their interiors do not " 24982"intersect. If the band number is not provided (or set to NULL), only the " 24983"convex hull of the raster is considered in the test. If the band number is " 24984"provided, only those pixels with value (not NODATA) are considered in the " 24985"test." 24986msgstr "" 24987"Retorna verdade se o raster rastA tocar espacialmente o raster rastB. Isso " 24988"significa que eles têm pelo menos um ponto em comum, mas seus interiores não " 24989"se intersectam. Se o número banda não for fornecido (ou for NULO), apenas o " 24990"casco convexo do raster é considerado no teste. Se o número de banda for " 24991"fornecido, apenas os pixeis com valor (não NODATA) serão considerados no " 24992"teste. " 24993 24994#. Tag: para 24995#: reference_raster.xml:11055 24996#, no-c-format 24997msgid "" 24998"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 24999"on the raster, e.g. ST_Touches(ST_Polygon(raster), geometry)." 25000msgstr "" 25001"Para testar a relação espacial de um raster e uma geometria, use ST_Polygon " 25002"no raster, ex.: ST_Touches(ST_Polygon(raster), geometria)." 25003 25004#. Tag: programlisting 25005#: reference_raster.xml:11066 25006#, no-c-format 25007msgid "" 25008"SELECT r1.rid, r2.rid, ST_Touches(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 25009"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25010"\n" 25011" rid | rid | st_touches\n" 25012"-----+-----+------------\n" 25013" 2 | 1 | f\n" 25014" 2 | 2 | f" 25015msgstr "" 25016"SELECT r1.rid, r2.rid, ST_Touches(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 25017"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25018"\n" 25019" rid | rid | st_touches\n" 25020"-----+-----+------------\n" 25021" 2 | 1 | f\n" 25022" 2 | 2 | f" 25023 25024#. Tag: refname 25025#: reference_raster.xml:11078 25026#, no-c-format 25027msgid "ST_SameAlignment" 25028msgstr "ST_SameAlignment" 25029 25030#. Tag: refpurpose 25031#: reference_raster.xml:11080 25032#, no-c-format 25033msgid "" 25034"Returns true if rasters have same skew, scale, spatial ref, and offset " 25035"(pixels can be put on same grid without cutting into pixels) and false if " 25036"they don't with notice detailing issue." 25037msgstr "" 25038"Retorna verdade se os rasters têm a mesma inclinação, escala, referência " 25039"espacial, e deslocamento (pixeis podem ser colocados na mesma grade sem " 25040"cortar eles) e falso se eles não notificarem problemas detalhados. " 25041 25042#. Tag: funcsynopsis 25043#: reference_raster.xml:11084 25044#, no-c-format 25045msgid "" 25046"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></" 25047"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25048"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25049"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 25050"<function>ST_SameAlignment</function></funcdef> <paramdef> <type>double " 25051"precision </type> <parameter>ulx1</parameter> </paramdef> <paramdef> " 25052"<type>double precision </type> <parameter>uly1</parameter> </paramdef> " 25053"<paramdef> <type>double precision </type> <parameter>scalex1</parameter> </" 25054"paramdef> <paramdef> <type>double precision </type> <parameter>scaley1</" 25055"parameter> </paramdef> <paramdef> <type>double precision </type> " 25056"<parameter>skewx1</parameter> </paramdef> <paramdef> <type>double precision " 25057"</type> <parameter>skewy1</parameter> </paramdef> <paramdef> <type>double " 25058"precision </type> <parameter>ulx2</parameter> </paramdef> <paramdef> " 25059"<type>double precision </type> <parameter>uly2</parameter> </paramdef> " 25060"<paramdef> <type>double precision </type> <parameter>scalex2</parameter> </" 25061"paramdef> <paramdef> <type>double precision </type> <parameter>scaley2</" 25062"parameter> </paramdef> <paramdef> <type>double precision </type> " 25063"<parameter>skewx2</parameter> </paramdef> <paramdef> <type>double precision " 25064"</type> <parameter>skewy2</parameter> </paramdef> </funcprototype> " 25065"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></" 25066"funcdef> <paramdef> <type>raster set </type> <parameter>rastfield</" 25067"parameter> </paramdef> </funcprototype>" 25068msgstr "" 25069"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></" 25070"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25071"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25072"paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 25073"<function>ST_SameAlignment</function></funcdef> <paramdef> <type>double " 25074"precision </type> <parameter>ulx1</parameter> </paramdef> <paramdef> " 25075"<type>double precision </type> <parameter>uly1</parameter> </paramdef> " 25076"<paramdef> <type>double precision </type> <parameter>scalex1</parameter> </" 25077"paramdef> <paramdef> <type>double precision </type> <parameter>scaley1</" 25078"parameter> </paramdef> <paramdef> <type>double precision </type> " 25079"<parameter>skewx1</parameter> </paramdef> <paramdef> <type>double precision " 25080"</type> <parameter>skewy1</parameter> </paramdef> <paramdef> <type>double " 25081"precision </type> <parameter>ulx2</parameter> </paramdef> <paramdef> " 25082"<type>double precision </type> <parameter>uly2</parameter> </paramdef> " 25083"<paramdef> <type>double precision </type> <parameter>scalex2</parameter> </" 25084"paramdef> <paramdef> <type>double precision </type> <parameter>scaley2</" 25085"parameter> </paramdef> <paramdef> <type>double precision </type> " 25086"<parameter>skewx2</parameter> </paramdef> <paramdef> <type>double precision " 25087"</type> <parameter>skewy2</parameter> </paramdef> </funcprototype> " 25088"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></" 25089"funcdef> <paramdef> <type>raster set </type> <parameter>rastfield</" 25090"parameter> </paramdef> </funcprototype>" 25091 25092#. Tag: para 25093#: reference_raster.xml:11163 25094#, no-c-format 25095msgid "" 25096"Non-Aggregate version (Variants 1 and 2): Returns true if the two rasters " 25097"(either provided directly or made using the values for upperleft, scale, " 25098"skew and srid) have the same scale, skew, srid and at least one of any of " 25099"the four corners of any pixel of one raster falls on any corner of the grid " 25100"of the other raster. Returns false if they don't and a NOTICE detailing the " 25101"alignment issue." 25102msgstr "" 25103"Versão não agregada (variantes 1 e 2): Retorna verdade se dois rasters " 25104"(fornecidos diretamente ou feitos usando os valores esquerdo superior, " 25105"escala, inclinação ou srid) têm a mesma escala, inclinação, srid e pelo " 25106"menos um de qualquer dos quatro cantos de pixel de um raster cair em algum " 25107"canto da grade do outro raster. Retorna falso se eles não e um AVISO " 25108"detalhando o problema de alinhamento. " 25109 25110#. Tag: para 25111#: reference_raster.xml:11167 25112#, no-c-format 25113msgid "" 25114"Aggregate version (Variant 3): From a set of rasters, returns true if all " 25115"rasters in the set are aligned. The ST_SameAlignment() function is an " 25116"\"aggregate\" function in the terminology of PostgreSQL. That means that it " 25117"operates on rows of data, in the same way the SUM() and AVG() functions do." 25118msgstr "" 25119"Versão agregada (variante 3): De um conjunto de rasters, retorna verdade se " 25120"todos os rasters no conjunto estiverem alinhados. A função " 25121"ST_SameAlignment() é \"agregada\" na terminologia do PostgreSQL. Isso " 25122"significa que ela opera nas linhas de dados, da mesma maneira que as funções " 25123"SUM() e AVG() operam. " 25124 25125#. Tag: para 25126#: reference_raster.xml:11172 25127#, no-c-format 25128msgid "Enhanced: 2.1.0 addition of Aggegrate variant" 25129msgstr "Melhorias: 2.1.0 adição da variante agregada" 25130 25131#. Tag: title 25132#: reference_raster.xml:11176 25133#, no-c-format 25134msgid "Examples: Rasters" 25135msgstr "Exemplos: Rasters" 25136 25137#. Tag: programlisting 25138#: reference_raster.xml:11178 25139#, no-c-format 25140msgid "" 25141"SELECT ST_SameAlignment(\n" 25142" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25143" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0)\n" 25144") as sm;\n" 25145"\n" 25146"sm\n" 25147"----\n" 25148"t" 25149msgstr "" 25150"SELECT ST_SameAlignment(\n" 25151" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25152" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0)\n" 25153") as sm;\n" 25154"\n" 25155"sm\n" 25156"----\n" 25157"t" 25158 25159#. Tag: programlisting 25160#: reference_raster.xml:11179 25161#, no-c-format 25162msgid "" 25163"SELECT ST_SameAlignment(A.rast,b.rast)\n" 25164" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 25165"\n" 25166" NOTICE: The two rasters provided have different SRIDs\n" 25167"NOTICE: The two rasters provided have different SRIDs\n" 25168" st_samealignment\n" 25169"------------------\n" 25170" t\n" 25171" f\n" 25172" f\n" 25173" f" 25174msgstr "" 25175"SELECT ST_SameAlignment(A.rast,b.rast)\n" 25176" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n" 25177"\n" 25178" NOTICE: The two rasters provided have different SRIDs\n" 25179"NOTICE: The two rasters provided have different SRIDs\n" 25180" st_samealignment\n" 25181"------------------\n" 25182" t\n" 25183" f\n" 25184" f\n" 25185" f" 25186 25187#. Tag: para 25188#: reference_raster.xml:11183 25189#, no-c-format 25190msgid "" 25191", <xref linkend=\"RT_ST_NotSameAlignmentReason\"/>, <xref linkend=" 25192"\"RT_ST_MakeEmptyRaster\"/>" 25193msgstr "" 25194", <xref linkend=\"RT_ST_NotSameAlignmentReason\"/>, <xref linkend=" 25195"\"RT_ST_MakeEmptyRaster\"/>" 25196 25197#. Tag: refname 25198#: reference_raster.xml:11193 25199#, no-c-format 25200msgid "ST_NotSameAlignmentReason" 25201msgstr "ST_NotSameAlignmentReason" 25202 25203#. Tag: refpurpose 25204#: reference_raster.xml:11194 25205#, no-c-format 25206msgid "" 25207"<refpurpose>Returns text stating if rasters are aligned and if not aligned, " 25208"a reason why.</refpurpose>" 25209msgstr "" 25210"<refpurpose>Retorna a declaração de texto se os rasters estiverem alinhados " 25211"e se não tiverem, uma razão do porquê.</refpurpose>" 25212 25213#. Tag: funcprototype 25214#: reference_raster.xml:11199 25215#, no-c-format 25216msgid "" 25217"<funcdef>text <function>ST_NotSameAlignmentReason</function></funcdef> " 25218"<paramdef><type>raster </type><parameter>rastA</parameter></paramdef> " 25219"<paramdef><type>raster </type><parameter>rastB</parameter></paramdef>" 25220msgstr "" 25221"<funcdef>text <function>ST_NotSameAlignmentReason</function></funcdef> " 25222"<paramdef><type>raster </type><parameter>rastA</parameter></paramdef> " 25223"<paramdef><type>raster </type><parameter>rastB</parameter></paramdef>" 25224 25225#. Tag: para 25226#: reference_raster.xml:11209 25227#, no-c-format 25228msgid "" 25229"<para>Returns text stating if rasters are aligned and if not aligned, a " 25230"reason why.</para>" 25231msgstr "" 25232"<para>Retorna a declaração de texto se os rasters estiverem alinhados e se " 25233"não tiverem, uma razão do porquê.</para>" 25234 25235#. Tag: para 25236#: reference_raster.xml:11212 25237#, no-c-format 25238msgid "" 25239"If there are several reasons why the rasters are not aligned, only one " 25240"reason (the first test to fail) will be returned." 25241msgstr "" 25242"Se existem várias razões do porquê os rasters não estão alinhados, apenas " 25243"uma razão (o primeiro teste a falhar) retornará. " 25244 25245#. Tag: programlisting 25246#: reference_raster.xml:11222 25247#, no-c-format 25248msgid "" 25249"SELECT\n" 25250" ST_SameAlignment(\n" 25251" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25252" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n" 25253" ),\n" 25254" ST_NotSameAlignmentReason(\n" 25255" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25256" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n" 25257" )\n" 25258";\n" 25259"\n" 25260" st_samealignment | st_notsamealignmentreason\n" 25261"------------------+-------------------------------------------------\n" 25262" f | The rasters have different scales on the X axis\n" 25263"(1 row)" 25264msgstr "" 25265"SELECT\n" 25266" ST_SameAlignment(\n" 25267" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25268" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n" 25269" ),\n" 25270" ST_NotSameAlignmentReason(\n" 25271" ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n" 25272" ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n" 25273" )\n" 25274";\n" 25275"\n" 25276" st_samealignment | st_notsamealignmentreason\n" 25277"------------------+-------------------------------------------------\n" 25278" f | The rasters have different scales on the X axis\n" 25279"(1 row)" 25280 25281#. Tag: para 25282#: reference_raster.xml:11227 25283#, no-c-format 25284msgid ", <xref linkend=\"RT_ST_SameAlignment\"/>" 25285msgstr ", <xref linkend=\"RT_ST_SameAlignment\"/>" 25286 25287#. Tag: refname 25288#: reference_raster.xml:11236 25289#, no-c-format 25290msgid "ST_Within" 25291msgstr "ST_Within" 25292 25293#. Tag: refpurpose 25294#: reference_raster.xml:11237 25295#, no-c-format 25296msgid "" 25297"Return true if no points of raster rastA lie in the exterior of raster rastB " 25298"and at least one point of the interior of rastA lies in the interior of " 25299"rastB." 25300msgstr "" 25301"Retorna verdade se nenhum ponto do raster rastA estiver no exterior do " 25302"raster rastB e pelo menos um ponto do interior do rastA estiver no interior " 25303"do rastB. " 25304 25305#. Tag: funcsynopsis 25306#: reference_raster.xml:11243 25307#, no-c-format 25308msgid "" 25309"<funcprototype> <funcdef>boolean <function>ST_Within</function></funcdef> " 25310"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 25311"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 25312"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 25313"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 25314"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Within</" 25315"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 25316"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 25317"parameter> </paramdef> </funcprototype>" 25318msgstr "" 25319"<funcprototype> <funcdef>boolean <function>ST_Within</function></funcdef> " 25320"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 25321"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 25322"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 25323"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </" 25324"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Within</" 25325"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</" 25326"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</" 25327"parameter> </paramdef> </funcprototype>" 25328 25329#. Tag: para 25330#: reference_raster.xml:11282 25331#, no-c-format 25332msgid "" 25333"Raster rastA is within rastB if and only if no points of rastA lie in the " 25334"exterior of rastB and at least one point of the interior of rastA lies in " 25335"the interior of rastB. If the band number is not provided (or set to NULL), " 25336"only the convex hull of the raster is considered in the test. If the band " 25337"number is provided, only those pixels with value (not NODATA) are considered " 25338"in the test." 25339msgstr "" 25340"O raster rastA está dentro do rastB se e somente se nenhum ponto do rastA " 25341"estiver no exterior do rastB e pelo menos um ponto do interior do rastA " 25342"estiver no interior do rastB. Se o número de banda não for fornecido (ou for " 25343"NULL), apenas o casco convexo do raster será considerado no teste. Se o " 25344"número de banda for fornecido, somente aqueles pixeis com valor (não NODATA) " 25345"são considerados no teste. " 25346 25347#. Tag: para 25348#: reference_raster.xml:11293 25349#, no-c-format 25350msgid "" 25351"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 25352"on the raster, e.g. ST_Within(ST_Polygon(raster), geometry) or " 25353"ST_Within(geometry, ST_Polygon(raster))." 25354msgstr "" 25355"Para testar a relação espacial de um raster e uma geometria, usa ST_Polygon " 25356"no raster, ex.: ST_Within(ST_Polygon(raster), geometria) ou " 25357"ST_Within(geometria, ST_Polygon(raster))." 25358 25359#. Tag: para 25360#: reference_raster.xml:11299 25361#, no-c-format 25362msgid "" 25363"ST_Within() is the inverse of ST_Contains(). So, ST_Within(rastA, rastB) " 25364"implies ST_Contains(rastB, rastA)." 25365msgstr "" 25366"ST_Within() é o inverso da ST_Contains(). Logo, ST_Within(rastA, rastB) " 25367"implica ST_Contains(rastB, rastA)." 25368 25369#. Tag: programlisting 25370#: reference_raster.xml:11310 25371#, no-c-format 25372msgid "" 25373"SELECT r1.rid, r2.rid, ST_Within(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 25374"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25375"\n" 25376" rid | rid | st_within\n" 25377"-----+-----+-----------\n" 25378" 2 | 1 | f\n" 25379" 2 | 2 | t" 25380msgstr "" 25381"SELECT r1.rid, r2.rid, ST_Within(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 " 25382"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25383"\n" 25384" rid | rid | st_within\n" 25385"-----+-----+-----------\n" 25386" 2 | 1 | f\n" 25387" 2 | 2 | t" 25388 25389#. Tag: para 25390#: reference_raster.xml:11314 25391#, no-c-format 25392msgid "" 25393", <xref linkend=\"RT_ST_Contains\"/>, <xref linkend=\"RT_ST_DWithin\"/>, " 25394"<xref linkend=\"RT_ST_DFullyWithin\"/>" 25395msgstr "" 25396", <xref linkend=\"RT_ST_Contains\"/>, <xref linkend=\"RT_ST_DWithin\"/>, " 25397"<xref linkend=\"RT_ST_DFullyWithin\"/>" 25398 25399#. Tag: refname 25400#: reference_raster.xml:11325 25401#, no-c-format 25402msgid "ST_DWithin" 25403msgstr "ST_DWithin" 25404 25405#. Tag: refpurpose 25406#: reference_raster.xml:11326 25407#, no-c-format 25408msgid "" 25409"Return true if rasters rastA and rastB are within the specified distance of " 25410"each other." 25411msgstr "" 25412"Retorna verdade se os rasters rastA e rastB estiverem dentro da distância " 25413"especificada de cada um. " 25414 25415#. Tag: funcsynopsis 25416#: reference_raster.xml:11332 25417#, no-c-format 25418msgid "" 25419"<funcprototype> <funcdef>boolean <function>ST_DWithin</function></funcdef> " 25420"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 25421"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 25422"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 25423"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> " 25424"<paramdef> <type>double precision </type> <parameter>distance_of_srid</" 25425"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 25426"<function>ST_DWithin</function></funcdef> <paramdef> <type>raster </type> " 25427"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> " 25428"<parameter>rastB</parameter> </paramdef> <paramdef> <type>double precision </" 25429"type> <parameter>distance_of_srid</parameter> </paramdef> </funcprototype>" 25430msgstr "" 25431"<funcprototype> <funcdef>boolean <function>ST_DWithin</function></funcdef> " 25432"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> " 25433"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> " 25434"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> " 25435"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> " 25436"<paramdef> <type>double precision </type> <parameter>distance_of_srid</" 25437"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean " 25438"<function>ST_DWithin</function></funcdef> <paramdef> <type>raster </type> " 25439"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> " 25440"<parameter>rastB</parameter> </paramdef> <paramdef> <type>double precision </" 25441"type> <parameter>distance_of_srid</parameter> </paramdef> </funcprototype>" 25442 25443#. Tag: para 25444#: reference_raster.xml:11379 25445#, no-c-format 25446msgid "" 25447"Return true if rasters rastA and rastB are within the specified distance of " 25448"each other. If the band number is not provided (or set to NULL), only the " 25449"convex hull of the raster is considered in the test. If the band number is " 25450"provided, only those pixels with value (not NODATA) are considered in the " 25451"test." 25452msgstr "" 25453"Retorna verdade se os rasters rastA e rastB estiverem dentro da distância " 25454"especificada de cada um. Se o número de banda não for fornecido ( ou for " 25455"NULO), apenas o casco convexo do raster é considerado no teste. Se o número " 25456"de banda for fornecido, apenas aqueles pixeis com valor (não NODATA) serão " 25457"considerados no teste. " 25458 25459#. Tag: para 25460#: reference_raster.xml:11383 reference_raster.xml:11476 25461#, no-c-format 25462msgid "" 25463"The distance is specified in units defined by the spatial reference system " 25464"of the rasters. For this function to make sense, the source rasters must " 25465"both be of the same coordinate projection, having the same SRID." 25466msgstr "" 25467"A distância é especificada em unidades definidas pelo sistema de referência " 25468"espacial dos rasters. Para esta função fazer sentido, os rasters fonte devem " 25469"ser ambos da mesma projeção de coordenada, tendo o mesmo SRID. " 25470 25471#. Tag: para 25472#: reference_raster.xml:11394 25473#, no-c-format 25474msgid "" 25475"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 25476"on the raster, e.g. ST_DWithin(ST_Polygon(raster), geometry)." 25477msgstr "" 25478"Para testar a relação espacial de um raster e uma geometria, use ST_Polygon " 25479"no raster, ex.: ST_DWithin(ST_Polygon(raster), geometria)." 25480 25481#. Tag: programlisting 25482#: reference_raster.xml:11405 25483#, no-c-format 25484msgid "" 25485"SELECT r1.rid, r2.rid, ST_DWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM " 25486"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25487"\n" 25488" rid | rid | st_dwithin\n" 25489"-----+-----+------------\n" 25490" 2 | 1 | f\n" 25491" 2 | 2 | t" 25492msgstr "" 25493"SELECT r1.rid, r2.rid, ST_DWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM " 25494"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25495"\n" 25496" rid | rid | st_dwithin\n" 25497"-----+-----+------------\n" 25498" 2 | 1 | f\n" 25499" 2 | 2 | t" 25500 25501#. Tag: para 25502#: reference_raster.xml:11409 25503#, no-c-format 25504msgid ", <xref linkend=\"RT_ST_DFullyWithin\"/>" 25505msgstr ", <xref linkend=\"RT_ST_DFullyWithin\"/>" 25506 25507#. Tag: refname 25508#: reference_raster.xml:11418 25509#, no-c-format 25510msgid "ST_DFullyWithin" 25511msgstr "ST_DFullyWithin" 25512 25513#. Tag: refpurpose 25514#: reference_raster.xml:11419 25515#, no-c-format 25516msgid "" 25517"Return true if rasters rastA and rastB are fully within the specified " 25518"distance of each other." 25519msgstr "" 25520"Retorna verdade se os rasters rastA e rastB estiverem completamente dentro " 25521"da distância especificada de cada um. " 25522 25523#. Tag: funcsynopsis 25524#: reference_raster.xml:11425 25525#, no-c-format 25526msgid "" 25527"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></" 25528"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25529"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 25530"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25531"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 25532"paramdef> <paramdef> <type>double precision </type> " 25533"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype> " 25534"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></" 25535"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25536"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25537"paramdef> <paramdef> <type>double precision </type> " 25538"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype>" 25539msgstr "" 25540"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></" 25541"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25542"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </" 25543"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25544"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </" 25545"paramdef> <paramdef> <type>double precision </type> " 25546"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype> " 25547"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></" 25548"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </" 25549"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </" 25550"paramdef> <paramdef> <type>double precision </type> " 25551"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype>" 25552 25553#. Tag: para 25554#: reference_raster.xml:11472 25555#, no-c-format 25556msgid "" 25557"Return true if rasters rastA and rastB are fully within the specified " 25558"distance of each other. If the band number is not provided (or set to NULL), " 25559"only the convex hull of the raster is considered in the test. If the band " 25560"number is provided, only those pixels with value (not NODATA) are considered " 25561"in the test." 25562msgstr "" 25563"Retorna verdade se os rasters rastA e rastB estiverem completamente dentro " 25564"da distância especificada de cada um. Se o número de banda não for fornecido " 25565"(ou for NULO), apenas o casco convexo do raster é considerado no teste. Se o " 25566"número de banda for fornecido, apenas aqueles pixeis com valor (não NODATA) " 25567"serão considerados no teste. " 25568 25569#. Tag: para 25570#: reference_raster.xml:11487 25571#, no-c-format 25572msgid "" 25573"To test the spatial relationship of a raster and a geometry, use ST_Polygon " 25574"on the raster, e.g. ST_DFullyWithin(ST_Polygon(raster), geometry)." 25575msgstr "" 25576"Para testar a relação espacial de um raster e uma geometria, use ST_Polygon " 25577"no raster, ex.: ST_DFullyWithin(ST_Polygon(raster), geometria)." 25578 25579#. Tag: programlisting 25580#: reference_raster.xml:11498 25581#, no-c-format 25582msgid "" 25583"SELECT r1.rid, r2.rid, ST_DFullyWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM " 25584"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25585"\n" 25586" rid | rid | st_dfullywithin\n" 25587"-----+-----+-----------------\n" 25588" 2 | 1 | f\n" 25589" 2 | 2 | t" 25590msgstr "" 25591"SELECT r1.rid, r2.rid, ST_DFullyWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM " 25592"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n" 25593"\n" 25594" rid | rid | st_dfullywithin\n" 25595"-----+-----+-----------------\n" 25596" 2 | 1 | f\n" 25597" 2 | 2 | t" 25598 25599#. Tag: para 25600#: reference_raster.xml:11502 25601#, no-c-format 25602msgid ", <xref linkend=\"RT_ST_DWithin\"/>" 25603msgstr ", <xref linkend=\"RT_ST_DWithin\"/>" 25604 25605#. Tag: para 25606#: reference_raster.xml:11514 25607#, no-c-format 25608msgid "" 25609"This section documents various gotchas and tips related to PostGIS Raster." 25610msgstr "" 25611 25612#. Tag: title 25613#: reference_raster.xml:11517 25614#, no-c-format 25615msgid "Raster Tips" 25616msgstr "" 25617 25618#. Tag: title 25619#: reference_raster.xml:11520 25620#, no-c-format 25621msgid "Out-DB Rasters" 25622msgstr "" 25623 25624#. Tag: title 25625#: reference_raster.xml:11523 25626#, no-c-format 25627msgid "Directory containing many files" 25628msgstr "" 25629 25630#. Tag: para 25631#: reference_raster.xml:11524 25632#, no-c-format 25633msgid "" 25634"When GDAL opens a file, GDAL eagerly scans the directory of that file to " 25635"build a catalog of other files. If this directory contains many files (e.g. " 25636"thousands, millions), opening that file becomes extremely slow (especially " 25637"if that file happens to be on a network drive such as NFS)." 25638msgstr "" 25639 25640#. Tag: para 25641#: reference_raster.xml:11527 25642#, no-c-format 25643msgid "" 25644"To control this behavior, GDAL provides the following environment variable: " 25645"<ulink url=\"https://trac.osgeo.org/gdal/wiki/" 25646"ConfigOptions#GDAL_DISABLE_READDIR_ON_OPEN\">GDAL_DISABLE_READDIR_ON_OPEN</" 25647"ulink>. Set <varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> to " 25648"<varname>TRUE</varname> to disable directory scanning." 25649msgstr "" 25650 25651#. Tag: para 25652#: reference_raster.xml:11531 25653#, no-c-format 25654msgid "" 25655"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), " 25656"<varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> can be set in <emphasis>/etc/" 25657"postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/environment</emphasis> (where " 25658"POSTGRESQL_VERSION is the version of PostgreSQL, e.g. 9.6 and CLUSTER_NAME " 25659"is the name of the cluster, e.g. maindb). You can also set PostGIS " 25660"environment variables here as well." 25661msgstr "" 25662 25663#. Tag: programlisting 25664#: reference_raster.xml:11534 25665#, no-c-format 25666msgid "" 25667"# environment variables for postmaster process\n" 25668"# This file has the same syntax as postgresql.conf:\n" 25669"# VARIABLE = simple_value\n" 25670"# VARIABLE2 = 'any value!'\n" 25671"# I. e. you need to enclose any value which does not only consist of " 25672"letters,\n" 25673"# numbers, and '-', '_', '.' in single quotes. Shell commands are not\n" 25674"# evaluated.\n" 25675"POSTGIS_GDAL_ENABLED_DRIVERS = 'ENABLE_ALL'\n" 25676"\n" 25677"POSTGIS_ENABLE_OUTDB_RASTERS = 1\n" 25678"\n" 25679"<emphasis role=\"strong\">GDAL_DISABLE_READDIR_ON_OPEN = 'TRUE'</emphasis>" 25680msgstr "" 25681 25682#. Tag: title 25683#: reference_raster.xml:11540 25684#, no-c-format 25685msgid "Maximum Number of Open Files" 25686msgstr "" 25687 25688#. Tag: para 25689#: reference_raster.xml:11542 25690#, no-c-format 25691msgid "" 25692"The maximum number of open files permitted by Linux and PostgreSQL are " 25693"typically conservative (typically 1024 open files per process) given the " 25694"assumption that the system is consumed by human users. For Out-DB Rasters, a " 25695"single valid query can easily exceed this limit (e.g. a dataset of 10 year's " 25696"worth of rasters with one raster for each day containing minimum and maximum " 25697"temperatures and we want to know the absolute min and max value for a pixel " 25698"in that dataset)." 25699msgstr "" 25700 25701#. Tag: para 25702#: reference_raster.xml:11546 25703#, no-c-format 25704msgid "" 25705"The easiest change to make is the following PostgreSQL setting: <ulink url=" 25706"\"https://www.postgresql.org/docs/current/static/runtime-config-resource." 25707"html#GUC-MAX-FILES-PER-PROCESS\">max_files_per_process</ulink>. The default " 25708"is set to 1000, which is far too low for Out-DB Rasters. A safe starting " 25709"value could be 65536 but this really depends on your datasets and the " 25710"queries run against those datasets. This setting can only be made on server " 25711"start and probably only in the PostgreSQL configuration file (e.g. " 25712"<emphasis>/etc/postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/postgresql.conf</" 25713"emphasis> in Ubuntu environments)." 25714msgstr "" 25715 25716#. Tag: programlisting 25717#: reference_raster.xml:11549 25718#, no-c-format 25719msgid "" 25720"...\n" 25721"# - Kernel Resource Usage -\n" 25722"\n" 25723"<emphasis role=\"strong\">max_files_per_process = 65536</emphasis> " 25724"# min 25\n" 25725" # (change requires restart)\n" 25726"..." 25727msgstr "" 25728 25729#. Tag: para 25730#: reference_raster.xml:11552 25731#, no-c-format 25732msgid "" 25733"The major change to make is the Linux kernel's open files limits. There are " 25734"two parts to this:" 25735msgstr "" 25736 25737#. Tag: para 25738#: reference_raster.xml:11556 25739#, no-c-format 25740msgid "<para>Maximum number of open files for the entire system</para>" 25741msgstr "" 25742 25743#. Tag: para 25744#: reference_raster.xml:11559 25745#, no-c-format 25746msgid "<para>Maximum number of open files per process</para>" 25747msgstr "" 25748 25749#. Tag: title 25750#: reference_raster.xml:11565 25751#, no-c-format 25752msgid "<title>Maximum number of open files for the entire system</title>" 25753msgstr "" 25754 25755#. Tag: para 25756#: reference_raster.xml:11567 25757#, no-c-format 25758msgid "" 25759"You can inspect the current maximum number of open files for the entire " 25760"system with the following example:" 25761msgstr "" 25762 25763#. Tag: programlisting 25764#: reference_raster.xml:11571 25765#, no-c-format 25766msgid "" 25767"$ sysctl -a | grep fs.file-max\n" 25768"fs.file-max = 131072" 25769msgstr "" 25770 25771#. Tag: para 25772#: reference_raster.xml:11573 25773#, no-c-format 25774msgid "" 25775"If the value returned is not large enough, add a file to <emphasis>/etc/" 25776"sysctl.d/</emphasis> as per the following example:" 25777msgstr "" 25778 25779#. Tag: programlisting 25780#: reference_raster.xml:11577 25781#, no-c-format 25782msgid "" 25783"$ echo \"fs.file-max = 6145324\" >> /etc/sysctl.d/fs.conf\n" 25784"\n" 25785"$ cat /etc/sysctl.d/fs.conf\n" 25786"fs.file-max = 6145324\n" 25787"\n" 25788"$ sysctl -p --system\n" 25789"* Applying /etc/sysctl.d/fs.conf ...\n" 25790"fs.file-max = 2097152\n" 25791"* Applying /etc/sysctl.conf ...\n" 25792"\n" 25793"$ sysctl -a | grep fs.file-max\n" 25794"fs.file-max = 6145324" 25795msgstr "" 25796 25797#. Tag: title 25798#: reference_raster.xml:11581 25799#, no-c-format 25800msgid "<title>Maximum number of open files per process</title>" 25801msgstr "" 25802 25803#. Tag: para 25804#: reference_raster.xml:11583 25805#, no-c-format 25806msgid "" 25807"We need to increase the maximum number of open files per process for the " 25808"PostgreSQL server processes." 25809msgstr "" 25810 25811#. Tag: para 25812#: reference_raster.xml:11587 25813#, no-c-format 25814msgid "" 25815"To see what the current PostgreSQL service processes are using for maximum " 25816"number of open files, do as per the following example (make sure to have " 25817"PostgreSQL running):" 25818msgstr "" 25819 25820#. Tag: programlisting 25821#: reference_raster.xml:11591 25822#, no-c-format 25823msgid "" 25824"$ ps aux | grep postgres\n" 25825"postgres 31713 0.0 0.4 179012 17564 pts/0 S Dec26 0:03 /home/" 25826"dustymugs/devel/postgresql/sandbox/10/usr/local/bin/postgres -D /home/" 25827"dustymugs/devel/postgresql/sandbox/10/pgdata\n" 25828"postgres 31716 0.0 0.8 179776 33632 ? Ss Dec26 0:01 postgres: " 25829"checkpointer process\n" 25830"postgres 31717 0.0 0.2 179144 9416 ? Ss Dec26 0:05 postgres: " 25831"writer process\n" 25832"postgres 31718 0.0 0.2 179012 8708 ? Ss Dec26 0:06 postgres: " 25833"wal writer process\n" 25834"postgres 31719 0.0 0.1 179568 7252 ? Ss Dec26 0:03 postgres: " 25835"autovacuum launcher process\n" 25836"postgres 31720 0.0 0.1 34228 4124 ? Ss Dec26 0:09 postgres: " 25837"stats collector process\n" 25838"postgres 31721 0.0 0.1 179308 6052 ? Ss Dec26 0:00 postgres: " 25839"bgworker: logical replication launcher\n" 25840"\n" 25841"$ cat /proc/31718/limits\n" 25842"Limit Soft Limit Hard Limit Units\n" 25843"Max cpu time unlimited unlimited seconds\n" 25844"Max file size unlimited unlimited bytes\n" 25845"Max data size unlimited unlimited bytes\n" 25846"Max stack size 8388608 unlimited bytes\n" 25847"Max core file size 0 unlimited bytes\n" 25848"Max resident set unlimited unlimited bytes\n" 25849"Max processes 15738 15738 " 25850"processes\n" 25851"<emphasis role=\"strong\">Max open files 1024 " 25852"4096 files</emphasis>\n" 25853"Max locked memory 65536 65536 bytes\n" 25854"Max address space unlimited unlimited bytes\n" 25855"Max file locks unlimited unlimited locks\n" 25856"Max pending signals 15738 15738 signals\n" 25857"Max msgqueue size 819200 819200 bytes\n" 25858"Max nice priority 0 0\n" 25859"Max realtime priority 0 0\n" 25860"Max realtime timeout unlimited unlimited us" 25861msgstr "" 25862 25863#. Tag: para 25864#: reference_raster.xml:11593 25865#, no-c-format 25866msgid "" 25867"In the example above, we inspected the open files limit for Process 31718. " 25868"It doesn't matter which PostgreSQL process, any of them will do. The " 25869"response we are interested in is <emphasis>Max open files</emphasis>." 25870msgstr "" 25871 25872#. Tag: para 25873#: reference_raster.xml:11597 25874#, no-c-format 25875msgid "" 25876"We want to increase <emphasis>Soft Limit</emphasis> and <emphasis>Hard " 25877"Limit</emphasis> of <emphasis>Max open files</emphasis> to be greater than " 25878"the value we specified for the PostgreSQL setting " 25879"<varname>max_files_per_process</varname>. In our example, we set " 25880"<varname>max_files_per_process</varname> to 65536." 25881msgstr "" 25882 25883#. Tag: para 25884#: reference_raster.xml:11601 25885#, no-c-format 25886msgid "" 25887"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), the " 25888"easiest way to change the <emphasis>Soft Limit</emphasis> and <emphasis>Hard " 25889"Limit</emphasis> is to edit <emphasis role=\"strong\">/etc/init.d/" 25890"postgresql</emphasis> (SysV) or <emphasis role=\"strong\">/lib/systemd/" 25891"system/postgresql*.service</emphasis> (systemd)." 25892msgstr "" 25893 25894#. Tag: para 25895#: reference_raster.xml:11605 25896#, no-c-format 25897msgid "" 25898"Let's first address the SysV Ubuntu case where we add <emphasis role=\"strong" 25899"\">ulimit -H -n 262144</emphasis> and <emphasis role=\"strong\">ulimit -n " 25900"131072</emphasis> to <emphasis role=\"strong\">/etc/init.d/postgresql</" 25901"emphasis>." 25902msgstr "" 25903 25904#. Tag: programlisting 25905#: reference_raster.xml:11609 25906#, no-c-format 25907msgid "" 25908"...\n" 25909"case \"$1\" in\n" 25910" start|stop|restart|reload)\n" 25911" if [ \"$1\" = \"start\" ]; then\n" 25912" create_socket_directory\n" 25913" fi\n" 25914" if [ -z \"`pg_lsclusters -h`\" ]; then\n" 25915" log_warning_msg 'No PostgreSQL clusters exist; see \"man " 25916"pg_createcluster\"'\n" 25917" exit 0\n" 25918" fi\n" 25919"<emphasis role=\"strong\">\n" 25920" ulimit -H -n 262144\n" 25921" ulimit -n 131072\n" 25922"</emphasis>\n" 25923" for v in $versions; do\n" 25924" $1 $v || EXIT=$?\n" 25925" done\n" 25926" exit ${EXIT:-0}\n" 25927" ;;\n" 25928" status)\n" 25929"..." 25930msgstr "" 25931 25932#. Tag: para 25933#: reference_raster.xml:11611 25934#, no-c-format 25935msgid "" 25936"Now to address the systemd Ubuntu case. We will add <emphasis role=\"strong" 25937"\">LimitNOFILE=131072</emphasis> to every <emphasis role=\"strong\">/lib/" 25938"systemd/system/postgresql*.service</emphasis> file in the <emphasis role=" 25939"\"strong\">[Service]</emphasis> section." 25940msgstr "" 25941 25942#. Tag: programlisting 25943#: reference_raster.xml:11615 25944#, no-c-format 25945msgid "" 25946"...\n" 25947"[Service]\n" 25948"<emphasis role=\"strong\">\n" 25949"LimitNOFILE=131072\n" 25950"</emphasis>\n" 25951"...\n" 25952"\n" 25953"[Install]\n" 25954"WantedBy=multi-user.target\n" 25955"..." 25956msgstr "" 25957 25958#. Tag: para 25959#: reference_raster.xml:11617 25960#, no-c-format 25961msgid "" 25962"After making the necessary systemd changes, make sure to reload the daemon" 25963msgstr "" 25964 25965#. Tag: programlisting 25966#: reference_raster.xml:11621 25967#, no-c-format 25968msgid "systemctl daemon-reload" 25969msgstr "" 25970 25971#~ msgid "ST_MapAlgebra" 25972#~ msgstr "ST_MapAlgebra" 25973