1# SOME DESCRIPTIVE TITLE.
2#
3# Translators:
4# Kayama Yoichi <yoichi.kayama@gmail.com>, 2016
5# TERAMOTO Ikuhiro <yellow@affrc.go.jp>, 2016
6msgid ""
7msgstr ""
8"Project-Id-Version: PostGIS\n"
9"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
10"POT-Creation-Date: 2019-10-06 23:49+0000\n"
11"PO-Revision-Date: 2018-07-26 04:36+0000\n"
12"Last-Translator: TERAMOTO Ikuhiro <yellow@affrc.go.jp>\n"
13"Language-Team: Japanese (http://www.transifex.com/postgis/postgis/language/"
14"ja/)\n"
15"Language: ja\n"
16"MIME-Version: 1.0\n"
17"Content-Type: text/plain; charset=UTF-8\n"
18"Content-Transfer-Encoding: 8bit\n"
19"Plural-Forms: nplurals=1; plural=0;\n"
20
21#. Tag: title
22#: reference_raster.xml:3
23#, no-c-format
24msgid "Raster Reference"
25msgstr "ラスタ リファレンス"
26
27#. Tag: para
28#: reference_raster.xml:5
29#, no-c-format
30msgid ""
31"The functions given below are the ones which a user of PostGIS Raster is "
32"likely to need and which are currently available in PostGIS Raster. There "
33"are other functions which are required support functions to the raster "
34"objects which are not of use to a general user."
35msgstr ""
36"ここで挙げる関数は、PostGISラスタにとって必要と思われるもので、現在PostGISラ"
37"スタで有効なものです。他に、一般的なユーザが利用しない、ラスタオブジェクトに"
38"対して求められるサポート関数があります。"
39
40#. Tag: para
41#: reference_raster.xml:9
42#, no-c-format
43msgid ""
44"<varname>raster</varname> is a new PostGIS type for storing and analyzing "
45"raster data."
46msgstr ""
47"<varname>raster</varname>は、ラスタデータの格納と分析のための新しいPostGIS型"
48"です。"
49
50#. Tag: para
51#: reference_raster.xml:10
52#, no-c-format
53msgid ""
54"For loading rasters from raster files please refer to <xref linkend="
55"\"RT_Loading_Rasters\"/>"
56msgstr ""
57"ラスタファイルからラスタをロードするには<xref linkend=\"RT_Loading_Rasters\"/"
58">を参照して下さい。"
59
60#. Tag: para
61#: reference_raster.xml:12
62#, no-c-format
63msgid ""
64"For the examples in this reference we will be using a raster table of dummy "
65"rasters - Formed with the following code"
66msgstr ""
67"このリファレンスにおける例ではダミーラスタのラスタテーブルを使っています。ラ"
68"スタは次のようなコードで形成しています。"
69
70#. Tag: programlisting
71#: reference_raster.xml:13
72#, no-c-format
73msgid ""
74"CREATE TABLE dummy_rast(rid integer, rast raster);\n"
75"INSERT INTO dummy_rast(rid, rast)\n"
76"VALUES (1,\n"
77"('01' -- little endian (uint8 ndr)\n"
78"||\n"
79"'0000' -- version (uint16 0)\n"
80"||\n"
81"'0000' -- nBands (uint16 0)\n"
82"||\n"
83"'0000000000000040' -- scaleX (float64 2)\n"
84"||\n"
85"'0000000000000840' -- scaleY (float64 3)\n"
86"||\n"
87"'000000000000E03F' -- ipX (float64 0.5)\n"
88"||\n"
89"'000000000000E03F' -- ipY (float64 0.5)\n"
90"||\n"
91"'0000000000000000' -- skewX (float64 0)\n"
92"||\n"
93"'0000000000000000' -- skewY (float64 0)\n"
94"||\n"
95"'00000000' -- SRID (int32 0)\n"
96"||\n"
97"'0A00' -- width (uint16 10)\n"
98"||\n"
99"'1400' -- height (uint16 20)\n"
100")::raster\n"
101"),\n"
102"-- Raster: 5 x 5 pixels, 3 bands, PT_8BUI pixel type, NODATA = 0\n"
103"(2,  ('01000003009A9999999999A93F9A9999999999A9BF000000E02B274A' ||\n"
104"'41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' "
105"||\n"
106"'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::"
107"raster);"
108msgstr ""
109"CREATE TABLE dummy_rast(rid integer, rast raster);\n"
110"INSERT INTO dummy_rast(rid, rast)\n"
111"VALUES (1,\n"
112"('01' -- little endian - リトルエンディアン (uint8 ndr)\n"
113"||\n"
114"'0000' -- version - 版 (uint16 0)\n"
115"||\n"
116"'0000' -- nBands - バンド数 (uint16 0)\n"
117"||\n"
118"'0000000000000040' -- scaleX - X方向セルサイズ (float64 2)\n"
119"||\n"
120"'0000000000000840' -- scaleY - Y方向セルサイズ (float64 3)\n"
121"||\n"
122"'000000000000E03F' -- ipX - 左上隅X値 (float64 0.5)\n"
123"||\n"
124"'000000000000E03F' -- ipY - 左上隅Y値 (float64 0.5)\n"
125"||\n"
126"'0000000000000000' -- skewX - スキューX (float64 0)\n"
127"||\n"
128"'0000000000000000' -- skewY - スキューY (float64 0)\n"
129"||\n"
130"'00000000' -- SRID (int32 0)\n"
131"||\n"
132"'0A00' -- width - 横セル数 (uint16 10)\n"
133"||\n"
134"'1400' -- height - 縦セル数 (uint16 20)\n"
135")::raster\n"
136"),\n"
137"-- Raster: 5 x 5 pixels, 3 bands, PT_8BUI pixel type, NODATA = 0\n"
138"(2,  ('01000003009A9999999999A93F9A9999999999A9BF000000E02B274A' ||\n"
139"'41000000007719564100000000000000000000000000000000FFFFFFFF050005000400FDFEFDFEFEFDFEFEFDF9FAFEF' "
140"||\n"
141"'EFCF9FBFDFEFEFDFCFAFEFEFE04004E627AADD16076B4F9FE6370A9F5FE59637AB0E54F58617087040046566487A1506CA2E3FA5A6CAFFBFE4D566DA4CB3E454C5665')::"
142"raster);"
143
144#. Tag: para
145#: reference_raster.xml:17
146#, no-c-format
147msgid ""
148"This section lists the PostgreSQL data types specifically created to support "
149"raster functionality."
150msgstr ""
151"本節では、ラスタ機能をサポートするために作られたPostgreSQLデータ型の一覧を挙"
152"げます。"
153
154#. Tag: title
155#: reference_raster.xml:20
156#, no-c-format
157msgid "Raster Support Data types"
158msgstr "ラスタサポートデータ型"
159
160#. Tag: refname
161#: reference_raster.xml:24
162#, no-c-format
163msgid "geomval"
164msgstr "geomval"
165
166#. Tag: refpurpose
167#: reference_raster.xml:25
168#, no-c-format
169msgid ""
170"A spatial datatype with two fields - geom (holding a geometry object) and "
171"val (holding a double precision pixel value from a raster band)."
172msgstr ""
173"geom (ジオメトリオブジェクトを保持)とval (ラスタバンドからのピクセル値を倍精"
174"度浮動小数点数で保持)の2フィールドからなるデータ型。"
175
176#. Tag: title
177#: reference_raster.xml:30 reference_raster.xml:49 reference_raster.xml:121
178#: reference_raster.xml:171 reference_raster.xml:211 reference_raster.xml:257
179#: reference_raster.xml:354 reference_raster.xml:535 reference_raster.xml:709
180#: reference_raster.xml:776 reference_raster.xml:845 reference_raster.xml:888
181#: reference_raster.xml:923 reference_raster.xml:960 reference_raster.xml:1003
182#: reference_raster.xml:1064 reference_raster.xml:1109
183#: reference_raster.xml:1224 reference_raster.xml:1433
184#: reference_raster.xml:1520 reference_raster.xml:1606
185#: reference_raster.xml:1663 reference_raster.xml:1730
186#: reference_raster.xml:1795 reference_raster.xml:1837
187#: reference_raster.xml:1887 reference_raster.xml:1926
188#: reference_raster.xml:1960 reference_raster.xml:1997
189#: reference_raster.xml:2040 reference_raster.xml:2075
190#: reference_raster.xml:2109 reference_raster.xml:2159
191#: reference_raster.xml:2213 reference_raster.xml:2250
192#: reference_raster.xml:2290 reference_raster.xml:2345
193#: reference_raster.xml:2400 reference_raster.xml:2446
194#: reference_raster.xml:2481 reference_raster.xml:2517
195#: reference_raster.xml:2553 reference_raster.xml:2588
196#: reference_raster.xml:2627 reference_raster.xml:2661
197#: reference_raster.xml:2695 reference_raster.xml:2739
198#: reference_raster.xml:2801 reference_raster.xml:2856
199#: reference_raster.xml:2902 reference_raster.xml:2964
200#: reference_raster.xml:3006 reference_raster.xml:3057
201#: reference_raster.xml:3092 reference_raster.xml:3128
202#: reference_raster.xml:3162 reference_raster.xml:3237
203#: reference_raster.xml:3280 reference_raster.xml:3326
204#: reference_raster.xml:3388 reference_raster.xml:3431
205#: reference_raster.xml:3486 reference_raster.xml:3529
206#: reference_raster.xml:3605 reference_raster.xml:3692
207#: reference_raster.xml:3779 reference_raster.xml:3867
208#: reference_raster.xml:3952 reference_raster.xml:4078
209#: reference_raster.xml:4175 reference_raster.xml:4227
210#: reference_raster.xml:4275 reference_raster.xml:4318
211#: reference_raster.xml:4365 reference_raster.xml:4409
212#: reference_raster.xml:4447 reference_raster.xml:4522
213#: reference_raster.xml:4591 reference_raster.xml:4659
214#: reference_raster.xml:4736 reference_raster.xml:4808
215#: reference_raster.xml:4887 reference_raster.xml:4995
216#: reference_raster.xml:5030 reference_raster.xml:5077
217#: reference_raster.xml:5130 reference_raster.xml:5205
218#: reference_raster.xml:5270 reference_raster.xml:5383
219#: reference_raster.xml:5504 reference_raster.xml:5570
220#: reference_raster.xml:5649 reference_raster.xml:5795
221#: reference_raster.xml:5837 reference_raster.xml:5880
222#: reference_raster.xml:5934 reference_raster.xml:5987
223#: reference_raster.xml:6039 reference_raster.xml:6134
224#: reference_raster.xml:6225 reference_raster.xml:6313
225#: reference_raster.xml:6424 reference_raster.xml:6617
226#: reference_raster.xml:6856 reference_raster.xml:6999
227#: reference_raster.xml:7148 reference_raster.xml:7478
228#: reference_raster.xml:7684 reference_raster.xml:7808
229#: reference_raster.xml:8134 reference_raster.xml:8252
230#: reference_raster.xml:8365 reference_raster.xml:8507
231#: reference_raster.xml:8593 reference_raster.xml:8665
232#: reference_raster.xml:8729 reference_raster.xml:8800
233#: reference_raster.xml:8875 reference_raster.xml:8958
234#: reference_raster.xml:9029 reference_raster.xml:9085
235#: reference_raster.xml:9160 reference_raster.xml:9231
236#: reference_raster.xml:9315 reference_raster.xml:9407
237#: reference_raster.xml:9489 reference_raster.xml:9543
238#: reference_raster.xml:9617 reference_raster.xml:9665
239#: reference_raster.xml:9717 reference_raster.xml:9759
240#: reference_raster.xml:9807 reference_raster.xml:9858
241#: reference_raster.xml:9906 reference_raster.xml:9948
242#: reference_raster.xml:10022 reference_raster.xml:10067
243#: reference_raster.xml:10111 reference_raster.xml:10156
244#: reference_raster.xml:10225 reference_raster.xml:10272
245#: reference_raster.xml:10345 reference_raster.xml:10413
246#: reference_raster.xml:10502 reference_raster.xml:10587
247#: reference_raster.xml:10668 reference_raster.xml:10749
248#: reference_raster.xml:10878 reference_raster.xml:10962
249#: reference_raster.xml:11042 reference_raster.xml:11161
250#: reference_raster.xml:11208 reference_raster.xml:11280
251#: reference_raster.xml:11377 reference_raster.xml:11470
252#, no-c-format
253msgid "Description"
254msgstr "説明"
255
256#. Tag: para
257#: reference_raster.xml:31
258#, no-c-format
259msgid ""
260"geomval is a compound data type consisting of a geometry object referenced "
261"by the .geom field and val, a double precision value that represents the "
262"pixel value at a particular geometric location in a raster band. It is used "
263"by the ST_DumpAsPolygon and Raster intersection family of functions as an "
264"output type to explode a raster band into geometry polygons."
265msgstr ""
266"geomvalは.geomフィールドで参照されるジオメトリオブジェクトと、特定の地理位置"
267"におけるラスタバンドのピクセル値を表現する浮動小数点数のvalからなる複合型で"
268"す。ポリゴンにラスタバンドを展開するための出力型として、ST_DumpAsPolygonとラ"
269"スタのインタセクション関連関数群に使われます。"
270
271#. Tag: title
272#: reference_raster.xml:37 reference_raster.xml:107 reference_raster.xml:157
273#: reference_raster.xml:200 reference_raster.xml:245 reference_raster.xml:340
274#: reference_raster.xml:389 reference_raster.xml:583 reference_raster.xml:724
275#: reference_raster.xml:802 reference_raster.xml:862 reference_raster.xml:898
276#: reference_raster.xml:935 reference_raster.xml:973 reference_raster.xml:1028
277#: reference_raster.xml:1079 reference_raster.xml:1138
278#: reference_raster.xml:1268 reference_raster.xml:1485
279#: reference_raster.xml:1575 reference_raster.xml:1620
280#: reference_raster.xml:1683 reference_raster.xml:1759
281#: reference_raster.xml:1810 reference_raster.xml:1858
282#: reference_raster.xml:1905 reference_raster.xml:1939
283#: reference_raster.xml:1975 reference_raster.xml:2018
284#: reference_raster.xml:2054 reference_raster.xml:2088
285#: reference_raster.xml:2132 reference_raster.xml:2192
286#: reference_raster.xml:2229 reference_raster.xml:2267
287#: reference_raster.xml:2312 reference_raster.xml:2371
288#: reference_raster.xml:2425 reference_raster.xml:2460
289#: reference_raster.xml:2496 reference_raster.xml:2532
290#: reference_raster.xml:2567 reference_raster.xml:2601
291#: reference_raster.xml:2640 reference_raster.xml:2674
292#: reference_raster.xml:2709 reference_raster.xml:2759
293#: reference_raster.xml:2816 reference_raster.xml:2871
294#: reference_raster.xml:2942 reference_raster.xml:2977
295#: reference_raster.xml:3032 reference_raster.xml:3070
296#: reference_raster.xml:3215 reference_raster.xml:3252
297#: reference_raster.xml:3294 reference_raster.xml:3356
298#: reference_raster.xml:3399 reference_raster.xml:3454
299#: reference_raster.xml:3497 reference_raster.xml:3552
300#: reference_raster.xml:3627 reference_raster.xml:3717
301#: reference_raster.xml:3811 reference_raster.xml:3882
302#: reference_raster.xml:4031 reference_raster.xml:4097
303#: reference_raster.xml:4253 reference_raster.xml:4288
304#: reference_raster.xml:4337 reference_raster.xml:4382
305#: reference_raster.xml:4422 reference_raster.xml:4460
306#: reference_raster.xml:4552 reference_raster.xml:4617
307#: reference_raster.xml:4686 reference_raster.xml:4764
308#: reference_raster.xml:4838 reference_raster.xml:4960
309#: reference_raster.xml:5008 reference_raster.xml:5049
310#: reference_raster.xml:5102 reference_raster.xml:5155
311#: reference_raster.xml:5226 reference_raster.xml:5287
312#: reference_raster.xml:5418 reference_raster.xml:5519
313#: reference_raster.xml:5606 reference_raster.xml:5666
314#: reference_raster.xml:5813 reference_raster.xml:5854
315#: reference_raster.xml:5897 reference_raster.xml:5962
316#: reference_raster.xml:6010 reference_raster.xml:6088
317#: reference_raster.xml:6179 reference_raster.xml:6270
318#: reference_raster.xml:6350 reference_raster.xml:6580
319#: reference_raster.xml:6814 reference_raster.xml:6923
320#: reference_raster.xml:7058 reference_raster.xml:7409
321#: reference_raster.xml:7645 reference_raster.xml:7758
322#: reference_raster.xml:8050 reference_raster.xml:8209
323#: reference_raster.xml:8332 reference_raster.xml:8465
324#: reference_raster.xml:8536 reference_raster.xml:8624
325#: reference_raster.xml:8697 reference_raster.xml:8767
326#: reference_raster.xml:8836 reference_raster.xml:8918
327#: reference_raster.xml:8997 reference_raster.xml:9052
328#: reference_raster.xml:9121 reference_raster.xml:9192
329#: reference_raster.xml:9267 reference_raster.xml:9360
330#: reference_raster.xml:9457 reference_raster.xml:9500
331#: reference_raster.xml:9585 reference_raster.xml:9633
332#: reference_raster.xml:9684 reference_raster.xml:9734
333#: reference_raster.xml:9779 reference_raster.xml:9832
334#: reference_raster.xml:9878 reference_raster.xml:9921
335#: reference_raster.xml:9960 reference_raster.xml:10170
336#: reference_raster.xml:10238 reference_raster.xml:10291
337#: reference_raster.xml:10357 reference_raster.xml:10448
338#: reference_raster.xml:10533 reference_raster.xml:10614
339#: reference_raster.xml:10695 reference_raster.xml:10779
340#: reference_raster.xml:10908 reference_raster.xml:10989
341#: reference_raster.xml:11069 reference_raster.xml:11182
342#: reference_raster.xml:11226 reference_raster.xml:11313
343#: reference_raster.xml:11408 reference_raster.xml:11501
344#, no-c-format
345msgid "See Also"
346msgstr "関連情報"
347
348#. Tag: refname
349#: reference_raster.xml:44
350#, no-c-format
351msgid "addbandarg"
352msgstr "addbandarg"
353
354#. Tag: refpurpose
355#: reference_raster.xml:45
356#, no-c-format
357msgid ""
358"<refpurpose>A composite type used as input into the ST_AddBand function "
359"defining the attributes and initial value of the new band.</refpurpose>"
360msgstr ""
361"<refpurpose>ST_AddBandの入力に使われる複合型で、新しいバンドの属性と初期値か"
362"らなります。</refpurpose>"
363
364#. Tag: para
365#: reference_raster.xml:50
366#, no-c-format
367msgid ""
368"<para>A composite type used as input into the ST_AddBand function defining "
369"the attributes and initial value of the new band.</para>"
370msgstr ""
371"<para>ST_AddBandの入力に使われる複合型で、新しいバンドの属性と初期値からなり"
372"ます。</para>"
373
374#. Tag: term
375#: reference_raster.xml:55
376#, no-c-format
377msgid "<parameter>index </parameter> <type>integer</type>"
378msgstr "<parameter>index </parameter> <type>integer</type>"
379
380#. Tag: para
381#: reference_raster.xml:60
382#, no-c-format
383msgid ""
384"1-based value indicating the position where the new band will be added "
385"amongst the raster's bands. If NULL, the new band will be added at the end "
386"of the raster's bands."
387msgstr ""
388"ラスタのバンド群のうち新しいバンドが追加される位置を示す1始まりの値。NULLの場"
389"合には、新しいバンドはラスタバンド群の末尾に追加されます。"
390
391#. Tag: term
392#: reference_raster.xml:67
393#, no-c-format
394msgid "<parameter>pixeltype </parameter> <type>text</type>"
395msgstr "<parameter>pixeltype </parameter> <type>text</type>"
396
397#. Tag: para
398#: reference_raster.xml:72
399#, no-c-format
400msgid ""
401"Pixel type of the new band. One of defined pixel types as described in <xref "
402"linkend=\"RT_ST_BandPixelType\"/>."
403msgstr ""
404"新しいバンドのピクセルタイプ。定義されたピクセルタイプは<xref linkend="
405"\"RT_ST_BandPixelType\"/>に記述されています。"
406
407#. Tag: term
408#: reference_raster.xml:79
409#, no-c-format
410msgid "<parameter>initialvalue </parameter> <type>double precision</type>"
411msgstr "<parameter>initialvalue </parameter> <type>double precision</type>"
412
413#. Tag: para
414#: reference_raster.xml:84
415#, no-c-format
416msgid "Initial value that all pixels of new band will be set to."
417msgstr "新しいバンドに設定する初期値。"
418
419#. Tag: term
420#: reference_raster.xml:91
421#, no-c-format
422msgid "<parameter>nodataval </parameter> <type>double precision</type>"
423msgstr "<parameter>nodataval </parameter> <type>double precision</type>"
424
425#. Tag: para
426#: reference_raster.xml:96
427#, no-c-format
428msgid ""
429"NODATA value of the new band. If NULL, the new band will not have a NODATA "
430"value assigned."
431msgstr ""
432"新しいバンドのNODATA値。NULLの場合には、新しいバンドにNODATA値を設定しませ"
433"ん。"
434
435#. Tag: refname
436#: reference_raster.xml:116
437#, no-c-format
438msgid "rastbandarg"
439msgstr "rastbandarg"
440
441#. Tag: refpurpose
442#: reference_raster.xml:117
443#, no-c-format
444msgid ""
445"<refpurpose>A composite type for use when needing to express a raster and a "
446"band index of that raster.</refpurpose>"
447msgstr ""
448"<refpurpose>ラスタとそのバンドインデクスを表現する必要がある時に使われる複合"
449"型。</refpurpose>"
450
451#. Tag: para
452#: reference_raster.xml:122
453#, no-c-format
454msgid ""
455"<para>A composite type for use when needing to express a raster and a band "
456"index of that raster.</para>"
457msgstr ""
458"<para>ラスタとそのバンドインデクスを表現する必要がある時に使われる複合型。</"
459"para>"
460
461#. Tag: term
462#: reference_raster.xml:128
463#, no-c-format
464msgid "<parameter>rast </parameter> <type>raster</type>"
465msgstr "<parameter>rast </parameter> <type>raster</type>"
466
467#. Tag: para
468#: reference_raster.xml:133
469#, no-c-format
470msgid "The raster in question/"
471msgstr "問題にするラスタ。"
472
473#. Tag: term
474#: reference_raster.xml:140 reference_raster.xml:360
475#, no-c-format
476msgid "<parameter>nband </parameter> <type>integer</type>"
477msgstr "<parameter>nband </parameter> <type>integer</type>"
478
479#. Tag: para
480#: reference_raster.xml:145
481#, no-c-format
482msgid "1-based value indicating the band of raster"
483msgstr "ラスタのバンドを示す1始まりの値。"
484
485#. Tag: refname
486#: reference_raster.xml:166
487#, no-c-format
488msgid "raster"
489msgstr "raster"
490
491#. Tag: refpurpose
492#: reference_raster.xml:167
493#, no-c-format
494msgid "raster spatial data type."
495msgstr "ラスタ空間データ型。"
496
497#. Tag: para
498#: reference_raster.xml:172
499#, no-c-format
500msgid ""
501"raster is a spatial data type used to represent raster data such as those "
502"imported from JPEGs, TIFFs, PNGs, digital elevation models. Each raster has "
503"1 or more bands each having a set of pixel values. Rasters can be "
504"georeferenced."
505msgstr ""
506"rasterは、JPEG, TIFF, PNG, デジタル標高モデルといったラスタデータを表現する空"
507"間データ型です。ラスタはそれぞれ1以上のバンドを持ち、バンドはそれぞれにピクセ"
508"ル値の集合を持ちます。ラスタには地理参照を与えることができます。"
509
510#. Tag: para
511#: reference_raster.xml:175
512#, no-c-format
513msgid ""
514"Requires PostGIS be compiled with GDAL support. Currently rasters can be "
515"implicitly converted to geometry type, but the conversion returns the <xref "
516"linkend=\"RT_ST_ConvexHull\"/> of the raster. This auto casting may be "
517"removed in the near future so don't rely on it."
518msgstr ""
519"PostGISをGDALサポート付きでコンパイルする必要があります。 現在、ラスタは暗黙"
520"にジオメトリ型に変換することができますが、ラスタの<xref linkend="
521"\"RT_ST_ConvexHull\"/>を返します。この自動キャストは近いうちに削除するかも知"
522"れないので、この関数に頼らないようにして下さい。"
523
524#. Tag: title
525#: reference_raster.xml:181
526#, no-c-format
527msgid "Casting Behavior"
528msgstr "キャストの挙動"
529
530#. Tag: para
531#: reference_raster.xml:182
532#, no-c-format
533msgid ""
534"This section lists the automatic as well as explicit casts allowed for this "
535"data type"
536msgstr ""
537"本節では、このデータ型で許容される明示的なキャストと自動キャストの一覧を挙げ"
538"ます。"
539
540#. Tag: entry
541#: reference_raster.xml:187
542#, no-c-format
543msgid "Cast To"
544msgstr "キャスト先"
545
546#. Tag: entry
547#: reference_raster.xml:188
548#, no-c-format
549msgid "Behavior"
550msgstr "挙動"
551
552#. Tag: entry
553#: reference_raster.xml:191
554#, no-c-format
555msgid "geometry"
556msgstr "geometry"
557
558#. Tag: entry
559#: reference_raster.xml:192
560#, no-c-format
561msgid "automatic"
562msgstr "自動"
563
564#. Tag: refname
565#: reference_raster.xml:207
566#, no-c-format
567msgid "reclassarg"
568msgstr "reclassarg"
569
570#. Tag: refpurpose
571#: reference_raster.xml:208
572#, no-c-format
573msgid ""
574"<refpurpose>A composite type used as input into the ST_Reclass function "
575"defining the behavior of reclassification.</refpurpose>"
576msgstr ""
577"<refpurpose>ST_Reclass関数への入力として使用する複合型です。再分類の挙動を定"
578"義します。</refpurpose>"
579
580#. Tag: para
581#: reference_raster.xml:212
582#, no-c-format
583msgid ""
584"<para>A composite type used as input into the ST_Reclass function defining "
585"the behavior of reclassification.</para>"
586msgstr ""
587"<para>ST_Reclass関数への入力として使用する複合型です。再分類の挙動を定義しま"
588"す。</para>"
589
590#. Tag: term
591#: reference_raster.xml:215
592#, no-c-format
593msgid "<parameter>nband </parameter><type>integer</type>"
594msgstr "<parameter>nband </parameter><type>integer</type>"
595
596#. Tag: para
597#: reference_raster.xml:216
598#, no-c-format
599msgid "The band number of band to reclassify."
600msgstr "再分類対象バンドの番号。"
601
602#. Tag: term
603#: reference_raster.xml:219
604#, no-c-format
605msgid "<parameter>reclassexpr </parameter><type>text</type>"
606msgstr "<parameter>reclassexpr </parameter><type>text</type>"
607
608#. Tag: para
609#: reference_raster.xml:220
610#, no-c-format
611msgid ""
612"range expression consisting of comma delimited range:map_range mappings. : "
613"to define mapping that defines how to map old band values to new band "
614"values. ( means &gt;, ) means less than, ] &lt; or equal, [ means &gt; or "
615"equal"
616msgstr ""
617"コンマ区切りの範囲表現。古い値から新しい値にマップする方法を定義します。 "
618"'('は「これより大きい」、')'は「これより小さい」、'['は「これ以上」、']'は"
619"「これ以下」、をそれぞれ示します。"
620
621#. Tag: programlisting
622#: reference_raster.xml:221
623#, no-c-format
624msgid ""
625"1. [a-b] = a &lt;= x &lt;= b\n"
626"\n"
627"2. (a-b] = a &lt; x &lt;= b\n"
628"\n"
629"3. [a-b) = a &lt;= x &lt; b\n"
630"\n"
631"4. (a-b) = a &lt; x &lt; b"
632msgstr ""
633"1. [a-b] = a &lt;= x &lt;= b\n"
634"\n"
635"2. (a-b] = a &lt; x &lt;= b\n"
636"\n"
637"3. [a-b) = a &lt;= x &lt; b\n"
638"\n"
639"4. (a-b) = a &lt; x &lt; b"
640
641#. Tag: para
642#: reference_raster.xml:222
643#, no-c-format
644msgid "( notation is optional so a-b means the same as (a-b)"
645msgstr "'('標記はオプションです。'a-b'は'(a-b)'と同じ意味になります。"
646
647#. Tag: term
648#: reference_raster.xml:227
649#, no-c-format
650msgid "<parameter>pixeltype </parameter><type>text</type>"
651msgstr "<parameter>pixeltype </parameter><type>text</type>"
652
653#. Tag: para
654#: reference_raster.xml:228
655#, no-c-format
656msgid ""
657"One of defined pixel types as described in <xref linkend="
658"\"RT_ST_BandPixelType\"/>"
659msgstr ""
660"<xref linkend=\"RT_ST_BandPixelType\"/>の記述にあるピクセルタイプの一つ。"
661
662#. Tag: term
663#: reference_raster.xml:231
664#, no-c-format
665msgid "<parameter>nodataval </parameter><type>double precision</type>"
666msgstr "<parameter>nodataval </parameter><type>double precision</type>"
667
668#. Tag: para
669#: reference_raster.xml:232
670#, no-c-format
671msgid ""
672"Value to treat as no data. For image outputs that support transparency, "
673"these will be blank."
674msgstr "NODATAとして扱う値。透過が可能な画像出力では、この値は空白になります。"
675
676#. Tag: title
677#: reference_raster.xml:237
678#, no-c-format
679msgid "Example: Reclassify band 2 as an 8BUI where 255 is nodata value"
680msgstr "例: 2番バンドを8BUIで255をNODATAに再分類"
681
682#. Tag: programlisting
683#: reference_raster.xml:238
684#, no-c-format
685msgid ""
686"SELECT ROW(2, '0-100:1-10, 101-500:11-150,501 - 10000: 151-254', '8BUI', "
687"255)::reclassarg;"
688msgstr ""
689"SELECT ROW(2, '0-100:1-10, 101-500:11-150,501 - 10000: 151-254', '8BUI', "
690"255)::reclassarg;"
691
692#. Tag: title
693#: reference_raster.xml:241
694#, no-c-format
695msgid "Example: Reclassify band 1 as an 1BB and no nodata value defined"
696msgstr "例: 1番バンドを1BBでNODATAを定義しないで再分類"
697
698#. Tag: programlisting
699#: reference_raster.xml:242
700#, no-c-format
701msgid "SELECT ROW(1, '0-100]:0, (100-255:1', '1BB', NULL)::reclassarg;"
702msgstr "SELECT ROW(1, '0-100]:0, (100-255:1', '1BB', NULL)::reclassarg;"
703
704#. Tag: refname
705#: reference_raster.xml:252
706#, no-c-format
707msgid "summarystats"
708msgstr "summarystats"
709
710#. Tag: refpurpose
711#: reference_raster.xml:253
712#, no-c-format
713msgid ""
714"A composite type returned by the ST_SummaryStats and ST_SummaryStatsAgg "
715"functions."
716msgstr ""
717"ST_SummaryStats関数とST_SummaryStatsAgg関数の出力として使う複合型です。"
718
719#. Tag: para
720#: reference_raster.xml:258
721#, no-c-format
722msgid ""
723"A composite type returned by the <xref linkend=\"RT_ST_SummaryStats\"/> and "
724"<xref linkend=\"RT_ST_SummaryStatsAgg\"/> functions."
725msgstr ""
726"<xref linkend=\"RT_ST_SummaryStats\"/>関数と<xref linkend="
727"\"RT_ST_SummaryStatsAgg\"/>関数の出力として使う複合型です。"
728
729#. Tag: term
730#: reference_raster.xml:263
731#, no-c-format
732msgid "<parameter>count </parameter> <type>integer</type>"
733msgstr "<parameter>count </parameter> <type>integer</type>"
734
735#. Tag: para
736#: reference_raster.xml:268
737#, no-c-format
738msgid "Number of pixels counted for the summary statistics."
739msgstr "統計情報で使ったピクセルの数。"
740
741#. Tag: term
742#: reference_raster.xml:275
743#, no-c-format
744msgid "<parameter>sum </parameter> <type>double precision</type>"
745msgstr "<parameter>sum </parameter> <type>double precision</type>"
746
747#. Tag: para
748#: reference_raster.xml:280
749#, no-c-format
750msgid "Sum of all counted pixel values."
751msgstr "統計情報で使ったピクセルの値の合計。"
752
753#. Tag: term
754#: reference_raster.xml:287
755#, no-c-format
756msgid "<parameter>mean </parameter> <type>double precision</type>"
757msgstr "<parameter>mean </parameter> <type>double precision</type>"
758
759#. Tag: para
760#: reference_raster.xml:292
761#, no-c-format
762msgid "Arithmetic mean of all counted pixel values."
763msgstr "統計情報で使ったピクセルの値の平均。"
764
765#. Tag: term
766#: reference_raster.xml:299
767#, no-c-format
768msgid "<parameter>stddev </parameter> <type>double precision</type>"
769msgstr "<parameter>stddev </parameter> <type>double precision</type>"
770
771#. Tag: para
772#: reference_raster.xml:304
773#, no-c-format
774msgid "Standard deviation of all counted pixel values."
775msgstr "統計情報で使ったピクセルの値の標準偏差。"
776
777#. Tag: term
778#: reference_raster.xml:311
779#, no-c-format
780msgid "<parameter>min </parameter> <type>double precision</type>"
781msgstr "<parameter>min </parameter> <type>double precision</type>"
782
783#. Tag: para
784#: reference_raster.xml:316
785#, no-c-format
786msgid "Minimum value of counted pixel values."
787msgstr "統計情報で使ったピクセルの値の最小値。"
788
789#. Tag: term
790#: reference_raster.xml:323
791#, no-c-format
792msgid "<parameter>max </parameter> <type>double precision</type>"
793msgstr "<parameter>max </parameter> <type>double precision</type>"
794
795#. Tag: para
796#: reference_raster.xml:328
797#, no-c-format
798msgid "Maximum value of counted pixel values."
799msgstr "統計情報で使ったピクセルの値の最大値。"
800
801#. Tag: para
802#: reference_raster.xml:341
803#, no-c-format
804msgid ", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>"
805msgstr ", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>"
806
807#. Tag: refname
808#: reference_raster.xml:349
809#, no-c-format
810msgid "unionarg"
811msgstr "unionarg"
812
813#. Tag: refpurpose
814#: reference_raster.xml:350
815#, no-c-format
816msgid ""
817"<refpurpose>A composite type used as input into the ST_Union function "
818"defining the bands to be processed and behavior of the UNION operation.</"
819"refpurpose>"
820msgstr ""
821"<refpurpose>ST_Union関数の入力に使う複合型です。処理するバンドと結合処理の挙"
822"動を定義します。</refpurpose>"
823
824#. Tag: para
825#: reference_raster.xml:355
826#, no-c-format
827msgid ""
828"<para>A composite type used as input into the ST_Union function defining the "
829"bands to be processed and behavior of the UNION operation.</para>"
830msgstr ""
831"<para>ST_Union関数の入力に使う複合型です。処理するバンドと結合処理の挙動を定"
832"義します。</para>"
833
834#. Tag: para
835#: reference_raster.xml:365
836#, no-c-format
837msgid "1-based value indicating the band of each input raster to be processed."
838msgstr "処理する入力ラスタごとのバンドを示す1始まりの値です。"
839
840#. Tag: term
841#: reference_raster.xml:372
842#, no-c-format
843msgid "<parameter>uniontype </parameter> <type>text</type>"
844msgstr "<parameter>uniontype </parameter> <type>text</type>"
845
846#. Tag: para
847#: reference_raster.xml:377
848#, no-c-format
849msgid ""
850"Type of UNION operation. One of defined types as described in <xref linkend="
851"\"RT_ST_Union\"/>."
852msgstr ""
853"結合処理の種別。<xref linkend=\"RT_ST_Union\"/>に記述がある、定義された種別の"
854"うち一つを取ります。"
855
856#. Tag: title
857#: reference_raster.xml:399
858#, no-c-format
859msgid "Raster Management"
860msgstr "ラスタ管理"
861
862#. Tag: refname
863#: reference_raster.xml:402
864#, no-c-format
865msgid "AddRasterConstraints"
866msgstr "AddRasterConstraints"
867
868#. Tag: refpurpose
869#: reference_raster.xml:404
870#, no-c-format
871msgid ""
872"Adds raster constraints to a loaded raster table for a specific column that "
873"constrains spatial ref, scaling, blocksize, alignment, bands, band type and "
874"a flag to denote if raster column is regularly blocked. The table must be "
875"loaded with data for the constraints to be inferred. Returns true if the "
876"constraint setting was accomplished and issues a notice otherwise."
877msgstr ""
878"ロードされたラスタテーブルの特定のカラムにラスタ制約を追加します。制約には空"
879"間参照系、スケール、ブロックサイズ、アラインメント、バンド数、バンド型、ラス"
880"タカラムが規則正しいブロックかどうかを示すフラグがあります。テーブルは制約が"
881"推論されるためのデータがロードされなければなりません。制約の設定が完了すると"
882"trueを返し、問題があると通知を返します。"
883
884#. Tag: funcsynopsis
885#: reference_raster.xml:408
886#, fuzzy, no-c-format
887msgid ""
888"<funcprototype> <funcdef>boolean <function>AddRasterConstraints</function></"
889"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
890"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
891"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
892"<parameter>srid=true</parameter></paramdef> <paramdef choice=\"opt"
893"\"><type>boolean </type> <parameter>scale_x=true</parameter></paramdef> "
894"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_y=true</"
895"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
896"<parameter>blocksize_x=true</parameter></paramdef> <paramdef choice=\"opt"
897"\"><type>boolean </type> <parameter>blocksize_y=true</parameter></paramdef> "
898"<paramdef choice=\"opt\"><type>boolean </type> "
899"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
900"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
901"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
902"<parameter>num_bands=true</parameter> </paramdef> <paramdef choice=\"opt"
903"\"><type>boolean </type> <parameter>pixel_types=true</parameter> </paramdef> "
904"<paramdef choice=\"opt\"><type>boolean </type> "
905"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
906"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
907"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
908"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
909"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
910"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
911"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
912"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
913"funcprototype> <funcprototype> <funcdef>boolean "
914"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
915"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
916"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
917"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
918"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
919"funcprototype> <funcprototype> <funcdef>boolean "
920"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
921"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
922"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
923"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
924"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
925"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_x=true</"
926"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
927"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
928"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
929"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
930"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
931"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
932"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
933"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
934"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
935"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
936"<paramdef choice=\"opt\"><type>boolean </type> "
937"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
938"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
939"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
940"parameter> </paramdef> </funcprototype>"
941msgstr ""
942"<funcprototype> <funcdef>boolean <function>AddRasterConstraints</function></"
943"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
944"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
945"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></"
946"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></"
947"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></"
948"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</"
949"parameter></paramdef> <paramdef><type>boolean </type> "
950"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </"
951"type> <parameter>same_alignment</parameter></paramdef> "
952"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></"
953"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
954"<parameter>num_bands=true</parameter> </paramdef> <paramdef choice=\"opt"
955"\"><type>boolean </type> <parameter>pixel_types=true</parameter> </paramdef> "
956"<paramdef choice=\"opt\"><type>boolean </type> "
957"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
958"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
959"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
960"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
961"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
962"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
963"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
964"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
965"funcprototype> <funcprototype> <funcdef>boolean "
966"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
967"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
968"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
969"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
970"type> <parameter>VARIADIC constraints</parameter></paramdef> </"
971"funcprototype> <funcprototype> <funcdef>boolean "
972"<function>AddRasterConstraints</function></funcdef> <paramdef><type>name </"
973"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
974"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
975"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
976"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
977"<paramdef choice=\"opt\"><type>boolean </type> <parameter>scale_x=true</"
978"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
979"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
980"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
981"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
982"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
983"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
984"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
985"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
986"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
987"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
988"<paramdef choice=\"opt\"><type>boolean </type> "
989"<parameter>nodata_values=true</parameter> </paramdef> <paramdef choice=\"opt"
990"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
991"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
992"parameter> </paramdef> </funcprototype>"
993
994#. Tag: para
995#: reference_raster.xml:537
996#, no-c-format
997msgid ""
998"Generates constraints on a raster column that are used to display "
999"information in the <varname>raster_columns</varname> raster catalog. The "
1000"<varname>rastschema</varname> is the name of the table schema the table "
1001"resides in. The <varname>srid</varname> must be an integer value reference "
1002"to an entry in the SPATIAL_REF_SYS table."
1003msgstr ""
1004"ラスタカラム上に、ラスタカタログ<varname>raster_columns</varname>で情報を表示"
1005"するために使われる制約を生成します。<varname>rastschema</varname>は、テーブル"
1006"があるテーブルスキーマの名前です。<varname>srid</varname>はSPATIAL_REF_SYS"
1007"テーブル内のエントリを参照する整数でなければなりません。"
1008
1009#. Tag: para
1010#: reference_raster.xml:542
1011#, no-c-format
1012msgid ""
1013"<varname>raster2pgsql</varname> loader uses this function to register raster "
1014"tables"
1015msgstr ""
1016"<varname>raster2pgsql</varname>はこの関数を使ってラスタテーブルを登録します。"
1017
1018#. Tag: para
1019#: reference_raster.xml:543
1020#, no-c-format
1021msgid ""
1022"Valid constraint names to pass in: refer to <xref linkend=\"RT_Raster_Columns"
1023"\"/> for more details."
1024msgstr ""
1025"渡すのに妥当な制約名は次の通りです。詳細情報については<xref linkend="
1026"\"RT_Raster_Columns\"/>を参照して下さい。"
1027
1028#. Tag: para
1029#: reference_raster.xml:545
1030#, no-c-format
1031msgid "<varname>blocksize</varname> sets both X and Y blocksize"
1032msgstr "<varname>blocksize</varname> ブロックのXとY両方のサイズを指定します"
1033
1034#. Tag: para
1035#: reference_raster.xml:546
1036#, no-c-format
1037msgid ""
1038"<varname>blocksize_x</varname> sets X tile (width in pixels of each tile)"
1039msgstr ""
1040"<varname>blocksize_x</varname> Xタイル(タイル毎のピクセル幅)を設定します"
1041
1042#. Tag: para
1043#: reference_raster.xml:547
1044#, no-c-format
1045msgid ""
1046"<varname>blocksize_y</varname> sets Y tile (height in pixels of each tile)"
1047msgstr ""
1048"<varname>blocksize_y</varname> Yタイル(タイル毎のピクセル幅)を設定します"
1049
1050#. Tag: para
1051#: reference_raster.xml:548
1052#, no-c-format
1053msgid ""
1054"<varname>extent</varname> computes extent of whole table and applys "
1055"constraint all rasters must be within that extent"
1056msgstr ""
1057"<varname>extent</varname> テーブル全体の範囲を計算し、全てのラスタがこの範囲"
1058"内にある制約を適用します"
1059
1060#. Tag: para
1061#: reference_raster.xml:550
1062#, no-c-format
1063msgid "<varname>num_bands</varname> number of bands"
1064msgstr "<varname>num_bands</varname> バンド数"
1065
1066#. Tag: para
1067#: reference_raster.xml:551
1068#, no-c-format
1069msgid ""
1070"<varname>pixel_types</varname> reads array of pixel types for each band "
1071"ensure all band n have same pixel type"
1072msgstr ""
1073"<varname>pixel_types</varname> バンドごとにピクセルタイプを読み、全てのバンド"
1074"が同じピクセルタイプであることを確認します。"
1075
1076#. Tag: para
1077#: reference_raster.xml:552
1078#, no-c-format
1079msgid ""
1080"<varname>regular_blocking</varname> sets spatially unique (no two rasters "
1081"can be spatially the same) and coverage tile (raster is aligned to a "
1082"coverage) constraints"
1083msgstr ""
1084"<varname>regular_blocking</varname> 空間的に一意 (二つのラスタが空間的に同じ"
1085"にならない)であり、カバレッジタイル (ラスタがカバレッジに整列する)制約である"
1086"ようにします。"
1087
1088#. Tag: para
1089#: reference_raster.xml:553
1090#, no-c-format
1091msgid ""
1092"<varname>same_alignment</varname> ensures they all have same alignment "
1093"meaning any two tiles you compare will return true for. Refer to <xref "
1094"linkend=\"RT_ST_SameAlignment\"/>."
1095msgstr ""
1096"<varname>same_alignment</varname> 同じアラインメントを持つようにします。任意"
1097"の2タイルについて比較するとtrueを返すという意味です。<xref linkend="
1098"\"RT_ST_SameAlignment\"/>を参照して下さい。"
1099
1100#. Tag: para
1101#: reference_raster.xml:554
1102#, no-c-format
1103msgid "<varname>srid</varname> ensures all have same srid"
1104msgstr ""
1105"<varname>srid</varname> 全て同じSRIDを持っていることを確認するためのもので"
1106"す。"
1107
1108#. Tag: para
1109#: reference_raster.xml:555
1110#, no-c-format
1111msgid "More -- any listed as inputs into the above functions"
1112msgstr "その他 -- 上の関数への入力で一覧が挙げられています。"
1113
1114#. Tag: para
1115#: reference_raster.xml:558
1116#, no-c-format
1117msgid ""
1118"This function infers the constraints from the data already present in the "
1119"table. As such for it to work, you must create the raster column first and "
1120"then load it with data."
1121msgstr ""
1122"この関数はテーブル内に存在するデータから制約を推論します。動作させるには、ま"
1123"ずラスタカラムを生成し、その後にデータをロードする必要があります。"
1124
1125#. Tag: para
1126#: reference_raster.xml:563
1127#, no-c-format
1128msgid ""
1129"If you need to load more data in your tables after you have already applied "
1130"constraints, you may want to run the DropRasterConstraints if the extent of "
1131"your data has changed."
1132msgstr ""
1133"制約を適用した後にデータをさらにロードする必要がある場合には、データ範囲が変"
1134"わるならDropRasterConstraintsを使います。"
1135
1136#. Tag: para
1137#: reference_raster.xml:567 reference_raster.xml:716 reference_raster.xml:792
1138#: reference_raster.xml:858 reference_raster.xml:1526 reference_raster.xml:1964
1139#: reference_raster.xml:3014 reference_raster.xml:3241
1140#: reference_raster.xml:3284 reference_raster.xml:3345
1141#: reference_raster.xml:5038 reference_raster.xml:5209
1142#: reference_raster.xml:5404 reference_raster.xml:5508
1143#: reference_raster.xml:5578 reference_raster.xml:5800
1144#: reference_raster.xml:6438 reference_raster.xml:7704
1145#: reference_raster.xml:7903 reference_raster.xml:8167
1146#: reference_raster.xml:8286 reference_raster.xml:8415
1147#: reference_raster.xml:8513 reference_raster.xml:8601
1148#: reference_raster.xml:8685 reference_raster.xml:8824
1149#: reference_raster.xml:8899 reference_raster.xml:8986
1150#: reference_raster.xml:9109 reference_raster.xml:9180
1151#: reference_raster.xml:9255 reference_raster.xml:9341
1152#: reference_raster.xml:9437 reference_raster.xml:9565
1153#: reference_raster.xml:10029 reference_raster.xml:10280
1154#: reference_raster.xml:10352 reference_raster.xml:11171
1155#, no-c-format
1156msgid "Availability: 2.0.0"
1157msgstr "Availability: 2.0.0"
1158
1159#. Tag: title
1160#: reference_raster.xml:571
1161#, no-c-format
1162msgid "Examples: Apply all possible constraints on column based on data"
1163msgstr "例: カラムに対して全てのありえる制約をデータに基づいて適用する"
1164
1165#. Tag: programlisting
1166#: reference_raster.xml:573
1167#, no-c-format
1168msgid ""
1169"CREATE TABLE myrasters(rid SERIAL primary key, rast raster);\n"
1170"INSERT INTO myrasters(rast)\n"
1171"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
1172"0,4326), 1, '8BSI'::text, -129, NULL);\n"
1173"\n"
1174"SELECT AddRasterConstraints('myrasters'::name, 'rast'::name);\n"
1175"\n"
1176"\n"
1177"-- verify if registered correctly in the raster_columns view --\n"
1178"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
1179"pixel_types, nodata_values\n"
1180"        FROM raster_columns\n"
1181"        WHERE r_table_name = 'myrasters';\n"
1182"\n"
1183" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
1184"pixel_types| nodata_values\n"
1185"------+---------+---------+-------------+-------------+-----------"
1186"+-------------+---------------\n"
1187" 4326 |       2 |       2 |        1000 |        1000 |         1 | "
1188"{8BSI}      | {0}"
1189msgstr ""
1190"CREATE TABLE myrasters(rid SERIAL primary key, rast raster);\n"
1191"INSERT INTO myrasters(rast)\n"
1192"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
1193"0,4326), 1, '8BSI'::text, -129, NULL);\n"
1194"\n"
1195"SELECT AddRasterConstraints('myrasters'::name, 'rast'::name);\n"
1196"\n"
1197"\n"
1198"-- verify if registered correctly in the raster_columns view --\n"
1199"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
1200"pixel_types, nodata_values\n"
1201"        FROM raster_columns\n"
1202"        WHERE r_table_name = 'myrasters';\n"
1203"\n"
1204" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
1205"pixel_types| nodata_values\n"
1206"------+---------+---------+-------------+-------------+-----------"
1207"+-------------+---------------\n"
1208" 4326 |       2 |       2 |        1000 |        1000 |         1 | "
1209"{8BSI}      | {0}"
1210
1211#. Tag: title
1212#: reference_raster.xml:577
1213#, no-c-format
1214msgid "Examples: Apply single constraint"
1215msgstr "例: 単一の制約を適用する"
1216
1217#. Tag: programlisting
1218#: reference_raster.xml:579
1219#, no-c-format
1220msgid ""
1221"CREATE TABLE public.myrasters2(rid SERIAL primary key, rast raster);\n"
1222"INSERT INTO myrasters2(rast)\n"
1223"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
1224"0,4326), 1, '8BSI'::text, -129, NULL);\n"
1225"\n"
1226"SELECT AddRasterConstraints('public'::name, 'myrasters2'::name, 'rast'::"
1227"name,'regular_blocking', 'blocksize');\n"
1228"-- get notice--\n"
1229"NOTICE:  Adding regular blocking constraint\n"
1230"NOTICE:  Adding blocksize-X constraint\n"
1231"NOTICE:  Adding blocksize-Y constraint"
1232msgstr ""
1233"CREATE TABLE public.myrasters2(rid SERIAL primary key, rast raster);\n"
1234"INSERT INTO myrasters2(rast)\n"
1235"SELECT ST_AddBand(ST_MakeEmptyRaster(1000, 1000, 0.3, -0.3, 2, 2, 0, "
1236"0,4326), 1, '8BSI'::text, -129, NULL);\n"
1237"\n"
1238"SELECT AddRasterConstraints('public'::name, 'myrasters2'::name, 'rast'::"
1239"name,'regular_blocking', 'blocksize');\n"
1240"-- 通知が出ます --\n"
1241"NOTICE:  Adding regular blocking constraint\n"
1242"NOTICE:  Adding blocksize-X constraint\n"
1243"NOTICE:  Adding blocksize-Y constraint"
1244
1245#. Tag: para
1246#: reference_raster.xml:585
1247#, no-c-format
1248msgid ""
1249", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_MakeEmptyRaster\"/"
1250">, <xref linkend=\"RT_DropRasterConstraints\"/>, <xref linkend="
1251"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_SRID\"/>"
1252msgstr ""
1253", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_MakeEmptyRaster\"/"
1254">, <xref linkend=\"RT_DropRasterConstraints\"/>, <xref linkend="
1255"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_SRID\"/>"
1256
1257#. Tag: refname
1258#: reference_raster.xml:591
1259#, no-c-format
1260msgid "DropRasterConstraints"
1261msgstr "DropRasterConstraints"
1262
1263#. Tag: refpurpose
1264#: reference_raster.xml:593
1265#, no-c-format
1266msgid ""
1267"Drops PostGIS raster constraints that refer to a raster table column. Useful "
1268"if you need to reload data or update your raster column data."
1269msgstr ""
1270"ラスタテーブルカラムを参照するPostGISラスタ制約を削除します。データの再読み込"
1271"みやラスタカラムデータの更新の際に使えます。"
1272
1273#. Tag: funcsynopsis
1274#: reference_raster.xml:597
1275#, no-c-format
1276msgid ""
1277"<funcprototype> <funcdef>boolean <function>DropRasterConstraints</function></"
1278"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
1279"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
1280"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></"
1281"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></"
1282"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></"
1283"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</"
1284"parameter></paramdef> <paramdef><type>boolean </type> "
1285"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </"
1286"type> <parameter>same_alignment</parameter></paramdef> "
1287"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></"
1288"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1289"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
1290"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
1291"<paramdef choice=\"opt\"><type>boolean </type> "
1292"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
1293"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
1294"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
1295"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1296"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
1297"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
1298"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
1299"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
1300"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
1301"<paramdef><type>boolean </type> <parameter>scale_x=true</parameter></"
1302"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1303"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
1304"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
1305"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
1306"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1307"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
1308"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
1309"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1310"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
1311"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
1312"<paramdef choice=\"opt\"><type>boolean </type> "
1313"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
1314"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
1315"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
1316"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1317"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
1318"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
1319"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
1320"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
1321"type> <parameter>constraints</parameter></paramdef> </funcprototype>"
1322msgstr ""
1323"<funcprototype> <funcdef>boolean <function>DropRasterConstraints</function></"
1324"funcdef> <paramdef><type>name </type> <parameter>rasttable</parameter></"
1325"paramdef> <paramdef><type>name </type> <parameter>rastcolumn</parameter></"
1326"paramdef> <paramdef><type>boolean </type> <parameter>srid</parameter></"
1327"paramdef> <paramdef><type>boolean </type> <parameter>scale_x</parameter></"
1328"paramdef> <paramdef><type>boolean </type> <parameter>scale_y</parameter></"
1329"paramdef> <paramdef><type>boolean </type> <parameter>blocksize_x</"
1330"parameter></paramdef> <paramdef><type>boolean </type> "
1331"<parameter>blocksize_y</parameter></paramdef> <paramdef><type>boolean </"
1332"type> <parameter>same_alignment</parameter></paramdef> "
1333"<paramdef><type>boolean </type> <parameter>regular_blocking</parameter></"
1334"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1335"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
1336"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
1337"<paramdef choice=\"opt\"><type>boolean </type> "
1338"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
1339"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
1340"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
1341"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1342"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
1343"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
1344"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
1345"type> <parameter>rastcolumn</parameter></paramdef> <paramdef choice=\"opt"
1346"\"><type>boolean </type> <parameter>srid=true</parameter></paramdef> "
1347"<paramdef><type>boolean </type> <parameter>scale_x=true</parameter></"
1348"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1349"<parameter>scale_y=true</parameter></paramdef> <paramdef choice=\"opt"
1350"\"><type>boolean </type> <parameter>blocksize_x=true</parameter></paramdef> "
1351"<paramdef choice=\"opt\"><type>boolean </type> <parameter>blocksize_y=true</"
1352"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1353"<parameter>same_alignment=true</parameter></paramdef> <paramdef choice=\"opt"
1354"\"><type>boolean </type> <parameter>regular_blocking=false</parameter></"
1355"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
1356"<parameter>num_bands=true</parameter></paramdef> <paramdef choice=\"opt"
1357"\"><type>boolean </type> <parameter>pixel_types=true</parameter></paramdef> "
1358"<paramdef choice=\"opt\"><type>boolean </type> "
1359"<parameter>nodata_values=true</parameter></paramdef> <paramdef choice=\"opt"
1360"\"><type>boolean </type> <parameter>out_db=true</parameter> </paramdef> "
1361"<paramdef choice=\"opt\"><type>boolean </type> <parameter>extent=true</"
1362"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1363"<function>DropRasterConstraints</function></funcdef> <paramdef><type>name </"
1364"type> <parameter>rastschema</parameter></paramdef> <paramdef><type>name </"
1365"type> <parameter>rasttable</parameter></paramdef> <paramdef><type>name </"
1366"type> <parameter>rastcolumn</parameter></paramdef> <paramdef><type>text[] </"
1367"type> <parameter>constraints</parameter></paramdef> </funcprototype>"
1368
1369#. Tag: para
1370#: reference_raster.xml:710
1371#, no-c-format
1372msgid ""
1373"Drops PostGIS raster constraints that refer to a raster table column that "
1374"were added by <xref linkend=\"RT_AddRasterConstraints\"/>. Useful if you "
1375"need to load more data or update your raster column data. You do not need to "
1376"do this if you want to get rid of a raster table or a raster column."
1377msgstr ""
1378"<xref linkend=\"RT_AddRasterConstraints\"/>で追加された、ラスタテーブルカラム"
1379"を参照するPostGISラスタ制約を削除します。データの追加ロードやラスタカラムデー"
1380"タの更新で使えます。ラスタテーブルまたはラスタカラムのridを取得したい場合には"
1381"使う必要がありません。"
1382
1383#. Tag: para
1384#: reference_raster.xml:712
1385#, no-c-format
1386msgid "To drop a raster table use the standard"
1387msgstr "ラスタテーブルを削除するには、次の標準的なSQLを使います。"
1388
1389#. Tag: programlisting
1390#: reference_raster.xml:712
1391#, no-c-format
1392msgid "DROP TABLE mytable"
1393msgstr "DROP TABLE mytable"
1394
1395#. Tag: para
1396#: reference_raster.xml:713
1397#, no-c-format
1398msgid ""
1399"To drop just a raster column and leave the rest of the table, use standard "
1400"SQL"
1401msgstr ""
1402"ラスタカラムを削除してテーブルの残りのカラムを置いておくには、次の標準的なSQL"
1403"を使います。"
1404
1405#. Tag: programlisting
1406#: reference_raster.xml:713
1407#, no-c-format
1408msgid "ALTER TABLE mytable DROP COLUMN rast"
1409msgstr "ALTER TABLE mytable DROP COLUMN rast"
1410
1411#. Tag: para
1412#: reference_raster.xml:714
1413#, no-c-format
1414msgid ""
1415"the table will disappear from the <varname>raster_columns</varname> catalog "
1416"if the column or table is dropped. However if only the constraints are "
1417"dropped, the raster column will still be listed in the "
1418"<varname>raster_columns</varname> catalog, but there will be no other "
1419"information about it aside from the column name and table."
1420msgstr ""
1421"カラムまたはテーブルが削除されると、テーブルは<varname>raster_columns</"
1422"varname>カタログから見えなくなります。しかしながら、制約だけが削除されたの"
1423"で、ラスタカラムはなお<varname>raster_columns</varname>カタログに残ります。た"
1424"だし、カラム名とテーブルからの内部に関する他の情報は存在しません。"
1425
1426#. Tag: title
1427#: reference_raster.xml:719 reference_raster.xml:796 reference_raster.xml:893
1428#: reference_raster.xml:929 reference_raster.xml:967 reference_raster.xml:1530
1429#: reference_raster.xml:1676 reference_raster.xml:1750
1430#: reference_raster.xml:1851 reference_raster.xml:1899
1431#: reference_raster.xml:1932 reference_raster.xml:1968
1432#: reference_raster.xml:2011 reference_raster.xml:2047
1433#: reference_raster.xml:2081 reference_raster.xml:2221
1434#: reference_raster.xml:2259 reference_raster.xml:2302
1435#: reference_raster.xml:2361 reference_raster.xml:2415
1436#: reference_raster.xml:2453 reference_raster.xml:2488
1437#: reference_raster.xml:2524 reference_raster.xml:2560
1438#: reference_raster.xml:2596 reference_raster.xml:2633
1439#: reference_raster.xml:2667 reference_raster.xml:2701
1440#: reference_raster.xml:2752 reference_raster.xml:2809
1441#: reference_raster.xml:2864 reference_raster.xml:2970
1442#: reference_raster.xml:3025 reference_raster.xml:3063
1443#: reference_raster.xml:3103 reference_raster.xml:3138
1444#: reference_raster.xml:3208 reference_raster.xml:3245
1445#: reference_raster.xml:3289 reference_raster.xml:3351
1446#: reference_raster.xml:3394 reference_raster.xml:3449
1447#: reference_raster.xml:3492 reference_raster.xml:3547
1448#: reference_raster.xml:3614 reference_raster.xml:3708
1449#: reference_raster.xml:3800 reference_raster.xml:3875
1450#: reference_raster.xml:4088 reference_raster.xml:4184
1451#: reference_raster.xml:4247 reference_raster.xml:4281
1452#: reference_raster.xml:4329 reference_raster.xml:4372
1453#: reference_raster.xml:4453 reference_raster.xml:4546
1454#: reference_raster.xml:4610 reference_raster.xml:4678
1455#: reference_raster.xml:4756 reference_raster.xml:4833
1456#: reference_raster.xml:4912 reference_raster.xml:5001
1457#: reference_raster.xml:5042 reference_raster.xml:5097
1458#: reference_raster.xml:5150 reference_raster.xml:5220
1459#: reference_raster.xml:5282 reference_raster.xml:5512
1460#: reference_raster.xml:5661 reference_raster.xml:5804
1461#: reference_raster.xml:5847 reference_raster.xml:5890
1462#: reference_raster.xml:5955 reference_raster.xml:6003
1463#: reference_raster.xml:6262 reference_raster.xml:6703
1464#: reference_raster.xml:7708 reference_raster.xml:8171
1465#: reference_raster.xml:8419 reference_raster.xml:8690
1466#: reference_raster.xml:8762 reference_raster.xml:8829
1467#: reference_raster.xml:8991 reference_raster.xml:9047
1468#: reference_raster.xml:9114 reference_raster.xml:9185
1469#: reference_raster.xml:9260 reference_raster.xml:9495
1470#: reference_raster.xml:9628 reference_raster.xml:9679
1471#: reference_raster.xml:9728 reference_raster.xml:9771
1472#: reference_raster.xml:9827 reference_raster.xml:9872
1473#: reference_raster.xml:9916 reference_raster.xml:9955
1474#: reference_raster.xml:10033 reference_raster.xml:10077
1475#: reference_raster.xml:10122 reference_raster.xml:10285
1476#: reference_raster.xml:10441 reference_raster.xml:10528
1477#: reference_raster.xml:10609 reference_raster.xml:10690
1478#: reference_raster.xml:10771 reference_raster.xml:10903
1479#: reference_raster.xml:10984 reference_raster.xml:11064
1480#: reference_raster.xml:11221 reference_raster.xml:11308
1481#: reference_raster.xml:11403 reference_raster.xml:11496
1482#, no-c-format
1483msgid "Examples"
1484msgstr "例"
1485
1486#. Tag: programlisting
1487#: reference_raster.xml:721
1488#, no-c-format
1489msgid ""
1490"SELECT DropRasterConstraints ('myrasters','rast');\n"
1491"----RESULT output ---\n"
1492"t\n"
1493"\n"
1494"-- verify change in raster_columns --\n"
1495"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
1496"pixel_types, nodata_values\n"
1497"        FROM raster_columns\n"
1498"        WHERE r_table_name = 'myrasters';\n"
1499"\n"
1500" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
1501"pixel_types| nodata_values\n"
1502"------+---------+---------+-------------+-------------+-----------"
1503"+-------------+---------------\n"
1504"    0 |         |         |             |             |           "
1505"|             |"
1506msgstr ""
1507"SELECT DropRasterConstraints ('myrasters','rast');\n"
1508"-- 結果出力 --\n"
1509"t\n"
1510"\n"
1511"-- raster_columnsで変更を確認します --\n"
1512"SELECT srid, scale_x, scale_y, blocksize_x, blocksize_y, num_bands, "
1513"pixel_types, nodata_values\n"
1514"        FROM raster_columns\n"
1515"        WHERE r_table_name = 'myrasters';\n"
1516"\n"
1517" srid | scale_x | scale_y | blocksize_x | blocksize_y | num_bands | "
1518"pixel_types| nodata_values\n"
1519"------+---------+---------+-------------+-------------+-----------"
1520"+-------------+---------------\n"
1521"    0 |         |         |             |             |           "
1522"|             |"
1523
1524#. Tag: refname
1525#: reference_raster.xml:732
1526#, no-c-format
1527msgid "AddOverviewConstraints"
1528msgstr "AddOverviewConstraints"
1529
1530#. Tag: refpurpose
1531#: reference_raster.xml:734
1532#, no-c-format
1533msgid "Tag a raster column as being an overview of another."
1534msgstr "ラスタカラムに対して、他のオーバビューであることをタグ付けします。"
1535
1536#. Tag: funcsynopsis
1537#: reference_raster.xml:738
1538#, no-c-format
1539msgid ""
1540"<funcprototype> <funcdef>boolean <function>AddOverviewConstraints</"
1541"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
1542"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
1543"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
1544"parameter></paramdef> <paramdef><type>name </type> <parameter>refschema</"
1545"parameter></paramdef> <paramdef><type>name </type> <parameter>reftable</"
1546"parameter></paramdef> <paramdef><type>name </type> <parameter>refcolumn</"
1547"parameter></paramdef> <paramdef><type>int </type> <parameter>ovfactor</"
1548"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1549"<function>AddOverviewConstraints</function></funcdef> <paramdef><type>name </"
1550"type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </type> "
1551"<parameter>ovcolumn</parameter></paramdef> <paramdef><type>name </type> "
1552"<parameter>reftable</parameter></paramdef> <paramdef><type>name </type> "
1553"<parameter>refcolumn</parameter></paramdef> <paramdef><type>int </type> "
1554"<parameter>ovfactor</parameter></paramdef> </funcprototype>"
1555msgstr ""
1556"<funcprototype> <funcdef>boolean <function>AddOverviewConstraints</"
1557"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
1558"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
1559"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
1560"parameter></paramdef> <paramdef><type>name </type> <parameter>refschema</"
1561"parameter></paramdef> <paramdef><type>name </type> <parameter>reftable</"
1562"parameter></paramdef> <paramdef><type>name </type> <parameter>refcolumn</"
1563"parameter></paramdef> <paramdef><type>int </type> <parameter>ovfactor</"
1564"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1565"<function>AddOverviewConstraints</function></funcdef> <paramdef><type>name </"
1566"type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </type> "
1567"<parameter>ovcolumn</parameter></paramdef> <paramdef><type>name </type> "
1568"<parameter>reftable</parameter></paramdef> <paramdef><type>name </type> "
1569"<parameter>refcolumn</parameter></paramdef> <paramdef><type>int </type> "
1570"<parameter>ovfactor</parameter></paramdef> </funcprototype>"
1571
1572#. Tag: para
1573#: reference_raster.xml:778
1574#, no-c-format
1575msgid ""
1576"Adds constraints on a raster column that are used to display information in "
1577"the <varname>raster_overviews</varname> raster catalog."
1578msgstr ""
1579"<varname>raster_overviews</varname>ラスタカタログ内の情報を表示するために使わ"
1580"れるラスタカラムに制約を追加します。"
1581
1582#. Tag: para
1583#: reference_raster.xml:782
1584#, no-c-format
1585msgid ""
1586"The <varname>ovfactor</varname> parameter represents the scale multiplier in "
1587"the overview column: higher overview factors have lower resolution."
1588msgstr ""
1589"<varname>ovfactor</varname>引数は、オーバビューカラムの縮尺乗数を示します。縮"
1590"尺乗数は大きいほど低い解像度になります。"
1591
1592#. Tag: para
1593#: reference_raster.xml:786
1594#, no-c-format
1595msgid ""
1596"When the <varname>ovschema</varname> and <varname>refschema</varname> "
1597"parameters are omitted, the first table found scanning the "
1598"<varname>search_path</varname> will be used."
1599msgstr ""
1600"<varname>ovschema</varname>と<varname>refschema</varname>が省略されると、"
1601"<varname>search_path</varname>を走査して発見した最初のテーブルを使います。"
1602
1603#. Tag: programlisting
1604#: reference_raster.xml:798
1605#, no-c-format
1606msgid ""
1607"CREATE TABLE res1 AS SELECT\n"
1608"ST_AddBand(\n"
1609"  ST_MakeEmptyRaster(1000, 1000, 0, 0, 2),\n"
1610"  1, '8BSI'::text, -129, NULL\n"
1611") r1;\n"
1612"\n"
1613"CREATE TABLE res2 AS SELECT\n"
1614"ST_AddBand(\n"
1615"  ST_MakeEmptyRaster(500, 500, 0, 0, 4),\n"
1616"  1, '8BSI'::text, -129, NULL\n"
1617") r2;\n"
1618"\n"
1619"SELECT AddOverviewConstraints('res2', 'r2', 'res1', 'r1', 2);\n"
1620"\n"
1621"-- verify if registered correctly in the raster_overviews view --\n"
1622"SELECT o_table_name ot, o_raster_column oc,\n"
1623"       r_table_name rt, r_raster_column rc,\n"
1624"       overview_factor f\n"
1625"FROM raster_overviews WHERE o_table_name = 'res2';\n"
1626"  ot  | oc |  rt  | rc | f\n"
1627"------+----+------+----+---\n"
1628" res2 | r2 | res1 | r1 | 2\n"
1629"(1 row)"
1630msgstr ""
1631"CREATE TABLE res1 AS SELECT\n"
1632"ST_AddBand(\n"
1633"  ST_MakeEmptyRaster(1000, 1000, 0, 0, 2),\n"
1634"  1, '8BSI'::text, -129, NULL\n"
1635") r1;\n"
1636"\n"
1637"CREATE TABLE res2 AS SELECT\n"
1638"ST_AddBand(\n"
1639"  ST_MakeEmptyRaster(500, 500, 0, 0, 4),\n"
1640"  1, '8BSI'::text, -129, NULL\n"
1641") r2;\n"
1642"\n"
1643"SELECT AddOverviewConstraints('res2', 'r2', 'res1', 'r1', 2);\n"
1644"\n"
1645"-- raster_overviewsビューに正しく登録されたか確認します --\n"
1646"SELECT o_table_name ot, o_raster_column oc,\n"
1647"       r_table_name rt, r_raster_column rc,\n"
1648"       overview_factor f\n"
1649"FROM raster_overviews WHERE o_table_name = 'res2';\n"
1650"  ot  | oc |  rt  | rc | f\n"
1651"------+----+------+----+---\n"
1652" res2 | r2 | res1 | r1 | 2\n"
1653"(1 row)"
1654
1655#. Tag: para
1656#: reference_raster.xml:804
1657#, no-c-format
1658msgid ""
1659", <xref linkend=\"RT_DropOverviewConstraints\"/>, <xref linkend="
1660"\"RT_CreateOverview\"/>, <xref linkend=\"RT_AddRasterConstraints\"/>"
1661msgstr ""
1662", <xref linkend=\"RT_DropOverviewConstraints\"/>, <xref linkend="
1663"\"RT_CreateOverview\"/>, <xref linkend=\"RT_AddRasterConstraints\"/>"
1664
1665#. Tag: refname
1666#: reference_raster.xml:815
1667#, no-c-format
1668msgid "DropOverviewConstraints"
1669msgstr "DropOverviewConstraints"
1670
1671#. Tag: refpurpose
1672#: reference_raster.xml:817
1673#, no-c-format
1674msgid "Untag a raster column from being an overview of another."
1675msgstr ""
1676"ラスタカラムに対して他のオーバビューであることをタグ付けしているのを解除しま"
1677"す。"
1678
1679#. Tag: funcsynopsis
1680#: reference_raster.xml:821
1681#, no-c-format
1682msgid ""
1683"<funcprototype> <funcdef>boolean <function>DropOverviewConstraints</"
1684"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
1685"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
1686"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
1687"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1688"<function>DropOverviewConstraints</function></funcdef> <paramdef><type>name "
1689"</type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </"
1690"type> <parameter>ovcolumn</parameter></paramdef> </funcprototype>"
1691msgstr ""
1692"<funcprototype> <funcdef>boolean <function>DropOverviewConstraints</"
1693"function></funcdef> <paramdef><type>name </type> <parameter>ovschema</"
1694"parameter></paramdef> <paramdef><type>name </type> <parameter>ovtable</"
1695"parameter></paramdef> <paramdef><type>name </type> <parameter>ovcolumn</"
1696"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
1697"<function>DropOverviewConstraints</function></funcdef> <paramdef><type>name "
1698"</type> <parameter>ovtable</parameter></paramdef> <paramdef><type>name </"
1699"type> <parameter>ovcolumn</parameter></paramdef> </funcprototype>"
1700
1701#. Tag: para
1702#: reference_raster.xml:847
1703#, no-c-format
1704msgid ""
1705"Remove from a raster column the constraints used to show it as being an "
1706"overview of another in the <varname>raster_overviews</varname> raster "
1707"catalog."
1708msgstr ""
1709"ラスタカラムから、<varname>raster_overviews</varname>ラスタカタログ内にある、"
1710"他のラスタのオーバビューであるこをと示すために使われる制約を削除します。"
1711
1712#. Tag: para
1713#: reference_raster.xml:852
1714#, no-c-format
1715msgid ""
1716"When the <varname>ovschema</varname> parameter is omitted, the first table "
1717"found scanning the <varname>search_path</varname> will be used."
1718msgstr ""
1719"<varname>ovschema</varname>が省略されると、<varname>search_path</varname>を走"
1720"査して発見した最初のテーブルを使います。"
1721
1722#. Tag: para
1723#: reference_raster.xml:864
1724#, no-c-format
1725msgid ""
1726", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
1727"\"RT_DropRasterConstraints\"/>"
1728msgstr ""
1729", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
1730"\"RT_DropRasterConstraints\"/>"
1731
1732#. Tag: refname
1733#: reference_raster.xml:874
1734#, no-c-format
1735msgid "PostGIS_GDAL_Version"
1736msgstr "PostGIS_GDAL_Version"
1737
1738#. Tag: refpurpose
1739#: reference_raster.xml:875
1740#, no-c-format
1741msgid "Reports the version of the GDAL library in use by PostGIS."
1742msgstr "PostGISで使っているGDALライブラリの版を報告します。"
1743
1744#. Tag: funcprototype
1745#: reference_raster.xml:880
1746#, no-c-format
1747msgid ""
1748"<funcdef>text <function>PostGIS_GDAL_Version</function></funcdef> "
1749"<paramdef></paramdef>"
1750msgstr ""
1751"<funcdef>text <function>PostGIS_GDAL_Version</function></funcdef> "
1752"<paramdef></paramdef>"
1753
1754#. Tag: para
1755#: reference_raster.xml:889
1756#, no-c-format
1757msgid ""
1758"Reports the version of the GDAL library in use by PostGIS. Will also check "
1759"and report if GDAL can find its data files."
1760msgstr ""
1761"PostGISで使っているGDALライブラリの版を報告します。GDALがデータファイルを発見"
1762"できるかについてもチェックして、報告します。"
1763
1764#. Tag: programlisting
1765#: reference_raster.xml:894
1766#, no-c-format
1767msgid ""
1768"SELECT PostGIS_GDAL_Version();\n"
1769"       postgis_gdal_version\n"
1770"-----------------------------------\n"
1771" GDAL 1.11dev, released 2013/04/13"
1772msgstr ""
1773"SELECT PostGIS_GDAL_Version();\n"
1774"       postgis_gdal_version\n"
1775"-----------------------------------\n"
1776" GDAL 1.11dev, released 2013/04/13"
1777
1778#. Tag: refname
1779#: reference_raster.xml:907
1780#, no-c-format
1781msgid "PostGIS_Raster_Lib_Build_Date"
1782msgstr "PostGIS_Raster_Lib_Build_Date"
1783
1784#. Tag: refpurpose
1785#: reference_raster.xml:909
1786#, no-c-format
1787msgid "Reports full raster library build date."
1788msgstr "完全なラスタライブラリをビルドした日付を報告します。"
1789
1790#. Tag: funcprototype
1791#: reference_raster.xml:914
1792#, no-c-format
1793msgid ""
1794"<funcdef>text <function>PostGIS_Raster_Lib_Build_Date</function></funcdef> "
1795"<paramdef></paramdef>"
1796msgstr ""
1797"<funcdef>text <function>PostGIS_Raster_Lib_Build_Date</function></funcdef> "
1798"<paramdef></paramdef>"
1799
1800#. Tag: para
1801#: reference_raster.xml:925
1802#, no-c-format
1803msgid "Reports raster build date"
1804msgstr "ラスタをビルドした日付を報告します。"
1805
1806#. Tag: programlisting
1807#: reference_raster.xml:931
1808#, no-c-format
1809msgid ""
1810"SELECT PostGIS_Raster_Lib_Build_Date();\n"
1811"postgis_raster_lib_build_date\n"
1812"-----------------------------\n"
1813"2010-04-28 21:15:10"
1814msgstr ""
1815"SELECT PostGIS_Raster_Lib_Build_Date();\n"
1816"postgis_raster_lib_build_date\n"
1817"-----------------------------\n"
1818"2010-04-28 21:15:10"
1819
1820#. Tag: refname
1821#: reference_raster.xml:943
1822#, no-c-format
1823msgid "PostGIS_Raster_Lib_Version"
1824msgstr "PostGIS_Raster_Lib_Version"
1825
1826#. Tag: refpurpose
1827#: reference_raster.xml:945
1828#, no-c-format
1829msgid ""
1830"<refpurpose>Reports full raster version and build configuration infos.</"
1831"refpurpose>"
1832msgstr ""
1833"<refpurpose>完全なラスタの版とビルドコンフィギュレーション情報を報告します。"
1834"</refpurpose>"
1835
1836#. Tag: funcprototype
1837#: reference_raster.xml:951
1838#, no-c-format
1839msgid ""
1840"<funcdef>text <function>PostGIS_Raster_Lib_Version</function></funcdef> "
1841"<paramdef></paramdef>"
1842msgstr ""
1843"<funcdef>text <function>PostGIS_Raster_Lib_Version</function></funcdef> "
1844"<paramdef></paramdef>"
1845
1846#. Tag: para
1847#: reference_raster.xml:962
1848#, no-c-format
1849msgid "<para>Reports full raster version and build configuration infos.</para>"
1850msgstr ""
1851"<para>完全なラスタの版とビルドコンフィギュレーション情報を報告します。</para>"
1852
1853#. Tag: programlisting
1854#: reference_raster.xml:969
1855#, no-c-format
1856msgid ""
1857"SELECT PostGIS_Raster_Lib_Version();\n"
1858"postgis_raster_lib_version\n"
1859"-----------------------------\n"
1860" 2.0.0"
1861msgstr ""
1862"SELECT PostGIS_Raster_Lib_Version();\n"
1863"postgis_raster_lib_version\n"
1864"-----------------------------\n"
1865" 2.0.0"
1866
1867#. Tag: refname
1868#: reference_raster.xml:983
1869#, no-c-format
1870msgid "ST_GDALDrivers"
1871msgstr "ST_GDALDrivers"
1872
1873#. Tag: refpurpose
1874#: reference_raster.xml:985
1875#, no-c-format
1876msgid ""
1877"Returns a list of raster formats supported by PostGIS through GDAL. Only "
1878"those formats with can_write=True can be used by ST_AsGDALRaster"
1879msgstr ""
1880"使用しているGDALライブラリが対応するラスタ書式の一覧を返します。この一覧で"
1881"can_write=TrueとなっているものだけがST_AsGDALRasterで使えます。"
1882
1883#. Tag: funcprototype
1884#: reference_raster.xml:990
1885#, no-c-format
1886msgid ""
1887"<funcdef>setof record <function>ST_GDALDrivers</function></funcdef> "
1888"<paramdef><type>integer </type> <parameter>OUT idx</parameter></paramdef> "
1889"<paramdef><type>text </type> <parameter>OUT short_name</parameter></"
1890"paramdef> <paramdef><type>text </type> <parameter>OUT long_name</parameter></"
1891"paramdef> <paramdef><type>text </type> <parameter>OUT can_read</parameter></"
1892"paramdef> <paramdef><type>text </type> <parameter>OUT can_write</parameter></"
1893"paramdef> <paramdef><type>text </type> <parameter>OUT create_options</"
1894"parameter></paramdef>"
1895msgstr ""
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>"
1904
1905#. Tag: para
1906#: reference_raster.xml:1005
1907#, no-c-format
1908msgid ""
1909"Returns a list of raster formats short_name,long_name and creator options of "
1910"each format supported by GDAL. Use the short_name as input in the "
1911"<varname>format</varname> parameter of <xref linkend=\"RT_ST_AsGDALRaster\"/"
1912">. Options vary depending on what drivers your libgdal was compiled with. "
1913"<varname>create_options</varname> returns an xml formatted set of "
1914"CreationOptionList/Option consisting of name and optional <varname>type</"
1915"varname>, <varname>description</varname> and set of <varname>VALUE</varname> "
1916"for each creator option for the specific driver."
1917msgstr ""
1918"使用しているGDALライブラリが対応するラスタ書式のshort_name, long_nameと作成オ"
1919"プションの一覧を返します。short_nameは、<xref linkend=\"RT_ST_AsGDALRaster\"/"
1920">の<varname>format</varname>パラメタに使います。オプションはGDALライブラリの"
1921"コンパイルに使ったドライバに依存します。<varname>create_options</varname>は、"
1922"XML形式のCretionOptionList/Optionの集合で、ドライバごとの生成オプションごと"
1923"に、名前を持ち、追加情報の<varname>type</varname>, <varname>description</"
1924"varname>と<varname>VALUE</varname>の集合を持ちます。"
1925
1926#. Tag: para
1927#: reference_raster.xml:1010
1928#, no-c-format
1929msgid "Changed: 2.5.0 - add can_read and can_write columns."
1930msgstr "Changed: 2.5.0 - can_readカラムとcan_writeカラムを追加"
1931
1932#. Tag: para
1933#: reference_raster.xml:1011
1934#, no-c-format
1935msgid ""
1936"Changed: 2.0.6, 2.1.3 - by default no drivers are enabled, unless GUC or "
1937"Environment variable gdal_enabled_drivers is set."
1938msgstr ""
1939"Changed: 2.0.6, 2.1.3 - GUC (訳注: Grand Unified Configurationの略で、動的に"
1940"変更できるPostgreSQLパラメータ)または環境変数gdal_enabled_driversが設定されて"
1941"いないデフォルトではドライバが全て無効になりました。"
1942
1943#. Tag: para
1944#: reference_raster.xml:1012 reference_raster.xml:1453
1945#: reference_raster.xml:6059 reference_raster.xml:6167
1946#: reference_raster.xml:6258 reference_raster.xml:6338
1947#, no-c-format
1948msgid "Availability: 2.0.0 - requires GDAL &gt;= 1.6.0."
1949msgstr "Availability: 2.0.0 - GDAL 1.6.0以上が必要です。"
1950
1951#. Tag: title
1952#: reference_raster.xml:1017
1953#, no-c-format
1954msgid "Examples: List of Drivers"
1955msgstr "例: ドライバ一覧"
1956
1957#. Tag: programlisting
1958#: reference_raster.xml:1019
1959#, no-c-format
1960msgid ""
1961"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
1962"SELECT short_name, long_name, can_write\n"
1963"FROM st_gdaldrivers()\n"
1964"ORDER BY short_name;\n"
1965"\n"
1966"   short_name    |                          "
1967"long_name                          | can_write\n"
1968"-----------------"
1969"+-------------------------------------------------------------+-----------\n"
1970" AAIGrid         | Arc/Info ASCII "
1971"Grid                                         | t\n"
1972" ACE2            | "
1973"ACE2                                                        | f\n"
1974" ADRG            | ARC Digitized Raster "
1975"Graphics                               | f\n"
1976" AIG             | Arc/Info Binary "
1977"Grid                                        | f\n"
1978" AirSAR          | AirSAR Polarimetric "
1979"Image                                   | f\n"
1980" ARG             | Azavea Raster Grid "
1981"format                                   | t\n"
1982" BAG             | Bathymetry Attributed "
1983"Grid                                  | f\n"
1984" BIGGIF          | Graphics Interchange Format (."
1985"gif)                          | f\n"
1986" BLX             | Magellan topo (."
1987"blx)                                        | t\n"
1988" BMP             | MS Windows Device Independent "
1989"Bitmap                        | f\n"
1990" BSB             | Maptech BSB Nautical "
1991"Charts                                 | f\n"
1992" PAux            | PCI .aux "
1993"Labelled                                           | f\n"
1994" PCIDSK          | PCIDSK Database "
1995"File                                        | f\n"
1996" PCRaster        | PCRaster Raster "
1997"File                                        | f\n"
1998" PDF             | Geospatial "
1999"PDF                                              | f\n"
2000" PDS             | NASA Planetary Data "
2001"System                                  | f\n"
2002" PDS4            | NASA Planetary Data System "
2003"4                                | t\n"
2004" PLMOSAIC        | Planet Labs Mosaics "
2005"API                                     | f\n"
2006" PLSCENES        | Planet Labs Scenes "
2007"API                                      | f\n"
2008" PNG             | Portable Network "
2009"Graphics                                   | t\n"
2010" PNM             | Portable Pixmap Format "
2011"(netpbm)                             | f\n"
2012" PRF             | Racurs PHOTOMOD "
2013"PRF                                         | f\n"
2014" R               | R Object Data "
2015"Store                                         | t\n"
2016" Rasterlite      | "
2017"Rasterlite                                                  | t\n"
2018" RDA             | DigitalGlobe Raster Data Access "
2019"driver                      | f\n"
2020" RIK             | Swedish Grid RIK (."
2021"rik)                                     | f\n"
2022" RMF             | Raster Matrix "
2023"Format                                        | f\n"
2024" ROI_PAC         | ROI_PAC "
2025"raster                                              | f\n"
2026" RPFTOC          | Raster Product Format TOC "
2027"format                            | f\n"
2028" RRASTER         | R "
2029"Raster                                                    | f\n"
2030" RS2             | RadarSat 2 XML "
2031"Product                                      | f\n"
2032" RST             | Idrisi Raster "
2033"A.1                                           | t\n"
2034" SAFE            | Sentinel-1 SAR SAFE "
2035"Product                                 | f\n"
2036" SAGA            | SAGA GIS Binary Grid (.sdat, .sg-grd-"
2037"z)                     | t\n"
2038" SAR_CEOS        | CEOS SAR "
2039"Image                                              | f\n"
2040" SDTS            | SDTS "
2041"Raster                                                 | f\n"
2042" SENTINEL2       | Sentinel "
2043"2                                                  | f\n"
2044" SGI             | SGI Image File Format "
2045"1.0                                   | f\n"
2046" SNODAS          | Snow Data Assimilation "
2047"System                               | f\n"
2048" SRP             | Standard Raster Product (ASRP/"
2049"USRP)                         | f\n"
2050" SRTMHGT         | SRTMHGT File "
2051"Format                                         | t\n"
2052" Terragen        | Terragen "
2053"heightfield                                        | f\n"
2054" TIL             | EarthWatch ."
2055"TIL                                             | f\n"
2056" TSX             | TerraSAR-X "
2057"Product                                          | f\n"
2058" USGSDEM         | USGS Optional ASCII DEM (and "
2059"CDED)                          | t\n"
2060" VICAR           | MIPL VICAR "
2061"file                                             | f\n"
2062" VRT             | Virtual "
2063"Raster                                              | t\n"
2064" WCS             | OGC Web Coverage "
2065"Service                                    | f\n"
2066" WMS             | OGC Web Map "
2067"Service                                         | t\n"
2068" WMTS            | OGC Web Map Tile "
2069"Service                                    | t\n"
2070" XPM             | X11 PixMap "
2071"Format                                           | t\n"
2072" XYZ             | ASCII Gridded "
2073"XYZ                                           | t\n"
2074" ZMap            | ZMap Plus "
2075"Grid                                              | t"
2076msgstr ""
2077"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
2078"SELECT short_name, long_name, can_write\n"
2079"FROM st_gdaldrivers()\n"
2080"ORDER BY short_name;\n"
2081"\n"
2082"   short_name    |                          "
2083"long_name                          | can_write\n"
2084"-----------------"
2085"+-------------------------------------------------------------+-----------\n"
2086" AAIGrid         | Arc/Info ASCII "
2087"Grid                                         | t\n"
2088" ACE2            | "
2089"ACE2                                                        | f\n"
2090" ADRG            | ARC Digitized Raster "
2091"Graphics                               | f\n"
2092" AIG             | Arc/Info Binary "
2093"Grid                                        | f\n"
2094" AirSAR          | AirSAR Polarimetric "
2095"Image                                   | f\n"
2096" ARG             | Azavea Raster Grid "
2097"format                                   | t\n"
2098" BAG             | Bathymetry Attributed "
2099"Grid                                  | f\n"
2100" BIGGIF          | Graphics Interchange Format (."
2101"gif)                          | f\n"
2102" BLX             | Magellan topo (."
2103"blx)                                        | t\n"
2104" BMP             | MS Windows Device Independent "
2105"Bitmap                        | f\n"
2106" BSB             | Maptech BSB Nautical "
2107"Charts                                 | f\n"
2108" PAux            | PCI .aux "
2109"Labelled                                           | f\n"
2110" PCIDSK          | PCIDSK Database "
2111"File                                        | f\n"
2112" PCRaster        | PCRaster Raster "
2113"File                                        | f\n"
2114" PDF             | Geospatial "
2115"PDF                                              | f\n"
2116" PDS             | NASA Planetary Data "
2117"System                                  | f\n"
2118" PDS4            | NASA Planetary Data System "
2119"4                                | t\n"
2120" PLMOSAIC        | Planet Labs Mosaics "
2121"API                                     | f\n"
2122" PLSCENES        | Planet Labs Scenes "
2123"API                                      | f\n"
2124" PNG             | Portable Network "
2125"Graphics                                   | t\n"
2126" PNM             | Portable Pixmap Format "
2127"(netpbm)                             | f\n"
2128" PRF             | Racurs PHOTOMOD "
2129"PRF                                         | f\n"
2130" R               | R Object Data "
2131"Store                                         | t\n"
2132" Rasterlite      | "
2133"Rasterlite                                                  | t\n"
2134" RDA             | DigitalGlobe Raster Data Access "
2135"driver                      | f\n"
2136" RIK             | Swedish Grid RIK (."
2137"rik)                                     | f\n"
2138" RMF             | Raster Matrix "
2139"Format                                        | f\n"
2140" ROI_PAC         | ROI_PAC "
2141"raster                                              | f\n"
2142" RPFTOC          | Raster Product Format TOC "
2143"format                            | f\n"
2144" RRASTER         | R "
2145"Raster                                                    | f\n"
2146" RS2             | RadarSat 2 XML "
2147"Product                                      | f\n"
2148" RST             | Idrisi Raster "
2149"A.1                                           | t\n"
2150" SAFE            | Sentinel-1 SAR SAFE "
2151"Product                                 | f\n"
2152" SAGA            | SAGA GIS Binary Grid (.sdat, .sg-grd-"
2153"z)                     | t\n"
2154" SAR_CEOS        | CEOS SAR "
2155"Image                                              | f\n"
2156" SDTS            | SDTS "
2157"Raster                                                 | f\n"
2158" SENTINEL2       | Sentinel "
2159"2                                                  | f\n"
2160" SGI             | SGI Image File Format "
2161"1.0                                   | f\n"
2162" SNODAS          | Snow Data Assimilation "
2163"System                               | f\n"
2164" SRP             | Standard Raster Product (ASRP/"
2165"USRP)                         | f\n"
2166" SRTMHGT         | SRTMHGT File "
2167"Format                                         | t\n"
2168" Terragen        | Terragen "
2169"heightfield                                        | f\n"
2170" TIL             | EarthWatch ."
2171"TIL                                             | f\n"
2172" TSX             | TerraSAR-X "
2173"Product                                          | f\n"
2174" USGSDEM         | USGS Optional ASCII DEM (and "
2175"CDED)                          | t\n"
2176" VICAR           | MIPL VICAR "
2177"file                                             | f\n"
2178" VRT             | Virtual "
2179"Raster                                              | t\n"
2180" WCS             | OGC Web Coverage "
2181"Service                                    | f\n"
2182" WMS             | OGC Web Map "
2183"Service                                         | t\n"
2184" WMTS            | OGC Web Map Tile "
2185"Service                                    | t\n"
2186" XPM             | X11 PixMap "
2187"Format                                           | t\n"
2188" XYZ             | ASCII Gridded "
2189"XYZ                                           | t\n"
2190" ZMap            | ZMap Plus "
2191"Grid                                              | t"
2192
2193#. Tag: title
2194#: reference_raster.xml:1021
2195#, no-c-format
2196msgid "Example: List of options for each driver"
2197msgstr "例: ドライバ毎のオプション一覧"
2198
2199#. Tag: programlisting
2200#: reference_raster.xml:1022
2201#, no-c-format
2202msgid ""
2203"-- Output the create options XML column of JPEG as a table  --\n"
2204"-- Note you can use these creator options in ST_AsGDALRaster options "
2205"argument\n"
2206"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
2207"       (xpath('@type', g.opt))[1]::text As otype,\n"
2208"       (xpath('@description', g.opt))[1]::text As descrip\n"
2209"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
2210"xml)) As opt\n"
2211"FROM  st_gdaldrivers()\n"
2212"WHERE short_name = 'JPEG') As g;\n"
2213"\n"
2214"       oname        |  otype  |      descrip\n"
2215"--------------------+---------"
2216"+-------------------------------------------------\n"
2217" PROGRESSIVE        | boolean | whether to generate a progressive JPEG\n"
2218" QUALITY            | int     | good=100, bad=0, default=75\n"
2219" WORLDFILE          | boolean | whether to geneate a worldfile\n"
2220" INTERNAL_MASK      | boolean | whether to generate a validity mask\n"
2221" COMMENT            | string  | Comment\n"
2222" SOURCE_ICC_PROFILE | string  | ICC profile encoded in Base64\n"
2223" EXIF_THUMBNAIL     | boolean | whether to generate an EXIF "
2224"thumbnail(overview).\n"
2225"                                By default its max dimension will be 128\n"
2226" THUMBNAIL_WIDTH    | int     | Forced thumbnail width\n"
2227" THUMBNAIL_HEIGHT   | int     | Forced thumbnail height\n"
2228"(9 rows)"
2229msgstr ""
2230"-- JPEGのXMLカラムから生成オプションをテーブルとして出力します --\n"
2231"-- この生成オプションはST_AsGDALRasterのオプション引数で使えます --\n"
2232"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
2233"       (xpath('@type', g.opt))[1]::text As otype,\n"
2234"       (xpath('@description', g.opt))[1]::text As descrip\n"
2235"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
2236"xml)) As opt\n"
2237"FROM  st_gdaldrivers()\n"
2238"WHERE short_name = 'JPEG') As g;\n"
2239"\n"
2240"       oname        |  otype  |      descrip\n"
2241"--------------------+---------"
2242"+-------------------------------------------------\n"
2243" PROGRESSIVE        | boolean | whether to generate a progressive JPEG\n"
2244" QUALITY            | int     | good=100, bad=0, default=75\n"
2245" WORLDFILE          | boolean | whether to geneate a worldfile\n"
2246" INTERNAL_MASK      | boolean | whether to generate a validity mask\n"
2247" COMMENT            | string  | Comment\n"
2248" SOURCE_ICC_PROFILE | string  | ICC profile encoded in Base64\n"
2249" EXIF_THUMBNAIL     | boolean | whether to generate an EXIF "
2250"thumbnail(overview).\n"
2251"                                By default its max dimension will be 128\n"
2252" THUMBNAIL_WIDTH    | int     | Forced thumbnail width\n"
2253" THUMBNAIL_HEIGHT   | int     | Forced thumbnail height\n"
2254"(9 rows)"
2255
2256#. Tag: programlisting
2257#: reference_raster.xml:1024
2258#, no-c-format
2259msgid ""
2260"-- raw xml output for creator options for GeoTiff --\n"
2261"SELECT create_options\n"
2262"FROM st_gdaldrivers()\n"
2263"WHERE short_name = 'GTiff';\n"
2264"\n"
2265"<![CDATA[<CreationOptionList>\n"
2266"    <Option name=\"COMPRESS\" type=\"string-select\">\n"
2267"        <Value>NONE</Value>\n"
2268"        <Value>LZW</Value>\n"
2269"        <Value>PACKBITS</Value>\n"
2270"        <Value>JPEG</Value>\n"
2271"        <Value>CCITTRLE</Value>\n"
2272"        <Value>CCITTFAX3</Value>\n"
2273"        <Value>CCITTFAX4</Value>\n"
2274"        <Value>DEFLATE</Value>\n"
2275"    </Option>\n"
2276"    <Option name=\"PREDICTOR\" type=\"int\" description=\"Predictor Type\"/"
2277">\n"
2278"    <Option name=\"JPEG_QUALITY\" type=\"int\" description=\"JPEG quality "
2279"1-100\" default=\"75\"/>\n"
2280"    <Option name=\"ZLEVEL\" type=\"int\" description=\"DEFLATE compression "
2281"level 1-9\" default=\"6\"/>\n"
2282"    <Option name=\"NBITS\" type=\"int\" description=\"BITS for sub-byte "
2283"files (1-7), sub-uint16 (9-15), sub-uint32 (17-31)\"/>\n"
2284"    <Option name=\"INTERLEAVE\" type=\"string-select\" default=\"PIXEL\">\n"
2285"        <Value>BAND</Value>\n"
2286"        <Value>PIXEL</Value>\n"
2287"    </Option>\n"
2288"    <Option name=\"TILED\" type=\"boolean\" description=\"Switch to tiled "
2289"format\"/>\n"
2290"    <Option name=\"TFW\" type=\"boolean\" description=\"Write out world file"
2291"\"/>\n"
2292"    <Option name=\"RPB\" type=\"boolean\" description=\"Write out .RPB (RPC) "
2293"file\"/>\n"
2294"    <Option name=\"BLOCKXSIZE\" type=\"int\" description=\"Tile Width\"/>\n"
2295"    <Option name=\"BLOCKYSIZE\" type=\"int\" description=\"Tile/Strip Height"
2296"\"/>\n"
2297"    <Option name=\"PHOTOMETRIC\" type=\"string-select\">\n"
2298"        <Value>MINISBLACK</Value>\n"
2299"        <Value>MINISWHITE</Value>\n"
2300"        <Value>PALETTE</Value>\n"
2301"        <Value>RGB</Value>\n"
2302"        <Value>CMYK</Value>\n"
2303"        <Value>YCBCR</Value>\n"
2304"        <Value>CIELAB</Value>\n"
2305"        <Value>ICCLAB</Value>\n"
2306"        <Value>ITULAB</Value>\n"
2307"    </Option>\n"
2308"    <Option name=\"SPARSE_OK\" type=\"boolean\" description=\"Can newly "
2309"created files have missing blocks?\" default=\"FALSE\"/>\n"
2310"    <Option name=\"ALPHA\" type=\"boolean\" description=\"Mark first "
2311"extrasample as being alpha\"/>\n"
2312"    <Option name=\"PROFILE\" type=\"string-select\" default=\"GDALGeoTIFF"
2313"\">\n"
2314"        <Value>GDALGeoTIFF</Value>\n"
2315"        <Value>GeoTIFF</Value>\n"
2316"        <Value>BASELINE</Value>\n"
2317"    </Option>\n"
2318"    <Option name=\"PIXELTYPE\" type=\"string-select\">\n"
2319"        <Value>DEFAULT</Value>\n"
2320"        <Value>SIGNEDBYTE</Value>\n"
2321"    </Option>\n"
2322"    <Option name=\"BIGTIFF\" type=\"string-select\" description=\"Force "
2323"creation of BigTIFF file\">\n"
2324"        <Value>YES</Value>\n"
2325"        <Value>NO</Value>\n"
2326"        <Value>IF_NEEDED</Value>\n"
2327"        <Value>IF_SAFER</Value>\n"
2328"    </Option>\n"
2329"    <Option name=\"ENDIANNESS\" type=\"string-select\" default=\"NATIVE\" "
2330"description=\"Force endianness of created file. For DEBUG purpose mostly\">\n"
2331"        <Value>NATIVE</Value>\n"
2332"        <Value>INVERTED</Value>\n"
2333"        <Value>LITTLE</Value>\n"
2334"        <Value>BIG</Value>\n"
2335"    </Option>\n"
2336"    <Option name=\"COPY_SRC_OVERVIEWS\" type=\"boolean\" default=\"NO\" "
2337"description=\"Force copy of overviews of source dataset (CreateCopy())\"/>\n"
2338"</CreationOptionList>]]>\n"
2339"\n"
2340"-- Output the create options XML column for GTiff as a table  --\n"
2341"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
2342"       (xpath('@type', g.opt))[1]::text As otype,\n"
2343"       (xpath('@description', g.opt))[1]::text As descrip,\n"
2344"       array_to_string(xpath('Value/text()', g.opt),', ') As vals\n"
2345"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
2346"xml)) As opt\n"
2347"FROM  st_gdaldrivers()\n"
2348"WHERE short_name = 'GTiff') As g;\n"
2349"\n"
2350"       oname        |     otype     |                               "
2351"descrip                                |                                   "
2352"vals\n"
2353"--------------------+---------------"
2354"+----------------------------------------------------------------------"
2355"+---------------------------------------------------------------------------\n"
2356" COMPRESS           | string-select "
2357"|                                                                      | "
2358"NONE, LZW, PACKBITS, JPEG, CCITTRLE, CCITTFAX3, CCITTFAX4, DEFLATE\n"
2359" PREDICTOR          | int           | Predictor "
2360"Type                                                       |\n"
2361" JPEG_QUALITY       | int           | JPEG quality "
2362"1-100                                                   |\n"
2363" ZLEVEL             | int           | DEFLATE compression level "
2364"1-9                                        |\n"
2365" NBITS              | int           | BITS for sub-byte files (1-7), sub-"
2366"uint16 (9-15), sub-uint32 (17-31) |\n"
2367" INTERLEAVE         | string-select "
2368"|                                                                      | "
2369"BAND, PIXEL\n"
2370" TILED              | boolean       | Switch to tiled "
2371"format                                               |\n"
2372" TFW                | boolean       | Write out world "
2373"file                                                 |\n"
2374" RPB                | boolean       | Write out .RPB (RPC) "
2375"file                                            |\n"
2376" BLOCKXSIZE         | int           | Tile "
2377"Width                                                           |\n"
2378" BLOCKYSIZE         | int           | Tile/Strip "
2379"Height                                                    |\n"
2380" PHOTOMETRIC        | string-select "
2381"|                                                                      | "
2382"MINISBLACK, MINISWHITE, PALETTE, RGB, CMYK, YCBCR, CIELAB, ICCLAB, ITULAB\n"
2383" SPARSE_OK          | boolean       | Can newly created files have missing "
2384"blocks?                         |\n"
2385" ALPHA              | boolean       | Mark first extrasample as being "
2386"alpha                                |\n"
2387" PROFILE            | string-select "
2388"|                                                                      | "
2389"GDALGeoTIFF, GeoTIFF, BASELINE\n"
2390" PIXELTYPE          | string-select "
2391"|                                                                      | "
2392"DEFAULT, SIGNEDBYTE\n"
2393" BIGTIFF            | string-select | Force creation of BigTIFF "
2394"file                                       | YES, NO, IF_NEEDED, IF_SAFER\n"
2395" ENDIANNESS         | string-select | Force endianness of created file. For "
2396"DEBUG purpose mostly           | NATIVE, INVERTED, LITTLE, BIG\n"
2397" COPY_SRC_OVERVIEWS | boolean       | Force copy of overviews of source "
2398"dataset (CreateCopy())             |\n"
2399"(19 rows)"
2400msgstr ""
2401"-- GeoTIFFの生成オプションを生のXMLで出力します --\n"
2402"SELECT create_options\n"
2403"FROM st_gdaldrivers()\n"
2404"WHERE short_name = 'GTiff';\n"
2405"\n"
2406"<![CDATA[<CreationOptionList>\n"
2407"    <Option name=\"COMPRESS\" type=\"string-select\">\n"
2408"        <Value>NONE</Value>\n"
2409"        <Value>LZW</Value>\n"
2410"        <Value>PACKBITS</Value>\n"
2411"        <Value>JPEG</Value>\n"
2412"        <Value>CCITTRLE</Value>\n"
2413"        <Value>CCITTFAX3</Value>\n"
2414"        <Value>CCITTFAX4</Value>\n"
2415"        <Value>DEFLATE</Value>\n"
2416"    </Option>\n"
2417"    <Option name=\"PREDICTOR\" type=\"int\" description=\"Predictor Type\"/"
2418">\n"
2419"    <Option name=\"JPEG_QUALITY\" type=\"int\" description=\"JPEG quality "
2420"1-100\" default=\"75\"/>\n"
2421"    <Option name=\"ZLEVEL\" type=\"int\" description=\"DEFLATE compression "
2422"level 1-9\" default=\"6\"/>\n"
2423"    <Option name=\"NBITS\" type=\"int\" description=\"BITS for sub-byte "
2424"files (1-7), sub-uint16 (9-15), sub-uint32 (17-31)\"/>\n"
2425"    <Option name=\"INTERLEAVE\" type=\"string-select\" default=\"PIXEL\">\n"
2426"        <Value>BAND</Value>\n"
2427"        <Value>PIXEL</Value>\n"
2428"    </Option>\n"
2429"    <Option name=\"TILED\" type=\"boolean\" description=\"Switch to tiled "
2430"format\"/>\n"
2431"    <Option name=\"TFW\" type=\"boolean\" description=\"Write out world file"
2432"\"/>\n"
2433"    <Option name=\"RPB\" type=\"boolean\" description=\"Write out .RPB (RPC) "
2434"file\"/>\n"
2435"    <Option name=\"BLOCKXSIZE\" type=\"int\" description=\"Tile Width\"/>\n"
2436"    <Option name=\"BLOCKYSIZE\" type=\"int\" description=\"Tile/Strip Height"
2437"\"/>\n"
2438"    <Option name=\"PHOTOMETRIC\" type=\"string-select\">\n"
2439"        <Value>MINISBLACK</Value>\n"
2440"        <Value>MINISWHITE</Value>\n"
2441"        <Value>PALETTE</Value>\n"
2442"        <Value>RGB</Value>\n"
2443"        <Value>CMYK</Value>\n"
2444"        <Value>YCBCR</Value>\n"
2445"        <Value>CIELAB</Value>\n"
2446"        <Value>ICCLAB</Value>\n"
2447"        <Value>ITULAB</Value>\n"
2448"    </Option>\n"
2449"    <Option name=\"SPARSE_OK\" type=\"boolean\" description=\"Can newly "
2450"created files have missing blocks?\" default=\"FALSE\"/>\n"
2451"    <Option name=\"ALPHA\" type=\"boolean\" description=\"Mark first "
2452"extrasample as being alpha\"/>\n"
2453"    <Option name=\"PROFILE\" type=\"string-select\" default=\"GDALGeoTIFF"
2454"\">\n"
2455"        <Value>GDALGeoTIFF</Value>\n"
2456"        <Value>GeoTIFF</Value>\n"
2457"        <Value>BASELINE</Value>\n"
2458"    </Option>\n"
2459"    <Option name=\"PIXELTYPE\" type=\"string-select\">\n"
2460"        <Value>DEFAULT</Value>\n"
2461"        <Value>SIGNEDBYTE</Value>\n"
2462"    </Option>\n"
2463"    <Option name=\"BIGTIFF\" type=\"string-select\" description=\"Force "
2464"creation of BigTIFF file\">\n"
2465"        <Value>YES</Value>\n"
2466"        <Value>NO</Value>\n"
2467"        <Value>IF_NEEDED</Value>\n"
2468"        <Value>IF_SAFER</Value>\n"
2469"    </Option>\n"
2470"    <Option name=\"ENDIANNESS\" type=\"string-select\" default=\"NATIVE\" "
2471"description=\"Force endianness of created file. For DEBUG purpose mostly\">\n"
2472"        <Value>NATIVE</Value>\n"
2473"        <Value>INVERTED</Value>\n"
2474"        <Value>LITTLE</Value>\n"
2475"        <Value>BIG</Value>\n"
2476"    </Option>\n"
2477"    <Option name=\"COPY_SRC_OVERVIEWS\" type=\"boolean\" default=\"NO\" "
2478"description=\"Force copy of overviews of source dataset (CreateCopy())\"/>\n"
2479"</CreationOptionList>]]>\n"
2480"\n"
2481"-- GeoTIFF生成オプションのXMLをテーブルとして出力します --\n"
2482"-- Output the create options XML column for GTiff as a table  --\n"
2483"SELECT (xpath('@name', g.opt))[1]::text As oname,\n"
2484"       (xpath('@type', g.opt))[1]::text As otype,\n"
2485"       (xpath('@description', g.opt))[1]::text As descrip,\n"
2486"       array_to_string(xpath('Value/text()', g.opt),', ') As vals\n"
2487"FROM (SELECT unnest(xpath('/CreationOptionList/Option', create_options::"
2488"xml)) As opt\n"
2489"FROM  st_gdaldrivers()\n"
2490"WHERE short_name = 'GTiff') As g;\n"
2491"\n"
2492"       oname        |     otype     |                               "
2493"descrip                                |                                   "
2494"vals\n"
2495"--------------------+---------------"
2496"+----------------------------------------------------------------------"
2497"+---------------------------------------------------------------------------\n"
2498" COMPRESS           | string-select "
2499"|                                                                      | "
2500"NONE, LZW, PACKBITS, JPEG, CCITTRLE, CCITTFAX3, CCITTFAX4, DEFLATE\n"
2501" PREDICTOR          | int           | Predictor "
2502"Type                                                       |\n"
2503" JPEG_QUALITY       | int           | JPEG quality "
2504"1-100                                                   |\n"
2505" ZLEVEL             | int           | DEFLATE compression level "
2506"1-9                                        |\n"
2507" NBITS              | int           | BITS for sub-byte files (1-7), sub-"
2508"uint16 (9-15), sub-uint32 (17-31) |\n"
2509" INTERLEAVE         | string-select "
2510"|                                                                      | "
2511"BAND, PIXEL\n"
2512" TILED              | boolean       | Switch to tiled "
2513"format                                               |\n"
2514" TFW                | boolean       | Write out world "
2515"file                                                 |\n"
2516" RPB                | boolean       | Write out .RPB (RPC) "
2517"file                                            |\n"
2518" BLOCKXSIZE         | int           | Tile "
2519"Width                                                           |\n"
2520" BLOCKYSIZE         | int           | Tile/Strip "
2521"Height                                                    |\n"
2522" PHOTOMETRIC        | string-select "
2523"|                                                                      | "
2524"MINISBLACK, MINISWHITE, PALETTE, RGB, CMYK, YCBCR, CIELAB, ICCLAB, ITULAB\n"
2525" SPARSE_OK          | boolean       | Can newly created files have missing "
2526"blocks?                         |\n"
2527" ALPHA              | boolean       | Mark first extrasample as being "
2528"alpha                                |\n"
2529" PROFILE            | string-select "
2530"|                                                                      | "
2531"GDALGeoTIFF, GeoTIFF, BASELINE\n"
2532" PIXELTYPE          | string-select "
2533"|                                                                      | "
2534"DEFAULT, SIGNEDBYTE\n"
2535" BIGTIFF            | string-select | Force creation of BigTIFF "
2536"file                                       | YES, NO, IF_NEEDED, IF_SAFER\n"
2537" ENDIANNESS         | string-select | Force endianness of created file. For "
2538"DEBUG purpose mostly           | NATIVE, INVERTED, LITTLE, BIG\n"
2539" COPY_SRC_OVERVIEWS | boolean       | Force copy of overviews of source "
2540"dataset (CreateCopy())             |\n"
2541"(19 rows)"
2542
2543#. Tag: para
2544#: reference_raster.xml:1030
2545#, no-c-format
2546msgid ""
2547", <xref linkend=\"ST_SRID\"/>, <xref linkend=\"postgis_gdal_enabled_drivers"
2548"\"/>"
2549msgstr ""
2550", <xref linkend=\"ST_SRID\"/>, <xref linkend=\"postgis_gdal_enabled_drivers"
2551"\"/>"
2552
2553#. Tag: refname
2554#: reference_raster.xml:1036
2555#, no-c-format
2556msgid "UpdateRasterSRID"
2557msgstr "UpdateRasterSRID"
2558
2559#. Tag: refpurpose
2560#: reference_raster.xml:1037
2561#, no-c-format
2562msgid "Change the SRID of all rasters in the user-specified column and table."
2563msgstr ""
2564"ユーザが指定したカラムとテーブルにあるラスタの全てについてSRIDを変更します。"
2565
2566#. Tag: funcsynopsis
2567#: reference_raster.xml:1043
2568#, no-c-format
2569msgid ""
2570"<funcprototype> <funcdef>raster <function>UpdateRasterSRID</function></"
2571"funcdef> <paramdef><type>name </type> <parameter>schema_name</parameter></"
2572"paramdef> <paramdef><type>name </type> <parameter>table_name</parameter></"
2573"paramdef> <paramdef><type>name </type> <parameter>column_name</parameter></"
2574"paramdef> <paramdef><type>integer </type> <parameter>new_srid</parameter></"
2575"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
2576"<function>UpdateRasterSRID</function></funcdef> <paramdef><type>name </type> "
2577"<parameter>table_name</parameter></paramdef> <paramdef><type>name </type> "
2578"<parameter>column_name</parameter></paramdef> <paramdef><type>integer </"
2579"type> <parameter>new_srid</parameter></paramdef> </funcprototype>"
2580msgstr ""
2581"<funcprototype> <funcdef>raster <function>UpdateRasterSRID</function></"
2582"funcdef> <paramdef><type>name </type> <parameter>schema_name</parameter></"
2583"paramdef> <paramdef><type>name </type> <parameter>table_name</parameter></"
2584"paramdef> <paramdef><type>name </type> <parameter>column_name</parameter></"
2585"paramdef> <paramdef><type>integer </type> <parameter>new_srid</parameter></"
2586"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
2587"<function>UpdateRasterSRID</function></funcdef> <paramdef><type>name </type> "
2588"<parameter>table_name</parameter></paramdef> <paramdef><type>name </type> "
2589"<parameter>column_name</parameter></paramdef> <paramdef><type>integer </"
2590"type> <parameter>new_srid</parameter></paramdef> </funcprototype>"
2591
2592#. Tag: para
2593#: reference_raster.xml:1066
2594#, no-c-format
2595msgid ""
2596"Change the SRID of all rasters in the user-specified column and table. The "
2597"function will drop all appropriate column constraints (extent, alignment and "
2598"SRID) before changing the SRID of the specified column's rasters."
2599msgstr ""
2600"ユーザが指定したカラムとテーブルにあるラスタの全てについてSRIDを変更します。"
2601"この関数は全ての適切なカラム制約 (extent, alignment, SRID)を削除してから、指"
2602"定したカラムのラスタのSRIDを変更します。"
2603
2604#. Tag: para
2605#: reference_raster.xml:1071
2606#, no-c-format
2607msgid ""
2608"The data (band pixel values) of the rasters are not touched by this "
2609"function. Only the raster's metadata is changed."
2610msgstr ""
2611"この関数はラスタのデータ (バンドピクセル値)を触りません。ラスタのメタデータの"
2612"み変更します。"
2613
2614#. Tag: para
2615#: reference_raster.xml:1076 reference_raster.xml:1746
2616#: reference_raster.xml:1847 reference_raster.xml:2297
2617#: reference_raster.xml:2592 reference_raster.xml:2747
2618#: reference_raster.xml:3390 reference_raster.xml:3444
2619#: reference_raster.xml:3488 reference_raster.xml:3542
2620#: reference_raster.xml:3699 reference_raster.xml:3796
2621#: reference_raster.xml:3981 reference_raster.xml:4084
2622#: reference_raster.xml:4181 reference_raster.xml:6699
2623#: reference_raster.xml:7293 reference_raster.xml:7484
2624#: reference_raster.xml:8758 reference_raster.xml:9043
2625#: reference_raster.xml:9491 reference_raster.xml:9624
2626#: reference_raster.xml:9675 reference_raster.xml:9912
2627#: reference_raster.xml:10165 reference_raster.xml:10437
2628#: reference_raster.xml:10524 reference_raster.xml:10605
2629#: reference_raster.xml:10686 reference_raster.xml:10767
2630#: reference_raster.xml:10980 reference_raster.xml:11060
2631#: reference_raster.xml:11217 reference_raster.xml:11304
2632#: reference_raster.xml:11399 reference_raster.xml:11492
2633#, no-c-format
2634msgid "Availability: 2.1.0"
2635msgstr "Availability: 2.1.0"
2636
2637#. Tag: refname
2638#: reference_raster.xml:1088
2639#, no-c-format
2640msgid "ST_CreateOverview"
2641msgstr "ST_CreateOverview"
2642
2643#. Tag: refpurpose
2644#: reference_raster.xml:1089
2645#, no-c-format
2646msgid "Create an reduced resolution version of a given raster coverage."
2647msgstr "与えられたラスタカバレッジから解像度を落としたものを生成します。"
2648
2649#. Tag: funcprototype
2650#: reference_raster.xml:1097
2651#, no-c-format
2652msgid ""
2653"<funcdef>regclass <function>ST_CreateOverview</function></funcdef> "
2654"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
2655"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
2656"<paramdef><type>int </type> <parameter>factor</parameter></paramdef> "
2657"<paramdef choice=\"opt\"><type>text </type> "
2658"<parameter>algo='NearestNeighbor'</parameter></paramdef>"
2659msgstr ""
2660"<funcdef>regclass <function>ST_CreateOverview</function></funcdef> "
2661"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
2662"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
2663"<paramdef><type>int </type> <parameter>factor</parameter></paramdef> "
2664"<paramdef choice=\"opt\"><type>text </type> "
2665"<parameter>algo='NearestNeighbor'</parameter></paramdef>"
2666
2667#. Tag: para
2668#: reference_raster.xml:1111
2669#, no-c-format
2670msgid ""
2671"Create an overview table with resampled tiles from the source table. Output "
2672"tiles will have the same size of input tiles and cover the same spatial "
2673"extent with a lower resolution (pixel size will be 1/<varname>factor</"
2674"varname> of the original in both directions)."
2675msgstr ""
2676"元のテーブルからリサンプリングを施したタイルのオーバビューテーブルを生成しま"
2677"す。出力タイルは入力タイルと同じサイズで、同じ空間範囲を持ち、入力タイルより"
2678"低い解像度 (ピクセル数は縦横ともに元のタイルの1/<varname>factor</varname>倍に"
2679"なります)を持ちます。"
2680
2681#. Tag: para
2682#: reference_raster.xml:1118
2683#, no-c-format
2684msgid ""
2685"The overview table will be made available in the <varname>raster_overviews</"
2686"varname> catalog and will have raster constraints enforced."
2687msgstr ""
2688"オーバビューテーブルは<varname>raster_overviews</varname>カタログに出現し、ラ"
2689"スタ制約を持ちます。"
2690
2691#. Tag: para
2692#: reference_raster.xml:1124 reference_raster.xml:1805
2693#: reference_raster.xml:4891
2694#, no-c-format
2695msgid ""
2696"Algorithm options are: 'NearestNeighbor', 'Bilinear', 'Cubic', "
2697"'CubicSpline', and 'Lanczos'. Refer to: <ulink url=\"http://www.gdal.org/"
2698"gdalwarp.html\">GDAL Warp resampling methods</ulink> for more details."
2699msgstr ""
2700"アルゴリズム指定オプションは'NearestNeighbor', 'Bilinear', 'Cubic', "
2701"'CubicSpline', 'Lanczos'です。詳細については<ulink url=\"http://www.gdal.org/"
2702"gdalwarp.html\">GDAL Warp resampling methods</ulink>をご覧ください。"
2703
2704#. Tag: para
2705#: reference_raster.xml:1126 reference_raster.xml:1807
2706#: reference_raster.xml:2006 reference_raster.xml:5278
2707#: reference_raster.xml:5657
2708#, no-c-format
2709msgid "Availability: 2.2.0"
2710msgstr "Availability: 2.2.0"
2711
2712#. Tag: title
2713#: reference_raster.xml:1129
2714#, no-c-format
2715msgid "Example"
2716msgstr "例"
2717
2718#. Tag: para
2719#: reference_raster.xml:1130
2720#, no-c-format
2721msgid "Output to generally better quality but slower to product format"
2722msgstr "高品質ですが遅い生成書式での出力"
2723
2724#. Tag: programlisting
2725#: reference_raster.xml:1131
2726#, no-c-format
2727msgid ""
2728"SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2, 'Lanczos');"
2729msgstr ""
2730"SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2, 'Lanczos');"
2731
2732#. Tag: para
2733#: reference_raster.xml:1133
2734#, no-c-format
2735msgid "Output to faster to process default nearest neighbor"
2736msgstr "デフォルトの最近傍補間を使った早い処理による出力"
2737
2738#. Tag: programlisting
2739#: reference_raster.xml:1134
2740#, no-c-format
2741msgid "SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2);"
2742msgstr "SELECT ST_CreateOverview('mydata.mytable'::regclass, 'rast', 2);"
2743
2744#. Tag: para
2745#: reference_raster.xml:1139
2746#, no-c-format
2747msgid ""
2748", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
2749"\"RT_AddRasterConstraints\"/>, <xref linkend=\"RT_Raster_Overviews\"/>"
2750msgstr ""
2751", <xref linkend=\"RT_AddOverviewConstraints\"/>, <xref linkend="
2752"\"RT_AddRasterConstraints\"/>, <xref linkend=\"RT_Raster_Overviews\"/>"
2753
2754#. Tag: title
2755#: reference_raster.xml:1150
2756#, no-c-format
2757msgid "Raster Constructors"
2758msgstr "ラスタコンストラクタ"
2759
2760#. Tag: refname
2761#: reference_raster.xml:1154
2762#, no-c-format
2763msgid "ST_AddBand"
2764msgstr "ST_AddBand"
2765
2766#. Tag: refpurpose
2767#: reference_raster.xml:1155
2768#, no-c-format
2769msgid ""
2770"Returns a raster with the new band(s) of given type added with given initial "
2771"value in the given index location. If no index is specified, the band is "
2772"added to the end."
2773msgstr ""
2774"与えられたタイプで、与えられた初期値にした新しいバンドを、与えられたインデク"
2775"ス位置に追加したラスタを返します。インデクス位置を指定していない場合には、バ"
2776"ンドは末尾に追加されます。"
2777
2778#. Tag: funcsynopsis
2779#: reference_raster.xml:1161
2780#, no-c-format
2781msgid ""
2782"<funcprototype> <funcdef>(1) raster <function>ST_AddBand</function></"
2783"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
2784"paramdef> <paramdef><type>addbandarg[] </type> <parameter>addbandargset</"
2785"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) raster "
2786"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2787"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
2788"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
2789"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
2790"\"><type>double precision </type> <parameter>initialvalue=0</parameter></"
2791"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
2792"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
2793"<funcprototype> <funcdef>(3) raster <function>ST_AddBand</function></"
2794"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
2795"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
2796"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
2797"<parameter>initialvalue=0</parameter></paramdef> <paramdef choice=\"opt"
2798"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
2799"paramdef> </funcprototype> <funcprototype> <funcdef>(4) raster "
2800"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2801"<parameter>torast</parameter></paramdef> <paramdef><type>raster </type> "
2802"<parameter>fromrast</parameter></paramdef> <paramdef choice=\"opt"
2803"\"><type>integer </type> <parameter>fromband=1</parameter></paramdef> "
2804"<paramdef choice=\"opt\"><type>integer </type> "
2805"<parameter>torastindex=at_end</parameter></paramdef> </funcprototype> "
2806"<funcprototype> <funcdef>(5) raster <function>ST_AddBand</function></"
2807"funcdef> <paramdef><type>raster </type> <parameter>torast</parameter></"
2808"paramdef> <paramdef><type>raster[] </type> <parameter>fromrasts</parameter></"
2809"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
2810"<parameter>fromband=1</parameter></paramdef> <paramdef choice=\"opt"
2811"\"><type>integer </type> <parameter>torastindex=at_end</parameter></"
2812"paramdef> </funcprototype> <funcprototype> <funcdef>(6) raster "
2813"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2814"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
2815"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
2816"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
2817"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
2818"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
2819"paramdef> </funcprototype> <funcprototype> <funcdef>(7) raster "
2820"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2821"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
2822"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
2823"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
2824"\"><type>integer </type> <parameter>index=at_end</parameter></paramdef> "
2825"<paramdef choice=\"opt\"><type>double precision </type> "
2826"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
2827msgstr ""
2828"<funcprototype> <funcdef>(1) raster <function>ST_AddBand</function></"
2829"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
2830"paramdef> <paramdef><type>addbandarg[] </type> <parameter>addbandargset</"
2831"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) raster "
2832"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2833"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
2834"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
2835"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
2836"\"><type>double precision </type> <parameter>initialvalue=0</parameter></"
2837"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
2838"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
2839"<funcprototype> <funcdef>(3) raster <function>ST_AddBand</function></"
2840"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
2841"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
2842"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
2843"<parameter>initialvalue=0</parameter></paramdef> <paramdef choice=\"opt"
2844"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
2845"paramdef> </funcprototype> <funcprototype> <funcdef>(4) raster "
2846"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2847"<parameter>torast</parameter></paramdef> <paramdef><type>raster </type> "
2848"<parameter>fromrast</parameter></paramdef> <paramdef choice=\"opt"
2849"\"><type>integer </type> <parameter>fromband=1</parameter></paramdef> "
2850"<paramdef choice=\"opt\"><type>integer </type> "
2851"<parameter>torastindex=at_end</parameter></paramdef> </funcprototype> "
2852"<funcprototype> <funcdef>(5) raster <function>ST_AddBand</function></"
2853"funcdef> <paramdef><type>raster </type> <parameter>torast</parameter></"
2854"paramdef> <paramdef><type>raster[] </type> <parameter>fromrasts</parameter></"
2855"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
2856"<parameter>fromband=1</parameter></paramdef> <paramdef choice=\"opt"
2857"\"><type>integer </type> <parameter>torastindex=at_end</parameter></"
2858"paramdef> </funcprototype> <funcprototype> <funcdef>(6) raster "
2859"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2860"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
2861"<parameter>index</parameter></paramdef> <paramdef><type>text </type> "
2862"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
2863"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
2864"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
2865"paramdef> </funcprototype> <funcprototype> <funcdef>(7) raster "
2866"<function>ST_AddBand</function></funcdef> <paramdef><type>raster </type> "
2867"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
2868"<parameter>outdbfile</parameter></paramdef> <paramdef><type>integer[] </"
2869"type> <parameter>outdbindex</parameter></paramdef> <paramdef choice=\"opt"
2870"\"><type>integer </type> <parameter>index=at_end</parameter></paramdef> "
2871"<paramdef choice=\"opt\"><type>double precision </type> "
2872"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
2873
2874#. Tag: para
2875#: reference_raster.xml:1226
2876#, no-c-format
2877msgid ""
2878"Returns a raster with a new band added in given position (index), of given "
2879"type, of given initial value, and of given nodata value. If no index is "
2880"specified, the band is added to the end. If no <varname>fromband</varname> "
2881"is specified, band 1 is assumed. Pixel type is a string representation of "
2882"one of the pixel types specified in <xref linkend=\"RT_ST_BandPixelType\"/>. "
2883"If an existing index is specified all subsequent bands >= that index are "
2884"incremented by 1. If an initial value greater than the max of the pixel type "
2885"is specified, then the initial value is set to the highest value allowed by "
2886"the pixel type."
2887msgstr ""
2888"与えられたタイプで、与えられた初期値にし、与えられたNODATA値を付した新しいバ"
2889"ンドを追加したラスタを返します。インデクス位置を指定していない場合には、バン"
2890"ドは末尾に追加されます。<varname>fromband</varname>が指定されない場合には、1"
2891"番バンドと仮定します。ピクセルタイプは<xref linkend=\"RT_ST_BandPixelType\"/>"
2892"で指定されているピクセルタイプの文字列表現です。既存のインデクスが指定された"
2893"場合には、以降のバンドは全て1以上足されたインデクスになります。初期値としてピ"
2894"クセルタイプの最大値を超えた値が指定された場合には、初期値にピクセルタイプの"
2895"許容最大値が指定されます。"
2896
2897#. Tag: para
2898#: reference_raster.xml:1230
2899#, no-c-format
2900msgid ""
2901"For the variant that takes an array of <xref linkend=\"addbandarg\"/> "
2902"(Variant 1), a specific addbandarg's index value is relative to the raster "
2903"at the time when the band described by that addbandarg is being added to the "
2904"raster. See the Multiple New Bands example below."
2905msgstr ""
2906"<xref linkend=\"addbandarg\"/>の配列を取る版 (一つ目の版)では、指定した"
2907"addbandargのインデクス値は、addbandargで示されるバンドがラスタに追加される時"
2908"のラスタとの相対値です。下の複数バンドの例を参照してください。"
2909
2910#. Tag: para
2911#: reference_raster.xml:1234
2912#, no-c-format
2913msgid ""
2914"For the variant that takes an array of rasters (Variant 5), if "
2915"<varname>torast</varname> is NULL then the <varname>fromband</varname> band "
2916"of each raster in the array is accumulated into a new raster."
2917msgstr ""
2918"ラスタの配列を取る版 (五つ目の版)では、<varname>torast</varname>がNULLなら、"
2919"配列内のラスタごとの<varname>fromband</varname>のバンドが新しいラスタに集約さ"
2920"れます。"
2921
2922#. Tag: para
2923#: reference_raster.xml:1238
2924#, no-c-format
2925msgid ""
2926"For the variants that take <varname>outdbfile</varname> (Variants 6 and 7), "
2927"the value must include the full path to the raster file. The file must also "
2928"be accessible to the postgres server process."
2929msgstr ""
2930"<varname>outdbfile</varname>を取る版 (六つ目と七つ目の版)では、値はラスタファ"
2931"イルへのフルパスを含まなければなりません。また、ファイルはPostgreSQLサーバプ"
2932"ロセスがアクセス可能でなければなりません。"
2933
2934#. Tag: para
2935#: reference_raster.xml:1242
2936#, no-c-format
2937msgid "Enhanced: 2.1.0 support for addbandarg added."
2938msgstr "Enhanced: 2.1.0 addbandarg対応が追加されました。"
2939
2940#. Tag: para
2941#: reference_raster.xml:1243
2942#, no-c-format
2943msgid "Enhanced: 2.1.0 support for new out-db bands added."
2944msgstr "Enhanced: 2.1.0 out-dbバンドが追加されました。"
2945
2946#. Tag: title
2947#: reference_raster.xml:1247
2948#, no-c-format
2949msgid "Examples: Single New Band"
2950msgstr "例: 単一バンド"
2951
2952#. Tag: programlisting
2953#: reference_raster.xml:1249
2954#, no-c-format
2955msgid ""
2956"-- Add another band of type 8 bit unsigned integer with pixels initialized "
2957"to 200\n"
2958"UPDATE dummy_rast\n"
2959"    SET rast = ST_AddBand(rast,'8BUI'::text,200)\n"
2960"WHERE rid = 1;"
2961msgstr ""
2962"-- 8ビット符号無し整数で初期値200のバンドを追加します\n"
2963"UPDATE dummy_rast\n"
2964"    SET rast = ST_AddBand(rast,'8BUI'::text,200)\n"
2965"WHERE rid = 1;"
2966
2967#. Tag: programlisting
2968#: reference_raster.xml:1251
2969#, no-c-format
2970msgid ""
2971"-- Create an empty raster 100x100 units, with upper left  right at 0, add 2 "
2972"bands (band 1 is 0/1 boolean bit switch, band2 allows values 0-15)\n"
2973"-- uses addbandargs\n"
2974"INSERT INTO dummy_rast(rid,rast)\n"
2975"    VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, "
2976"0),\n"
2977"        ARRAY[\n"
2978"                ROW(1, '1BB'::text, 0, NULL),\n"
2979"                ROW(2, '4BUI'::text, 0, NULL)\n"
2980"                        ]::addbandarg[]\n"
2981"     )\n"
2982"    );\n"
2983"\n"
2984"-- output meta data of raster bands to verify all is right --\n"
2985"SELECT  (bmd).*\n"
2986"FROM (SELECT ST_BandMetaData(rast,generate_series(1,2)) As bmd\n"
2987"    FROM dummy_rast WHERE rid = 10) AS foo;\n"
2988" --result --\n"
2989" pixeltype | nodatavalue | isoutdb | path\n"
2990"-----------+----------------+-------------+---------+------\n"
2991" 1BB       |             | f       |\n"
2992" 4BUI      |             | f       |\n"
2993"\n"
2994"\n"
2995"-- output meta data of raster -\n"
2996"SELECT  (rmd).width, (rmd).height, (rmd).numbands\n"
2997"FROM (SELECT ST_MetaData(rast) As rmd\n"
2998"    FROM dummy_rast WHERE rid = 10) AS foo;\n"
2999"-- result --\n"
3000" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
3001"| srid | numbands\n"
3002"------------+------------+-------+--------+------------+------------+-------"
3003"+-------+------+----------\n"
3004"          0 |          0 |   100 |    100 |      1 |     -1 |     0 |     0 "
3005"|   0 |        2"
3006msgstr ""
3007"-- 100x100単位で左上を0,0とした空のラスタを生成し、\n"
3008"-- 2個のバンドを追加します (1番バンドは0/1の真偽値、2番バンドは0-15を許容)\n"
3009"-- addbandargsを使用しています。\n"
3010"INSERT INTO dummy_rast(rid,rast)\n"
3011"    VALUES(10, ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 1, -1, 0, 0, "
3012"0),\n"
3013"        ARRAY[\n"
3014"                ROW(1, '1BB'::text, 0, NULL),\n"
3015"                ROW(2, '4BUI'::text, 0, NULL)\n"
3016"                        ]::addbandarg[]\n"
3017"     )\n"
3018"    );\n"
3019"\n"
3020"-- output meta data of raster bands to verify all is right --\n"
3021"SELECT  (bmd).*\n"
3022"FROM (SELECT ST_BandMetaData(rast,generate_series(1,2)) As bmd\n"
3023"    FROM dummy_rast WHERE rid = 10) AS foo;\n"
3024" --result --\n"
3025" pixeltype | nodatavalue | isoutdb | path\n"
3026"-----------+----------------+-------------+---------+------\n"
3027" 1BB       |             | f       |\n"
3028" 4BUI      |             | f       |\n"
3029"\n"
3030"\n"
3031"-- ラスタのメタデータの出力 --\n"
3032"SELECT  (rmd).width, (rmd).height, (rmd).numbands\n"
3033"FROM (SELECT ST_MetaData(rast) As rmd\n"
3034"    FROM dummy_rast WHERE rid = 10) AS foo;\n"
3035"-- 結果 --\n"
3036" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
3037"| srid | numbands\n"
3038"------------+------------+-------+--------+------------+------------+-------"
3039"+-------+------+----------\n"
3040"          0 |          0 |   100 |    100 |      1 |     -1 |     0 |     0 "
3041"|   0 |        2"
3042
3043#. Tag: title
3044#: reference_raster.xml:1255
3045#, no-c-format
3046msgid "Examples: Multiple New Bands"
3047msgstr "例: 複数の新規バンド"
3048
3049#. Tag: programlisting
3050#: reference_raster.xml:1257
3051#, no-c-format
3052msgid ""
3053"SELECT\n"
3054"        *\n"
3055"FROM ST_BandMetadata(\n"
3056"        ST_AddBand(\n"
3057"                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
3058"                ARRAY[\n"
3059"                        ROW(NULL, '8BUI', 255, 0),\n"
3060"                        ROW(NULL, '16BUI', 1, 2),\n"
3061"                        ROW(2, '32BUI', 100, 12),\n"
3062"                        ROW(2, '32BF', 3.14, -1)\n"
3063"                ]::addbandarg[]\n"
3064"        ),\n"
3065"        ARRAY[]::integer[]\n"
3066");\n"
3067"\n"
3068" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
3069"---------+-----------+-------------+---------+------\n"
3070"       1 | 8BUI      |           0 | f       |\n"
3071"       2 | 32BF      |          -1 | f       |\n"
3072"       3 | 32BUI     |          12 | f       |\n"
3073"       4 | 16BUI     |           2 | f       |"
3074msgstr ""
3075"SELECT\n"
3076"        *\n"
3077"FROM ST_BandMetadata(\n"
3078"        ST_AddBand(\n"
3079"                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
3080"                ARRAY[\n"
3081"                        ROW(NULL, '8BUI', 255, 0),\n"
3082"                        ROW(NULL, '16BUI', 1, 2),\n"
3083"                        ROW(2, '32BUI', 100, 12),\n"
3084"                        ROW(2, '32BF', 3.14, -1)\n"
3085"                ]::addbandarg[]\n"
3086"        ),\n"
3087"        ARRAY[]::integer[]\n"
3088");\n"
3089"\n"
3090" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
3091"---------+-----------+-------------+---------+------\n"
3092"       1 | 8BUI      |           0 | f       |\n"
3093"       2 | 32BF      |          -1 | f       |\n"
3094"       3 | 32BUI     |          12 | f       |\n"
3095"       4 | 16BUI     |           2 | f       |"
3096
3097#. Tag: programlisting
3098#: reference_raster.xml:1259
3099#, no-c-format
3100msgid ""
3101"-- Aggregate the 1st band of a table of like rasters into a single raster\n"
3102"-- with as many bands as there are test_types and as many rows (new rasters) "
3103"as there are mice\n"
3104"-- NOTE: The ORDER BY test_type is only supported in PostgreSQL 9.0+\n"
3105"-- for 8.4 and below it usually works to order your data in a subselect (but "
3106"not guaranteed)\n"
3107"-- The resulting raster will have a band for each test_type alphabetical by "
3108"test_type\n"
3109"-- For mouse lovers: No mice were harmed in this exercise\n"
3110"SELECT\n"
3111"        mouse,\n"
3112"        ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1) As rast\n"
3113"FROM mice_studies\n"
3114"GROUP BY mouse;"
3115msgstr ""
3116"-- 複数のラスタのようなテーブルの1番バンドを集計して単一ラスタに入れます。\n"
3117"-- test_typeと同じ数のバンドを持つ、マウスの数と同じ行 (新しいラスタ)になりま"
3118"す。\n"
3119"-- ご注意: ORDER BY test_typeは、PostgreSQL 9.0以上でのみ対応します。\n"
3120"-- 8.4以下では副問い合わせ内の並び順になります (保証もされません)。\n"
3121"-- 結果ラスタはtest_typeのアルファベット順でtest_typeごとのバンドを持ちます\n"
3122"-- マウス好きの方へ: この例ではマウスは傷つきませんでした\n"
3123"SELECT\n"
3124"        mouse,\n"
3125"        ST_AddBand(NULL, array_agg(rast ORDER BY test_type), 1) As rast\n"
3126"FROM mice_studies\n"
3127"GROUP BY mouse;"
3128
3129#. Tag: title
3130#: reference_raster.xml:1263
3131#, no-c-format
3132msgid "Examples: New Out-db band"
3133msgstr "例: データベース外のバンド"
3134
3135#. Tag: programlisting
3136#: reference_raster.xml:1264
3137#, no-c-format
3138msgid ""
3139"SELECT\n"
3140"        *\n"
3141"FROM ST_BandMetadata(\n"
3142"        ST_AddBand(\n"
3143"                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
3144"                '/home/raster/mytestraster.tif'::text, NULL::int[]\n"
3145"        ),\n"
3146"        ARRAY[]::integer[]\n"
3147");\n"
3148"\n"
3149" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
3150"---------+-----------+-------------+---------+------\n"
3151"       1 | 8BUI      |             | t       | /home/raster/mytestraster."
3152"tif\n"
3153"       2 | 8BUI      |             | t       | /home/raster/mytestraster."
3154"tif\n"
3155"       3 | 8BUI      |             | t       | /home/raster/mytestraster.tif"
3156msgstr ""
3157"SELECT\n"
3158"        *\n"
3159"FROM ST_BandMetadata(\n"
3160"        ST_AddBand(\n"
3161"                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, 0, 0),\n"
3162"                '/home/raster/mytestraster.tif'::text, NULL::int[]\n"
3163"        ),\n"
3164"        ARRAY[]::integer[]\n"
3165");\n"
3166"\n"
3167" bandnum | pixeltype | nodatavalue | isoutdb | path\n"
3168"---------+-----------+-------------+---------+------\n"
3169"       1 | 8BUI      |             | t       | /home/raster/mytestraster."
3170"tif\n"
3171"       2 | 8BUI      |             | t       | /home/raster/mytestraster."
3172"tif\n"
3173"       3 | 8BUI      |             | t       | /home/raster/mytestraster.tif"
3174
3175#. Tag: para
3176#: reference_raster.xml:1269
3177#, no-c-format
3178msgid ""
3179", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend="
3180"\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"RT_ST_MetaData\"/>, <xref "
3181"linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>"
3182msgstr ""
3183", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend="
3184"\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"RT_ST_MetaData\"/>, <xref "
3185"linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>"
3186
3187#. Tag: refname
3188#: reference_raster.xml:1282
3189#, no-c-format
3190msgid "ST_AsRaster"
3191msgstr "ST_AsRaster"
3192
3193#. Tag: refpurpose
3194#: reference_raster.xml:1283
3195#, no-c-format
3196msgid "Converts a PostGIS geometry to a PostGIS raster."
3197msgstr "PostGISジオメトリをPostGISラスタに変換します。"
3198
3199#. Tag: funcsynopsis
3200#: reference_raster.xml:1287
3201#, no-c-format
3202msgid ""
3203"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3204"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3205"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
3206"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3207"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3208"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3209"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3210"\"><type>boolean </type> <parameter>touched=false</parameter></paramdef> </"
3211"funcprototype> <funcprototype> <funcdef>raster <function>ST_AsRaster</"
3212"function></funcdef> <paramdef><type>geometry </type> <parameter>geom</"
3213"parameter></paramdef> <paramdef><type>raster </type> <parameter>ref</"
3214"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
3215"<parameter>pixeltype=ARRAY['8BUI']</parameter></paramdef> <paramdef choice="
3216"\"opt\"><type>double precision[] </type> <parameter>value=ARRAY[1]</"
3217"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3218"type> <parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice="
3219"\"opt\"><type>boolean </type> <parameter>touched=false</parameter></"
3220"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3221"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3222"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3223"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3224"precision </type> <parameter>scaley</parameter></paramdef> "
3225"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
3226"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
3227"parameter></paramdef> <paramdef><type>text </type> <parameter>pixeltype</"
3228"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3229"type> <parameter>value=1</parameter></paramdef> <paramdef choice=\"opt"
3230"\"><type>double precision </type> <parameter>nodataval=0</parameter></"
3231"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3232"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3233"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3234"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3235"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3236"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3237"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3238"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3239"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
3240"\"opt\"><type>double precision </type> <parameter>gridx=NULL</parameter></"
3241"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3242"<parameter>gridy=NULL</parameter></paramdef> <paramdef choice=\"opt"
3243"\"><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</parameter></"
3244"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
3245"<parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3246"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3247"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3248"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3249"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3250"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3251"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3252"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3253"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3254"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3255"precision </type> <parameter>scaley</parameter></paramdef> "
3256"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3257"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3258"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3259"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3260"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3261"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3262"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3263"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3264"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3265"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3266"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3267"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3268"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3269"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
3270"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
3271"parameter></paramdef> <paramdef><type>text[] </type> <parameter>pixeltype</"
3272"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3273"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3274"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3275"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3276"type> <parameter>upperleftx=NULL</parameter></paramdef> <paramdef choice="
3277"\"opt\"><type>double precision </type> <parameter>upperlefty=NULL</"
3278"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3279"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3280"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3281"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3282"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3283"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3284"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
3285"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
3286"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
3287"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
3288"precision </type> <parameter>gridy</parameter></paramdef> "
3289"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3290"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3291"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3292"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3293"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3294"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3295"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3296"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3297"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3298"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3299"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3300"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3301"<paramdef choice=\"opt\"><type>double precision </type> "
3302"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
3303"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
3304"paramdef> <paramdef><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</"
3305"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3306"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3307"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3308"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3309"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3310"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3311"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3312"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3313"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3314"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
3315"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
3316"<parameter>height</parameter></paramdef> <paramdef><type>text </type> "
3317"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
3318"\"><type>double precision </type> <parameter>value=1</parameter></paramdef> "
3319"<paramdef choice=\"opt\"><type>double precision </type> "
3320"<parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3321"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3322"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3323"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3324"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3325"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3326"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3327"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3328"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3329"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3330"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3331"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3332"<paramdef><type>text[] </type> <parameter>pixeltype</parameter></paramdef> "
3333"<paramdef><type>double precision[] </type> <parameter>value=ARRAY[1]</"
3334"parameter></paramdef> <paramdef><type>double precision[] </type> "
3335"<parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=\"opt"
3336"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3337"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3338"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3339"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3340"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3341"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3342"<parameter>touched=false</parameter></paramdef> </funcprototype>"
3343msgstr ""
3344"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3345"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3346"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
3347"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3348"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3349"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3350"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3351"\"><type>boolean </type> <parameter>touched=false</parameter></paramdef> </"
3352"funcprototype> <funcprototype> <funcdef>raster <function>ST_AsRaster</"
3353"function></funcdef> <paramdef><type>geometry </type> <parameter>geom</"
3354"parameter></paramdef> <paramdef><type>raster </type> <parameter>ref</"
3355"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
3356"<parameter>pixeltype=ARRAY['8BUI']</parameter></paramdef> <paramdef choice="
3357"\"opt\"><type>double precision[] </type> <parameter>value=ARRAY[1]</"
3358"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3359"type> <parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice="
3360"\"opt\"><type>boolean </type> <parameter>touched=false</parameter></"
3361"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3362"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3363"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3364"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3365"precision </type> <parameter>scaley</parameter></paramdef> "
3366"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
3367"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
3368"parameter></paramdef> <paramdef><type>text </type> <parameter>pixeltype</"
3369"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3370"type> <parameter>value=1</parameter></paramdef> <paramdef choice=\"opt"
3371"\"><type>double precision </type> <parameter>nodataval=0</parameter></"
3372"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3373"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3374"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3375"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3376"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3377"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3378"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3379"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3380"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
3381"\"opt\"><type>double precision </type> <parameter>gridx=NULL</parameter></"
3382"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3383"<parameter>gridy=NULL</parameter></paramdef> <paramdef choice=\"opt"
3384"\"><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</parameter></"
3385"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
3386"<parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3387"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3388"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3389"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3390"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3391"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3392"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3393"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3394"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
3395"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
3396"precision </type> <parameter>scaley</parameter></paramdef> "
3397"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3398"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3399"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3400"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3401"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3402"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3403"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3404"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3405"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3406"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3407"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3408"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3409"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3410"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
3411"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
3412"parameter></paramdef> <paramdef><type>text[] </type> <parameter>pixeltype</"
3413"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3414"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3415"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3416"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3417"type> <parameter>upperleftx=NULL</parameter></paramdef> <paramdef choice="
3418"\"opt\"><type>double precision </type> <parameter>upperlefty=NULL</"
3419"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3420"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3421"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3422"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3423"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3424"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3425"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
3426"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
3427"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
3428"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
3429"precision </type> <parameter>gridy</parameter></paramdef> "
3430"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
3431"<paramdef choice=\"opt\"><type>double precision </type> <parameter>value=1</"
3432"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3433"type> <parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3434"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3435"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3436"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3437"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3438"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3439"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3440"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3441"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3442"<paramdef choice=\"opt\"><type>double precision </type> "
3443"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
3444"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
3445"paramdef> <paramdef><type>text[] </type> <parameter>pixeltype=ARRAY['8BUI']</"
3446"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
3447"type> <parameter>value=ARRAY[1]</parameter></paramdef> <paramdef choice=\"opt"
3448"\"><type>double precision[] </type> <parameter>nodataval=ARRAY[0]</"
3449"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
3450"type> <parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
3451"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
3452"<paramdef choice=\"opt\"><type>boolean </type> <parameter>touched=false</"
3453"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
3454"<function>ST_AsRaster</function></funcdef> <paramdef><type>geometry </type> "
3455"<parameter>geom</parameter></paramdef> <paramdef><type>integer </type> "
3456"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
3457"<parameter>height</parameter></paramdef> <paramdef><type>text </type> "
3458"<parameter>pixeltype</parameter></paramdef> <paramdef choice=\"opt"
3459"\"><type>double precision </type> <parameter>value=1</parameter></paramdef> "
3460"<paramdef choice=\"opt\"><type>double precision </type> "
3461"<parameter>nodataval=0</parameter></paramdef> <paramdef choice=\"opt"
3462"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3463"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3464"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3465"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3466"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3467"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3468"<parameter>touched=false</parameter></paramdef> </funcprototype> "
3469"<funcprototype> <funcdef>raster <function>ST_AsRaster</function></funcdef> "
3470"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
3471"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3472"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3473"<paramdef><type>text[] </type> <parameter>pixeltype</parameter></paramdef> "
3474"<paramdef><type>double precision[] </type> <parameter>value=ARRAY[1]</"
3475"parameter></paramdef> <paramdef><type>double precision[] </type> "
3476"<parameter>nodataval=ARRAY[0]</parameter></paramdef> <paramdef choice=\"opt"
3477"\"><type>double precision </type> <parameter>upperleftx=NULL</parameter></"
3478"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
3479"<parameter>upperlefty=NULL</parameter></paramdef> <paramdef choice=\"opt"
3480"\"><type>double precision </type> <parameter>skewx=0</parameter></paramdef> "
3481"<paramdef choice=\"opt\"><type>double precision </type> <parameter>skewy=0</"
3482"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
3483"<parameter>touched=false</parameter></paramdef> </funcprototype>"
3484
3485#. Tag: para
3486#: reference_raster.xml:1435
3487#, no-c-format
3488msgid ""
3489"Converts a PostGIS geometry to a PostGIS raster. The many variants offers "
3490"three groups of possibilities for setting the alignment and pixelsize of the "
3491"resulting raster."
3492msgstr ""
3493"PostGISジオメトリをPostGISラスタに変換します。多数の形式がありますが、結果ラ"
3494"スタのアラインメントとピクセルサイズを設定する三つの考えられる類型に分かれま"
3495"す。"
3496
3497#. Tag: para
3498#: reference_raster.xml:1437
3499#, no-c-format
3500msgid ""
3501"The first group, composed of the two first variants, produce a raster having "
3502"the same alignment (<varname>scalex</varname>, <varname>scaley</varname>, "
3503"<varname>gridx</varname> and <varname>gridy</varname>), pixel type and "
3504"nodata value as the provided reference raster. You generally pass this "
3505"reference raster by joining the table containing the geometry with the table "
3506"containing the reference raster."
3507msgstr ""
3508"一つ目の群は、最初の2形式です。 アラインメント (<varname>scalex</varname>, "
3509"<varname>scaley</varname>, <varname>gridx</varname>, <varname>gridy</"
3510"varname>)、ピクセルタイプ、NODATA値が提供される参照ラスタと同じとなるラスタを"
3511"生成します。一般的にこの参照ラスタは、ジオメトリを含むテーブルを参照ラスタを"
3512"含むテーブルに結合して渡します。"
3513
3514#. Tag: para
3515#: reference_raster.xml:1439
3516#, no-c-format
3517msgid ""
3518"The second group, composed of four variants, let you set the dimensions of "
3519"the raster by providing the parameters of a pixel size (<varname>scalex</"
3520"varname> &amp; <varname>scaley</varname> and <varname>skewx</varname> &amp; "
3521"<varname>skewy</varname>). The <varname>width</varname> &amp; "
3522"<varname>height</varname> of the resulting raster will be adjusted to fit "
3523"the extent of the geometry. In most cases, you must cast integer "
3524"<varname>scalex</varname> &amp; <varname>scaley</varname> arguments to "
3525"double precision so that PostgreSQL choose the right variant."
3526msgstr ""
3527"二つ目の群は、4形式あります。ピクセルサイズ (<varname>scalex</varname> &amp; "
3528"<varname>scaley</varname>と<varname>skewx</varname> &amp; <varname>skewy</"
3529"varname>)の引数を渡してラスタのピクセル範囲を設定します。結果ラスタの"
3530"<varname>width</varname> &amp; <varname>height</varname>はジオメトリの範囲に"
3531"あわせて調整されます。ほとんどの場合、PostgreSQLが正しい形式を選択するため"
3532"に、<varname>scalex</varname> &amp; <varname>scaley</varname>の整数引数を倍精"
3533"度浮動小数点数にキャストしなければなりません。"
3534
3535#. Tag: para
3536#: reference_raster.xml:1441
3537#, no-c-format
3538msgid ""
3539"The third group, composed of four variants, let you fix the dimensions of "
3540"the raster by providing the dimensions of the raster (<varname>width</"
3541"varname> &amp; <varname>height</varname>). The parameters of the pixel size "
3542"(<varname>scalex</varname> &amp; <varname>scaley</varname> and "
3543"<varname>skewx</varname> &amp; <varname>skewy</varname>) of the resulting "
3544"raster will be adjusted to fit the extent of the geometry."
3545msgstr ""
3546"三つ目の群は、4形式あります。ラスタのピクセル範囲 (<varname>width</varname> "
3547"&amp; <varname>height</varname>)を渡してラスタのピクセル範囲を固定するもので"
3548"す。結果ラスタのピクセルサイズ(<varname>scalex</varname> &amp; "
3549"<varname>scaley</varname>と<varname>skewx</varname> &amp; <varname>skewy</"
3550"varname>)の引数はジオメトリの範囲にあわせて調整されます。"
3551
3552#. Tag: para
3553#: reference_raster.xml:1443
3554#, no-c-format
3555msgid ""
3556"The two first variants of each of those two last groups let you specify the "
3557"alignment with an arbitrary corner of the alignment grid (<varname>gridx</"
3558"varname> &amp; <varname>gridy</varname>) and the two last variants takes the "
3559"upper left corner (<varname>upperleftx</varname> &amp; <varname>upperlefty</"
3560"varname>)."
3561msgstr ""
3562"二つ目の群と三つ目の群の群内前半2形式は、アラインメントグリッド "
3563"(<varname>gridx</varname> &amp; <varname>gridy</varname>)の適切な隅でアライン"
3564"メントを特定します。群内後半2形式は左上隅 (<varname>upperleftx</varname> "
3565"&amp; <varname>upperlefty</varname>)を取ります。"
3566
3567#. Tag: para
3568#: reference_raster.xml:1445
3569#, no-c-format
3570msgid ""
3571"Each group of variant allows producing a one band raster or a multiple bands "
3572"raster. To produce a multiple bands raster, you must provide an array of "
3573"pixel types (<varname>pixeltype[]</varname>), an array of initial values "
3574"(<varname>value</varname>) and an array of nodata values "
3575"(<varname>nodataval</varname>). If not provided pixeltyped defaults to 8BUI, "
3576"values to 1 and nodataval to 0."
3577msgstr ""
3578"これらの群のそれぞれによって、1バンドまたは複数バンドのラスタを生成することが"
3579"できます。複数バンドのラスタを生成するには、ピクセルタイプ配列 "
3580"(<varname>pixeltype[]</varname>)、初期値配列 (<varname>value</varname>)、"
3581"NODATA値配列 (<varname>nodataval</varname>)を渡す必要があります。ピクセルタイ"
3582"プが渡されていない場合には、デフォルトは8BUIになり、初期値については1、NODATA"
3583"値については0になります。"
3584
3585#. Tag: para
3586#: reference_raster.xml:1447
3587#, no-c-format
3588msgid ""
3589"The output raster will be in the same spatial reference as the source "
3590"geometry. The only exception is for variants with a reference raster. In "
3591"this case the resulting raster will get the same SRID as the reference "
3592"raster."
3593msgstr ""
3594"出力ラスタは元のジオメトリと同じ空間参照系になります。参照ラスタを使う形式は"
3595"例外で、結果ラスタは参照ラスタと同じSRIDになります。"
3596
3597#. Tag: para
3598#: reference_raster.xml:1449
3599#, no-c-format
3600msgid ""
3601"The optional <varname>touched</varname> parameter defaults to false and maps "
3602"to the GDAL ALL_TOUCHED rasterization option, which determines if pixels "
3603"touched by lines or polygons will be burned. Not just those on the line "
3604"render path, or whose center point is within the polygon."
3605msgstr ""
3606"任意引数<varname>touched</varname>は、デフォルトではFALSEになります。GDALの"
3607"ALL_TOUCHEDラスタ化オプションに相当し、ラインまたはポリゴンに接触するピクセル"
3608"が描画されます。ライン上にあるか中心点がポリゴン内部にあるピクセルが描画され"
3609"るだけではありません。"
3610
3611#. Tag: para
3612#: reference_raster.xml:1451
3613#, no-c-format
3614msgid ""
3615"This is particularly useful for rendering jpegs and pngs of geometries "
3616"directly from the database when using in combination with <xref linkend="
3617"\"RT_ST_AsPNG\"/> and other <xref linkend=\"RT_ST_AsGDALRaster\"/> family of "
3618"functions."
3619msgstr ""
3620"これは特にジオメトリをデータベースから<xref linkend=\"RT_ST_AsPNG\"/>や<xref "
3621"linkend=\"RT_ST_AsGDALRaster\"/>系の関数を併用して直接JPEGやPNGに描画する際に"
3622"使えます。"
3623
3624#. Tag: para
3625#: reference_raster.xml:1455
3626#, no-c-format
3627msgid ""
3628"Not yet capable of rendering complex geometry types such as curves, TINS, "
3629"and PolyhedralSurfaces, but should be able too once GDAL can."
3630msgstr ""
3631"曲線、TIN、多面体サーフェスのような複雑なジオメトリタイプのレンダリングは、ま"
3632"だできませんが、GDALができることは実現できます。"
3633
3634#. Tag: title
3635#: reference_raster.xml:1460
3636#, no-c-format
3637msgid "Examples: Output geometries as PNG files"
3638msgstr "例: ジオメトリをPNGファイルとして出力"
3639
3640#. Tag: para
3641#: reference_raster.xml:1466
3642#, no-c-format
3643msgid "black circle"
3644msgstr "黒い円"
3645
3646#. Tag: programlisting
3647#: reference_raster.xml:1469
3648#, no-c-format
3649msgid ""
3650"-- this will output a black circle taking up 150 x 150 pixels --\n"
3651"SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10),150, 150));"
3652msgstr ""
3653"-- 150x150ピクセルを占める黒い円を出力します --\n"
3654"SELECT ST_AsPNG(ST_AsRaster(ST_Buffer(ST_Point(1,5),10),150, 150));"
3655
3656#. Tag: para
3657#: reference_raster.xml:1476
3658#, no-c-format
3659msgid "example from buffer rendered with just PostGIS"
3660msgstr "PostGISだけで描画したバッファの例"
3661
3662#. Tag: programlisting
3663#: reference_raster.xml:1480
3664#, no-c-format
3665msgid ""
3666"-- the bands map to RGB bands - the value (118,154,118) - teal  --\n"
3667"SELECT ST_AsPNG(\n"
3668"        ST_AsRaster(\n"
3669"                ST_Buffer(\n"
3670"                        ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), "
3671"10,'join=bevel'),\n"
3672"                        200,200,ARRAY['8BUI', '8BUI', '8BUI'], "
3673"ARRAY[118,154,118], ARRAY[0,0,0]));"
3674msgstr ""
3675"-- RGBバンド (118,154,118) - 鴨の羽色 にマップします --\n"
3676"SELECT ST_AsPNG(\n"
3677"        ST_AsRaster(\n"
3678"                ST_Buffer(\n"
3679"                        ST_GeomFromText('LINESTRING(50 50,150 150,150 50)'), "
3680"10,'join=bevel'),\n"
3681"                        200,200,ARRAY['8BUI', '8BUI', '8BUI'], "
3682"ARRAY[118,154,118], ARRAY[0,0,0]));"
3683
3684#. Tag: para
3685#: reference_raster.xml:1486
3686#, no-c-format
3687msgid ""
3688", <xref linkend=\"ST_Buffer\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
3689"<xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, "
3690"<xref linkend=\"RT_ST_AsJPEG\"/>, <xref linkend=\"RT_ST_SRID\"/>"
3691msgstr ""
3692", <xref linkend=\"ST_Buffer\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
3693"<xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, "
3694"<xref linkend=\"RT_ST_AsJPEG\"/>, <xref linkend=\"RT_ST_SRID\"/>"
3695
3696#. Tag: refname
3697#: reference_raster.xml:1492
3698#, no-c-format
3699msgid "ST_Band"
3700msgstr "ST_Band"
3701
3702#. Tag: refpurpose
3703#: reference_raster.xml:1493
3704#, no-c-format
3705msgid ""
3706"Returns one or more bands of an existing raster as a new raster. Useful for "
3707"building new rasters from existing rasters."
3708msgstr ""
3709"既存のラスタの、一つ以上のバンドを新しいラスタとして返します。既存のラスタか"
3710"ら新しいラスタを構築する際に使えます。"
3711
3712#. Tag: funcsynopsis
3713#: reference_raster.xml:1497
3714#, no-c-format
3715msgid ""
3716"<funcprototype> <funcdef>raster <function>ST_Band</function></funcdef> "
3717"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
3718"<paramdef choice=\"opt\"><type>integer[] </type> <parameter>nbands = "
3719"ARRAY[1]</parameter></paramdef> </funcprototype> <funcprototype> "
3720"<funcdef>raster <function>ST_Band</function></funcdef> "
3721"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
3722"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> </"
3723"funcprototype> <funcprototype> <funcdef>raster <function>ST_Band</function></"
3724"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
3725"paramdef> <paramdef><type>text </type> <parameter>nbands</parameter></"
3726"paramdef> <paramdef choice=\"opt\"><type>character </type> "
3727"<parameter>delimiter=,</parameter></paramdef> </funcprototype>"
3728msgstr ""
3729"<funcprototype> <funcdef>raster <function>ST_Band</function></funcdef> "
3730"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
3731"<paramdef choice=\"opt\"><type>integer[] </type> <parameter>nbands = "
3732"ARRAY[1]</parameter></paramdef> </funcprototype> <funcprototype> "
3733"<funcdef>raster <function>ST_Band</function></funcdef> "
3734"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
3735"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> </"
3736"funcprototype> <funcprototype> <funcdef>raster <function>ST_Band</function></"
3737"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
3738"paramdef> <paramdef><type>text </type> <parameter>nbands</parameter></"
3739"paramdef> <paramdef choice=\"opt\"><type>character </type> "
3740"<parameter>delimiter=,</parameter></paramdef> </funcprototype>"
3741
3742#. Tag: para
3743#: reference_raster.xml:1522
3744#, no-c-format
3745msgid ""
3746"Returns one or more bands of an existing raster as a new raster. Useful for "
3747"building new rasters from existing rasters or export of only selected bands "
3748"of a raster or rearranging the order of bands in a raster. If no band is "
3749"specified or any of specified bands does not exist in the raster, then all "
3750"bands are returned. Used as a helper function in various functions such as "
3751"for deleting a band."
3752msgstr ""
3753"既存のラスタの、一つ以上のバンドを新しいラスタとして返します。既存ラスタから"
3754"新しいラスタを構築したり、ラスタの選択したバンドのみを出力したり、バンドの並"
3755"びを改める際に使えます。バンドが指定されない場合や指定したバンドがラスタに存"
3756"在しない場合には、全てのバンドを返します。バンド削除等の様々な関数を補助する"
3757"関数として使われています。"
3758
3759#. Tag: para
3760#: reference_raster.xml:1524
3761#, no-c-format
3762msgid ""
3763"For the <code>nbands</code> as text variant of function, the default "
3764"delimiter is <code>,</code> which means you can ask for <code>'1,2,3'</code> "
3765"and if you wanted to use a different delimeter you would do "
3766"<code>ST_Band(rast, '1@2@3', '@')</code>. For asking for multiple bands, we "
3767"strongly suggest you use the array form of this function e.g. "
3768"<code>ST_Band(rast, '{1,2,3}'::int[]);</code> since the <code>text</code> "
3769"list of bands form may be removed in future versions of PostGIS."
3770msgstr ""
3771"<code>nbands</code>を文字列とする版では、デフォルトのデリミタは<code>,</code>"
3772"です。<code>'1,2,3'</code>と指定できます。異なるデリミタを使いたい場合には、"
3773"<code>ST_Band(rast, '1@2@3', '@')</code>とします。複数バンドを指定する際に、"
3774"<code>ST_Band(rast, '{1,2,3}'::int[]);</code>というような、配列を使うことを強"
3775"くお勧めします。<code>text</code>によるバンド一覧を取る形式は、PostGISの将来"
3776"の版で削除するかも知れません。"
3777
3778#. Tag: programlisting
3779#: reference_raster.xml:1532
3780#, no-c-format
3781msgid ""
3782"-- Make 2 new rasters: 1 containing band 1 of dummy, second containing band "
3783"2 of dummy and then reclassified as a 2BUI\n"
3784"SELECT ST_NumBands(rast1) As numb1, ST_BandPixelType(rast1) As pix1,\n"
3785" ST_NumBands(rast2) As numb2,  ST_BandPixelType(rast2) As pix2\n"
3786"FROM (\n"
3787"    SELECT ST_Band(rast) As rast1, ST_Reclass(ST_Band(rast,3), '100-200):1, "
3788"[200-254:2', '2BUI') As rast2\n"
3789"        FROM dummy_rast\n"
3790"        WHERE rid = 2) As foo;\n"
3791"\n"
3792" numb1 | pix1 | numb2 | pix2\n"
3793"-------+------+-------+------\n"
3794"     1 | 8BUI |     1 | 2BUI"
3795msgstr ""
3796"-- 二つの新しいラスタを生成します\n"
3797"--   1 - ダミーラスタの1番バンド\n"
3798"--   2 - ダミーラスタの3番バンドを生成して2BUIで再分類\n"
3799"SELECT ST_NumBands(rast1) As numb1, ST_BandPixelType(rast1) As pix1,\n"
3800" ST_NumBands(rast2) As numb2,  ST_BandPixelType(rast2) As pix2\n"
3801"FROM (\n"
3802"    SELECT ST_Band(rast) As rast1, ST_Reclass(ST_Band(rast,3), '100-200):1, "
3803"[200-254:2', '2BUI') As rast2\n"
3804"        FROM dummy_rast\n"
3805"        WHERE rid = 2) As foo;\n"
3806"\n"
3807" numb1 | pix1 | numb2 | pix2\n"
3808"-------+------+-------+------\n"
3809"     1 | 8BUI |     1 | 2BUI"
3810
3811#. Tag: programlisting
3812#: reference_raster.xml:1534
3813#, no-c-format
3814msgid ""
3815"-- Return bands 2 and 3. Using array cast syntax\n"
3816"SELECT ST_NumBands(ST_Band(rast, '{2,3}'::int[])) As num_bands\n"
3817"    FROM dummy_rast WHERE rid=2;\n"
3818"\n"
3819"num_bands\n"
3820"----------\n"
3821"2\n"
3822"\n"
3823"-- Return bands 2 and 3. Use array to define bands\n"
3824"SELECT ST_NumBands(ST_Band(rast, ARRAY[2,3])) As num_bands\n"
3825"    FROM dummy_rast\n"
3826"WHERE rid=2;"
3827msgstr ""
3828"-- 配列へのキャストを使って2番と3番バンドを返します\n"
3829"SELECT ST_NumBands(ST_Band(rast, '{2,3}'::int[])) As num_bands\n"
3830"    FROM dummy_rast WHERE rid=2;\n"
3831"\n"
3832"num_bands\n"
3833"----------\n"
3834"2\n"
3835"\n"
3836"-- バンドの指定に配列を使って2番と3番バンドを返します\n"
3837"SELECT ST_NumBands(ST_Band(rast, ARRAY[2,3])) As num_bands\n"
3838"    FROM dummy_rast\n"
3839"WHERE rid=2;"
3840
3841#. Tag: para
3842#: reference_raster.xml:1544
3843#, no-c-format
3844msgid "original (column rast)"
3845msgstr "元画像 (rastカラム)"
3846
3847#. Tag: para
3848#: reference_raster.xml:1553
3849#, no-c-format
3850msgid "dupe_band"
3851msgstr "dupe_band"
3852
3853#. Tag: para
3854#: reference_raster.xml:1562
3855#, no-c-format
3856msgid "sing_band"
3857msgstr "sing_band"
3858
3859#. Tag: programlisting
3860#: reference_raster.xml:1570
3861#, no-c-format
3862msgid ""
3863"--Make a new raster with 2nd band of original and 1st band repeated twice,\n"
3864"and another with just the third band\n"
3865"SELECT rast, ST_Band(rast, ARRAY[2,1,1]) As dupe_band,\n"
3866"        ST_Band(rast, 3) As sing_band\n"
3867"FROM samples.than_chunked\n"
3868"WHERE rid=35;"
3869msgstr ""
3870"-- 元画像の2番バンド、1番バンド、1番バンドでバンドを成すラスタと\n"
3871"-- 3番バンドだけのラスタの生成\n"
3872"SELECT rast, ST_Band(rast, ARRAY[2,1,1]) As dupe_band,\n"
3873"        ST_Band(rast, 3) As sing_band\n"
3874"FROM samples.than_chunked\n"
3875"WHERE rid=35;"
3876
3877#. Tag: para
3878#: reference_raster.xml:1576
3879#, no-c-format
3880msgid ""
3881", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>, "
3882"<xref linkend=\"RT_reference\"/>"
3883msgstr ""
3884", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend=\"RT_ST_Reclass\"/>, "
3885"<xref linkend=\"RT_reference\"/>"
3886
3887#. Tag: refname
3888#: reference_raster.xml:1582
3889#, no-c-format
3890msgid "ST_MakeEmptyCoverage"
3891msgstr "ST_MakeEmptyCoverage"
3892
3893#. Tag: refpurpose
3894#: reference_raster.xml:1583
3895#, no-c-format
3896msgid "Cover georeferenced area with a grid of empty raster tiles."
3897msgstr ""
3898"空のラスタタイルのグリッドでジオリファレンスを施されている領域を生成します。"
3899
3900#. Tag: funcprototype
3901#: reference_raster.xml:1588
3902#, no-c-format
3903msgid ""
3904"<funcdef>raster <function>ST_MakeEmptyCoverage</function></funcdef> "
3905"<paramdef><type>integer </type> <parameter>tilewidth</parameter></paramdef> "
3906"<paramdef><type>integer </type> <parameter>tileheight</parameter></paramdef> "
3907"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3908"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3909"<paramdef><type>double precision </type> <parameter>upperleftx</parameter></"
3910"paramdef> <paramdef><type>double precision </type> <parameter>upperlefty</"
3911"parameter></paramdef> <paramdef><type>double precision </type> "
3912"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
3913"type> <parameter>scaley</parameter></paramdef> <paramdef><type>double "
3914"precision </type> <parameter>skewx</parameter></paramdef> "
3915"<paramdef><type>double precision </type> <parameter>skewy</parameter></"
3916"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
3917"<parameter>srid=unknown</parameter></paramdef>"
3918msgstr ""
3919"<funcdef>raster <function>ST_MakeEmptyCoverage</function></funcdef> "
3920"<paramdef><type>integer </type> <parameter>tilewidth</parameter></paramdef> "
3921"<paramdef><type>integer </type> <parameter>tileheight</parameter></paramdef> "
3922"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
3923"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
3924"<paramdef><type>double precision </type> <parameter>upperleftx</parameter></"
3925"paramdef> <paramdef><type>double precision </type> <parameter>upperlefty</"
3926"parameter></paramdef> <paramdef><type>double precision </type> "
3927"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
3928"type> <parameter>scaley</parameter></paramdef> <paramdef><type>double "
3929"precision </type> <parameter>skewx</parameter></paramdef> "
3930"<paramdef><type>double precision </type> <parameter>skewy</parameter></"
3931"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
3932"<parameter>srid=unknown</parameter></paramdef>"
3933
3934#. Tag: para
3935#: reference_raster.xml:1608
3936#, no-c-format
3937msgid ""
3938"Create a set of raster tiles with <xref linkend=\"RT_ST_MakeEmptyRaster\"/>. "
3939"Grid dimension is <varname>width</varname> &amp; <varname>height</varname>. "
3940"Tile dimension is <varname>tilewidth</varname> &amp; <varname>tileheight</"
3941"varname>. The covered georeferenced area is from upper left corner "
3942"(<varname>upperleftx</varname>, <varname>upperlefty</varname>) to lower "
3943"right corner (<varname>upperleftx</varname> + <varname>width</varname> * "
3944"<varname>scalex</varname>, <varname>upperlefty</varname> + <varname>height</"
3945"varname> * <varname>scaley</varname>)."
3946msgstr ""
3947"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>でラスタ集合を生成します。グリッドの"
3948"次元は<varname>width</varname>と<varname>height</varname>です。タイルの次元は"
3949"<varname>tilewidth</varname>と<varname>tileheight</varname>です。領域は左上隅"
3950"(<varname>upperleftx</varname>, <varname>upperlefty</varname>)から右下隅 "
3951"(<varname>upperleftx</varname> + <varname>width</varname> * <varname>scalex</"
3952"varname>, <varname>upperlefty</varname> + <varname>height</varname> * "
3953"<varname>scaley</varname>)で形成されます。"
3954
3955#. Tag: para
3956#: reference_raster.xml:1609
3957#, no-c-format
3958msgid ""
3959"Note that scaley is generally negative for rasters and scalex is generally "
3960"positive. So lower right corner will have a lower y value and higher x value "
3961"than the upper left corner."
3962msgstr ""
3963"ラスタのscaleyは一般的に負数で、scalexは一般的に正数です。右下隅は、左上隅よ"
3964"り、yは小さな値、xは大きな値になります。"
3965
3966#. Tag: para
3967#: reference_raster.xml:1610
3968#, no-c-format
3969msgid "Availability: 2.4.0"
3970msgstr "Availability: 2.4.0"
3971
3972#. Tag: title
3973#: reference_raster.xml:1614 reference_raster.xml:8517
3974#, no-c-format
3975msgid "Examples Basic"
3976msgstr "基本的な例"
3977
3978#. Tag: para
3979#: reference_raster.xml:1615
3980#, no-c-format
3981msgid ""
3982"Create 16 tiles in a 4x4 grid to cover the WGS84 area from upper left corner "
3983"(22, 77) to lower right corner (55, 33)."
3984msgstr ""
3985"WGS84で左上が(22, 27)で右下が(55, 53)となる範囲の4x4グリッドの16タイルを生成"
3986"します。"
3987
3988#. Tag: programlisting
3989#: reference_raster.xml:1616
3990#, no-c-format
3991msgid ""
3992"<![CDATA[SELECT (ST_MetaData(tile)).* FROM ST_MakeEmptyCoverage(1, 1, 4, 4, "
3993"22, 33, (55 - 22)/(4)::float, (33 - 77)/(4)::float, 0., 0., 4326) tile;\n"
3994"\n"
3995" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
3996"| srid | numbands\n"
3997"-------------------------------------------------------------------------------------\n"
3998"         22 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
3999"| 4326 |        0\n"
4000"      30.25 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4001"| 4326 |        0\n"
4002"       38.5 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4003"| 4326 |        0\n"
4004"      46.75 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4005"| 4326 |        0\n"
4006"         22 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4007"| 4326 |        0\n"
4008"      30.25 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4009"| 4326 |        0\n"
4010"       38.5 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4011"| 4326 |        0\n"
4012"      46.75 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4013"| 4326 |        0\n"
4014"         22 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4015"| 4326 |        0\n"
4016"      30.25 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4017"| 4326 |        0\n"
4018"       38.5 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4019"| 4326 |        0\n"
4020"      46.75 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4021"| 4326 |        0\n"
4022"         22 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4023"| 4326 |        0\n"
4024"      30.25 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4025"| 4326 |        0\n"
4026"       38.5 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4027"| 4326 |        0\n"
4028"      46.75 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4029"| 4326 |        0]]>"
4030msgstr ""
4031"<![CDATA[SELECT (ST_MetaData(tile)).* FROM ST_MakeEmptyCoverage(1, 1, 4, 4, "
4032"22, 33, (55 - 22)/(4)::float, (33 - 77)/(4)::float, 0., 0., 4326) tile;\n"
4033"\n"
4034" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
4035"| srid | numbands\n"
4036"-------------------------------------------------------------------------------------\n"
4037"         22 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4038"| 4326 |        0\n"
4039"      30.25 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4040"| 4326 |        0\n"
4041"       38.5 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4042"| 4326 |        0\n"
4043"      46.75 |         33 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4044"| 4326 |        0\n"
4045"         22 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4046"| 4326 |        0\n"
4047"      30.25 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4048"| 4326 |        0\n"
4049"       38.5 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4050"| 4326 |        0\n"
4051"      46.75 |         22 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4052"| 4326 |        0\n"
4053"         22 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4054"| 4326 |        0\n"
4055"      30.25 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4056"| 4326 |        0\n"
4057"       38.5 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4058"| 4326 |        0\n"
4059"      46.75 |         11 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4060"| 4326 |        0\n"
4061"         22 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4062"| 4326 |        0\n"
4063"      30.25 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4064"| 4326 |        0\n"
4065"       38.5 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4066"| 4326 |        0\n"
4067"      46.75 |          0 |     1 |      1 |   8.25 |    -11 |     0 |     0 "
4068"| 4326 |        0]]>"
4069
4070#. Tag: refname
4071#: reference_raster.xml:1629
4072#, no-c-format
4073msgid "ST_MakeEmptyRaster"
4074msgstr "ST_MakeEmptyRaster"
4075
4076#. Tag: refpurpose
4077#: reference_raster.xml:1630
4078#, no-c-format
4079msgid ""
4080"Returns an empty raster (having no bands) of given dimensions (width &amp; "
4081"height), upperleft X and Y, pixel size and rotation (scalex, scaley, skewx "
4082"&amp; skewy) and reference system (srid). If a raster is passed in, returns "
4083"a new raster with the same size, alignment and SRID. If srid is left out, "
4084"the spatial ref is set to unknown (0)."
4085msgstr ""
4086"与えられたピクセル範囲 (width &amp; height)、左上のX,Y、ピクセルサイズ、回転 "
4087"(scalex, scaley, skewx, skewy)と空間参照系 (srid)が指定された空ラスタ (バンド"
4088"を持たないラスタ)を返します。ラスタが渡されると、新しいラスタは渡されたラスタ"
4089"と同じサイズ、アラインメント、SRIDになります。SRIDが指定されていない場合に"
4090"は、空間参照系は不明 (0)とされます。"
4091
4092#. Tag: funcsynopsis
4093#: reference_raster.xml:1634
4094#, no-c-format
4095msgid ""
4096"<funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</function></"
4097"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
4098"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
4099"<function>ST_MakeEmptyRaster</function></funcdef> <paramdef><type>integer </"
4100"type> <parameter>width</parameter></paramdef> <paramdef><type>integer </"
4101"type> <parameter>height</parameter></paramdef> <paramdef><type>float8 </"
4102"type> <parameter>upperleftx</parameter></paramdef> <paramdef><type>float8 </"
4103"type> <parameter>upperlefty</parameter></paramdef> <paramdef><type>float8 </"
4104"type> <parameter>scalex</parameter></paramdef> <paramdef><type>float8 </"
4105"type> <parameter>scaley</parameter></paramdef> <paramdef><type>float8 </"
4106"type> <parameter>skewx</parameter></paramdef> <paramdef><type>float8 </type> "
4107"<parameter>skewy</parameter></paramdef> <paramdef choice=\"opt"
4108"\"><type>integer </type> <parameter>srid=unknown</parameter></paramdef> </"
4109"funcprototype> <funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</"
4110"function></funcdef> <paramdef><type>integer </type> <parameter>width</"
4111"parameter></paramdef> <paramdef><type>integer </type> <parameter>height</"
4112"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperleftx</"
4113"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperlefty</"
4114"parameter></paramdef> <paramdef><type>float8 </type> <parameter>pixelsize</"
4115"parameter></paramdef> </funcprototype>"
4116msgstr ""
4117"<funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</function></"
4118"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
4119"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
4120"<function>ST_MakeEmptyRaster</function></funcdef> <paramdef><type>integer </"
4121"type> <parameter>width</parameter></paramdef> <paramdef><type>integer </"
4122"type> <parameter>height</parameter></paramdef> <paramdef><type>float8 </"
4123"type> <parameter>upperleftx</parameter></paramdef> <paramdef><type>float8 </"
4124"type> <parameter>upperlefty</parameter></paramdef> <paramdef><type>float8 </"
4125"type> <parameter>scalex</parameter></paramdef> <paramdef><type>float8 </"
4126"type> <parameter>scaley</parameter></paramdef> <paramdef><type>float8 </"
4127"type> <parameter>skewx</parameter></paramdef> <paramdef><type>float8 </type> "
4128"<parameter>skewy</parameter></paramdef> <paramdef choice=\"opt"
4129"\"><type>integer </type> <parameter>srid=unknown</parameter></paramdef> </"
4130"funcprototype> <funcprototype> <funcdef>raster <function>ST_MakeEmptyRaster</"
4131"function></funcdef> <paramdef><type>integer </type> <parameter>width</"
4132"parameter></paramdef> <paramdef><type>integer </type> <parameter>height</"
4133"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperleftx</"
4134"parameter></paramdef> <paramdef><type>float8 </type> <parameter>upperlefty</"
4135"parameter></paramdef> <paramdef><type>float8 </type> <parameter>pixelsize</"
4136"parameter></paramdef> </funcprototype>"
4137
4138#. Tag: para
4139#: reference_raster.xml:1664
4140#, no-c-format
4141msgid ""
4142"Returns an empty raster (having no band) of given dimensions (width &amp; "
4143"height) and georeferenced in spatial (or world) coordinates with upper left "
4144"X (upperleftx), upper left Y (upperlefty), pixel size and rotation (scalex, "
4145"scaley, skewx &amp; skewy) and reference system (srid)."
4146msgstr ""
4147"与えられたピクセル範囲 (width &amp; height)を持ち、かつ、左上隅のX "
4148"(upperleftx)とY (upperlefty)、ピクセルサイズと回転 (scalex, scaley, skewx, "
4149"skewy)、空間参照系 (srid)によって空間 (またはワールド)座標上で地理参照された"
4150"空ラスタ (バンドを持たないラスタ)を返します。"
4151
4152#. Tag: para
4153#: reference_raster.xml:1667
4154#, no-c-format
4155msgid ""
4156"The last version use a single parameter to specify the pixel size "
4157"(pixelsize). scalex is set to this argument and scaley is set to the "
4158"negative value of this argument. skewx and skewy are set to 0."
4159msgstr ""
4160"最後の形式では、ピクセルサイズを一つの引数 (pixelsize)で指定しています。"
4161"scalexはこの引数に、scaleyは引数の正負逆の数に、それぞれ設定され、skewxと"
4162"skewyは0に設定されます。"
4163
4164#. Tag: para
4165#: reference_raster.xml:1669
4166#, no-c-format
4167msgid ""
4168"If an existing raster is passed in, it returns a new raster with the same "
4169"meta data settings (without the bands)."
4170msgstr ""
4171"既存のラスタを渡すと、同じメタデータ設定 (バンド以外)を持つ新しいラスタが返り"
4172"ます。"
4173
4174#. Tag: para
4175#: reference_raster.xml:1671
4176#, no-c-format
4177msgid ""
4178"If no srid is specified it defaults to 0. After you create an empty raster "
4179"you probably want to add bands to it and maybe edit it. Refer to <xref "
4180"linkend=\"RT_ST_AddBand\"/> to define bands and <xref linkend="
4181"\"RT_ST_SetValue\"/> to set initial pixel values."
4182msgstr ""
4183"SRIDが設定されていない場合には、デフォルトは0です。空ラスタを生成した後に、バ"
4184"ンドの追加や編集を行うことになります。<xref linkend=\"RT_ST_AddBand\"/>でバン"
4185"ドを定義し、<xref linkend=\"RT_ST_SetValue\"/>で初期ピクセル値を設定します。"
4186
4187#. Tag: programlisting
4188#: reference_raster.xml:1678
4189#, no-c-format
4190msgid ""
4191"INSERT INTO dummy_rast(rid,rast)\n"
4192"VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, "
4193"4326) );\n"
4194"\n"
4195"--use an existing raster as template for new raster\n"
4196"INSERT INTO dummy_rast(rid,rast)\n"
4197"SELECT 4, ST_MakeEmptyRaster(rast)\n"
4198"FROM dummy_rast WHERE rid = 3;\n"
4199"\n"
4200"-- output meta data of rasters we just added\n"
4201"SELECT rid, (md).*\n"
4202"FROM (SELECT rid, ST_MetaData(rast) As md\n"
4203"        FROM dummy_rast\n"
4204"        WHERE rid IN(3,4)) As foo;\n"
4205"\n"
4206"-- output --\n"
4207" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
4208"skewy | srid | numbands\n"
4209"-----+------------+------------+-------+--------+------------+------------"
4210"+-------+-------+------+----------\n"
4211"   3 |     0.0005 |     0.0005 |   100 |    100 |          1 |          1 "
4212"|    0  |     0 | 4326 |        0\n"
4213"   4 |     0.0005 |     0.0005 |   100 |    100 |          1 |          1 "
4214"|    0  |     0 | 4326 |        0"
4215msgstr ""
4216"INSERT INTO dummy_rast(rid,rast)\n"
4217"VALUES(3, ST_MakeEmptyRaster( 100, 100, 0.0005, 0.0005, 1, 1, 0, 0, "
4218"4326) );\n"
4219"\n"
4220"-- 既存のラスタをテンプレートに用いて新しいラスタを生成\n"
4221"INSERT INTO dummy_rast(rid,rast)\n"
4222"SELECT 4, ST_MakeEmptyRaster(rast)\n"
4223"FROM dummy_rast WHERE rid = 3;\n"
4224"\n"
4225"-- 既存ラスタと生成したラスタのメタデータを出力\n"
4226"SELECT rid, (md).*\n"
4227"FROM (SELECT rid, ST_MetaData(rast) As md\n"
4228"        FROM dummy_rast\n"
4229"        WHERE rid IN(3,4)) As foo;\n"
4230"\n"
4231"-- output --\n"
4232" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
4233"skewy | srid | numbands\n"
4234"-----+------------+------------+-------+--------+------------+------------"
4235"+-------+-------+------+----------\n"
4236"   3 |     0.0005 |     0.0005 |   100 |    100 |          1 |          1 "
4237"|    0  |     0 | 4326 |        0\n"
4238"   4 |     0.0005 |     0.0005 |   100 |    100 |          1 |          1 "
4239"|    0  |     0 | 4326 |        0"
4240
4241#. Tag: para
4242#: reference_raster.xml:1684
4243#, no-c-format
4244msgid ""
4245", <xref linkend=\"RT_ST_MetaData\"/>, <xref linkend=\"RT_ST_ScaleX\"/>, "
4246"<xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_SetValue\"/>, <xref "
4247"linkend=\"RT_ST_SkewX\"/>, , <xref linkend=\"RT_ST_SkewY\"/>"
4248msgstr ""
4249", <xref linkend=\"RT_ST_MetaData\"/>, <xref linkend=\"RT_ST_ScaleX\"/>, "
4250"<xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_SetValue\"/>, <xref "
4251"linkend=\"RT_ST_SkewX\"/>, , <xref linkend=\"RT_ST_SkewY\"/>"
4252
4253#. Tag: refname
4254#: reference_raster.xml:1691
4255#, no-c-format
4256msgid "ST_Tile"
4257msgstr "ST_Tile"
4258
4259#. Tag: refpurpose
4260#: reference_raster.xml:1692
4261#, no-c-format
4262msgid ""
4263"<refpurpose>Returns a set of rasters resulting from the split of the input "
4264"raster based upon the desired dimensions of the output rasters.</refpurpose>"
4265msgstr ""
4266"<refpurpose>求められた出力ラスタのピクセル数に基づいて入力ラスタを分割した結"
4267"果のラスタ集合を返します。</refpurpose>"
4268
4269#. Tag: funcsynopsis
4270#: reference_raster.xml:1696
4271#, no-c-format
4272msgid ""
4273"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
4274"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4275"<paramdef><type>int[] </type> <parameter>nband</parameter></paramdef> "
4276"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
4277"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
4278"<paramdef choice=\"opt\"><type>boolean </type> "
4279"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
4280"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
4281"paramdef> </funcprototype> <funcprototype> <funcdef>setof raster "
4282"<function>ST_Tile</function></funcdef> <paramdef><type>raster </type> "
4283"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
4284"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
4285"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
4286"<parameter>height</parameter></paramdef> <paramdef choice=\"opt"
4287"\"><type>boolean </type> <parameter>padwithnodata=FALSE</parameter></"
4288"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
4289"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
4290"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
4291"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4292"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
4293"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
4294"<paramdef choice=\"opt\"><type>boolean </type> "
4295"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
4296"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
4297"paramdef> </funcprototype>"
4298msgstr ""
4299"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
4300"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4301"<paramdef><type>int[] </type> <parameter>nband</parameter></paramdef> "
4302"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
4303"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
4304"<paramdef choice=\"opt\"><type>boolean </type> "
4305"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
4306"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
4307"paramdef> </funcprototype> <funcprototype> <funcdef>setof raster "
4308"<function>ST_Tile</function></funcdef> <paramdef><type>raster </type> "
4309"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
4310"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
4311"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
4312"<parameter>height</parameter></paramdef> <paramdef choice=\"opt"
4313"\"><type>boolean </type> <parameter>padwithnodata=FALSE</parameter></"
4314"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
4315"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
4316"<funcprototype> <funcdef>setof raster <function>ST_Tile</function></funcdef> "
4317"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4318"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
4319"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
4320"<paramdef choice=\"opt\"><type>boolean </type> "
4321"<parameter>padwithnodata=FALSE</parameter></paramdef> <paramdef choice=\"opt"
4322"\"><type>double precision </type> <parameter>nodataval=NULL</parameter></"
4323"paramdef> </funcprototype>"
4324
4325#. Tag: para
4326#: reference_raster.xml:1732
4327#, no-c-format
4328msgid ""
4329"<para>Returns a set of rasters resulting from the split of the input raster "
4330"based upon the desired dimensions of the output rasters.</para>"
4331msgstr ""
4332"<para>求められた出力ラスタのピクセル数に基づいて入力ラスタを分割した結果のラ"
4333"スタ集合を返します。</para>"
4334
4335#. Tag: para
4336#: reference_raster.xml:1736
4337#, no-c-format
4338msgid ""
4339"If <varname>padwithnodata</varname> = FALSE, edge tiles on the right and "
4340"bottom sides of the raster may have different dimensions than the rest of "
4341"the tiles. If <varname>padwithnodata</varname> = TRUE, all tiles will have "
4342"the same dimensions with the possibility that edge tiles being padded with "
4343"NODATA values. If raster band(s) do not have NODATA value(s) specified, one "
4344"can be specified by setting <varname>nodataval</varname>."
4345msgstr ""
4346"<varname>padwithnodata</varname>がFALSEである場合には、ラスタの右端と下端のタ"
4347"イルは、他のタイルと異なるピクセル範囲を持つことがあります。"
4348"<varname>padwithnodata</varname>がTRUEの場合には、全てのタイルは同じピクセル"
4349"範囲を持ち、端のタイルにNODATA値が詰められます。ラスタバンドにNODATA値が指定"
4350"されていない場合には、<varname>nodataval</varname>で指定することができます。"
4351
4352#. Tag: para
4353#: reference_raster.xml:1741
4354#, no-c-format
4355msgid ""
4356"If a specified band of the input raster is out-of-db, the corresponding band "
4357"in the output rasters will also be out-of-db."
4358msgstr ""
4359"入力ラスタの指定したバンドがデータベース外ラスタの場合には、出力ラスタ内の対"
4360"応するバンドもデータベース外になります。"
4361
4362#. Tag: programlisting
4363#: reference_raster.xml:1752
4364#, no-c-format
4365msgid ""
4366"WITH foo AS (\n"
4367"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
4368"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
4369"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
4370"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
4371"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
4372"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
4373"\n"
4374"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
4375"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
4376"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
4377"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
4378"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
4379"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
4380"\n"
4381"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
4382"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
4383"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
4384"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
4385"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
4386"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
4387"), bar AS (\n"
4388"        SELECT ST_Union(rast) AS rast FROM foo\n"
4389"), baz AS (\n"
4390"        SELECT ST_Tile(rast, 3, 3, TRUE) AS rast FROM bar\n"
4391")\n"
4392"SELECT\n"
4393"        ST_DumpValues(rast)\n"
4394"FROM baz;\n"
4395"\n"
4396"              st_dumpvalues\n"
4397"------------------------------------------\n"
4398" (1,\"{{1,1,1},{1,1,1},{1,1,1}}\")\n"
4399" (2,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
4400" (1,\"{{2,2,2},{2,2,2},{2,2,2}}\")\n"
4401" (2,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
4402" (1,\"{{3,3,3},{3,3,3},{3,3,3}}\")\n"
4403" (2,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
4404" (1,\"{{4,4,4},{4,4,4},{4,4,4}}\")\n"
4405" (2,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
4406" (1,\"{{5,5,5},{5,5,5},{5,5,5}}\")\n"
4407" (2,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
4408" (1,\"{{6,6,6},{6,6,6},{6,6,6}}\")\n"
4409" (2,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
4410" (1,\"{{7,7,7},{7,7,7},{7,7,7}}\")\n"
4411" (2,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
4412" (1,\"{{8,8,8},{8,8,8},{8,8,8}}\")\n"
4413" (2,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
4414" (1,\"{{9,9,9},{9,9,9},{9,9,9}}\")\n"
4415" (2,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
4416"(18 rows)"
4417msgstr ""
4418"WITH foo AS (\n"
4419"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
4420"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
4421"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
4422"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
4423"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
4424"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
4425"\n"
4426"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
4427"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
4428"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
4429"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
4430"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
4431"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
4432"\n"
4433"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
4434"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
4435"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
4436"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
4437"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
4438"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
4439"), bar AS (\n"
4440"        SELECT ST_Union(rast) AS rast FROM foo\n"
4441"), baz AS (\n"
4442"        SELECT ST_Tile(rast, 3, 3, TRUE) AS rast FROM bar\n"
4443")\n"
4444"SELECT\n"
4445"        ST_DumpValues(rast)\n"
4446"FROM baz;\n"
4447"\n"
4448"              st_dumpvalues\n"
4449"------------------------------------------\n"
4450" (1,\"{{1,1,1},{1,1,1},{1,1,1}}\")\n"
4451" (2,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
4452" (1,\"{{2,2,2},{2,2,2},{2,2,2}}\")\n"
4453" (2,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
4454" (1,\"{{3,3,3},{3,3,3},{3,3,3}}\")\n"
4455" (2,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
4456" (1,\"{{4,4,4},{4,4,4},{4,4,4}}\")\n"
4457" (2,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
4458" (1,\"{{5,5,5},{5,5,5},{5,5,5}}\")\n"
4459" (2,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
4460" (1,\"{{6,6,6},{6,6,6},{6,6,6}}\")\n"
4461" (2,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
4462" (1,\"{{7,7,7},{7,7,7},{7,7,7}}\")\n"
4463" (2,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
4464" (1,\"{{8,8,8},{8,8,8},{8,8,8}}\")\n"
4465" (2,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
4466" (1,\"{{9,9,9},{9,9,9},{9,9,9}}\")\n"
4467" (2,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
4468"(18 rows)"
4469
4470#. Tag: programlisting
4471#: reference_raster.xml:1754
4472#, no-c-format
4473msgid ""
4474"WITH foo AS (\n"
4475"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
4476"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
4477"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
4478"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
4479"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
4480"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
4481"\n"
4482"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
4483"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
4484"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
4485"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
4486"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
4487"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
4488"\n"
4489"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
4490"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
4491"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
4492"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
4493"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
4494"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
4495"), bar AS (\n"
4496"        SELECT ST_Union(rast) AS rast FROM foo\n"
4497"), baz AS (\n"
4498"        SELECT ST_Tile(rast, 3, 3, 2) AS rast FROM bar\n"
4499")\n"
4500"SELECT\n"
4501"        ST_DumpValues(rast)\n"
4502"FROM baz;\n"
4503"\n"
4504"              st_dumpvalues\n"
4505"------------------------------------------\n"
4506" (1,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
4507" (1,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
4508" (1,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
4509" (1,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
4510" (1,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
4511" (1,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
4512" (1,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
4513" (1,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
4514" (1,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
4515"(9 rows)"
4516msgstr ""
4517"WITH foo AS (\n"
4518"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
4519"0, 0, 0), 1, '8BUI', 1, 0), 2, '8BUI', 10, 0) AS rast UNION ALL\n"
4520"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, 0, 1, -1, "
4521"0, 0, 0), 1, '8BUI', 2, 0), 2, '8BUI', 20, 0) AS rast UNION ALL\n"
4522"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, 0, 1, -1, "
4523"0, 0, 0), 1, '8BUI', 3, 0), 2, '8BUI', 30, 0) AS rast UNION ALL\n"
4524"\n"
4525"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -3, 1, -1, "
4526"0, 0, 0), 1, '8BUI', 4, 0), 2, '8BUI', 40, 0) AS rast UNION ALL\n"
4527"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -3, 1, -1, "
4528"0, 0, 0), 1, '8BUI', 5, 0), 2, '8BUI', 50, 0) AS rast UNION ALL\n"
4529"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -3, 1, -1, "
4530"0, 0, 0), 1, '8BUI', 6, 0), 2, '8BUI', 60, 0) AS rast UNION ALL\n"
4531"\n"
4532"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, -6, 1, -1, "
4533"0, 0, 0), 1, '8BUI', 7, 0), 2, '8BUI', 70, 0) AS rast UNION ALL\n"
4534"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 3, -6, 1, -1, "
4535"0, 0, 0), 1, '8BUI', 8, 0), 2, '8BUI', 80, 0) AS rast UNION ALL\n"
4536"        SELECT ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 6, -6, 1, -1, "
4537"0, 0, 0), 1, '8BUI', 9, 0), 2, '8BUI', 90, 0) AS rast\n"
4538"), bar AS (\n"
4539"        SELECT ST_Union(rast) AS rast FROM foo\n"
4540"), baz AS (\n"
4541"        SELECT ST_Tile(rast, 3, 3, 2) AS rast FROM bar\n"
4542")\n"
4543"SELECT\n"
4544"        ST_DumpValues(rast)\n"
4545"FROM baz;\n"
4546"\n"
4547"              st_dumpvalues\n"
4548"------------------------------------------\n"
4549" (1,\"{{10,10,10},{10,10,10},{10,10,10}}\")\n"
4550" (1,\"{{20,20,20},{20,20,20},{20,20,20}}\")\n"
4551" (1,\"{{30,30,30},{30,30,30},{30,30,30}}\")\n"
4552" (1,\"{{40,40,40},{40,40,40},{40,40,40}}\")\n"
4553" (1,\"{{50,50,50},{50,50,50},{50,50,50}}\")\n"
4554" (1,\"{{60,60,60},{60,60,60},{60,60,60}}\")\n"
4555" (1,\"{{70,70,70},{70,70,70},{70,70,70}}\")\n"
4556" (1,\"{{80,80,80},{80,80,80},{80,80,80}}\")\n"
4557" (1,\"{{90,90,90},{90,90,90},{90,90,90}}\")\n"
4558"(9 rows)"
4559
4560#. Tag: para
4561#: reference_raster.xml:1760
4562#, no-c-format
4563msgid ", <xref linkend=\"RT_Retile\"/>"
4564msgstr ", <xref linkend=\"RT_Retile\"/>"
4565
4566#. Tag: refname
4567#: reference_raster.xml:1770
4568#, no-c-format
4569msgid "ST_Retile"
4570msgstr "ST_Retile"
4571
4572#. Tag: refpurpose
4573#: reference_raster.xml:1771
4574#, no-c-format
4575msgid ""
4576"Return a set of configured tiles from an arbitrarily tiled raster coverage."
4577msgstr ""
4578"任意のタイル化されたラスタカバレッジから構成されたタイルの集合を返します。"
4579
4580#. Tag: funcprototype
4581#: reference_raster.xml:1779
4582#, no-c-format
4583msgid ""
4584"<funcdef>SETOF raster <function>ST_Retile</function></funcdef> "
4585"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
4586"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
4587"<paramdef><type>geometry </type> <parameter>ext</parameter></paramdef> "
4588"<paramdef><type>float8 </type> <parameter>sfx</parameter></paramdef> "
4589"<paramdef><type>float8 </type> <parameter>sfy</parameter></paramdef> "
4590"<paramdef><type>int </type> <parameter>tw</parameter></paramdef> "
4591"<paramdef><type>int </type> <parameter>th</parameter></paramdef> <paramdef "
4592"choice=\"opt\"><type>text </type> <parameter>algo='NearestNeighbor'</"
4593"parameter></paramdef>"
4594msgstr ""
4595"<funcdef>SETOF raster <function>ST_Retile</function></funcdef> "
4596"<paramdef><type>regclass </type> <parameter>tab</parameter></paramdef> "
4597"<paramdef><type>name </type> <parameter>col</parameter></paramdef> "
4598"<paramdef><type>geometry </type> <parameter>ext</parameter></paramdef> "
4599"<paramdef><type>float8 </type> <parameter>sfx</parameter></paramdef> "
4600"<paramdef><type>float8 </type> <parameter>sfy</parameter></paramdef> "
4601"<paramdef><type>int </type> <parameter>tw</parameter></paramdef> "
4602"<paramdef><type>int </type> <parameter>th</parameter></paramdef> <paramdef "
4603"choice=\"opt\"><type>text </type> <parameter>algo='NearestNeighbor'</"
4604"parameter></paramdef>"
4605
4606#. Tag: para
4607#: reference_raster.xml:1797
4608#, no-c-format
4609msgid ""
4610"Return a set of tiles having the specified scale (<varname>sfx</varname>, "
4611"<varname>sfy</varname>) and max size (<varname>tw</varname>, <varname>th</"
4612"varname>) and covering the specified extent (<varname>ext</varname>) with "
4613"data coming from the specified raster coverage (<varname>tab</varname>, "
4614"<varname>col</varname>)."
4615msgstr ""
4616"指定された縮尺 (<varname>sfx</varname>, <varname>sfy</varname>)と最大サイズ "
4617"(<varname>tw</varname>, <varname>th</varname>)を持ち、指定された範囲 "
4618"(<varname>ext</varname>)を包含し、指定されたラスタカバレッジ (<varname>tab</"
4619"varname>, <varname>col</varname>)からのデータを持つタイルの集合を返します。"
4620
4621#. Tag: refname
4622#: reference_raster.xml:1821
4623#, no-c-format
4624msgid "ST_FromGDALRaster"
4625msgstr "ST_FromGDALRaster"
4626
4627#. Tag: refpurpose
4628#: reference_raster.xml:1822
4629#, no-c-format
4630msgid "Returns a raster from a supported GDAL raster file."
4631msgstr "対応するGDALラスタファイルからラスタを返します。"
4632
4633#. Tag: funcprototype
4634#: reference_raster.xml:1827
4635#, no-c-format
4636msgid ""
4637"<funcdef>raster <function>ST_FromGDALRaster</function></funcdef> "
4638"<paramdef><type>bytea </type> <parameter>gdaldata</parameter></paramdef> "
4639"<paramdef choice=\"opt\"><type>integer </type> <parameter>srid=NULL</"
4640"parameter></paramdef>"
4641msgstr ""
4642"<funcdef>raster <function>ST_FromGDALRaster</function></funcdef> "
4643"<paramdef><type>bytea </type> <parameter>gdaldata</parameter></paramdef> "
4644"<paramdef choice=\"opt\"><type>integer </type> <parameter>srid=NULL</"
4645"parameter></paramdef>"
4646
4647#. Tag: para
4648#: reference_raster.xml:1839
4649#, no-c-format
4650msgid ""
4651"Returns a raster from a supported GDAL raster file. <varname>gdaldata</"
4652"varname> is of type bytea and should be the contents of the GDAL raster file."
4653msgstr ""
4654"対応するGDALラスタファイルからラスタを返します。<varname>gdaldata</varname>は"
4655"bytea型で、GDALラスタファイルの中身です。"
4656
4657#. Tag: para
4658#: reference_raster.xml:1843
4659#, no-c-format
4660msgid ""
4661"If <varname>srid</varname> is NULL, the function will try to automatically "
4662"assign the SRID from the GDAL raster. If <varname>srid</varname> is "
4663"provided, the value provided will override any automatically assigned SRID."
4664msgstr ""
4665"<varname>srid</varname>がNULLの場合には、この関数は、GDALラスタから自動的に"
4666"SRIDを設定しようとします。<varname>srid</varname>が与えられている場合には、与"
4667"えられた値が自動的に設定したSRIDを上書きします。"
4668
4669#. Tag: programlisting
4670#: reference_raster.xml:1853
4671#, no-c-format
4672msgid ""
4673"WITH foo AS (\n"
4674"        SELECT "
4675"ST_AsPNG(ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, "
4676"0.1, -0.1, 0, 0, 4326), 1, '8BUI', 1, 0), 2, '8BUI', 2, 0), 3, '8BUI', 3, "
4677"0)) AS png\n"
4678"),\n"
4679"bar AS (\n"
4680"        SELECT 1 AS rid, ST_FromGDALRaster(png) AS rast FROM foo\n"
4681"        UNION ALL\n"
4682"        SELECT 2 AS rid, ST_FromGDALRaster(png, 3310) AS rast FROM foo\n"
4683")\n"
4684"SELECT\n"
4685"        rid,\n"
4686"        ST_Metadata(rast) AS metadata,\n"
4687"        ST_SummaryStats(rast, 1) AS stats1,\n"
4688"        ST_SummaryStats(rast, 2) AS stats2,\n"
4689"        ST_SummaryStats(rast, 3) AS stats3\n"
4690"FROM bar\n"
4691"ORDER BY rid;\n"
4692"\n"
4693" rid |         metadata          |    stats1     |    stats2     |     "
4694"stats3\n"
4695"-----+---------------------------+---------------+---------------"
4696"+----------------\n"
4697"   1 | (0,0,2,2,1,-1,0,0,0,3)    | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
4698"(4,12,3,0,3,3)\n"
4699"   2 | (0,0,2,2,1,-1,0,0,3310,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
4700"(4,12,3,0,3,3)\n"
4701"(2 rows)"
4702msgstr ""
4703"WITH foo AS (\n"
4704"        SELECT "
4705"ST_AsPNG(ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, "
4706"0.1, -0.1, 0, 0, 4326), 1, '8BUI', 1, 0), 2, '8BUI', 2, 0), 3, '8BUI', 3, "
4707"0)) AS png\n"
4708"),\n"
4709"bar AS (\n"
4710"        SELECT 1 AS rid, ST_FromGDALRaster(png) AS rast FROM foo\n"
4711"        UNION ALL\n"
4712"        SELECT 2 AS rid, ST_FromGDALRaster(png, 3310) AS rast FROM foo\n"
4713")\n"
4714"SELECT\n"
4715"        rid,\n"
4716"        ST_Metadata(rast) AS metadata,\n"
4717"        ST_SummaryStats(rast, 1) AS stats1,\n"
4718"        ST_SummaryStats(rast, 2) AS stats2,\n"
4719"        ST_SummaryStats(rast, 3) AS stats3\n"
4720"FROM bar\n"
4721"ORDER BY rid;\n"
4722"\n"
4723" rid |         metadata          |    stats1     |    stats2     |     "
4724"stats3\n"
4725"-----+---------------------------+---------------+---------------"
4726"+----------------\n"
4727"   1 | (0,0,2,2,1,-1,0,0,0,3)    | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
4728"(4,12,3,0,3,3)\n"
4729"   2 | (0,0,2,2,1,-1,0,0,3310,3) | (4,4,1,0,1,1) | (4,8,2,0,2,2) | "
4730"(4,12,3,0,3,3)\n"
4731"(2 rows)"
4732
4733#. Tag: title
4734#: reference_raster.xml:1868
4735#, no-c-format
4736msgid "Raster Accessors"
4737msgstr "ラスタアクセサ"
4738
4739#. Tag: refname
4740#: reference_raster.xml:1872
4741#, no-c-format
4742msgid "ST_GeoReference"
4743msgstr "ST_GeoReference"
4744
4745#. Tag: refpurpose
4746#: reference_raster.xml:1873
4747#, no-c-format
4748msgid ""
4749"Returns the georeference meta data in GDAL or ESRI format as commonly seen "
4750"in a world file. Default is GDAL."
4751msgstr ""
4752"GDAL書式または一般的にワールドファイルでみられるESRI書式の地理参照メタデータ"
4753"を返します。デフォルトはGDALです。"
4754
4755#. Tag: funcprototype
4756#: reference_raster.xml:1878
4757#, no-c-format
4758msgid ""
4759"<funcdef>text <function>ST_GeoReference</function></funcdef> "
4760"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4761"<paramdef choice=\"opt\"><type>text </type> <parameter>format=GDAL</"
4762"parameter></paramdef>"
4763msgstr ""
4764"<funcdef>text <function>ST_GeoReference</function></funcdef> "
4765"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
4766"<paramdef choice=\"opt\"><type>text </type> <parameter>format=GDAL</"
4767"parameter></paramdef>"
4768
4769#. Tag: para
4770#: reference_raster.xml:1889
4771#, no-c-format
4772msgid ""
4773"Returns the georeference meta data including carriage return in GDAL or ESRI "
4774"format as commonly seen in a <ulink url=\"http://en.wikipedia.org/wiki/"
4775"World_file\">world file</ulink>. Default is GDAL if no type specified. type "
4776"is string 'GDAL' or 'ESRI'."
4777msgstr ""
4778"GDAL書式または一般的に<ulink url=\"http://en.wikipedia.org/wiki/World_file"
4779"\">world file</ulink> (英語版WikiPedia)でみられるESRI書式の地理参照メタデータ"
4780"を返します。書式を指定したいない場合のデフォルトはGDALです。書式は'GDAL'また"
4781"は'ESRI'の文字列です。"
4782
4783#. Tag: para
4784#: reference_raster.xml:1891 reference_raster.xml:4230
4785#, no-c-format
4786msgid "Difference between format representations is as follows:"
4787msgstr "書式の表現の違いは次の通りです。"
4788
4789#. Tag: para
4790#: reference_raster.xml:1892 reference_raster.xml:4231
4791#, no-c-format
4792msgid "<varname>GDAL</varname>:"
4793msgstr "<varname>GDAL</varname>:"
4794
4795#. Tag: programlisting
4796#: reference_raster.xml:1893
4797#, no-c-format
4798msgid ""
4799"scalex\n"
4800"skewy\n"
4801"skewx\n"
4802"scaley\n"
4803"upperleftx\n"
4804"upperlefty"
4805msgstr ""
4806"scalex\n"
4807"skewy\n"
4808"skewx\n"
4809"scaley\n"
4810"upperleftx\n"
4811"upperlefty"
4812
4813#. Tag: para
4814#: reference_raster.xml:1894 reference_raster.xml:4233
4815#, no-c-format
4816msgid "<varname>ESRI</varname>:"
4817msgstr "<varname>ESRI</varname>:"
4818
4819#. Tag: programlisting
4820#: reference_raster.xml:1895
4821#, no-c-format
4822msgid ""
4823"scalex\n"
4824"skewy\n"
4825"skewx\n"
4826"scaley\n"
4827"upperleftx + scalex*0.5\n"
4828"upperlefty + scaley*0.5"
4829msgstr ""
4830"scalex\n"
4831"skewy\n"
4832"skewx\n"
4833"scaley\n"
4834"upperleftx + scalex*0.5\n"
4835"upperlefty + scaley*0.5"
4836
4837#. Tag: programlisting
4838#: reference_raster.xml:1901
4839#, no-c-format
4840msgid ""
4841"SELECT ST_GeoReference(rast, 'ESRI') As esri_ref, ST_GeoReference(rast, "
4842"'GDAL') As gdal_ref\n"
4843" FROM dummy_rast WHERE rid=1;\n"
4844"\n"
4845"   esri_ref   |   gdal_ref\n"
4846"--------------+--------------\n"
4847" 2.0000000000 | 2.0000000000\n"
4848" 0.0000000000 : 0.0000000000\n"
4849" 0.0000000000 : 0.0000000000\n"
4850" 3.0000000000 : 3.0000000000\n"
4851" 1.5000000000 : 0.5000000000\n"
4852" 2.0000000000 : 0.5000000000"
4853msgstr ""
4854"SELECT ST_GeoReference(rast, 'ESRI') As esri_ref, ST_GeoReference(rast, "
4855"'GDAL') As gdal_ref\n"
4856" FROM dummy_rast WHERE rid=1;\n"
4857"\n"
4858"   esri_ref   |   gdal_ref\n"
4859"--------------+--------------\n"
4860" 2.0000000000 | 2.0000000000\n"
4861" 0.0000000000 : 0.0000000000\n"
4862" 0.0000000000 : 0.0000000000\n"
4863" 3.0000000000 : 3.0000000000\n"
4864" 1.5000000000 : 0.5000000000\n"
4865" 2.0000000000 : 0.5000000000"
4866
4867#. Tag: para
4868#: reference_raster.xml:1906
4869#, no-c-format
4870msgid ", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>"
4871msgstr ", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>"
4872
4873#. Tag: refname
4874#: reference_raster.xml:1912
4875#, no-c-format
4876msgid "ST_Height"
4877msgstr "ST_Height"
4878
4879#. Tag: refpurpose
4880#: reference_raster.xml:1913
4881#, no-c-format
4882msgid "Returns the height of the raster in pixels."
4883msgstr "ラスタの高さをピクセル単位で返します。"
4884
4885#. Tag: funcprototype
4886#: reference_raster.xml:1918
4887#, no-c-format
4888msgid ""
4889"<funcdef>integer <function>ST_Height</function></funcdef> "
4890"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
4891msgstr ""
4892"<funcdef>integer <function>ST_Height</function></funcdef> "
4893"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
4894
4895#. Tag: para
4896#: reference_raster.xml:1928
4897#, no-c-format
4898msgid "Returns the height of the raster."
4899msgstr "ラスタの高さをピクセル単位で返します。"
4900
4901#. Tag: programlisting
4902#: reference_raster.xml:1934
4903#, no-c-format
4904msgid ""
4905"SELECT rid, ST_Height(rast) As rastheight\n"
4906"FROM dummy_rast;\n"
4907"\n"
4908" rid | rastheight\n"
4909"-----+------------\n"
4910"   1 |         20\n"
4911"   2 |          5"
4912msgstr ""
4913"SELECT rid, ST_Height(rast) As rastheight\n"
4914"FROM dummy_rast;\n"
4915"\n"
4916" rid | rastheight\n"
4917"-----+------------\n"
4918"   1 |         20\n"
4919"   2 |          5"
4920
4921#. Tag: refname
4922#: reference_raster.xml:1946
4923#, no-c-format
4924msgid "ST_IsEmpty"
4925msgstr "ST_IsEmpty"
4926
4927#. Tag: refpurpose
4928#: reference_raster.xml:1947
4929#, no-c-format
4930msgid ""
4931"<refpurpose>Returns true if the raster is empty (width = 0 and height = 0). "
4932"Otherwise, returns false.</refpurpose>"
4933msgstr ""
4934"<refpurpose>ラスタが空 (幅が0で高さが0)の場合にはTRUEを返します。他の場合に"
4935"は、FALSEを返します。</refpurpose>"
4936
4937#. Tag: funcprototype
4938#: reference_raster.xml:1952
4939#, no-c-format
4940msgid ""
4941"<funcdef>boolean <function>ST_IsEmpty</function></funcdef> "
4942"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
4943msgstr ""
4944"<funcdef>boolean <function>ST_IsEmpty</function></funcdef> "
4945"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
4946
4947#. Tag: para
4948#: reference_raster.xml:1962
4949#, no-c-format
4950msgid ""
4951"<para>Returns true if the raster is empty (width = 0 and height = 0). "
4952"Otherwise, returns false.</para>"
4953msgstr ""
4954"<para>ラスタが空 (幅が0で高さが0)の場合にはTRUEを返します。他の場合には、"
4955"FALSEを返します。</para>"
4956
4957#. Tag: programlisting
4958#: reference_raster.xml:1970
4959#, no-c-format
4960msgid ""
4961"SELECT ST_IsEmpty(ST_MakeEmptyRaster(100, 100, 0, 0, 0, 0, 0, 0))\n"
4962"st_isempty |\n"
4963"-----------+\n"
4964"f          |\n"
4965"\n"
4966"\n"
4967"SELECT ST_IsEmpty(ST_MakeEmptyRaster(0, 0, 0, 0, 0, 0, 0, 0))\n"
4968"st_isempty |\n"
4969"-----------+\n"
4970"t          |"
4971msgstr ""
4972"SELECT ST_IsEmpty(ST_MakeEmptyRaster(100, 100, 0, 0, 0, 0, 0, 0))\n"
4973"st_isempty |\n"
4974"-----------+\n"
4975"f          |\n"
4976"\n"
4977"\n"
4978"SELECT ST_IsEmpty(ST_MakeEmptyRaster(0, 0, 0, 0, 0, 0, 0, 0))\n"
4979"st_isempty |\n"
4980"-----------+\n"
4981"t          |"
4982
4983#. Tag: refname
4984#: reference_raster.xml:1982
4985#, no-c-format
4986msgid "ST_MemSize"
4987msgstr "ST_MemSize"
4988
4989#. Tag: refpurpose
4990#: reference_raster.xml:1984
4991#, no-c-format
4992msgid ""
4993"<refpurpose>Returns the amount of space (in bytes) the raster takes.</"
4994"refpurpose>"
4995msgstr ""
4996"<refpurpose>ラスタが取る領域の合計をバイト単位で返します。</refpurpose>"
4997
4998#. Tag: funcprototype
4999#: reference_raster.xml:1989
5000#, no-c-format
5001msgid ""
5002"<funcdef>integer <function>ST_MemSize</function></funcdef> "
5003"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5004msgstr ""
5005"<funcdef>integer <function>ST_MemSize</function></funcdef> "
5006"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5007
5008#. Tag: para
5009#: reference_raster.xml:1999
5010#, no-c-format
5011msgid "<para>Returns the amount of space (in bytes) the raster takes.</para>"
5012msgstr "<para>ラスタが取る領域の合計をバイト単位で返します。</para>"
5013
5014#. Tag: para
5015#: reference_raster.xml:2000
5016#, no-c-format
5017msgid ""
5018"This is a nice compliment to PostgreSQL built in functions pg_column_size, "
5019"pg_size_pretty, pg_relation_size, pg_total_relation_size."
5020msgstr ""
5021"この関数はPostgreSQLビルトイン関数pg_clumn_size, pg_size_pretty, "
5022"pg_relation_size, pg_total_relation_sizeへのすばらしい賛辞です。"
5023
5024#. Tag: para
5025#: reference_raster.xml:2001
5026#, no-c-format
5027msgid ""
5028"pg_relation_size which gives the byte size of a table may return byte size "
5029"lower than ST_MemSize. This is because pg_relation_size does not add toasted "
5030"table contribution and large geometries are stored in TOAST tables. "
5031"pg_column_size might return lower because it returns the compressed size."
5032msgstr ""
5033"テーブルのバイト単位のサイズを得るpg_relation_sizeはST_MemSizeよりも小さい値"
5034"を返すことがあります。pg_relation_sizeはTOASTテーブルの寄与分を追加せず、大き"
5035"なジオメトリはTOASTテーブルに格納されるためです。pg_column_sizeは圧縮後のサイ"
5036"ズを返すので、小さくなることがあります。"
5037
5038#. Tag: para
5039#: reference_raster.xml:2003
5040#, no-c-format
5041msgid ""
5042"pg_total_relation_size - includes, the table, the toasted tables, and the "
5043"indexes."
5044msgstr ""
5045"pg_total_relation_size - テーブル、TOASTテーブル、インデクスを含みます。"
5046
5047#. Tag: programlisting
5048#: reference_raster.xml:2013
5049#, no-c-format
5050msgid ""
5051"SELECT ST_MemSize(ST_AsRaster(ST_Buffer(ST_Point(1,5),10,1000),150, 150, "
5052"'8BUI')) As rast_mem;\n"
5053"\n"
5054"                rast_mem\n"
5055"                --------\n"
5056"                22568"
5057msgstr ""
5058"SELECT ST_MemSize(ST_AsRaster(ST_Buffer(ST_Point(1,5),10,1000),150, 150, "
5059"'8BUI')) As rast_mem;\n"
5060"\n"
5061"                rast_mem\n"
5062"                --------\n"
5063"                22568"
5064
5065#. Tag: refname
5066#: reference_raster.xml:2026
5067#, no-c-format
5068msgid "ST_MetaData"
5069msgstr "ST_MetaData"
5070
5071#. Tag: refpurpose
5072#: reference_raster.xml:2027
5073#, no-c-format
5074msgid ""
5075"Returns basic meta data about a raster object such as pixel size, rotation "
5076"(skew), upper, lower left, etc."
5077msgstr ""
5078"ピクセル数、回転 (スキュー)、左上隅位置等のラスタオブジェクトに関する基本的な"
5079"メタデータを返します。"
5080
5081#. Tag: funcprototype
5082#: reference_raster.xml:2032
5083#, no-c-format
5084msgid ""
5085"<funcdef>record <function>ST_MetaData</function></funcdef> "
5086"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5087msgstr ""
5088"<funcdef>record <function>ST_MetaData</function></funcdef> "
5089"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5090
5091#. Tag: para
5092#: reference_raster.xml:2042
5093#, no-c-format
5094msgid ""
5095"Returns basic meta data about a raster object such as pixel size, rotation "
5096"(skew), upper, lower left, etc. Columns returned: upperleftx | upperlefty | "
5097"width | height | scalex | scaley | skewx | skewy | srid | numbands"
5098msgstr ""
5099"ピクセルサイズ、回転 (skew)、左上隅位置等のラスタオブジェクトに関する基本的な"
5100"メタデータを返します。返されるカラムはupperleftx | upperlefty | width | "
5101"height | scalex | scaley | skewx | skewy | srid | numbandsです。"
5102
5103#. Tag: programlisting
5104#: reference_raster.xml:2049
5105#, no-c-format
5106msgid ""
5107"SELECT rid, (foo.md).*\n"
5108" FROM (SELECT rid, ST_MetaData(rast) As md\n"
5109"FROM dummy_rast) As foo;\n"
5110"\n"
5111" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
5112"skewy | srid | numbands\n"
5113" ----+------------+------------+-------+--------+--------+-----------+-------"
5114"+-------+------+-------\n"
5115"   1 |        0.5 |        0.5 |    10 |     20 |      2 |      3 "
5116"|                0 |     0 |    0 |        0\n"
5117"   2 | 3427927.75 |    5793244 |     5 |      5 |   0.05 |  -0.05 "
5118"|                0 |     0 |    0 |        3"
5119msgstr ""
5120"SELECT rid, (foo.md).*\n"
5121" FROM (SELECT rid, ST_MetaData(rast) As md\n"
5122"FROM dummy_rast) As foo;\n"
5123"\n"
5124" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
5125"skewy | srid | numbands\n"
5126" ----+------------+------------+-------+--------+--------+-----------+-------"
5127"+-------+------+-------\n"
5128"   1 |        0.5 |        0.5 |    10 |     20 |      2 |      3 "
5129"|                0 |     0 |    0 |        0\n"
5130"   2 | 3427927.75 |    5793244 |     5 |      5 |   0.05 |  -0.05 "
5131"|                0 |     0 |    0 |        3"
5132
5133#. Tag: para
5134#: reference_raster.xml:2055 reference_raster.xml:5009
5135#, no-c-format
5136msgid ", <xref linkend=\"RT_ST_NumBands\"/>"
5137msgstr ", <xref linkend=\"RT_ST_NumBands\"/>"
5138
5139#. Tag: refname
5140#: reference_raster.xml:2061
5141#, no-c-format
5142msgid "ST_NumBands"
5143msgstr "ST_NumBands"
5144
5145#. Tag: refpurpose
5146#: reference_raster.xml:2062
5147#, no-c-format
5148msgid ""
5149"<refpurpose>Returns the number of bands in the raster object.</refpurpose>"
5150msgstr "<refpurpose>ラスタオブジェクトのバンド数を返します。</refpurpose>"
5151
5152#. Tag: funcprototype
5153#: reference_raster.xml:2067
5154#, no-c-format
5155msgid ""
5156"<funcdef>integer <function>ST_NumBands</function></funcdef> "
5157"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5158msgstr ""
5159"<funcdef>integer <function>ST_NumBands</function></funcdef> "
5160"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5161
5162#. Tag: para
5163#: reference_raster.xml:2077
5164#, no-c-format
5165msgid "<para>Returns the number of bands in the raster object.</para>"
5166msgstr "<para>ラスタオブジェクトのバンド数を返します。</para>"
5167
5168#. Tag: programlisting
5169#: reference_raster.xml:2083
5170#, no-c-format
5171msgid ""
5172"SELECT rid, ST_NumBands(rast) As numbands\n"
5173"FROM dummy_rast;\n"
5174"\n"
5175"rid | numbands\n"
5176"----+----------\n"
5177"  1 |        0\n"
5178"  2 |        3"
5179msgstr ""
5180"SELECT rid, ST_NumBands(rast) As numbands\n"
5181"FROM dummy_rast;\n"
5182"\n"
5183"rid | numbands\n"
5184"----+----------\n"
5185"  1 |        0\n"
5186"  2 |        3"
5187
5188#. Tag: refname
5189#: reference_raster.xml:2095
5190#, no-c-format
5191msgid "ST_PixelHeight"
5192msgstr "ST_PixelHeight"
5193
5194#. Tag: refpurpose
5195#: reference_raster.xml:2096
5196#, no-c-format
5197msgid ""
5198"Returns the pixel height in geometric units of the spatial reference system."
5199msgstr "空間参照系の地理的な単位でのピクセルの高さを返します。"
5200
5201#. Tag: funcprototype
5202#: reference_raster.xml:2101
5203#, no-c-format
5204msgid ""
5205"<funcdef>double precision <function>ST_PixelHeight</function></funcdef> "
5206"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5207msgstr ""
5208"<funcdef>double precision <function>ST_PixelHeight</function></funcdef> "
5209"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5210
5211#. Tag: para
5212#: reference_raster.xml:2111
5213#, no-c-format
5214msgid ""
5215"Returns the height of a pixel in geometric units of the spatial reference "
5216"system. In the common case where there is no skew, the pixel height is just "
5217"the scale ratio between geometric coordinates and raster pixels."
5218msgstr ""
5219"空間参照系の地理的な単位でのピクセルの高さを返します。スキューが無い一般的な"
5220"状況では、ピクセル高は地理座標とラスタピクセルのスケール率です。"
5221
5222#. Tag: para
5223#: reference_raster.xml:2113
5224#, no-c-format
5225msgid ""
5226"Refer to <xref linkend=\"RT_ST_PixelWidth\"/> for a diagrammatic "
5227"visualization of the relationship."
5228msgstr ""
5229"関係について図示したものは<xref linkend=\"RT_ST_PixelWidth\"/>を参照して下さ"
5230"い。"
5231
5232#. Tag: title
5233#: reference_raster.xml:2117 reference_raster.xml:2177
5234#, no-c-format
5235msgid "Examples: Rasters with no skew"
5236msgstr "例: スキューの無いラスタ"
5237
5238#. Tag: programlisting
5239#: reference_raster.xml:2119
5240#, no-c-format
5241msgid ""
5242"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
5243" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
5244"skewx,\n"
5245"        ST_SkewY(rast) As skewy\n"
5246"FROM dummy_rast;\n"
5247"\n"
5248" rastheight | pixheight | scalex | scaley | skewx | skewy\n"
5249"------------+-----------+--------+--------+-------+----------\n"
5250"         20 |         3 |      2 |      3 |     0 |        0\n"
5251"          5 |      0.05 |   0.05 |  -0.05 |     0 |        0"
5252msgstr ""
5253"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
5254" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
5255"skewx,\n"
5256"        ST_SkewY(rast) As skewy\n"
5257"FROM dummy_rast;\n"
5258"\n"
5259" rastheight | pixheight | scalex | scaley | skewx | skewy\n"
5260"------------+-----------+--------+--------+-------+----------\n"
5261"         20 |         3 |      2 |      3 |     0 |        0\n"
5262"          5 |      0.05 |   0.05 |  -0.05 |     0 |        0"
5263
5264#. Tag: title
5265#: reference_raster.xml:2124 reference_raster.xml:2184
5266#, no-c-format
5267msgid "Examples: Rasters with skew different than 0"
5268msgstr "例: スキューが0でないラスタ"
5269
5270#. Tag: programlisting
5271#: reference_raster.xml:2126
5272#, no-c-format
5273msgid ""
5274"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
5275" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
5276"skewx,\n"
5277"        ST_SkewY(rast) As skewy\n"
5278"FROM (SELECT ST_SetSKew(rast,0.5,0.5) As rast\n"
5279"        FROM dummy_rast) As skewed;\n"
5280"\n"
5281"rastheight |     pixheight     | scalex | scaley | skewx | skewy\n"
5282"-----------+-------------------+--------+--------+-------+----------\n"
5283"        20 |  3.04138126514911 |      2 |      3 |   0.5 |      0.5\n"
5284"         5 | 0.502493781056044 |   0.05 |  -0.05 |   0.5 |      0.5"
5285msgstr ""
5286"SELECT ST_Height(rast) As rastheight, ST_PixelHeight(rast) As pixheight,\n"
5287" ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) As "
5288"skewx,\n"
5289"        ST_SkewY(rast) As skewy\n"
5290"FROM (SELECT ST_SetSKew(rast,0.5,0.5) As rast\n"
5291"        FROM dummy_rast) As skewed;\n"
5292"\n"
5293"rastheight |     pixheight     | scalex | scaley | skewx | skewy\n"
5294"-----------+-------------------+--------+--------+-------+----------\n"
5295"        20 |  3.04138126514911 |      2 |      3 |   0.5 |      0.5\n"
5296"         5 | 0.502493781056044 |   0.05 |  -0.05 |   0.5 |      0.5"
5297
5298#. Tag: para
5299#: reference_raster.xml:2133 reference_raster.xml:2193
5300#: reference_raster.xml:4289
5301#, no-c-format
5302msgid ""
5303", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
5304"linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
5305msgstr ""
5306", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
5307"linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
5308
5309#. Tag: refname
5310#: reference_raster.xml:2145
5311#, no-c-format
5312msgid "ST_PixelWidth"
5313msgstr "ST_PixelWidth"
5314
5315#. Tag: refpurpose
5316#: reference_raster.xml:2146
5317#, no-c-format
5318msgid ""
5319"Returns the pixel width in geometric units of the spatial reference system."
5320msgstr "空間参照系の地理的な単位でのピクセルの幅を返します。"
5321
5322#. Tag: funcprototype
5323#: reference_raster.xml:2151
5324#, no-c-format
5325msgid ""
5326"<funcdef>double precision <function>ST_PixelWidth</function></funcdef> "
5327"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5328msgstr ""
5329"<funcdef>double precision <function>ST_PixelWidth</function></funcdef> "
5330"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5331
5332#. Tag: para
5333#: reference_raster.xml:2161
5334#, no-c-format
5335msgid ""
5336"Returns the width of a pixel in geometric units of the spatial reference "
5337"system. In the common case where there is no skew, the pixel width is just "
5338"the scale ratio between geometric coordinates and raster pixels."
5339msgstr ""
5340"空間参照系の地理的な単位でのピクセルの幅を返します。スキューが無い一般的な状"
5341"況では、ピクセル幅は地理座標とラスタピクセルのスケール率です。"
5342
5343#. Tag: para
5344#: reference_raster.xml:2163
5345#, no-c-format
5346msgid "The following diagram demonstrates the relationship:"
5347msgstr "関係について次の図に示します。"
5348
5349#. Tag: para
5350#: reference_raster.xml:2170
5351#, no-c-format
5352msgid "Pixel Width: Pixel size in the i direction"
5353msgstr "ピクセル幅: i方向のピクセルサイズ"
5354
5355#. Tag: para
5356#: reference_raster.xml:2170
5357#, no-c-format
5358msgid "Pixel Height: Pixel size in the j direction"
5359msgstr "ピクセル高: j方向のピクセルサイズ"
5360
5361#. Tag: programlisting
5362#: reference_raster.xml:2179
5363#, no-c-format
5364msgid ""
5365"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
5366"        ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
5367"As skewx,\n"
5368"        ST_SkewY(rast) As skewy\n"
5369"        FROM dummy_rast;\n"
5370"\n"
5371"        rastwidth | pixwidth | scalex | scaley | skewx | skewy\n"
5372"        -----------+----------+--------+--------+-------+----------\n"
5373"        10 |        2 |      2 |      3 |     0 |        0\n"
5374"         5 |     0.05 |   0.05 |  -0.05 |     0 |        0"
5375msgstr ""
5376"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
5377"        ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
5378"As skewx,\n"
5379"        ST_SkewY(rast) As skewy\n"
5380"        FROM dummy_rast;\n"
5381"\n"
5382"        rastwidth | pixwidth | scalex | scaley | skewx | skewy\n"
5383"        -----------+----------+--------+--------+-------+----------\n"
5384"        10 |        2 |      2 |      3 |     0 |        0\n"
5385"         5 |     0.05 |   0.05 |  -0.05 |     0 |        0"
5386
5387#. Tag: programlisting
5388#: reference_raster.xml:2186
5389#, no-c-format
5390msgid ""
5391"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
5392"        ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
5393"As skewx,\n"
5394"        ST_SkewY(rast) As skewy\n"
5395"        FROM (SELECT ST_SetSkew(rast,0.5,0.5) As rast\n"
5396"        FROM dummy_rast) As skewed;\n"
5397"\n"
5398"        rastwidth |     pixwidth      | scalex | scaley | skewx | skewy\n"
5399"        -----------+-------------------+--------+--------+-------"
5400"+----------\n"
5401"        10 |  2.06155281280883 |      2 |      3 |   0.5 |      0.5\n"
5402"         5 | 0.502493781056044 |   0.05 |  -0.05 |   0.5 |      0.5"
5403msgstr ""
5404"SELECT ST_Width(rast) As rastwidth, ST_PixelWidth(rast) As pixwidth,\n"
5405"        ST_ScaleX(rast) As scalex, ST_ScaleY(rast) As scaley, ST_SkewX(rast) "
5406"As skewx,\n"
5407"        ST_SkewY(rast) As skewy\n"
5408"        FROM (SELECT ST_SetSkew(rast,0.5,0.5) As rast\n"
5409"        FROM dummy_rast) As skewed;\n"
5410"\n"
5411"        rastwidth |     pixwidth      | scalex | scaley | skewx | skewy\n"
5412"        -----------+-------------------+--------+--------+-------"
5413"+----------\n"
5414"        10 |  2.06155281280883 |      2 |      3 |   0.5 |      0.5\n"
5415"         5 | 0.502493781056044 |   0.05 |  -0.05 |   0.5 |      0.5"
5416
5417#. Tag: refname
5418#: reference_raster.xml:2199
5419#, no-c-format
5420msgid "ST_ScaleX"
5421msgstr "ST_ScaleX"
5422
5423#. Tag: refpurpose
5424#: reference_raster.xml:2200
5425#, no-c-format
5426msgid ""
5427"Returns the X component of the pixel width in units of coordinate reference "
5428"system."
5429msgstr "空間参照系の地理的な単位でのピクセル幅のX成分を返します。"
5430
5431#. Tag: funcprototype
5432#: reference_raster.xml:2205
5433#, no-c-format
5434msgid ""
5435"<funcdef>float8 <function>ST_ScaleX</function></funcdef> "
5436"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5437msgstr ""
5438"<funcdef>float8 <function>ST_ScaleX</function></funcdef> "
5439"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5440
5441#. Tag: para
5442#: reference_raster.xml:2215
5443#, no-c-format
5444msgid ""
5445"Returns the X component of the pixel width in units of coordinate reference "
5446"system. Refer to <ulink url=\"http://en.wikipedia.org/wiki/World_file"
5447"\">World File</ulink> for more details."
5448msgstr ""
5449"空間参照系の地理的な単位でのピクセル幅のX成分を返します。詳細については"
5450"<ulink url=\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> (英"
5451"語版WikiPedia)をご覧ください。"
5452
5453#. Tag: para
5454#: reference_raster.xml:2217
5455#, no-c-format
5456msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeX."
5457msgstr "Changed: 2.0.0. WKTRaster版ではST_PixelSizeXと呼ばれていました。"
5458
5459#. Tag: programlisting
5460#: reference_raster.xml:2223
5461#, no-c-format
5462msgid ""
5463"SELECT rid, ST_ScaleX(rast) As rastpixwidth\n"
5464"FROM dummy_rast;\n"
5465"\n"
5466" rid | rastpixwidth\n"
5467"-----+--------------\n"
5468"   1 |            2\n"
5469"   2 |         0.05"
5470msgstr ""
5471"SELECT rid, ST_ScaleX(rast) As rastpixwidth\n"
5472"FROM dummy_rast;\n"
5473"\n"
5474" rid | rastpixwidth\n"
5475"-----+--------------\n"
5476"   1 |            2\n"
5477"   2 |         0.05"
5478
5479#. Tag: refname
5480#: reference_raster.xml:2236
5481#, no-c-format
5482msgid "ST_ScaleY"
5483msgstr "ST_ScaleY"
5484
5485#. Tag: refpurpose
5486#: reference_raster.xml:2237
5487#, no-c-format
5488msgid ""
5489"Returns the Y component of the pixel height in units of coordinate reference "
5490"system."
5491msgstr "空間参照系の地理的な単位でのピクセル幅のY成分を返します。"
5492
5493#. Tag: funcprototype
5494#: reference_raster.xml:2242
5495#, no-c-format
5496msgid ""
5497"<funcdef>float8 <function>ST_ScaleY</function></funcdef> "
5498"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5499msgstr ""
5500"<funcdef>float8 <function>ST_ScaleY</function></funcdef> "
5501"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
5502
5503#. Tag: para
5504#: reference_raster.xml:2252
5505#, no-c-format
5506msgid ""
5507"Returns the Y component of the pixel height in units of coordinate reference "
5508"system. May be negative. Refer to <ulink url=\"http://en.wikipedia.org/wiki/"
5509"World_file\">World File</ulink> for more details."
5510msgstr ""
5511"空間参照系の地理的な単位でのピクセル幅のY成分を返します。詳細については"
5512"<ulink url=\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> (英"
5513"語版WikiPedia)をご覧ください。"
5514
5515#. Tag: para
5516#: reference_raster.xml:2255
5517#, no-c-format
5518msgid "Changed: 2.0.0. In WKTRaster versions this was called ST_PixelSizeY."
5519msgstr "Changed: 2.0.0. WKTRaster版ではST_PixelSizeYと呼ばれていました。"
5520
5521#. Tag: programlisting
5522#: reference_raster.xml:2261
5523#, no-c-format
5524msgid ""
5525"SELECT rid, ST_ScaleY(rast) As rastpixheight\n"
5526"FROM dummy_rast;\n"
5527"\n"
5528" rid | rastpixheight\n"
5529"-----+---------------\n"
5530"   1 |             3\n"
5531"   2 |         -0.05"
5532msgstr ""
5533"SELECT rid, ST_ScaleY(rast) As rastpixheight\n"
5534"FROM dummy_rast;\n"
5535"\n"
5536" rid | rastpixheight\n"
5537"-----+---------------\n"
5538"   1 |             3\n"
5539"   2 |         -0.05"
5540
5541#. Tag: refname
5542#: reference_raster.xml:2274
5543#, no-c-format
5544msgid "ST_RasterToWorldCoord"
5545msgstr "ST_RasterToWorldCoord"
5546
5547#. Tag: refpurpose
5548#: reference_raster.xml:2275
5549#, no-c-format
5550msgid ""
5551"Returns the raster's upper left corner as geometric X and Y (longitude and "
5552"latitude) given a column and row. Column and row starts at 1."
5553msgstr ""
5554"ラスタの指定した列と行における左上隅の地理座標X値とY値 (経度と緯度)を返しま"
5555"す。列と行の番号は1始まりです。"
5556
5557#. Tag: funcprototype
5558#: reference_raster.xml:2280
5559#, no-c-format
5560msgid ""
5561"<funcdef>record <function>ST_RasterToWorldCoord</function></funcdef> "
5562"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
5563"<paramdef><type>integer </type> <parameter>xcolumn</parameter></paramdef> "
5564"<paramdef><type>integer </type> <parameter>yrow</parameter></paramdef>"
5565msgstr ""
5566"<funcdef>record <function>ST_RasterToWorldCoord</function></funcdef> "
5567"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
5568"<paramdef><type>integer </type> <parameter>xcolumn</parameter></paramdef> "
5569"<paramdef><type>integer </type> <parameter>yrow</parameter></paramdef>"
5570
5571#. Tag: para
5572#: reference_raster.xml:2292
5573#, no-c-format
5574msgid ""
5575"Returns the upper left corner as geometric X and Y (longitude and latitude) "
5576"given a column and row. Returned X and Y are in geometric units of the "
5577"georeferenced raster. Numbering of column and row starts at 1 but if either "
5578"parameter is passed a zero, a negative number or a number greater than the "
5579"respective dimension of the raster, it will return coordinates outside of "
5580"the raster assuming the raster's grid is applicable outside the raster's "
5581"bounds."
5582msgstr ""
5583"ラスタの指定した列と行における左上隅の地理座標X値とY値 (経度と緯度)を返しま"
5584"す。X値とY値の単位は、地理参照されたラスタの地理単位です。列と行の数字は1始ま"
5585"りですが、引数に0、負数またはラスタのピクセル範囲を超える値が渡されている場合"
5586"には、ラスタのグリッドがラスタ範囲外に適用できると仮定して、範囲外の座標を返"
5587"します。"
5588
5589#. Tag: programlisting
5590#: reference_raster.xml:2304
5591#, no-c-format
5592msgid ""
5593"-- non-skewed raster\n"
5594"SELECT\n"
5595"        rid,\n"
5596"        (ST_RasterToWorldCoord(rast,1, 1)).*,\n"
5597"        (ST_RasterToWorldCoord(rast,2, 2)).*\n"
5598"FROM dummy_rast\n"
5599"\n"
5600" rid | longitude  | latitude | longitude |  latitude\n"
5601"-----+------------+----------+-----------+------------\n"
5602"   1 |        0.5 |      0.5 |       2.5 |        3.5\n"
5603"   2 | 3427927.75 |  5793244 | 3427927.8 | 5793243.95"
5604msgstr ""
5605"-- スキューの無いラスタ\n"
5606"SELECT\n"
5607"        rid,\n"
5608"        (ST_RasterToWorldCoord(rast,1, 1)).*,\n"
5609"        (ST_RasterToWorldCoord(rast,2, 2)).*\n"
5610"FROM dummy_rast\n"
5611"\n"
5612" rid | longitude  | latitude | longitude |  latitude\n"
5613"-----+------------+----------+-----------+------------\n"
5614"   1 |        0.5 |      0.5 |       2.5 |        3.5\n"
5615"   2 | 3427927.75 |  5793244 | 3427927.8 | 5793243.95"
5616
5617#. Tag: programlisting
5618#: reference_raster.xml:2306
5619#, no-c-format
5620msgid ""
5621"-- skewed raster\n"
5622"SELECT\n"
5623"        rid,\n"
5624"        (ST_RasterToWorldCoord(rast, 1, 1)).*,\n"
5625"        (ST_RasterToWorldCoord(rast, 2, 3)).*\n"
5626"FROM (\n"
5627"        SELECT\n"
5628"                rid,\n"
5629"                ST_SetSkew(rast, 100.5, 0) As rast\n"
5630"        FROM dummy_rast\n"
5631") As foo\n"
5632"\n"
5633" rid | longitude  | latitude | longitude | latitude\n"
5634"-----+------------+----------+-----------+-----------\n"
5635"   1 |        0.5 |      0.5 |     203.5 |       6.5\n"
5636"   2 | 3427927.75 |  5793244 | 3428128.8 | 5793243.9"
5637msgstr ""
5638"-- スキューの有るラスタ\n"
5639"SELECT\n"
5640"        rid,\n"
5641"        (ST_RasterToWorldCoord(rast, 1, 1)).*,\n"
5642"        (ST_RasterToWorldCoord(rast, 2, 3)).*\n"
5643"FROM (\n"
5644"        SELECT\n"
5645"                rid,\n"
5646"                ST_SetSkew(rast, 100.5, 0) As rast\n"
5647"        FROM dummy_rast\n"
5648") As foo\n"
5649"\n"
5650" rid | longitude  | latitude | longitude | latitude\n"
5651"-----+------------+----------+-----------+-----------\n"
5652"   1 |        0.5 |      0.5 |     203.5 |       6.5\n"
5653"   2 | 3427927.75 |  5793244 | 3428128.8 | 5793243.9"
5654
5655#. Tag: para
5656#: reference_raster.xml:2313
5657#, no-c-format
5658msgid ""
5659", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
5660"\"RT_ST_SetSkew\"/>"
5661msgstr ""
5662", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
5663"\"RT_ST_SetSkew\"/>"
5664
5665#. Tag: refname
5666#: reference_raster.xml:2323
5667#, no-c-format
5668msgid "ST_RasterToWorldCoordX"
5669msgstr "ST_RasterToWorldCoordX"
5670
5671#. Tag: refpurpose
5672#: reference_raster.xml:2324
5673#, no-c-format
5674msgid ""
5675"Returns the geometric X coordinate upper left of a raster, column and row. "
5676"Numbering of columns and rows starts at 1."
5677msgstr ""
5678"ラスタの指定した列と行における左上隅の地理座標のX値を返します。列と行の番号は"
5679"1始まりです。"
5680
5681#. Tag: funcsynopsis
5682#: reference_raster.xml:2329
5683#, no-c-format
5684msgid ""
5685"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordX</function></"
5686"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
5687"paramdef> <paramdef><type>integer </type> <parameter>xcolumn</parameter></"
5688"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
5689"<function>ST_RasterToWorldCoordX</function></funcdef> <paramdef><type>raster "
5690"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
5691"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
5692"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
5693msgstr ""
5694"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordX</function></"
5695"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
5696"paramdef> <paramdef><type>integer </type> <parameter>xcolumn</parameter></"
5697"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
5698"<function>ST_RasterToWorldCoordX</function></funcdef> <paramdef><type>raster "
5699"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
5700"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
5701"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
5702
5703#. Tag: para
5704#: reference_raster.xml:2347
5705#, no-c-format
5706msgid ""
5707"Returns the upper left X coordinate of a raster column row in geometric "
5708"units of the georeferenced raster. Numbering of columns and rows starts at 1 "
5709"but if you pass in a negative number or number higher than number of columns "
5710"in raster, it will give you coordinates outside of the raster file to left "
5711"or right with the assumption that the skew and pixel sizes are same as "
5712"selected raster."
5713msgstr ""
5714"ラスタの指定した列と行における左上隅の地理座標のX値を地理参照したラスタの地理"
5715"単位で返します。列と行の番号は1始まりです。負数またはラスタの列数を超える値を"
5716"渡した場合には、スキューとピクセルサイズが選択したラスタと同じであるという仮"
5717"定のもとで、ラスタファイルから左または右にはずれた座標値を返します。"
5718
5719#. Tag: para
5720#: reference_raster.xml:2352
5721#, no-c-format
5722msgid ""
5723"For non-skewed rasters, providing the X column is sufficient. For skewed "
5724"rasters, the georeferenced coordinate is a function of the ST_ScaleX and "
5725"ST_SkewX and row and column. An error will be raised if you give just the X "
5726"column for a skewed raster."
5727msgstr ""
5728"スキューの無いラスタでは、X列を与えれば十分です。スキューのあるラスタの場合に"
5729"は、地理参照のとれた座標はST_ScaleXとST_SkewXおよび行と列の関数となります。ス"
5730"キューのあるラスタでX列のみ与えた場合にはエラーが発生します。"
5731
5732#. Tag: para
5733#: reference_raster.xml:2356
5734#, no-c-format
5735msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordX"
5736msgstr "Changed: 2.1.0 以前の版ではST_Raster2WorldCoordXと呼ばれていました。"
5737
5738#. Tag: programlisting
5739#: reference_raster.xml:2363
5740#, no-c-format
5741msgid ""
5742"-- non-skewed raster providing column is sufficient\n"
5743"SELECT rid, ST_RasterToWorldCoordX(rast,1) As x1coord,\n"
5744"        ST_RasterToWorldCoordX(rast,2) As x2coord,\n"
5745"        ST_ScaleX(rast) As pixelx\n"
5746"FROM dummy_rast;\n"
5747"\n"
5748" rid |  x1coord   |  x2coord  | pixelx\n"
5749"-----+------------+-----------+--------\n"
5750"   1 |        0.5 |       2.5 |      2\n"
5751"   2 | 3427927.75 | 3427927.8 |   0.05"
5752msgstr ""
5753"-- スキューの無いラスタでは列を与えれば十分です\n"
5754"SELECT rid, ST_RasterToWorldCoordX(rast,1) As x1coord,\n"
5755"        ST_RasterToWorldCoordX(rast,2) As x2coord,\n"
5756"        ST_ScaleX(rast) As pixelx\n"
5757"FROM dummy_rast;\n"
5758"\n"
5759" rid |  x1coord   |  x2coord  | pixelx\n"
5760"-----+------------+-----------+--------\n"
5761"   1 |        0.5 |       2.5 |      2\n"
5762"   2 | 3427927.75 | 3427927.8 |   0.05"
5763
5764#. Tag: programlisting
5765#: reference_raster.xml:2365
5766#, no-c-format
5767msgid ""
5768"-- for fun lets skew it\n"
5769"SELECT rid, ST_RasterToWorldCoordX(rast, 1, 1) As x1coord,\n"
5770"        ST_RasterToWorldCoordX(rast, 2, 3) As x2coord,\n"
5771"        ST_ScaleX(rast) As pixelx\n"
5772"FROM (SELECT rid, ST_SetSkew(rast, 100.5, 0) As rast FROM dummy_rast) As "
5773"foo;\n"
5774"\n"
5775" rid |  x1coord   |  x2coord  | pixelx\n"
5776"-----+------------+-----------+--------\n"
5777"   1 |        0.5 |     203.5 |      2\n"
5778"   2 | 3427927.75 | 3428128.8 |   0.05"
5779msgstr ""
5780"-- 面白半分にスキューさせてみましょう\n"
5781"SELECT rid, ST_RasterToWorldCoordX(rast, 1, 1) As x1coord,\n"
5782"        ST_RasterToWorldCoordX(rast, 2, 3) As x2coord,\n"
5783"        ST_ScaleX(rast) As pixelx\n"
5784"FROM (SELECT rid, ST_SetSkew(rast, 100.5, 0) As rast FROM dummy_rast) As "
5785"foo;\n"
5786"\n"
5787" rid |  x1coord   |  x2coord  | pixelx\n"
5788"-----+------------+-----------+--------\n"
5789"   1 |        0.5 |     203.5 |      2\n"
5790"   2 | 3427927.75 | 3428128.8 |   0.05"
5791
5792#. Tag: para
5793#: reference_raster.xml:2372
5794#, no-c-format
5795msgid ""
5796", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
5797"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewX\"/>"
5798msgstr ""
5799", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend="
5800"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewX\"/>"
5801
5802#. Tag: refname
5803#: reference_raster.xml:2378
5804#, no-c-format
5805msgid "ST_RasterToWorldCoordY"
5806msgstr "ST_RasterToWorldCoordY"
5807
5808#. Tag: refpurpose
5809#: reference_raster.xml:2379
5810#, no-c-format
5811msgid ""
5812"Returns the geometric Y coordinate upper left corner of a raster, column and "
5813"row. Numbering of columns and rows starts at 1."
5814msgstr ""
5815"ラスタの指定した列と行における左上隅の地理座標のY値を返します。列と行の番号は"
5816"1始まりです。"
5817
5818#. Tag: funcsynopsis
5819#: reference_raster.xml:2384
5820#, no-c-format
5821msgid ""
5822"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordY</function></"
5823"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
5824"paramdef> <paramdef><type>integer </type> <parameter>yrow</parameter></"
5825"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
5826"<function>ST_RasterToWorldCoordY</function></funcdef> <paramdef><type>raster "
5827"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
5828"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
5829"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
5830msgstr ""
5831"<funcprototype> <funcdef>float8 <function>ST_RasterToWorldCoordY</function></"
5832"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
5833"paramdef> <paramdef><type>integer </type> <parameter>yrow</parameter></"
5834"paramdef> </funcprototype> <funcprototype> <funcdef>float8 "
5835"<function>ST_RasterToWorldCoordY</function></funcdef> <paramdef><type>raster "
5836"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
5837"type> <parameter>xcolumn</parameter></paramdef> <paramdef><type>integer </"
5838"type> <parameter>yrow</parameter></paramdef> </funcprototype>"
5839
5840#. Tag: para
5841#: reference_raster.xml:2402
5842#, no-c-format
5843msgid ""
5844"Returns the upper left Y coordinate of a raster column row in geometric "
5845"units of the georeferenced raster. Numbering of columns and rows starts at 1 "
5846"but if you pass in a negative number or number higher than number of columns/"
5847"rows in raster, it will give you coordinates outside of the raster file to "
5848"left or right with the assumption that the skew and pixel sizes are same as "
5849"selected raster tile."
5850msgstr ""
5851"ラスタの指定した列と行における左上隅の地理座標のY値を地理参照したラスタの地理"
5852"単位で返します。列と行の番号は1始まりです。負数またはラスタの列数や行数を超え"
5853"る値を渡した場合には、スキューとピクセルサイズが選択したラスタと同じであると"
5854"いう仮定のもとで、ラスタファイルから左または右にはずれた座標値を返します。"
5855
5856#. Tag: para
5857#: reference_raster.xml:2407
5858#, no-c-format
5859msgid ""
5860"For non-skewed rasters, providing the Y column is sufficient. For skewed "
5861"rasters, the georeferenced coordinate is a function of the ST_ScaleY and "
5862"ST_SkewY and row and column. An error will be raised if you give just the Y "
5863"row for a skewed raster."
5864msgstr ""
5865"スキューの無いラスタでは、Y行を与えれば十分です。スキューのあるラスタの場合に"
5866"は、地理参照のとれた座標はST_ScaleYとST_SkewYおよび行と列の関数となります。ス"
5867"キューのあるラスタでY行のみ与えた場合にはエラーが発生します"
5868
5869#. Tag: para
5870#: reference_raster.xml:2411
5871#, no-c-format
5872msgid "Changed: 2.1.0 In prior versions, this was called ST_Raster2WorldCoordY"
5873msgstr "Changed: 2.1.0 以前の版ではST_Raster2WorldCoordYと呼ばれていました。"
5874
5875#. Tag: programlisting
5876#: reference_raster.xml:2417
5877#, no-c-format
5878msgid ""
5879"-- non-skewed raster providing row is sufficient\n"
5880"SELECT rid, ST_RasterToWorldCoordY(rast,1) As y1coord,\n"
5881"        ST_RasterToWorldCoordY(rast,3) As y2coord,\n"
5882"        ST_ScaleY(rast) As pixely\n"
5883"FROM dummy_rast;\n"
5884"\n"
5885" rid | y1coord |  y2coord  | pixely\n"
5886"-----+---------+-----------+--------\n"
5887"   1 |     0.5 |       6.5 |      3\n"
5888"   2 | 5793244 | 5793243.9 |  -0.05"
5889msgstr ""
5890"-- スキューの無いラスタでは列を与えれば十分です\n"
5891"SELECT rid, ST_RasterToWorldCoordY(rast,1) As y1coord,\n"
5892"        ST_RasterToWorldCoordY(rast,3) As y2coord,\n"
5893"        ST_ScaleY(rast) As pixely\n"
5894"FROM dummy_rast;\n"
5895"\n"
5896" rid | y1coord |  y2coord  | pixely\n"
5897"-----+---------+-----------+--------\n"
5898"   1 |     0.5 |       6.5 |      3\n"
5899"   2 | 5793244 | 5793243.9 |  -0.05"
5900
5901#. Tag: programlisting
5902#: reference_raster.xml:2419
5903#, no-c-format
5904msgid ""
5905"-- for fun lets skew it\n"
5906"SELECT rid, ST_RasterToWorldCoordY(rast,1,1) As y1coord,\n"
5907"        ST_RasterToWorldCoordY(rast,2,3) As y2coord,\n"
5908"        ST_ScaleY(rast) As pixely\n"
5909"FROM (SELECT rid, ST_SetSkew(rast,0,100.5) As rast FROM dummy_rast) As foo;\n"
5910"\n"
5911" rid | y1coord |  y2coord  | pixely\n"
5912"-----+---------+-----------+--------\n"
5913"   1 |     0.5 |       107 |      3\n"
5914"   2 | 5793244 | 5793344.4 |  -0.05"
5915msgstr ""
5916"-- 面白半分に回転させてみましょう\n"
5917"SELECT rid, ST_RasterToWorldCoordY(rast,1,1) As y1coord,\n"
5918"        ST_RasterToWorldCoordY(rast,2,3) As y2coord,\n"
5919"        ST_ScaleY(rast) As pixely\n"
5920"FROM (SELECT rid, ST_SetSkew(rast,0,100.5) As rast FROM dummy_rast) As foo;\n"
5921"\n"
5922" rid | y1coord |  y2coord  | pixely\n"
5923"-----+---------+-----------+--------\n"
5924"   1 |     0.5 |       107 |      3\n"
5925"   2 | 5793244 | 5793344.4 |  -0.05"
5926
5927#. Tag: para
5928#: reference_raster.xml:2426
5929#, no-c-format
5930msgid ""
5931", <xref linkend=\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend="
5932"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
5933msgstr ""
5934", <xref linkend=\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend="
5935"\"RT_ST_SetSkew\"/>, <xref linkend=\"RT_ST_SkewY\"/>"
5936
5937#. Tag: refname
5938#: reference_raster.xml:2432
5939#, no-c-format
5940msgid "ST_Rotation"
5941msgstr "ST_Rotation"
5942
5943#. Tag: refpurpose
5944#: reference_raster.xml:2433
5945#, no-c-format
5946msgid "Returns the rotation of the raster in radian."
5947msgstr "ラスタの回転をラジアンで返します。"
5948
5949#. Tag: funcprototype
5950#: reference_raster.xml:2438
5951#, no-c-format
5952msgid ""
5953"<funcdef>float8 <function>ST_Rotation</function></funcdef> "
5954"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef>"
5955msgstr ""
5956"<funcdef>float8 <function>ST_Rotation</function></funcdef> "
5957"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef>"
5958
5959#. Tag: para
5960#: reference_raster.xml:2448
5961#, no-c-format
5962msgid ""
5963"Returns the uniform rotation of the raster in radian. If a raster does not "
5964"have uniform rotation, NaN is returned. Refer to <ulink url=\"http://en."
5965"wikipedia.org/wiki/World_file\">World File</ulink> for more details."
5966msgstr ""
5967"ラスタの回転をラジアンで返します。ラスタが回転を持っていない場合には、NaNが返"
5968"されます。詳細については<ulink url=\"http://en.wikipedia.org/wiki/World_file"
5969"\">World File</ulink> (英語版WikiPedia)を参照して下さい。"
5970
5971#. Tag: programlisting
5972#: reference_raster.xml:2455
5973#, no-c-format
5974msgid ""
5975"SELECT rid, ST_Rotation(ST_SetScale(ST_SetSkew(rast, sqrt(2)), sqrt(2))) as "
5976"rot FROM dummy_rast;\n"
5977"\n"
5978" rid |        rot\n"
5979"-----+-------------------\n"
5980"   1 | 0.785398163397448\n"
5981"   2 | 0.785398163397448"
5982msgstr ""
5983"SELECT rid, ST_Rotation(ST_SetScale(ST_SetSkew(rast, sqrt(2)), sqrt(2))) as "
5984"rot FROM dummy_rast;\n"
5985"\n"
5986" rid |        rot\n"
5987"-----+-------------------\n"
5988"   1 | 0.785398163397448\n"
5989"   2 | 0.785398163397448"
5990
5991#. Tag: para
5992#: reference_raster.xml:2461
5993#, no-c-format
5994msgid ", <xref linkend=\"RT_ST_SetScale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
5995msgstr ""
5996", <xref linkend=\"RT_ST_SetScale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
5997
5998#. Tag: refname
5999#: reference_raster.xml:2467
6000#, no-c-format
6001msgid "ST_SkewX"
6002msgstr "ST_SkewX"
6003
6004#. Tag: refpurpose
6005#: reference_raster.xml:2468
6006#, no-c-format
6007msgid "Returns the georeference X skew (or rotation parameter)."
6008msgstr "空間参照のXスキュー (回転パラメータ)を返します。"
6009
6010#. Tag: funcprototype
6011#: reference_raster.xml:2473
6012#, no-c-format
6013msgid ""
6014"<funcdef>float8 <function>ST_SkewX</function></funcdef> "
6015"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6016msgstr ""
6017"<funcdef>float8 <function>ST_SkewX</function></funcdef> "
6018"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6019
6020#. Tag: para
6021#: reference_raster.xml:2483
6022#, no-c-format
6023msgid ""
6024"Returns the georeference X skew (or rotation parameter). Refer to <ulink url="
6025"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
6026"details."
6027msgstr ""
6028"空間参照のXスキュー (回転パラメータ)を返します。詳細については<ulink url="
6029"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> (英語版"
6030"WikiPedia)を参照して下さい。"
6031
6032#. Tag: programlisting
6033#: reference_raster.xml:2490 reference_raster.xml:2526
6034#, no-c-format
6035msgid ""
6036"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
6037"    ST_GeoReference(rast) as georef\n"
6038"FROM dummy_rast;\n"
6039"\n"
6040" rid | skewx | skewy |       georef\n"
6041"-----+-------+-------+--------------------\n"
6042"   1 |     0 |     0 | 2.0000000000\n"
6043"                     : 0.0000000000\n"
6044"                     : 0.0000000000\n"
6045"                     : 3.0000000000\n"
6046"                     : 0.5000000000\n"
6047"                     : 0.5000000000\n"
6048"                     :\n"
6049"   2 |     0 |     0 | 0.0500000000\n"
6050"                     : 0.0000000000\n"
6051"                     : 0.0000000000\n"
6052"                     : -0.0500000000\n"
6053"                     : 3427927.7500000000\n"
6054"                     : 5793244.0000000000"
6055msgstr ""
6056"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
6057"    ST_GeoReference(rast) as georef\n"
6058"FROM dummy_rast;\n"
6059"\n"
6060" rid | skewx | skewy |       georef\n"
6061"-----+-------+-------+--------------------\n"
6062"   1 |     0 |     0 | 2.0000000000\n"
6063"                     : 0.0000000000\n"
6064"                     : 0.0000000000\n"
6065"                     : 3.0000000000\n"
6066"                     : 0.5000000000\n"
6067"                     : 0.5000000000\n"
6068"                     :\n"
6069"   2 |     0 |     0 | 0.0500000000\n"
6070"                     : 0.0000000000\n"
6071"                     : 0.0000000000\n"
6072"                     : -0.0500000000\n"
6073"                     : 3427927.7500000000\n"
6074"                     : 5793244.0000000000"
6075
6076#. Tag: para
6077#: reference_raster.xml:2497
6078#, no-c-format
6079msgid ", <xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
6080msgstr ", <xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
6081
6082#. Tag: refname
6083#: reference_raster.xml:2503
6084#, no-c-format
6085msgid "ST_SkewY"
6086msgstr "ST_SkewY"
6087
6088#. Tag: refpurpose
6089#: reference_raster.xml:2504
6090#, no-c-format
6091msgid "Returns the georeference Y skew (or rotation parameter)."
6092msgstr "空間参照のYスキュー (回転パラメータ)を返します。"
6093
6094#. Tag: funcprototype
6095#: reference_raster.xml:2509
6096#, no-c-format
6097msgid ""
6098"<funcdef>float8 <function>ST_SkewY</function></funcdef> "
6099"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6100msgstr ""
6101"<funcdef>float8 <function>ST_SkewY</function></funcdef> "
6102"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6103
6104#. Tag: para
6105#: reference_raster.xml:2519
6106#, no-c-format
6107msgid ""
6108"Returns the georeference Y skew (or rotation parameter). Refer to <ulink url="
6109"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
6110"details."
6111msgstr ""
6112"空間参照のYスキュー (回転パラメータ)を返します。詳細については<ulink url="
6113"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> (英語版"
6114"WikiPedia)を参照して下さい。"
6115
6116#. Tag: para
6117#: reference_raster.xml:2533
6118#, no-c-format
6119msgid ", <xref linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
6120msgstr ", <xref linkend=\"RT_ST_SkewX\"/>, <xref linkend=\"RT_ST_SetSkew\"/>"
6121
6122#. Tag: refname
6123#: reference_raster.xml:2539
6124#, no-c-format
6125msgid "ST_SRID"
6126msgstr "ST_SRID"
6127
6128#. Tag: refpurpose
6129#: reference_raster.xml:2540
6130#, no-c-format
6131msgid ""
6132"Returns the spatial reference identifier of the raster as defined in "
6133"spatial_ref_sys table."
6134msgstr ""
6135"ラスタのspatial_ref_sysテーブルで定義されている空間参照系識別番号を返します。"
6136
6137#. Tag: funcprototype
6138#: reference_raster.xml:2545
6139#, no-c-format
6140msgid ""
6141"<funcdef>integer <function>ST_SRID</function></funcdef> "
6142"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6143msgstr ""
6144"<funcdef>integer <function>ST_SRID</function></funcdef> "
6145"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6146
6147#. Tag: para
6148#: reference_raster.xml:2555
6149#, no-c-format
6150msgid ""
6151"Returns the spatial reference identifier of the raster object as defined in "
6152"the spatial_ref_sys table."
6153msgstr ""
6154"ラスタのspatial_ref_sysテーブルで定義されている空間参照系識別番号を返します。"
6155
6156#. Tag: para
6157#: reference_raster.xml:2556
6158#, no-c-format
6159msgid ""
6160"From PostGIS 2.0+ the srid of a non-georeferenced raster/geometry is 0 "
6161"instead of the prior -1."
6162msgstr ""
6163"空間参照を持たないラスタ/ジオメトリのSRIDは、以前は-1でしたがPostGIS 2.0以上"
6164"では0になります。"
6165
6166#. Tag: programlisting
6167#: reference_raster.xml:2562
6168#, no-c-format
6169msgid ""
6170"SELECT ST_SRID(rast) As srid\n"
6171"FROM dummy_rast WHERE rid=1;\n"
6172"\n"
6173"srid\n"
6174"----------------\n"
6175"0"
6176msgstr ""
6177"SELECT ST_SRID(rast) As srid\n"
6178"FROM dummy_rast WHERE rid=1;\n"
6179"\n"
6180"srid\n"
6181"----------------\n"
6182"0"
6183
6184#. Tag: para
6185#: reference_raster.xml:2568
6186#, no-c-format
6187msgid ", <xref linkend=\"ST_SRID\"/>"
6188msgstr ", <xref linkend=\"ST_SRID\"/>"
6189
6190#. Tag: refname
6191#: reference_raster.xml:2574
6192#, no-c-format
6193msgid "ST_Summary"
6194msgstr "ST_Summary"
6195
6196#. Tag: refpurpose
6197#: reference_raster.xml:2575
6198#, no-c-format
6199msgid ""
6200"<refpurpose>Returns a text summary of the contents of the raster.</"
6201"refpurpose>"
6202msgstr "<refpurpose>ラスタの中身の概要が文字列で返されます。</refpurpose>"
6203
6204#. Tag: funcprototype
6205#: reference_raster.xml:2580
6206#, no-c-format
6207msgid ""
6208"<funcdef>text <function>ST_Summary</function></funcdef> "
6209"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6210msgstr ""
6211"<funcdef>text <function>ST_Summary</function></funcdef> "
6212"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6213
6214#. Tag: para
6215#: reference_raster.xml:2590
6216#, no-c-format
6217msgid "<para>Returns a text summary of the contents of the raster.</para>"
6218msgstr "<para>ラスタの中身の概要が文字列で返されます。</para>"
6219
6220#. Tag: programlisting
6221#: reference_raster.xml:2597
6222#, no-c-format
6223msgid ""
6224"SELECT ST_Summary(\n"
6225"        ST_AddBand(\n"
6226"                ST_AddBand(\n"
6227"                        ST_AddBand(\n"
6228"                                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, "
6229"0, 0)\n"
6230"                                , 1, '8BUI', 1, 0\n"
6231"                        )\n"
6232"                        , 2, '32BF', 0, -9999\n"
6233"                )\n"
6234"                , 3, '16BSI', 0, NULL\n"
6235"        )\n"
6236");\n"
6237"\n"
6238"                            st_summary\n"
6239"------------------------------------------------------------------\n"
6240" Raster of 10x10 pixels has 3 bands and extent of BOX(0 -10,10 0)+\n"
6241"     band 1 of pixtype 8BUI is in-db with NODATA value of 0      +\n"
6242"     band 2 of pixtype 32BF is in-db with NODATA value of -9999  +\n"
6243"     band 3 of pixtype 16BSI is in-db with no NODATA value\n"
6244"(1 row)"
6245msgstr ""
6246"SELECT ST_Summary(\n"
6247"        ST_AddBand(\n"
6248"                ST_AddBand(\n"
6249"                        ST_AddBand(\n"
6250"                                ST_MakeEmptyRaster(10, 10, 0, 0, 1, -1, 0, "
6251"0, 0)\n"
6252"                                , 1, '8BUI', 1, 0\n"
6253"                        )\n"
6254"                        , 2, '32BF', 0, -9999\n"
6255"                )\n"
6256"                , 3, '16BSI', 0, NULL\n"
6257"        )\n"
6258");\n"
6259"\n"
6260"                            st_summary\n"
6261"------------------------------------------------------------------\n"
6262" Raster of 10x10 pixels has 3 bands and extent of BOX(0 -10,10 0)+\n"
6263"     band 1 of pixtype 8BUI is in-db with NODATA value of 0      +\n"
6264"     band 2 of pixtype 32BF is in-db with NODATA value of -9999  +\n"
6265"     band 3 of pixtype 16BSI is in-db with no NODATA value\n"
6266"(1 row)"
6267
6268#. Tag: para
6269#: reference_raster.xml:2602
6270#, no-c-format
6271msgid ""
6272", <xref linkend=\"RT_ST_BandMetaData\"/>, <xref linkend=\"ST_Summary\"/> "
6273"<xref linkend=\"ST_Extent\"/>"
6274msgstr ""
6275", <xref linkend=\"RT_ST_BandMetaData\"/>, <xref linkend=\"ST_Summary\"/> "
6276"<xref linkend=\"ST_Extent\"/>"
6277
6278#. Tag: refname
6279#: reference_raster.xml:2613
6280#, no-c-format
6281msgid "ST_UpperLeftX"
6282msgstr "ST_UpperLeftX"
6283
6284#. Tag: refpurpose
6285#: reference_raster.xml:2614
6286#, no-c-format
6287msgid ""
6288"<refpurpose>Returns the upper left X coordinate of raster in projected "
6289"spatial ref.</refpurpose>"
6290msgstr ""
6291"<refpurpose>適用されている空間参照系でのラスタの左上隅のX座標値を返します。</"
6292"refpurpose>"
6293
6294#. Tag: funcprototype
6295#: reference_raster.xml:2619
6296#, no-c-format
6297msgid ""
6298"<funcdef>float8 <function>ST_UpperLeftX</function></funcdef> "
6299"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6300msgstr ""
6301"<funcdef>float8 <function>ST_UpperLeftX</function></funcdef> "
6302"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6303
6304#. Tag: para
6305#: reference_raster.xml:2629
6306#, no-c-format
6307msgid ""
6308"<para>Returns the upper left X coordinate of raster in projected spatial ref."
6309"</para>"
6310msgstr ""
6311"<para>適用されている空間参照系でのラスタの左上隅のX座標値を返します。</para>"
6312
6313#. Tag: programlisting
6314#: reference_raster.xml:2635
6315#, no-c-format
6316msgid ""
6317"SELECt rid, ST_UpperLeftX(rast) As ulx\n"
6318"FROM dummy_rast;\n"
6319"\n"
6320" rid |    ulx\n"
6321"-----+------------\n"
6322"   1 |        0.5\n"
6323"   2 | 3427927.75"
6324msgstr ""
6325"SELECt rid, ST_UpperLeftX(rast) As ulx\n"
6326"FROM dummy_rast;\n"
6327"\n"
6328" rid |    ulx\n"
6329"-----+------------\n"
6330"   1 |        0.5\n"
6331"   2 | 3427927.75"
6332
6333#. Tag: para
6334#: reference_raster.xml:2641 reference_raster.xml:2675
6335#, no-c-format
6336msgid ", <xref linkend=\"RT_ST_GeoReference\"/>, <xref linkend=\"RT_Box3D\"/>"
6337msgstr ", <xref linkend=\"RT_ST_GeoReference\"/>, <xref linkend=\"RT_Box3D\"/>"
6338
6339#. Tag: refname
6340#: reference_raster.xml:2647
6341#, no-c-format
6342msgid "ST_UpperLeftY"
6343msgstr "ST_UpperLeftY"
6344
6345#. Tag: refpurpose
6346#: reference_raster.xml:2648
6347#, no-c-format
6348msgid ""
6349"<refpurpose>Returns the upper left Y coordinate of raster in projected "
6350"spatial ref.</refpurpose>"
6351msgstr ""
6352"<refpurpose>適用されている空間参照系でのラスタの左上隅のY座標値を返します。</"
6353"refpurpose>"
6354
6355#. Tag: funcprototype
6356#: reference_raster.xml:2653
6357#, no-c-format
6358msgid ""
6359"<funcdef>float8 <function>ST_UpperLeftY</function></funcdef> "
6360"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6361msgstr ""
6362"<funcdef>float8 <function>ST_UpperLeftY</function></funcdef> "
6363"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6364
6365#. Tag: para
6366#: reference_raster.xml:2663
6367#, no-c-format
6368msgid ""
6369"<para>Returns the upper left Y coordinate of raster in projected spatial ref."
6370"</para>"
6371msgstr ""
6372"<para>適用されている空間参照系でのラスタの左上隅のY座標値を返します。</para>"
6373
6374#. Tag: programlisting
6375#: reference_raster.xml:2669
6376#, no-c-format
6377msgid ""
6378"SELECT rid, ST_UpperLeftY(rast) As uly\n"
6379"FROM dummy_rast;\n"
6380"\n"
6381" rid |   uly\n"
6382"-----+---------\n"
6383"   1 |     0.5\n"
6384"   2 | 5793244"
6385msgstr ""
6386"SELECT rid, ST_UpperLeftY(rast) As uly\n"
6387"FROM dummy_rast;\n"
6388"\n"
6389" rid |   uly\n"
6390"-----+---------\n"
6391"   1 |     0.5\n"
6392"   2 | 5793244"
6393
6394#. Tag: refname
6395#: reference_raster.xml:2681
6396#, no-c-format
6397msgid "ST_Width"
6398msgstr "ST_Width"
6399
6400#. Tag: refpurpose
6401#: reference_raster.xml:2682
6402#, no-c-format
6403msgid "<refpurpose>Returns the width of the raster in pixels.</refpurpose>"
6404msgstr "<refpurpose>ラスタの幅をピクセル単位で返します。</refpurpose>"
6405
6406#. Tag: funcprototype
6407#: reference_raster.xml:2687
6408#, no-c-format
6409msgid ""
6410"<funcdef>integer <function>ST_Width</function></funcdef> "
6411"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6412msgstr ""
6413"<funcdef>integer <function>ST_Width</function></funcdef> "
6414"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
6415
6416#. Tag: para
6417#: reference_raster.xml:2697
6418#, no-c-format
6419msgid "<para>Returns the width of the raster in pixels.</para>"
6420msgstr "<para>ラスタの幅をピクセル単位で返します。</para>"
6421
6422#. Tag: programlisting
6423#: reference_raster.xml:2703
6424#, no-c-format
6425msgid ""
6426"SELECT ST_Width(rast) As rastwidth\n"
6427"FROM dummy_rast WHERE rid=1;\n"
6428"\n"
6429"rastwidth\n"
6430"----------------\n"
6431"10"
6432msgstr ""
6433"SELECT ST_Width(rast) As rastwidth\n"
6434"FROM dummy_rast WHERE rid=1;\n"
6435"\n"
6436"rastwidth\n"
6437"----------------\n"
6438"10"
6439
6440#. Tag: refname
6441#: reference_raster.xml:2717
6442#, no-c-format
6443msgid "ST_WorldToRasterCoord"
6444msgstr "ST_WorldToRasterCoord"
6445
6446#. Tag: refpurpose
6447#: reference_raster.xml:2718
6448#, no-c-format
6449msgid ""
6450"Returns the upper left corner as column and row given geometric X and Y "
6451"(longitude and latitude) or a point geometry expressed in the spatial "
6452"reference coordinate system of the raster."
6453msgstr ""
6454"ラスタの空間参照系による地理座標のX値とY値 (経度と緯度)またはポイントジオメト"
6455"リに対応するピクセルの左上隅を返します。"
6456
6457#. Tag: funcsynopsis
6458#: reference_raster.xml:2722
6459#, no-c-format
6460msgid ""
6461"<funcprototype> <funcdef>record <function>ST_WorldToRasterCoord</function></"
6462"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
6463"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
6464"paramdef> </funcprototype> <funcprototype> <funcdef>record "
6465"<function>ST_WorldToRasterCoord</function></funcdef> <paramdef><type>raster "
6466"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6467"precision </type> <parameter>longitude</parameter></paramdef> "
6468"<paramdef><type>double precision </type> <parameter>latitude</parameter></"
6469"paramdef> </funcprototype>"
6470msgstr ""
6471"<funcprototype> <funcdef>record <function>ST_WorldToRasterCoord</function></"
6472"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
6473"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
6474"paramdef> </funcprototype> <funcprototype> <funcdef>record "
6475"<function>ST_WorldToRasterCoord</function></funcdef> <paramdef><type>raster "
6476"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6477"precision </type> <parameter>longitude</parameter></paramdef> "
6478"<paramdef><type>double precision </type> <parameter>latitude</parameter></"
6479"paramdef> </funcprototype>"
6480
6481#. Tag: para
6482#: reference_raster.xml:2741
6483#, no-c-format
6484msgid ""
6485"Returns the upper left corner as column and row given geometric X and Y "
6486"(longitude and latitude) or a point geometry. This function works regardless "
6487"of whether or not the geometric X and Y or point geometry is outside the "
6488"extent of the raster. Geometric X and Y must be expressed in the spatial "
6489"reference coordinate system of the raster."
6490msgstr ""
6491"地理座標のX値とY値 (経度と緯度)またはポイントジオメトリに対応するピクセルの左"
6492"上隅を返します。X値、Y値やポイントジオメトリがラスタの範囲外であるかないかに"
6493"かかわらず動作します。地理座標のX値とY値はラスタの空間参照系で表現しなければ"
6494"なりません。"
6495
6496#. Tag: programlisting
6497#: reference_raster.xml:2754
6498#, no-c-format
6499msgid ""
6500"SELECT\n"
6501"        rid,\n"
6502"        (ST_WorldToRasterCoord(rast,3427927.8,20.5)).*,\n"
6503"        (ST_WorldToRasterCoord(rast,ST_GeomFromText('POINT(3427927.8 20.5)',"
6504"ST_SRID(rast)))).*\n"
6505"FROM dummy_rast;\n"
6506"\n"
6507" rid | columnx |   rowy    | columnx |   rowy\n"
6508"-----+---------+-----------+---------+-----------\n"
6509"   1 | 1713964 |         7 | 1713964 |         7\n"
6510"   2 |       2 | 115864471 |       2 | 115864471"
6511msgstr ""
6512"SELECT\n"
6513"        rid,\n"
6514"        (ST_WorldToRasterCoord(rast,3427927.8,20.5)).*,\n"
6515"        (ST_WorldToRasterCoord(rast,ST_GeomFromText('POINT(3427927.8 20.5)',"
6516"ST_SRID(rast)))).*\n"
6517"FROM dummy_rast;\n"
6518"\n"
6519" rid | columnx |   rowy    | columnx |   rowy\n"
6520"-----+---------+-----------+---------+-----------\n"
6521"   1 | 1713964 |         7 | 1713964 |         7\n"
6522"   2 |       2 | 115864471 |       2 | 115864471"
6523
6524#. Tag: para
6525#: reference_raster.xml:2760
6526#, no-c-format
6527msgid ""
6528", <xref linkend=\"RT_ST_WorldToRasterCoordY\"/>, <xref linkend="
6529"\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=\"RT_ST_RasterToWorldCoordY\"/"
6530">, <xref linkend=\"RT_ST_SRID\"/>"
6531msgstr ""
6532", <xref linkend=\"RT_ST_WorldToRasterCoordY\"/>, <xref linkend="
6533"\"RT_ST_RasterToWorldCoordX\"/>, <xref linkend=\"RT_ST_RasterToWorldCoordY\"/"
6534">, <xref linkend=\"RT_ST_SRID\"/>"
6535
6536#. Tag: refname
6537#: reference_raster.xml:2772
6538#, no-c-format
6539msgid "ST_WorldToRasterCoordX"
6540msgstr "ST_WorldToRasterCoordX"
6541
6542#. Tag: refpurpose
6543#: reference_raster.xml:2773
6544#, no-c-format
6545msgid ""
6546"Returns the column in the raster of the point geometry (pt) or a X and Y "
6547"world coordinate (xw, yw) represented in world spatial reference system of "
6548"raster."
6549msgstr ""
6550"ラスタの空間参照系に基づくポイントジオメトリ (pt)またはX,Y座標値 (xw,yw)に対"
6551"応するラスタの列を返します。"
6552
6553#. Tag: funcsynopsis
6554#: reference_raster.xml:2778
6555#, no-c-format
6556msgid ""
6557"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
6558"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6559"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
6560"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
6561"<function>ST_WorldToRasterCoordX</function></funcdef> <paramdef><type>raster "
6562"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6563"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
6564"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
6565"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6566"parameter></paramdef> <paramdef><type>double precision </type> "
6567"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
6568"type> <parameter>yw</parameter></paramdef> </funcprototype>"
6569msgstr ""
6570"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
6571"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6572"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
6573"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
6574"<function>ST_WorldToRasterCoordX</function></funcdef> <paramdef><type>raster "
6575"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6576"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
6577"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordX</"
6578"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6579"parameter></paramdef> <paramdef><type>double precision </type> "
6580"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
6581"type> <parameter>yw</parameter></paramdef> </funcprototype>"
6582
6583#. Tag: para
6584#: reference_raster.xml:2803
6585#, no-c-format
6586msgid ""
6587"Returns the column in the raster of the point geometry (pt) or a X and Y "
6588"world coordinate (xw, yw). A point, or (both xw and yw world coordinates are "
6589"required if a raster is skewed). If a raster is not skewed then xw is "
6590"sufficient. World coordinates are in the spatial reference coordinate system "
6591"of the raster."
6592msgstr ""
6593"ラスタの空間参照系に基づくポイントジオメトリ (pt)またはX,Y座標値 (xw,yw)に対"
6594"応するラスタの列を返します。ラスタがスキューされている場合には、ポイントかxw"
6595"とywの両方かが必要です。ラスタがスキューされていない場合には、xwを指定すれば"
6596"十分です。ワールド座標系はラスタの空間参照系です。"
6597
6598#. Tag: para
6599#: reference_raster.xml:2805
6600#, no-c-format
6601msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordX"
6602msgstr "Changed: 2.1.0 以前の版ではST_World2RasterCoordXと呼ばれていました。"
6603
6604#. Tag: programlisting
6605#: reference_raster.xml:2811
6606#, no-c-format
6607msgid ""
6608"SELECT rid, ST_WorldToRasterCoordX(rast,3427927.8) As xcoord,\n"
6609"                ST_WorldToRasterCoordX(rast,3427927.8,20.5) As xcoord_xwyw,\n"
6610"                ST_WorldToRasterCoordX(rast,ST_GeomFromText('POINT(3427927.8 "
6611"20.5)',ST_SRID(rast))) As ptxcoord\n"
6612"FROM dummy_rast;\n"
6613"\n"
6614" rid | xcoord  |  xcoord_xwyw   | ptxcoord\n"
6615"-----+---------+---------+----------\n"
6616"   1 | 1713964 | 1713964 |  1713964\n"
6617"   2 |       1 |       1 |        1"
6618msgstr ""
6619"SELECT rid, ST_WorldToRasterCoordX(rast,3427927.8) As xcoord,\n"
6620"                ST_WorldToRasterCoordX(rast,3427927.8,20.5) As xcoord_xwyw,\n"
6621"                ST_WorldToRasterCoordX(rast,ST_GeomFromText('POINT(3427927.8 "
6622"20.5)',ST_SRID(rast))) As ptxcoord\n"
6623"FROM dummy_rast;\n"
6624"\n"
6625" rid | xcoord  |  xcoord_xwyw   | ptxcoord\n"
6626"-----+---------+---------+----------\n"
6627"   1 | 1713964 | 1713964 |  1713964\n"
6628"   2 |       1 |       1 |        1"
6629
6630#. Tag: para
6631#: reference_raster.xml:2817 reference_raster.xml:2872
6632#, no-c-format
6633msgid ""
6634", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=\"RT_ST_SRID"
6635"\"/>"
6636msgstr ""
6637", <xref linkend=\"RT_ST_RasterToWorldCoordY\"/>, <xref linkend=\"RT_ST_SRID"
6638"\"/>"
6639
6640#. Tag: refname
6641#: reference_raster.xml:2827
6642#, no-c-format
6643msgid "ST_WorldToRasterCoordY"
6644msgstr "ST_WorldToRasterCoordY"
6645
6646#. Tag: refpurpose
6647#: reference_raster.xml:2828
6648#, no-c-format
6649msgid ""
6650"Returns the row in the raster of the point geometry (pt) or a X and Y world "
6651"coordinate (xw, yw) represented in world spatial reference system of raster."
6652msgstr ""
6653"ラスタの空間参照系に基づくポイントジオメトリ (pt)またはX,Y座標値 (xw,yw)に対"
6654"応するラスタの行を返します。"
6655
6656#. Tag: funcsynopsis
6657#: reference_raster.xml:2833
6658#, no-c-format
6659msgid ""
6660"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
6661"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6662"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
6663"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
6664"<function>ST_WorldToRasterCoordY</function></funcdef> <paramdef><type>raster "
6665"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6666"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
6667"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
6668"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6669"parameter></paramdef> <paramdef><type>double precision </type> "
6670"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
6671"type> <parameter>yw</parameter></paramdef> </funcprototype>"
6672msgstr ""
6673"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
6674"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6675"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
6676"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>integer "
6677"<function>ST_WorldToRasterCoordY</function></funcdef> <paramdef><type>raster "
6678"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
6679"precision </type> <parameter>xw</parameter></paramdef> </funcprototype> "
6680"<funcprototype> <funcdef>integer <function>ST_WorldToRasterCoordY</"
6681"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
6682"parameter></paramdef> <paramdef><type>double precision </type> "
6683"<parameter>xw</parameter></paramdef> <paramdef><type>double precision </"
6684"type> <parameter>yw</parameter></paramdef> </funcprototype>"
6685
6686#. Tag: para
6687#: reference_raster.xml:2858
6688#, no-c-format
6689msgid ""
6690"Returns the row in the raster of the point geometry (pt) or a X and Y world "
6691"coordinate (xw, yw). A point, or (both xw and yw world coordinates are "
6692"required if a raster is skewed). If a raster is not skewed then xw is "
6693"sufficient. World coordinates are in the spatial reference coordinate system "
6694"of the raster."
6695msgstr ""
6696"ラスタの空間参照系に基づくポイントジオメトリ (pt)またはX,Y座標値 (xw,yw)に対"
6697"応するラスタの行を返します。ラスタがスキューされている場合には、ポイントかxw"
6698"とywの両方かが必要です。ラスタがスキューされていない場合には、ywを指定すれば"
6699"十分です。ワールド座標系はラスタの空間参照系です。"
6700
6701#. Tag: para
6702#: reference_raster.xml:2860
6703#, no-c-format
6704msgid "Changed: 2.1.0 In prior versions, this was called ST_World2RasterCoordY"
6705msgstr "Changed: 2.1.0 以前の版ではST_World2RasterCoordYと呼ばれていました。"
6706
6707#. Tag: programlisting
6708#: reference_raster.xml:2866
6709#, no-c-format
6710msgid ""
6711"SELECT rid, ST_WorldToRasterCoordY(rast,20.5) As ycoord,\n"
6712"                ST_WorldToRasterCoordY(rast,3427927.8,20.5) As ycoord_xwyw,\n"
6713"                ST_WorldToRasterCoordY(rast,ST_GeomFromText('POINT(3427927.8 "
6714"20.5)',ST_SRID(rast))) As ptycoord\n"
6715"FROM dummy_rast;\n"
6716"\n"
6717" rid |  ycoord   | ycoord_xwyw | ptycoord\n"
6718"-----+-----------+-------------+-----------\n"
6719"   1 |         7 |           7 |         7\n"
6720"   2 | 115864471 |   115864471 | 115864471"
6721msgstr ""
6722"SELECT rid, ST_WorldToRasterCoordY(rast,20.5) As ycoord,\n"
6723"                ST_WorldToRasterCoordY(rast,3427927.8,20.5) As ycoord_xwyw,\n"
6724"                ST_WorldToRasterCoordY(rast,ST_GeomFromText('POINT(3427927.8 "
6725"20.5)',ST_SRID(rast))) As ptycoord\n"
6726"FROM dummy_rast;\n"
6727"\n"
6728" rid |  ycoord   | ycoord_xwyw | ptycoord\n"
6729"-----+-----------+-------------+-----------\n"
6730"   1 |         7 |           7 |         7\n"
6731"   2 | 115864471 |   115864471 | 115864471"
6732
6733#. Tag: title
6734#: reference_raster.xml:2879
6735#, no-c-format
6736msgid "Raster Band Accessors"
6737msgstr "ラスタバンドアクセサ"
6738
6739#. Tag: refname
6740#: reference_raster.xml:2882
6741#, no-c-format
6742msgid "ST_BandMetaData"
6743msgstr "ST_BandMetaData"
6744
6745#. Tag: refpurpose
6746#: reference_raster.xml:2883
6747#, no-c-format
6748msgid ""
6749"Returns basic meta data for a specific raster band. band num 1 is assumed if "
6750"none-specified."
6751msgstr ""
6752"指定したラスタバンドの基本的なメタデータを返します。バンド番号を指定しない場"
6753"合には、1番と仮定します。"
6754
6755#. Tag: funcsynopsis
6756#: reference_raster.xml:2887
6757#, no-c-format
6758msgid ""
6759"<funcprototype> <funcdef>(1) record <function>ST_BandMetaData</function></"
6760"funcdef> <paramdef><type>raster </type><parameter>rast</parameter></"
6761"paramdef> <paramdef choice=\"opt\"><type>integer </type><parameter>band=1</"
6762"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) record "
6763"<function>ST_BandMetaData</function></funcdef> <paramdef><type>raster </"
6764"type><parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
6765"\"><type>integer[] </type><parameter>band</parameter></paramdef> </"
6766"funcprototype>"
6767msgstr ""
6768"<funcprototype> <funcdef>(1) record <function>ST_BandMetaData</function></"
6769"funcdef> <paramdef><type>raster </type><parameter>rast</parameter></"
6770"paramdef> <paramdef choice=\"opt\"><type>integer </type><parameter>band=1</"
6771"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>(2) record "
6772"<function>ST_BandMetaData</function></funcdef> <paramdef><type>raster </"
6773"type><parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
6774"\"><type>integer[] </type><parameter>band</parameter></paramdef> </"
6775"funcprototype>"
6776
6777#. Tag: para
6778#: reference_raster.xml:2904
6779#, no-c-format
6780msgid ""
6781"Returns basic meta data about a raster band. Columns returned: pixeltype, "
6782"nodatavalue, isoutdb, path, outdbbandnum, filesize, filetimestamp."
6783msgstr ""
6784"指定したラスタバンドの基本的なメタデータを返します。返されるカラムは "
6785"pixeltype, nodatavalue, isoutdb, path, outdbbandnum, filesize, filetimestamp "
6786"です。"
6787
6788#. Tag: para
6789#: reference_raster.xml:2907
6790#, no-c-format
6791msgid "If raster contains no bands then an error is thrown."
6792msgstr "ラスタがバンドを持たない場合にはエラーが投げられます。"
6793
6794#. Tag: para
6795#: reference_raster.xml:2913
6796#, no-c-format
6797msgid "If band has no NODATA value, nodatavalue are NULL."
6798msgstr "バンドにNODATA値が無い場合には、nodatavalueはNULLになります。"
6799
6800#. Tag: para
6801#: reference_raster.xml:2918
6802#, no-c-format
6803msgid ""
6804"If isoutdb is False, path, outdbbandnum, filesize and filetimestamp are "
6805"NULL. If outdb access is disabled, filesize and filetimestamp will also be "
6806"NULL."
6807msgstr ""
6808"isoutdbがFALSEの場合には、path, outdbbandnum, filedizeおよびfiletimestampは"
6809"NULLです。outdbのアクセスが禁止されているなら、filesizeとfiletimestampがNULL"
6810"になります。"
6811
6812#. Tag: para
6813#: reference_raster.xml:2923
6814#, no-c-format
6815msgid ""
6816"Enhanced: 2.5.0 to include <emphasis>outdbbandnum</emphasis>, "
6817"<emphasis>filesize</emphasis> and <emphasis>filetimestamp</emphasis> for "
6818"outdb rasters."
6819msgstr ""
6820"Enhanced: 2.5.0 outdbラスタに<emphasis>outdbbandnum</emphasis>, "
6821"<emphasis>filesize</emphasis>と<emphasis>filetimestamp</emphasis>を取り入れま"
6822"した。"
6823
6824#. Tag: title
6825#: reference_raster.xml:2927 reference_raster.xml:3986
6826#: reference_raster.xml:6873 reference_raster.xml:7298
6827#: reference_raster.xml:8904 reference_raster.xml:9347
6828#: reference_raster.xml:9444 reference_raster.xml:9572
6829#, no-c-format
6830msgid "Examples: Variant 1"
6831msgstr "例: 一つ目の形式"
6832
6833#. Tag: programlisting
6834#: reference_raster.xml:2929
6835#, no-c-format
6836msgid ""
6837"SELECT\n"
6838"        rid,\n"
6839"        (foo.md).*\n"
6840"FROM (\n"
6841"        SELECT\n"
6842"                rid,\n"
6843"                ST_BandMetaData(rast, 1) AS md\n"
6844"        FROM dummy_rast\n"
6845"        WHERE rid=2\n"
6846") As foo;\n"
6847"\n"
6848" rid | pixeltype | nodatavalue | isoutdb | path | outdbbandnum\n"
6849"-----+-----------+---- --------+---------+------+--------------\n"
6850"   2 | 8BUI      |           0 | f       |      |"
6851msgstr ""
6852"SELECT\n"
6853"        rid,\n"
6854"        (foo.md).*\n"
6855"FROM (\n"
6856"        SELECT\n"
6857"                rid,\n"
6858"                ST_BandMetaData(rast, 1) AS md\n"
6859"        FROM dummy_rast\n"
6860"        WHERE rid=2\n"
6861") As foo;\n"
6862"\n"
6863" rid | pixeltype | nodatavalue | isoutdb | path | outdbbandnum\n"
6864"-----+-----------+---- --------+---------+------+--------------\n"
6865"   2 | 8BUI      |           0 | f       |      |"
6866
6867#. Tag: title
6868#: reference_raster.xml:2934 reference_raster.xml:3999
6869#: reference_raster.xml:6917 reference_raster.xml:8911
6870#: reference_raster.xml:9352 reference_raster.xml:9449
6871#: reference_raster.xml:9577
6872#, no-c-format
6873msgid "Examples: Variant 2"
6874msgstr "例: 二つ目の形式"
6875
6876#. Tag: programlisting
6877#: reference_raster.xml:2936
6878#, no-c-format
6879msgid ""
6880"WITH foo AS (\n"
6881"        SELECT\n"
6882"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
6883"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
6884")\n"
6885"SELECT\n"
6886"        *\n"
6887"FROM ST_BandMetadata(\n"
6888"        (SELECT rast FROM foo),\n"
6889"         ARRAY[1,3,2]::int[]\n"
6890");\n"
6891"\n"
6892" bandnum | pixeltype | nodatavalue | isoutdb "
6893"|                                      "
6894"path                                      | outdbbandnum  | filesize | "
6895"filetimestamp |\n"
6896"---------+-----------+-------------+---------"
6897"+--------------------------------------------------------------------------------"
6898"+---------------+----------+---------------+-\n"
6899"       1 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6900"git/raster/test/regress/loader/Projected.tif      |            1  |    12345 "
6901"|    1521807257 |\n"
6902"       3 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6903"git/raster/test/regress/loader/Projected.tif      |            3  |    12345 "
6904"|    1521807257 |\n"
6905"       2 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6906"git/raster/test/regress/loader/Projected.tif      |            2  |    12345 "
6907"|    1521807257 |"
6908msgstr ""
6909"WITH foo AS (\n"
6910"        SELECT\n"
6911"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
6912"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
6913")\n"
6914"SELECT\n"
6915"        *\n"
6916"FROM ST_BandMetadata(\n"
6917"        (SELECT rast FROM foo),\n"
6918"         ARRAY[1,3,2]::int[]\n"
6919");\n"
6920"\n"
6921" bandnum | pixeltype | nodatavalue | isoutdb "
6922"|                                      "
6923"path                                      | outdbbandnum  | filesize | "
6924"filetimestamp |\n"
6925"---------+-----------+-------------+---------"
6926"+--------------------------------------------------------------------------------"
6927"+---------------+----------+---------------+-\n"
6928"       1 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6929"git/raster/test/regress/loader/Projected.tif      |            1  |    12345 "
6930"|    1521807257 |\n"
6931"       3 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6932"git/raster/test/regress/loader/Projected.tif      |            3  |    12345 "
6933"|    1521807257 |\n"
6934"       2 | 8BUI      |             | t       | /home/pele/devel/geo/postgis-"
6935"git/raster/test/regress/loader/Projected.tif      |            2  |    12345 "
6936"|    1521807257 |"
6937
6938#. Tag: para
6939#: reference_raster.xml:2943
6940#, no-c-format
6941msgid ", <xref linkend=\"RT_ST_BandPixelType\"/>"
6942msgstr ", <xref linkend=\"RT_ST_BandPixelType\"/>"
6943
6944#. Tag: refname
6945#: reference_raster.xml:2949
6946#, no-c-format
6947msgid "ST_BandNoDataValue"
6948msgstr "ST_BandNoDataValue"
6949
6950#. Tag: refpurpose
6951#: reference_raster.xml:2950
6952#, no-c-format
6953msgid ""
6954"Returns the value in a given band that represents no data. If no band num 1 "
6955"is assumed."
6956msgstr ""
6957"指定されたバンドについてデータが無いことを表現する値を返します。バンド番号を"
6958"指定しない場合には、1番と仮定します。"
6959
6960#. Tag: funcprototype
6961#: reference_raster.xml:2955
6962#, no-c-format
6963msgid ""
6964"<funcdef>double precision <function>ST_BandNoDataValue</function></funcdef> "
6965"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
6966"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
6967"parameter></paramdef>"
6968msgstr ""
6969"<funcdef>double precision <function>ST_BandNoDataValue</function></funcdef> "
6970"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
6971"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
6972"parameter></paramdef>"
6973
6974#. Tag: para
6975#: reference_raster.xml:2966
6976#, no-c-format
6977msgid "Returns the value that represents no data for the band"
6978msgstr "指定されたバンドについてデータが無いことを表現する値を返します。"
6979
6980#. Tag: programlisting
6981#: reference_raster.xml:2972
6982#, no-c-format
6983msgid ""
6984"SELECT ST_BandNoDataValue(rast,1) As bnval1,\n"
6985"    ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As "
6986"bnval3\n"
6987"FROM dummy_rast\n"
6988"WHERE rid = 2;\n"
6989"\n"
6990" bnval1 | bnval2 | bnval3\n"
6991"--------+--------+--------\n"
6992"      0 |      0 |      0"
6993msgstr ""
6994"SELECT ST_BandNoDataValue(rast,1) As bnval1,\n"
6995"    ST_BandNoDataValue(rast,2) As bnval2, ST_BandNoDataValue(rast,3) As "
6996"bnval3\n"
6997"FROM dummy_rast\n"
6998"WHERE rid = 2;\n"
6999"\n"
7000" bnval1 | bnval2 | bnval3\n"
7001"--------+--------+--------\n"
7002"      0 |      0 |      0"
7003
7004#. Tag: refname
7005#: reference_raster.xml:2985
7006#, no-c-format
7007msgid "ST_BandIsNoData"
7008msgstr "ST_BandIsNoData"
7009
7010#. Tag: refpurpose
7011#: reference_raster.xml:2986
7012#, no-c-format
7013msgid "Returns true if the band is filled with only nodata values."
7014msgstr "指定したバンドがNODATA値だけで満たされている場合には、TRUEを返します。"
7015
7016#. Tag: funcsynopsis
7017#: reference_raster.xml:2990
7018#, no-c-format
7019msgid ""
7020"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
7021"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
7022"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
7023"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7024"<parameter>forceChecking=true</parameter></paramdef> </funcprototype> "
7025"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
7026"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
7027"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7028"<parameter>forceChecking=true</parameter></paramdef> </funcprototype>"
7029msgstr ""
7030"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
7031"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
7032"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
7033"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7034"<parameter>forceChecking=true</parameter></paramdef> </funcprototype> "
7035"<funcprototype> <funcdef>boolean <function>ST_BandIsNoData</function></"
7036"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
7037"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7038"<parameter>forceChecking=true</parameter></paramdef> </funcprototype>"
7039
7040#. Tag: para
7041#: reference_raster.xml:3007
7042#, no-c-format
7043msgid ""
7044"Returns true if the band is filled with only nodata values. Band 1 is "
7045"assumed if not specified. If the last argument is TRUE, the entire band is "
7046"checked pixel by pixel. Otherwise, the function simply returns the value of "
7047"the isnodata flag for the band. The default value for this parameter is "
7048"FALSE, if not specified."
7049msgstr ""
7050"指定したバンドがNODATA値だけで満たされている場合には、TRUEを返します。バンド"
7051"番号を指定しない場合には、1番と仮定します。最後の引数がTRUEの場合には、全バン"
7052"ドについてピクセル毎に調べます。他の場合には、isnodataフラグの値を返すだけで"
7053"す。この引数を指定しない場合のデフォルト値はFALSEです。"
7054
7055#. Tag: para
7056#: reference_raster.xml:3017
7057#, no-c-format
7058msgid ""
7059"If the flag is dirty (this is, the result is different using TRUE as last "
7060"parameter and not using it) you should update the raster to set this flag to "
7061"true, by using ST_SetBandIsNodata(), or ST_SetBandNodataValue() with TRUE as "
7062"last argument. See <xref linkend=\"RT_ST_SetBandIsNoData\"/>."
7063msgstr ""
7064"フラグが汚れている (最後の引数をTRUEにした場合としない場合とで結果が違う)場合"
7065"には、ST_SetBandIsNodata関数、または最後の引数をTRUEにしたST_BandNodataValue"
7066"関数を使って、フラグにTRUEを設定するためにラスタを更新するべきです。<xref "
7067"linkend=\"RT_ST_SetBandIsNoData\"/>を参照して下さい。"
7068
7069#. Tag: programlisting
7070#: reference_raster.xml:3027
7071#, no-c-format
7072msgid ""
7073"-- Create dummy table with one raster column\n"
7074"create table dummy_rast (rid integer, rast raster);\n"
7075"\n"
7076"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue "
7077"= pixel value = 3.\n"
7078"-- In the second band, nodatavalue = 13, pixel value = 4\n"
7079"insert into dummy_rast values(1,\n"
7080"(\n"
7081"'01' -- little endian (uint8 ndr)\n"
7082"||\n"
7083"'0000' -- version (uint16 0)\n"
7084"||\n"
7085"'0200' -- nBands (uint16 0)\n"
7086"||\n"
7087"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n"
7088"||\n"
7089"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n"
7090"||\n"
7091"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n"
7092"||\n"
7093"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n"
7094"||\n"
7095"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n"
7096"||\n"
7097"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n"
7098"||\n"
7099"'E6100000' -- SRID (int32 4326)\n"
7100"||\n"
7101"'0100' -- width (uint16 1)\n"
7102"||\n"
7103"'0100' -- height (uint16 1)\n"
7104"||\n"
7105"'6' -- hasnodatavalue and isnodata value set to true.\n"
7106"||\n"
7107"'2' -- first band type (4BUI)\n"
7108"||\n"
7109"'03' -- novalue==3\n"
7110"||\n"
7111"'03' -- pixel(0,0)==3 (same that nodata)\n"
7112"||\n"
7113"'0' -- hasnodatavalue set to false\n"
7114"||\n"
7115"'5' -- second band type (16BSI)\n"
7116"||\n"
7117"'0D00' -- novalue==13\n"
7118"||\n"
7119"'0400' -- pixel(0,0)==4\n"
7120")::raster\n"
7121");\n"
7122"\n"
7123"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
7124"true\n"
7125"select st_bandisnodata(rast, 2) from dummy_rast where rid = 1; -- Expected "
7126"false"
7127msgstr ""
7128"-- 一つのラスタカラムを持つダミーテーブルの生成\n"
7129"create table dummy_rast (rid integer, rast raster);\n"
7130"\n"
7131"-- 2バンドでバンドごとに1ピクセルを持つラスタを追加します。\n"
7132"-- 一つ目のバンドにはnodatavalueとピクセル値をともに3とし、\n"
7133"-- 二つ目のバンドにはnodatavalue=13とピクセル値=4とします。\n"
7134"insert into dummy_rast values(1,\n"
7135"(\n"
7136"'01' -- little endian - リトルエンディアン (uint8 ndr)\n"
7137"||\n"
7138"'0000' -- version - 版 (uint16 0)\n"
7139"||\n"
7140"'0200' -- nBands - バンド数 (uint16 0)\n"
7141"||\n"
7142"'17263529ED684A3F' -- scaleX - X方向セルサイズ (float64 "
7143"0.000805965234044584)\n"
7144"||\n"
7145"'F9253529ED684ABF' -- scaleY - Y方向セルサイズ (float64 "
7146"-0.00080596523404458)\n"
7147"||\n"
7148"'1C9F33CE69E352C0' -- ipX - 左上隅X値 (float64 -75.5533328537098)\n"
7149"||\n"
7150"'718F0E9A27A44840' -- ipY - 左上隅Y値 (float64 49.2824585505576)\n"
7151"||\n"
7152"'ED50EB853EC32B3F' -- skewX - スキューX (float64 0.000211812383858707)\n"
7153"||\n"
7154"'7550EB853EC32B3F' -- skewY - スキューY (float64 0.000211812383858704)\n"
7155"||\n"
7156"'E6100000' -- SRID (int32 4326)\n"
7157"||\n"
7158"'0100' -- width - 横セル数 (uint16 1)\n"
7159"||\n"
7160"'0100' -- height - 縦セル数 (uint16 1)\n"
7161"||\n"
7162"'6' -- hasnodatavalueとisnodataの値をtrueにする。\n"
7163"||\n"
7164"'2' -- 1番バンドのタイプ (4BUI)\n"
7165"||\n"
7166"'03' -- NODATA値==3\n"
7167"||\n"
7168"'03' -- 0列0行ピクセルの値==3 (NODATA値と同じ)\n"
7169"||\n"
7170"'0' -- hasnodatavalueをFALSEにする。\n"
7171"||\n"
7172"'5' -- 2番バンドのタイプ (16BSI)\n"
7173"||\n"
7174"'0D00' -- NODATA値==13\n"
7175"||\n"
7176"'0400' -- 0列0行ピクセルの値==4\n"
7177")::raster\n"
7178");\n"
7179"\n"
7180"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
7181"true\n"
7182"select st_bandisnodata(rast, 2) from dummy_rast where rid = 1; -- Expected "
7183"false"
7184
7185#. Tag: para
7186#: reference_raster.xml:3033
7187#, no-c-format
7188msgid ""
7189", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
7190"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_SetBandIsNoData\"/>"
7191msgstr ""
7192", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
7193"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_SetBandIsNoData\"/>"
7194
7195#. Tag: refname
7196#: reference_raster.xml:3042
7197#, no-c-format
7198msgid "ST_BandPath"
7199msgstr "ST_BandPath"
7200
7201#. Tag: refpurpose
7202#: reference_raster.xml:3043
7203#, no-c-format
7204msgid ""
7205"Returns system file path to a band stored in file system. If no bandnum "
7206"specified, 1 is assumed."
7207msgstr ""
7208"ファイルシステムに格納されているバンドのシステムファイルパスを返します。バン"
7209"ド番号が指定されていない場合には、1番と仮定します。"
7210
7211#. Tag: funcprototype
7212#: reference_raster.xml:3048
7213#, no-c-format
7214msgid ""
7215"<funcdef>text <function>ST_BandPath</function></funcdef> "
7216"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7217"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7218"parameter></paramdef>"
7219msgstr ""
7220"<funcdef>text <function>ST_BandPath</function></funcdef> "
7221"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7222"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7223"parameter></paramdef>"
7224
7225#. Tag: para
7226#: reference_raster.xml:3059
7227#, no-c-format
7228msgid ""
7229"Returns system file path to a band. Throws an error if called with an in db "
7230"band."
7231msgstr ""
7232"バンドへのシステムファイルパスを返します。データベース内に格納されているバン"
7233"ドでこの関数を呼んだ場合にはエラーが投げられます。"
7234
7235#. Tag: programlisting
7236#: reference_raster.xml:3065
7237#, no-c-format
7238msgid "<!-- TODO: -->"
7239msgstr "<!-- TODO: -->"
7240
7241#. Tag: refname
7242#: reference_raster.xml:3077
7243#, no-c-format
7244msgid "ST_BandFileSize"
7245msgstr "ST_BandFileSize"
7246
7247#. Tag: refpurpose
7248#: reference_raster.xml:3078
7249#, no-c-format
7250msgid ""
7251"Returns the file size of a band stored in file system. If no bandnum "
7252"specified, 1 is assumed."
7253msgstr ""
7254"ファイルシステムに格納されているバンドのファイルサイズを返します。バンド番号"
7255"が指定されていない場合には、1番と仮定します。"
7256
7257#. Tag: funcprototype
7258#: reference_raster.xml:3083
7259#, no-c-format
7260msgid ""
7261"<funcdef>bigint <function>ST_BandFileSize</function></funcdef> "
7262"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7263"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7264"parameter></paramdef>"
7265msgstr ""
7266"<funcdef>bigint <function>ST_BandFileSize</function></funcdef> "
7267"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7268"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7269"parameter></paramdef>"
7270
7271#. Tag: para
7272#: reference_raster.xml:3094
7273#, no-c-format
7274msgid ""
7275"Returns the file size of a band stored in file system. Throws an error if "
7276"called with an in db band, or if outdb access is not enabled."
7277msgstr ""
7278"ファイルシステムに格納されているバンドのファイルサイズを返します。データベー"
7279"ス内バンドを与えるか、データベース外バンドにアクセスできない場合にはエラーが"
7280"投げられます。"
7281
7282#. Tag: para
7283#: reference_raster.xml:3096
7284#, no-c-format
7285msgid ""
7286"This function is typically used in conjunction with ST_BandPath() and "
7287"ST_BandFileTimestamp() so a client can determine if the filename of a outdb "
7288"raster as seen by it is the same as the one seen by the server."
7289msgstr ""
7290"この関数は一般的にST_BandPath()とST_BandFileTimestamp()とを併用して、データ"
7291"ベース外ラスタのファイル名が、この関数から見えるものとサーバから見えるものと"
7292"同じかどうかを判断することができます。"
7293
7294#. Tag: para
7295#: reference_raster.xml:3098 reference_raster.xml:3134
7296#: reference_raster.xml:5093 reference_raster.xml:5146
7297#: reference_raster.xml:5843 reference_raster.xml:5886
7298#: reference_raster.xml:5999 reference_raster.xml:6868
7299#, no-c-format
7300msgid "Availability: 2.5.0"
7301msgstr "Availability: 2.5.0"
7302
7303#. Tag: programlisting
7304#: reference_raster.xml:3105
7305#, no-c-format
7306msgid ""
7307"SELECT ST_BandFileSize(rast,1) FROM dummy_rast WHERE rid = 1;\n"
7308"\n"
7309" st_bandfilesize\n"
7310"-----------------\n"
7311"          240574"
7312msgstr ""
7313"SELECT ST_BandFileSize(rast,1) FROM dummy_rast WHERE rid = 1;\n"
7314"\n"
7315" st_bandfilesize\n"
7316"-----------------\n"
7317"          240574"
7318
7319#. Tag: refname
7320#: reference_raster.xml:3113
7321#, no-c-format
7322msgid "ST_BandFileTimestamp"
7323msgstr "ST_BandFileTimestamp"
7324
7325#. Tag: refpurpose
7326#: reference_raster.xml:3114
7327#, no-c-format
7328msgid ""
7329"Returns the file timestamp of a band stored in file system. If no bandnum "
7330"specified, 1 is assumed."
7331msgstr ""
7332"ファイルシステムに格納されているバンドのファイルタイムスタンプ返します。バン"
7333"ド番号が指定されていない場合には、1番と仮定します。"
7334
7335#. Tag: funcprototype
7336#: reference_raster.xml:3119
7337#, no-c-format
7338msgid ""
7339"<funcdef>bigint <function>ST_BandFileTimestamp</function></funcdef> "
7340"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7341"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7342"parameter></paramdef>"
7343msgstr ""
7344"<funcdef>bigint <function>ST_BandFileTimestamp</function></funcdef> "
7345"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7346"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7347"parameter></paramdef>"
7348
7349#. Tag: para
7350#: reference_raster.xml:3130
7351#, no-c-format
7352msgid ""
7353"Returns the file timestamp (number of seconds since Jan 1st 1970 00:00:00 "
7354"UTC) of a band stored in file system. Throws an error if called with an in "
7355"db band, or if outdb access is not enabled."
7356msgstr ""
7357"ファイルシステムに保存されているバンドのファイルタイムスタンプを返します "
7358"(UTC 1970年1月1日 0時0分0秒からの秒数)。データベース内バンドの場合またはデー"
7359"タベース外ラスタへのアクセスが無効な場合にはエラーが投げられます。"
7360
7361#. Tag: para
7362#: reference_raster.xml:3132
7363#, no-c-format
7364msgid ""
7365"This function is typically used in conjunction with ST_BandPath() and "
7366"ST_BandFileSize() so a client can determine if the filename of a outdb "
7367"raster as seen by it is the same as the one seen by the server."
7368msgstr ""
7369"この関数は通常、ST_BandPath() および ST_BandFileSize() と組み合わせて使用され"
7370"るため、クライアントは、outdb ラスタのファイル名がサーバーによって見られるも"
7371"のと同じであるかどうかを判断できます。"
7372
7373#. Tag: programlisting
7374#: reference_raster.xml:3140
7375#, no-c-format
7376msgid ""
7377"SELECT ST_BandFileTimestamp(rast,1) FROM dummy_rast WHERE rid = 1;\n"
7378"\n"
7379" st_bandfiletimestamp\n"
7380"----------------------\n"
7381"           1521807257"
7382msgstr ""
7383"SELECT ST_BandFileTimestamp(rast,1) FROM dummy_rast WHERE rid = 1;\n"
7384"\n"
7385" st_bandfiletimestamp\n"
7386"----------------------\n"
7387"           1521807257"
7388
7389#. Tag: refname
7390#: reference_raster.xml:3147
7391#, no-c-format
7392msgid "ST_BandPixelType"
7393msgstr "ST_BandPixelType"
7394
7395#. Tag: refpurpose
7396#: reference_raster.xml:3148
7397#, no-c-format
7398msgid ""
7399"Returns the type of pixel for given band. If no bandnum specified, 1 is "
7400"assumed."
7401msgstr ""
7402"指定したバンドのピクセルタイプを返します。バンド番号が指定されていない場合に"
7403"は、1番と仮定します。"
7404
7405#. Tag: funcprototype
7406#: reference_raster.xml:3153
7407#, no-c-format
7408msgid ""
7409"<funcdef>text <function>ST_BandPixelType</function></funcdef> "
7410"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7411"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7412"parameter></paramdef>"
7413msgstr ""
7414"<funcdef>text <function>ST_BandPixelType</function></funcdef> "
7415"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7416"<paramdef choice=\"opt\"><type>integer </type> <parameter>bandnum=1</"
7417"parameter></paramdef>"
7418
7419#. Tag: para
7420#: reference_raster.xml:3164
7421#, no-c-format
7422msgid ""
7423"Returns name describing data type and size of values stored in each cell of "
7424"given band."
7425msgstr ""
7426
7427#. Tag: para
7428#: reference_raster.xml:3165
7429#, no-c-format
7430msgid "There are 11 pixel types. Pixel Types supported are as follows:"
7431msgstr ""
7432"ピクセルタイプは11通りあります。対応しているピクセルタイプは次の通りです。"
7433
7434#. Tag: para
7435#: reference_raster.xml:3168
7436#, no-c-format
7437msgid "1BB - 1-bit boolean"
7438msgstr "1BB - 1ビット真偽値"
7439
7440#. Tag: para
7441#: reference_raster.xml:3172
7442#, no-c-format
7443msgid "2BUI - 2-bit unsigned integer"
7444msgstr "2BUI - 2ビット符号なし整数"
7445
7446#. Tag: para
7447#: reference_raster.xml:3176
7448#, no-c-format
7449msgid "4BUI - 4-bit unsigned integer"
7450msgstr "4BUI - 4ビット符号なし整数"
7451
7452#. Tag: para
7453#: reference_raster.xml:3180
7454#, no-c-format
7455msgid "8BSI - 8-bit signed integer"
7456msgstr "8BSI - 8ビット整数"
7457
7458#. Tag: para
7459#: reference_raster.xml:3183
7460#, no-c-format
7461msgid "8BUI - 8-bit unsigned integer"
7462msgstr "8BUI - 8ビット符号なし整数"
7463
7464#. Tag: para
7465#: reference_raster.xml:3186
7466#, no-c-format
7467msgid "16BSI - 16-bit signed integer"
7468msgstr "16BSI - 16ビット整数"
7469
7470#. Tag: para
7471#: reference_raster.xml:3189
7472#, no-c-format
7473msgid "16BUI - 16-bit unsigned integer"
7474msgstr "16BUI - 16ビット符号なし整数"
7475
7476#. Tag: para
7477#: reference_raster.xml:3192
7478#, no-c-format
7479msgid "32BSI - 32-bit signed integer"
7480msgstr "32BSI - 32ビット整数"
7481
7482#. Tag: para
7483#: reference_raster.xml:3195
7484#, no-c-format
7485msgid "32BUI - 32-bit unsigned integer"
7486msgstr "32BUI - 32ビット符号なし整数"
7487
7488#. Tag: para
7489#: reference_raster.xml:3198
7490#, no-c-format
7491msgid "32BF - 32-bit float"
7492msgstr "32BF - 32ビット浮動小数点数"
7493
7494#. Tag: para
7495#: reference_raster.xml:3201
7496#, no-c-format
7497msgid "64BF - 64-bit float"
7498msgstr "64BF - 64ビット浮動小数点数"
7499
7500#. Tag: programlisting
7501#: reference_raster.xml:3210
7502#, no-c-format
7503msgid ""
7504"SELECT ST_BandPixelType(rast,1) As btype1,\n"
7505"    ST_BandPixelType(rast,2) As btype2, ST_BandPixelType(rast,3) As btype3\n"
7506"FROM dummy_rast\n"
7507"WHERE rid = 2;\n"
7508"\n"
7509" btype1 | btype2 | btype3\n"
7510"--------+--------+--------\n"
7511" 8BUI   | 8BUI   | 8BUI"
7512msgstr ""
7513"SELECT ST_BandPixelType(rast,1) As btype1,\n"
7514"    ST_BandPixelType(rast,2) As btype2, ST_BandPixelType(rast,3) As btype3\n"
7515"FROM dummy_rast\n"
7516"WHERE rid = 2;\n"
7517"\n"
7518" btype1 | btype2 | btype3\n"
7519"--------+--------+--------\n"
7520" 8BUI   | 8BUI   | 8BUI"
7521
7522#. Tag: refname
7523#: reference_raster.xml:3222
7524#, no-c-format
7525msgid "ST_HasNoBand"
7526msgstr "ST_HasNoBand"
7527
7528#. Tag: refpurpose
7529#: reference_raster.xml:3223
7530#, no-c-format
7531msgid ""
7532"<refpurpose>Returns true if there is no band with given band number. If no "
7533"band number is specified, then band number 1 is assumed.</refpurpose>"
7534msgstr ""
7535"<refpurpose>指定したバンド番号のバンドが無い場合には、TRUEを返します。バンド"
7536"番号を指定していない場合には、1番と仮定します。</refpurpose>"
7537
7538#. Tag: funcprototype
7539#: reference_raster.xml:3228
7540#, no-c-format
7541msgid ""
7542"<funcdef>boolean <function>ST_HasNoBand</function></funcdef> "
7543"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7544"<paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>"
7545msgstr ""
7546"<funcdef>boolean <function>ST_HasNoBand</function></funcdef> "
7547"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7548"<paramdef><type>integer </type> <parameter>bandnum=1</parameter></paramdef>"
7549
7550#. Tag: para
7551#: reference_raster.xml:3239
7552#, no-c-format
7553msgid ""
7554"<para>Returns true if there is no band with given band number. If no band "
7555"number is specified, then band number 1 is assumed.</para>"
7556msgstr ""
7557"<para>指定したバンド番号のバンドが無い場合には、TRUEを返します。バンド番号を"
7558"指定していない場合には、1番と仮定します。</para>"
7559
7560#. Tag: programlisting
7561#: reference_raster.xml:3247
7562#, no-c-format
7563msgid ""
7564"SELECT rid, ST_HasNoBand(rast) As hb1, ST_HasNoBand(rast,2) as hb2,\n"
7565"ST_HasNoBand(rast,4) as hb4, ST_NumBands(rast) As numbands\n"
7566"FROM dummy_rast;\n"
7567"\n"
7568"rid | hb1 | hb2 | hb4 | numbands\n"
7569"-----+-----+-----+-----+----------\n"
7570"1 | t   | t   | t   |        0\n"
7571"2 | f   | f   | t   |        3"
7572msgstr ""
7573"SELECT rid, ST_HasNoBand(rast) As hb1, ST_HasNoBand(rast,2) as hb2,\n"
7574"ST_HasNoBand(rast,4) as hb4, ST_NumBands(rast) As numbands\n"
7575"FROM dummy_rast;\n"
7576"\n"
7577"rid | hb1 | hb2 | hb4 | numbands\n"
7578"-----+-----+-----+-----+----------\n"
7579"1 | t   | t   | t   |        0\n"
7580"2 | f   | f   | t   |        3"
7581
7582#. Tag: title
7583#: reference_raster.xml:3260
7584#, no-c-format
7585msgid "Raster Pixel Accessors and Setters"
7586msgstr "ラスタピクセルアクセサとセッター"
7587
7588#. Tag: refname
7589#: reference_raster.xml:3264
7590#, no-c-format
7591msgid "ST_PixelAsPolygon"
7592msgstr "ST_PixelAsPolygon"
7593
7594#. Tag: refpurpose
7595#: reference_raster.xml:3265
7596#, no-c-format
7597msgid ""
7598"<refpurpose>Returns the polygon geometry that bounds the pixel for a "
7599"particular row and column.</refpurpose>"
7600msgstr ""
7601"<refpurpose>指定した行と列のピクセルの境界となるジオメトリを返します。</"
7602"refpurpose>"
7603
7604#. Tag: funcprototype
7605#: reference_raster.xml:3270
7606#, no-c-format
7607msgid ""
7608"<funcdef>geometry <function>ST_PixelAsPolygon</function></funcdef> "
7609"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7610"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
7611"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
7612msgstr ""
7613"<funcdef>geometry <function>ST_PixelAsPolygon</function></funcdef> "
7614"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7615"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
7616"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
7617
7618#. Tag: para
7619#: reference_raster.xml:3282
7620#, no-c-format
7621msgid ""
7622"<para>Returns the polygon geometry that bounds the pixel for a particular "
7623"row and column.</para>"
7624msgstr ""
7625"<para>指定した行と列のピクセルの境界となるジオメトリを返します。</para>"
7626
7627#. Tag: programlisting
7628#: reference_raster.xml:3290
7629#, no-c-format
7630msgid ""
7631"-- get raster pixel polygon\n"
7632"SELECT i,j, ST_AsText(ST_PixelAsPolygon(foo.rast, i,j)) As b1pgeom\n"
7633"FROM dummy_rast As foo\n"
7634"        CROSS JOIN generate_series(1,2) As i\n"
7635"        CROSS JOIN generate_series(1,1) As j\n"
7636"WHERE rid=2;\n"
7637"\n"
7638" i | j |                                                    b1pgeom\n"
7639"---+---"
7640"+-----------------------------------------------------------------------------\n"
7641" 1 | 1 | POLYGON((3427927.75 5793244,3427927.8 5793244,3427927.8 "
7642"5793243.95,...\n"
7643" 2 | 1 | POLYGON((3427927.8 5793244,3427927.85 5793244,3427927.85 "
7644"5793243.95, .."
7645msgstr ""
7646"-- ラスタピクセルのポリゴンを得ます\n"
7647"SELECT i,j, ST_AsText(ST_PixelAsPolygon(foo.rast, i,j)) As b1pgeom\n"
7648"FROM dummy_rast As foo\n"
7649"        CROSS JOIN generate_series(1,2) As i\n"
7650"        CROSS JOIN generate_series(1,1) As j\n"
7651"WHERE rid=2;\n"
7652"\n"
7653" i | j |                                                    b1pgeom\n"
7654"---+---"
7655"+-----------------------------------------------------------------------------\n"
7656" 1 | 1 | POLYGON((3427927.75 5793244,3427927.8 5793244,3427927.8 "
7657"5793243.95,...\n"
7658" 2 | 1 | POLYGON((3427927.8 5793244,3427927.85 5793244,3427927.85 "
7659"5793243.95, .."
7660
7661#. Tag: para
7662#: reference_raster.xml:3295
7663#, no-c-format
7664msgid ""
7665", <xref linkend=\"RT_ST_PixelAsPolygons\"/>, <xref linkend="
7666"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7667"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7668"\"/>, <xref linkend=\"RT_ST_Intersection\"/>, <xref linkend=\"ST_AsText\"/>"
7669msgstr ""
7670", <xref linkend=\"RT_ST_PixelAsPolygons\"/>, <xref linkend="
7671"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7672"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7673"\"/>, <xref linkend=\"RT_ST_Intersection\"/>, <xref linkend=\"ST_AsText\"/>"
7674
7675#. Tag: refname
7676#: reference_raster.xml:3310
7677#, no-c-format
7678msgid "ST_PixelAsPolygons"
7679msgstr "ST_PixelAsPolygons"
7680
7681#. Tag: refpurpose
7682#: reference_raster.xml:3311
7683#, no-c-format
7684msgid ""
7685"Returns the polygon geometry that bounds every pixel of a raster band along "
7686"with the value, the X and the Y raster coordinates of each pixel."
7687msgstr ""
7688"全てのピクセルについて境界となるジオメトリを、ピクセルごとのピクセル値とラス"
7689"タ座標系のXとYとを付けて返します。"
7690
7691#. Tag: funcprototype
7692#: reference_raster.xml:3316
7693#, no-c-format
7694msgid ""
7695"<funcdef>setof record <function>ST_PixelAsPolygons</function></funcdef> "
7696"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7697"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
7698"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7699"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
7700msgstr ""
7701"<funcdef>setof record <function>ST_PixelAsPolygons</function></funcdef> "
7702"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7703"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
7704"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7705"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
7706
7707#. Tag: para
7708#: reference_raster.xml:3328
7709#, no-c-format
7710msgid ""
7711"Returns the polygon geometry that bounds every pixel of a raster band along "
7712"with the value (double precision), the X and the Y raster coordinates "
7713"(integers) of each pixel."
7714msgstr ""
7715"全てのピクセルについて境界となるジオメトリを、ピクセルごとのピクセル値 (倍精"
7716"度浮動小数点数)とラスタ座標系のXとY (ともに整数)とを付けて返します。"
7717
7718#. Tag: para
7719#: reference_raster.xml:3330 reference_raster.xml:3436
7720#: reference_raster.xml:3533
7721#, no-c-format
7722msgid ""
7723"Return record format: <parameter>geom</parameter> <xref linkend=\"geometry\"/"
7724">, <parameter>val</parameter> double precision, <parameter>x</parameter> "
7725"integer, <parameter>y</parameter> integers."
7726msgstr ""
7727"返されるレコードの書式は、<xref linkend=\"geometry\"/>型の<parameter>geom</"
7728"parameter>、倍精度浮動小数点数の<parameter>val</parameter>、整数の"
7729"<parameter>x</parameter>、整数の<parameter>y</parameter>です。"
7730
7731#. Tag: para
7732#: reference_raster.xml:3334 reference_raster.xml:3440
7733#: reference_raster.xml:3537
7734#, no-c-format
7735msgid ""
7736"When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels "
7737"whose values are not NODATA are returned as points."
7738msgstr ""
7739"<parameter>exclude_nodata_value</parameter>がTRUEの時、値がNODATAでないこれら"
7740"のピクセルだけをポイントとして返します。"
7741
7742#. Tag: para
7743#: reference_raster.xml:3340
7744#, no-c-format
7745msgid ""
7746"ST_PixelAsPolygons returns one polygon geometry for every pixel. This is "
7747"different than ST_DumpAsPolygons where each geometry represents one or more "
7748"pixels with the same pixel value."
7749msgstr ""
7750"ST_PixelAsPolygonsは、ピクセルごとに一つのポリゴンジオメトリを返します。"
7751"ST_DumpAsPolygonsとは、 一つのジオメトリが同じ値となる一つ以上のピクセルを表"
7752"現する点で違います。"
7753
7754#. Tag: para
7755#: reference_raster.xml:3346
7756#, no-c-format
7757msgid "Enhanced: 2.1.0 exclude_nodata_value optional argument was added."
7758msgstr "Enhanced: 2.1.0 任意引数exclude_nodata_valueが追加されました。"
7759
7760#. Tag: para
7761#: reference_raster.xml:3347 reference_raster.xml:3445
7762#: reference_raster.xml:3543
7763#, no-c-format
7764msgid "Changed: 2.1.1 Changed behavior of exclude_nodata_value."
7765msgstr "Changed: 2.1.1 exclude_nodata_valueの挙動を変更しました。"
7766
7767#. Tag: programlisting
7768#: reference_raster.xml:3352
7769#, no-c-format
7770msgid ""
7771"-- get raster pixel polygon\n"
7772"SELECT (gv).x, (gv).y, (gv).val, ST_AsText((gv).geom) geom\n"
7773"FROM (SELECT ST_PixelAsPolygons(\n"
7774"                 ST_SetValue(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, "
7775"0, 0, 0.001, -0.001, 0.001, 0.001, 4269),\n"
7776"                                                    '8BUI'::text, 1, 0),\n"
7777"                                         2, 2, 10),\n"
7778"                             1, 1, NULL)\n"
7779") gv\n"
7780") foo;\n"
7781"\n"
7782" x | y | val |                geom\n"
7783"---+---"
7784"+-----------------------------------------------------------------------------\n"
7785" 1 | 1 |     | POLYGON((0 0,0.001 0.001,0.002 0,0.001 -0.001,0 0))\n"
7786" 1 | 2 |   1 | POLYGON((0.001 -0.001,0.002 0,0.003 -0.001,0.002 -0.002,0.001 "
7787"-0.001))\n"
7788" 2 | 1 |   1 | POLYGON((0.001 0.001,0.002 0.002,0.003 0.001,0.002 0,0.001 "
7789"0.001))\n"
7790" 2 | 2 |  10 | POLYGON((0.002 0,0.003 0.001,0.004 0,0.003 -0.001,0.002 0))"
7791msgstr ""
7792"-- ラスタピクセルのポリゴンを得ます\n"
7793"SELECT (gv).x, (gv).y, (gv).val, ST_AsText((gv).geom) geom\n"
7794"FROM (SELECT ST_PixelAsPolygons(\n"
7795"                 ST_SetValue(ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(2, 2, "
7796"0, 0, 0.001, -0.001, 0.001, 0.001, 4269),\n"
7797"                                                    '8BUI'::text, 1, 0),\n"
7798"                                         2, 2, 10),\n"
7799"                             1, 1, NULL)\n"
7800") gv\n"
7801") foo;\n"
7802"\n"
7803" x | y | val |                geom\n"
7804"---+---"
7805"+-----------------------------------------------------------------------------\n"
7806" 1 | 1 |     | POLYGON((0 0,0.001 0.001,0.002 0,0.001 -0.001,0 0))\n"
7807" 1 | 2 |   1 | POLYGON((0.001 -0.001,0.002 0,0.003 -0.001,0.002 -0.002,0.001 "
7808"-0.001))\n"
7809" 2 | 1 |   1 | POLYGON((0.001 0.001,0.002 0.002,0.003 0.001,0.002 0,0.001 "
7810"0.001))\n"
7811" 2 | 2 |  10 | POLYGON((0.002 0,0.003 0.001,0.004 0,0.003 -0.001,0.002 0))"
7812
7813#. Tag: para
7814#: reference_raster.xml:3357
7815#, no-c-format
7816msgid ""
7817", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
7818"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7819"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7820"\"/>, <xref linkend=\"ST_AsText\"/>"
7821msgstr ""
7822", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
7823"\"RT_ST_PixelAsPoint\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7824"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7825"\"/>, <xref linkend=\"ST_AsText\"/>"
7826
7827#. Tag: refname
7828#: reference_raster.xml:3371
7829#, no-c-format
7830msgid "ST_PixelAsPoint"
7831msgstr "ST_PixelAsPoint"
7832
7833#. Tag: refpurpose
7834#: reference_raster.xml:3372
7835#, no-c-format
7836msgid ""
7837"<refpurpose>Returns a point geometry of the pixel's upper-left corner.</"
7838"refpurpose>"
7839msgstr ""
7840"<refpurpose>ピクセルの左上隅のポイントジオメトリを返します。</refpurpose>"
7841
7842#. Tag: funcprototype
7843#: reference_raster.xml:3378
7844#, no-c-format
7845msgid ""
7846"<funcdef>geometry <function>ST_PixelAsPoint</function></funcdef> "
7847"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7848"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
7849"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
7850msgstr ""
7851"<funcdef>geometry <function>ST_PixelAsPoint</function></funcdef> "
7852"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7853"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
7854"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef>"
7855
7856#. Tag: para
7857#: reference_raster.xml:3389
7858#, no-c-format
7859msgid "<para>Returns a point geometry of the pixel's upper-left corner.</para>"
7860msgstr "<para>ピクセルの左上隅のポイントジオメトリを返します。</para>"
7861
7862#. Tag: programlisting
7863#: reference_raster.xml:3395
7864#, no-c-format
7865msgid ""
7866"SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = "
7867"1;\n"
7868"\n"
7869"   st_astext\n"
7870"----------------\n"
7871" POINT(0.5 0.5)"
7872msgstr ""
7873"SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = "
7874"1;\n"
7875"\n"
7876"   st_astext\n"
7877"----------------\n"
7878" POINT(0.5 0.5)"
7879
7880#. Tag: para
7881#: reference_raster.xml:3400
7882#, no-c-format
7883msgid ""
7884", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
7885"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7886"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7887"\"/>"
7888msgstr ""
7889", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
7890"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoints\"/>, <xref "
7891"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
7892"\"/>"
7893
7894#. Tag: refname
7895#: reference_raster.xml:3414
7896#, no-c-format
7897msgid "ST_PixelAsPoints"
7898msgstr "ST_PixelAsPoints"
7899
7900#. Tag: refpurpose
7901#: reference_raster.xml:3415
7902#, no-c-format
7903msgid ""
7904"<refpurpose>Returns a point geometry for each pixel of a raster band along "
7905"with the value, the X and the Y raster coordinates of each pixel. The "
7906"coordinates of the point geometry are of the pixel's upper-left corner.</"
7907"refpurpose>"
7908msgstr ""
7909"<refpurpose>全てのピクセルについてポイントジオメトリを、ピクセルごとのピクセ"
7910"ル値とラスタ座標系のXとYとを付けて返します。ポイントジオメトリの座標はピクセ"
7911"ルの左上隅です。</refpurpose>"
7912
7913#. Tag: funcprototype
7914#: reference_raster.xml:3421
7915#, no-c-format
7916msgid ""
7917"<funcdef>setof record <function>ST_PixelAsPoints</function></funcdef> "
7918"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7919"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
7920"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7921"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
7922msgstr ""
7923"<funcdef>setof record <function>ST_PixelAsPoints</function></funcdef> "
7924"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
7925"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
7926"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
7927"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
7928
7929#. Tag: para
7930#: reference_raster.xml:3432
7931#, no-c-format
7932msgid ""
7933"<para>Returns a point geometry for each pixel of a raster band along with "
7934"the value, the X and the Y raster coordinates of each pixel. The coordinates "
7935"of the point geometry are of the pixel's upper-left corner.</para>"
7936msgstr ""
7937"<para>全てのピクセルについてポイントジオメトリを、ピクセルごとのピクセル値と"
7938"ラスタ座標系のXとYとを付けて返します。ポイントジオメトリの座標はピクセルの左"
7939"上隅です。</para>"
7940
7941#. Tag: programlisting
7942#: reference_raster.xml:3450
7943#, no-c-format
7944msgid ""
7945"SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsPoints(rast, 1)).* "
7946"FROM dummy_rast WHERE rid = 2) foo;\n"
7947"\n"
7948" x | y | val |          st_astext\n"
7949"---+---+-----+------------------------------\n"
7950" 1 | 1 | 253 | POINT(3427927.75 5793244)\n"
7951" 2 | 1 | 254 | POINT(3427927.8 5793244)\n"
7952" 3 | 1 | 253 | POINT(3427927.85 5793244)\n"
7953" 4 | 1 | 254 | POINT(3427927.9 5793244)\n"
7954" 5 | 1 | 254 | POINT(3427927.95 5793244)\n"
7955" 1 | 2 | 253 | POINT(3427927.75 5793243.95)\n"
7956" 2 | 2 | 254 | POINT(3427927.8 5793243.95)\n"
7957" 3 | 2 | 254 | POINT(3427927.85 5793243.95)\n"
7958" 4 | 2 | 253 | POINT(3427927.9 5793243.95)\n"
7959" 5 | 2 | 249 | POINT(3427927.95 5793243.95)\n"
7960" 1 | 3 | 250 | POINT(3427927.75 5793243.9)\n"
7961" 2 | 3 | 254 | POINT(3427927.8 5793243.9)\n"
7962" 3 | 3 | 254 | POINT(3427927.85 5793243.9)\n"
7963" 4 | 3 | 252 | POINT(3427927.9 5793243.9)\n"
7964" 5 | 3 | 249 | POINT(3427927.95 5793243.9)\n"
7965" 1 | 4 | 251 | POINT(3427927.75 5793243.85)\n"
7966" 2 | 4 | 253 | POINT(3427927.8 5793243.85)\n"
7967" 3 | 4 | 254 | POINT(3427927.85 5793243.85)\n"
7968" 4 | 4 | 254 | POINT(3427927.9 5793243.85)\n"
7969" 5 | 4 | 253 | POINT(3427927.95 5793243.85)\n"
7970" 1 | 5 | 252 | POINT(3427927.75 5793243.8)\n"
7971" 2 | 5 | 250 | POINT(3427927.8 5793243.8)\n"
7972" 3 | 5 | 254 | POINT(3427927.85 5793243.8)\n"
7973" 4 | 5 | 254 | POINT(3427927.9 5793243.8)\n"
7974" 5 | 5 | 254 | POINT(3427927.95 5793243.8)"
7975msgstr ""
7976"SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsPoints(rast, 1)).* "
7977"FROM dummy_rast WHERE rid = 2) foo;\n"
7978"\n"
7979" x | y | val |          st_astext\n"
7980"---+---+-----+------------------------------\n"
7981" 1 | 1 | 253 | POINT(3427927.75 5793244)\n"
7982" 2 | 1 | 254 | POINT(3427927.8 5793244)\n"
7983" 3 | 1 | 253 | POINT(3427927.85 5793244)\n"
7984" 4 | 1 | 254 | POINT(3427927.9 5793244)\n"
7985" 5 | 1 | 254 | POINT(3427927.95 5793244)\n"
7986" 1 | 2 | 253 | POINT(3427927.75 5793243.95)\n"
7987" 2 | 2 | 254 | POINT(3427927.8 5793243.95)\n"
7988" 3 | 2 | 254 | POINT(3427927.85 5793243.95)\n"
7989" 4 | 2 | 253 | POINT(3427927.9 5793243.95)\n"
7990" 5 | 2 | 249 | POINT(3427927.95 5793243.95)\n"
7991" 1 | 3 | 250 | POINT(3427927.75 5793243.9)\n"
7992" 2 | 3 | 254 | POINT(3427927.8 5793243.9)\n"
7993" 3 | 3 | 254 | POINT(3427927.85 5793243.9)\n"
7994" 4 | 3 | 252 | POINT(3427927.9 5793243.9)\n"
7995" 5 | 3 | 249 | POINT(3427927.95 5793243.9)\n"
7996" 1 | 4 | 251 | POINT(3427927.75 5793243.85)\n"
7997" 2 | 4 | 253 | POINT(3427927.8 5793243.85)\n"
7998" 3 | 4 | 254 | POINT(3427927.85 5793243.85)\n"
7999" 4 | 4 | 254 | POINT(3427927.9 5793243.85)\n"
8000" 5 | 4 | 253 | POINT(3427927.95 5793243.85)\n"
8001" 1 | 5 | 252 | POINT(3427927.75 5793243.8)\n"
8002" 2 | 5 | 250 | POINT(3427927.8 5793243.8)\n"
8003" 3 | 5 | 254 | POINT(3427927.85 5793243.8)\n"
8004" 4 | 5 | 254 | POINT(3427927.9 5793243.8)\n"
8005" 5 | 5 | 254 | POINT(3427927.95 5793243.8)"
8006
8007#. Tag: para
8008#: reference_raster.xml:3455
8009#, no-c-format
8010msgid ""
8011", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8012"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8013"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
8014"\"/>"
8015msgstr ""
8016", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8017"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8018"linkend=\"RT_ST_PixelAsCentroid\"/>, <xref linkend=\"RT_ST_PixelAsCentroids"
8019"\"/>"
8020
8021#. Tag: refname
8022#: reference_raster.xml:3469
8023#, no-c-format
8024msgid "ST_PixelAsCentroid"
8025msgstr "ST_PixelAsCentroid"
8026
8027#. Tag: refpurpose
8028#: reference_raster.xml:3470
8029#, no-c-format
8030msgid ""
8031"<refpurpose>Returns the centroid (point geometry) of the area represented by "
8032"a pixel.</refpurpose>"
8033msgstr ""
8034"<refpurpose>ピクセルで表現される面の重心 (ポイントジオメトリ)を返します。</"
8035"refpurpose>"
8036
8037#. Tag: funcprototype
8038#: reference_raster.xml:3476
8039#, no-c-format
8040msgid ""
8041"<funcdef>geometry <function>ST_PixelAsCentroid</function></funcdef> "
8042"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
8043"<paramdef><type>integer </type> <parameter>x</parameter></paramdef> "
8044"<paramdef><type>integer </type> <parameter>y</parameter></paramdef>"
8045msgstr ""
8046"<funcdef>geometry <function>ST_PixelAsCentroid</function></funcdef> "
8047"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
8048"<paramdef><type>integer </type> <parameter>x</parameter></paramdef> "
8049"<paramdef><type>integer </type> <parameter>y</parameter></paramdef>"
8050
8051#. Tag: para
8052#: reference_raster.xml:3487
8053#, no-c-format
8054msgid ""
8055"<para>Returns the centroid (point geometry) of the area represented by a "
8056"pixel.</para>"
8057msgstr ""
8058"<para>ピクセルで表現される面の重心 (ポイントジオメトリ)を返します。</para>"
8059
8060#. Tag: programlisting
8061#: reference_raster.xml:3493
8062#, no-c-format
8063msgid ""
8064"SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = "
8065"1;\n"
8066"\n"
8067"  st_astext\n"
8068"--------------\n"
8069" POINT(1.5 2)"
8070msgstr ""
8071"SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = "
8072"1;\n"
8073"\n"
8074"  st_astext\n"
8075"--------------\n"
8076" POINT(1.5 2)"
8077
8078#. Tag: para
8079#: reference_raster.xml:3498
8080#, no-c-format
8081msgid ""
8082", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8083"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8084"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroids\"/>"
8085msgstr ""
8086", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8087"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8088"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroids\"/>"
8089
8090#. Tag: refname
8091#: reference_raster.xml:3512
8092#, no-c-format
8093msgid "ST_PixelAsCentroids"
8094msgstr "ST_PixelAsCentroids"
8095
8096#. Tag: refpurpose
8097#: reference_raster.xml:3513
8098#, no-c-format
8099msgid ""
8100"<refpurpose>Returns the centroid (point geometry) for each pixel of a raster "
8101"band along with the value, the X and the Y raster coordinates of each pixel. "
8102"The point geometry is the centroid of the area represented by a pixel.</"
8103"refpurpose>"
8104msgstr ""
8105"<refpurpose>全てのピクセルについて重心 (ポイントジオメト)リを、ピクセルごとの"
8106"ピクセル値とラスタ座標系のXとYとを付けて返します。ポイントジオメトリの座標は"
8107"ピクセルで表現される面の重心です。</refpurpose>"
8108
8109#. Tag: funcprototype
8110#: reference_raster.xml:3519
8111#, no-c-format
8112msgid ""
8113"<funcdef>setof record <function>ST_PixelAsCentroids</function></funcdef> "
8114"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
8115"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
8116"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8117"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
8118msgstr ""
8119"<funcdef>setof record <function>ST_PixelAsCentroids</function></funcdef> "
8120"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
8121"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
8122"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8123"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
8124
8125#. Tag: para
8126#: reference_raster.xml:3530
8127#, no-c-format
8128msgid ""
8129"<para>Returns the centroid (point geometry) for each pixel of a raster band "
8130"along with the value, the X and the Y raster coordinates of each pixel. The "
8131"point geometry is the centroid of the area represented by a pixel.</para>"
8132msgstr ""
8133"<para>全てのピクセルについて重心 (ポイントジオメト)リを、ピクセルごとのピクセ"
8134"ル値とラスタ座標系のXとYとを付けて返します。ポイントジオメトリの座標はピクセ"
8135"ルで表現される面の重心です。</para>"
8136
8137#. Tag: programlisting
8138#: reference_raster.xml:3548
8139#, no-c-format
8140msgid ""
8141"--LATERAL syntax requires PostgreSQL 9.3+\n"
8142"SELECT x, y, val, ST_AsText(geom)\n"
8143"        FROM (SELECT dp.* FROM dummy_rast, LATERAL ST_PixelAsCentroids(rast, "
8144"1) AS dp WHERE rid = 2) foo;\n"
8145" x | y | val |           st_astext\n"
8146"---+---+-----+--------------------------------\n"
8147" 1 | 1 | 253 | POINT(3427927.775 5793243.975)\n"
8148" 2 | 1 | 254 | POINT(3427927.825 5793243.975)\n"
8149" 3 | 1 | 253 | POINT(3427927.875 5793243.975)\n"
8150" 4 | 1 | 254 | POINT(3427927.925 5793243.975)\n"
8151" 5 | 1 | 254 | POINT(3427927.975 5793243.975)\n"
8152" 1 | 2 | 253 | POINT(3427927.775 5793243.925)\n"
8153" 2 | 2 | 254 | POINT(3427927.825 5793243.925)\n"
8154" 3 | 2 | 254 | POINT(3427927.875 5793243.925)\n"
8155" 4 | 2 | 253 | POINT(3427927.925 5793243.925)\n"
8156" 5 | 2 | 249 | POINT(3427927.975 5793243.925)\n"
8157" 1 | 3 | 250 | POINT(3427927.775 5793243.875)\n"
8158" 2 | 3 | 254 | POINT(3427927.825 5793243.875)\n"
8159" 3 | 3 | 254 | POINT(3427927.875 5793243.875)\n"
8160" 4 | 3 | 252 | POINT(3427927.925 5793243.875)\n"
8161" 5 | 3 | 249 | POINT(3427927.975 5793243.875)\n"
8162" 1 | 4 | 251 | POINT(3427927.775 5793243.825)\n"
8163" 2 | 4 | 253 | POINT(3427927.825 5793243.825)\n"
8164" 3 | 4 | 254 | POINT(3427927.875 5793243.825)\n"
8165" 4 | 4 | 254 | POINT(3427927.925 5793243.825)\n"
8166" 5 | 4 | 253 | POINT(3427927.975 5793243.825)\n"
8167" 1 | 5 | 252 | POINT(3427927.775 5793243.775)\n"
8168" 2 | 5 | 250 | POINT(3427927.825 5793243.775)\n"
8169" 3 | 5 | 254 | POINT(3427927.875 5793243.775)\n"
8170" 4 | 5 | 254 | POINT(3427927.925 5793243.775)\n"
8171" 5 | 5 | 254 | POINT(3427927.975 5793243.775)"
8172msgstr ""
8173"-- LATERAL句を使うにはPostgreSQL 9.3以上が必要です\n"
8174"SELECT x, y, val, ST_AsText(geom)\n"
8175"        FROM (SELECT dp.* FROM dummy_rast, LATERAL ST_PixelAsCentroids(rast, "
8176"1) AS dp WHERE rid = 2) foo;\n"
8177" x | y | val |           st_astext\n"
8178"---+---+-----+--------------------------------\n"
8179" 1 | 1 | 253 | POINT(3427927.775 5793243.975)\n"
8180" 2 | 1 | 254 | POINT(3427927.825 5793243.975)\n"
8181" 3 | 1 | 253 | POINT(3427927.875 5793243.975)\n"
8182" 4 | 1 | 254 | POINT(3427927.925 5793243.975)\n"
8183" 5 | 1 | 254 | POINT(3427927.975 5793243.975)\n"
8184" 1 | 2 | 253 | POINT(3427927.775 5793243.925)\n"
8185" 2 | 2 | 254 | POINT(3427927.825 5793243.925)\n"
8186" 3 | 2 | 254 | POINT(3427927.875 5793243.925)\n"
8187" 4 | 2 | 253 | POINT(3427927.925 5793243.925)\n"
8188" 5 | 2 | 249 | POINT(3427927.975 5793243.925)\n"
8189" 1 | 3 | 250 | POINT(3427927.775 5793243.875)\n"
8190" 2 | 3 | 254 | POINT(3427927.825 5793243.875)\n"
8191" 3 | 3 | 254 | POINT(3427927.875 5793243.875)\n"
8192" 4 | 3 | 252 | POINT(3427927.925 5793243.875)\n"
8193" 5 | 3 | 249 | POINT(3427927.975 5793243.875)\n"
8194" 1 | 4 | 251 | POINT(3427927.775 5793243.825)\n"
8195" 2 | 4 | 253 | POINT(3427927.825 5793243.825)\n"
8196" 3 | 4 | 254 | POINT(3427927.875 5793243.825)\n"
8197" 4 | 4 | 254 | POINT(3427927.925 5793243.825)\n"
8198" 5 | 4 | 253 | POINT(3427927.975 5793243.825)\n"
8199" 1 | 5 | 252 | POINT(3427927.775 5793243.775)\n"
8200" 2 | 5 | 250 | POINT(3427927.825 5793243.775)\n"
8201" 3 | 5 | 254 | POINT(3427927.875 5793243.775)\n"
8202" 4 | 5 | 254 | POINT(3427927.925 5793243.775)\n"
8203" 5 | 5 | 254 | POINT(3427927.975 5793243.775)"
8204
8205#. Tag: para
8206#: reference_raster.xml:3553
8207#, no-c-format
8208msgid ""
8209", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8210"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8211"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroid\"/>"
8212msgstr ""
8213", <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend="
8214"\"RT_ST_PixelAsPolygons\"/>, <xref linkend=\"RT_ST_PixelAsPoint\"/>, <xref "
8215"linkend=\"RT_ST_PixelAsPoints\"/>, <xref linkend=\"RT_ST_PixelAsCentroid\"/>"
8216
8217#. Tag: refname
8218#: reference_raster.xml:3567
8219#, no-c-format
8220msgid "ST_Value"
8221msgstr "ST_Value"
8222
8223#. Tag: refpurpose
8224#: reference_raster.xml:3568
8225#, no-c-format
8226msgid ""
8227"Returns the value of a given band in a given columnx, rowy pixel or at a "
8228"particular geometric point. Band numbers start at 1 and assumed to be 1 if "
8229"not specified. If <varname>exclude_nodata_value</varname> is set to false, "
8230"then all pixels include <varname>nodata</varname> pixels are considered to "
8231"intersect and return value. If <varname>exclude_nodata_value</varname> is "
8232"not passed in then reads it from metadata of raster."
8233msgstr ""
8234"指定したバンドにおけるcolumnx, rowyで指定したピクセルまたは指定したジオメトリ"
8235"ポイントに対応するピクセルの値を返します。 バンド番号は1始まりで、指定しない"
8236"場合には、1番と仮定します。<varname>exclude_nodata_value</varname>がFALSEに設"
8237"定された場合には、NODATAピクセルを含む全てのピクセルがインタセクトするかが考"
8238"慮され、値を返します。<varname>exclude_nodata_value</varname>を渡さない場合に"
8239"は、ラスタのメタデータから読みます。"
8240
8241#. Tag: funcsynopsis
8242#: reference_raster.xml:3572
8243#, no-c-format
8244msgid ""
8245"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8246"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8247"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
8248"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8249"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8250"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8251"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8252"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
8253"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
8254"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8255"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8256"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8257"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8258"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
8259"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
8260"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8261"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8262"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8263"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8264"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
8265"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
8266"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
8267"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8268"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8269msgstr ""
8270"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8271"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8272"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
8273"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8274"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8275"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8276"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8277"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
8278"paramdef> <paramdef><type>geometry </type> <parameter>pt</parameter></"
8279"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8280"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8281"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8282"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8283"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
8284"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
8285"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8286"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8287"<funcprototype> <funcdef>double precision <function>ST_Value</function></"
8288"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
8289"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
8290"paramdef> <paramdef><type>integer </type> <parameter>x</parameter></"
8291"paramdef> <paramdef><type>integer </type> <parameter>y</parameter></"
8292"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8293"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8294
8295#. Tag: para
8296#: reference_raster.xml:3607
8297#, no-c-format
8298msgid ""
8299"Returns the value of a given band in a given columnx, rowy pixel or at a "
8300"given geometry point. Band numbers start at 1 and band is assumed to be 1 if "
8301"not specified. If <varname>exclude_nodata_value</varname> is set to true, "
8302"then only non <varname>nodata</varname> pixels are considered. If "
8303"<varname>exclude_nodata_value</varname> is set to false, then all pixels are "
8304"considered."
8305msgstr ""
8306"指定したバンドにおけるcolumnx, rowyで指定したピクセルまたは指定したジオメトリ"
8307"ポイントに対応するピクセルの値を返します。 バンド番号は1始まりで、指定しない"
8308"場合には、1番と仮定します。<varname>exclude_nodata_value</varname>がTRUEに設"
8309"定された場合には、非NODATAピクセルのみが考慮されます。"
8310"<varname>exclude_nodata_value</varname>がFALSEに設定された場合には、全てのピ"
8311"クセルが考慮されます。"
8312
8313#. Tag: para
8314#: reference_raster.xml:3610
8315#, no-c-format
8316msgid "Enhanced: 2.0.0 exclude_nodata_value optional argument was added."
8317msgstr "Enhanced: 2.0.0 任意引数exclude_nodata_valueが追加されました。"
8318
8319#. Tag: programlisting
8320#: reference_raster.xml:3615
8321#, no-c-format
8322msgid ""
8323"-- get raster values at particular postgis geometry points\n"
8324"-- the srid of your geometry should be same as for your raster\n"
8325"SELECT rid, ST_Value(rast, foo.pt_geom) As b1pval, ST_Value(rast, 2, foo."
8326"pt_geom) As b2pval\n"
8327"FROM dummy_rast CROSS JOIN (SELECT ST_SetSRID(ST_Point(3427927.77, "
8328"5793243.76), 0) As pt_geom) As foo\n"
8329"WHERE rid=2;\n"
8330"\n"
8331" rid | b1pval | b2pval\n"
8332"-----+--------+--------\n"
8333"   2 |    252 |     79\n"
8334"\n"
8335"\n"
8336"-- general fictitious example using a real table\n"
8337"SELECT rid, ST_Value(rast, 3, sometable.geom) As b3pval\n"
8338"FROM sometable\n"
8339"WHERE ST_Intersects(rast,sometable.geom);"
8340msgstr ""
8341"-- PostGISジオメトリポイントを指定してラスタの値を得ます\n"
8342"-- ジオメトリのSRIDはラスタと同じにします\n"
8343"SELECT rid, ST_Value(rast, foo.pt_geom) As b1pval, ST_Value(rast, 2, foo."
8344"pt_geom) As b2pval\n"
8345"FROM dummy_rast CROSS JOIN (SELECT ST_SetSRID(ST_Point(3427927.77, "
8346"5793243.76), 0) As pt_geom) As foo\n"
8347"WHERE rid=2;\n"
8348"\n"
8349" rid | b1pval | b2pval\n"
8350"-----+--------+--------\n"
8351"   2 |    252 |     79\n"
8352"\n"
8353"\n"
8354"-- 実際のテーブルを使った一般的な架空の例\n"
8355"SELECT rid, ST_Value(rast, 3, sometable.geom) As b3pval\n"
8356"FROM sometable\n"
8357"WHERE ST_Intersects(rast,sometable.geom);"
8358
8359#. Tag: programlisting
8360#: reference_raster.xml:3616
8361#, no-c-format
8362msgid ""
8363"SELECT rid, ST_Value(rast, 1, 1, 1) As b1pval,\n"
8364"    ST_Value(rast, 2, 1, 1) As b2pval, ST_Value(rast, 3, 1, 1) As b3pval\n"
8365"FROM dummy_rast\n"
8366"WHERE rid=2;\n"
8367"\n"
8368" rid | b1pval | b2pval | b3pval\n"
8369"-----+--------+--------+--------\n"
8370"   2 |    253 |     78 |     70"
8371msgstr ""
8372"SELECT rid, ST_Value(rast, 1, 1, 1) As b1pval,\n"
8373"    ST_Value(rast, 2, 1, 1) As b2pval, ST_Value(rast, 3, 1, 1) As b3pval\n"
8374"FROM dummy_rast\n"
8375"WHERE rid=2;\n"
8376"\n"
8377" rid | b1pval | b2pval | b3pval\n"
8378"-----+--------+--------+--------\n"
8379"   2 |    253 |     78 |     70"
8380
8381#. Tag: programlisting
8382#: reference_raster.xml:3618
8383#, no-c-format
8384msgid ""
8385"--- Get all values in bands 1,2,3 of each pixel --\n"
8386"SELECT x, y, ST_Value(rast, 1, x, y) As b1val,\n"
8387"        ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
8388"FROM dummy_rast CROSS JOIN\n"
8389"generate_series(1, 1000) As x CROSS JOIN generate_series(1, 1000) As y\n"
8390"WHERE rid =  2 AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast);\n"
8391"\n"
8392" x | y | b1val | b2val | b3val\n"
8393"---+---+-------+-------+-------\n"
8394" 1 | 1 |   253 |    78 |    70\n"
8395" 1 | 2 |   253 |    96 |    80\n"
8396" 1 | 3 |   250 |    99 |    90\n"
8397" 1 | 4 |   251 |    89 |    77\n"
8398" 1 | 5 |   252 |    79 |    62\n"
8399" 2 | 1 |   254 |    98 |    86\n"
8400" 2 | 2 |   254 |   118 |   108\n"
8401" :\n"
8402" :"
8403msgstr ""
8404"-- 1番、2番、3番バンドの全ての値を得ます\n"
8405"SELECT x, y, ST_Value(rast, 1, x, y) As b1val,\n"
8406"        ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
8407"FROM dummy_rast CROSS JOIN\n"
8408"generate_series(1, 1000) As x CROSS JOIN generate_series(1, 1000) As y\n"
8409"WHERE rid =  2 AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast);\n"
8410"\n"
8411" x | y | b1val | b2val | b3val\n"
8412"---+---+-------+-------+-------\n"
8413" 1 | 1 |   253 |    78 |    70\n"
8414" 1 | 2 |   253 |    96 |    80\n"
8415" 1 | 3 |   250 |    99 |    90\n"
8416" 1 | 4 |   251 |    89 |    77\n"
8417" 1 | 5 |   252 |    79 |    62\n"
8418" 2 | 1 |   254 |    98 |    86\n"
8419" 2 | 2 |   254 |   118 |   108\n"
8420" :\n"
8421" :"
8422
8423#. Tag: programlisting
8424#: reference_raster.xml:3620
8425#, no-c-format
8426msgid ""
8427"--- Get all values in bands 1,2,3 of each pixel same as above but returning "
8428"the upper left point point of each pixel --\n"
8429"SELECT ST_AsText(ST_SetSRID(\n"
8430"        ST_Point(ST_UpperLeftX(rast) + ST_ScaleX(rast)*x,\n"
8431"                ST_UpperLeftY(rast) + ST_ScaleY(rast)*y),\n"
8432"                ST_SRID(rast))) As uplpt\n"
8433"    , ST_Value(rast, 1, x, y) As b1val,\n"
8434"        ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
8435"FROM dummy_rast CROSS JOIN\n"
8436"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
8437"WHERE rid =  2 AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast);\n"
8438"\n"
8439"            uplpt            | b1val | b2val | b3val\n"
8440"-----------------------------+-------+-------+-------\n"
8441" POINT(3427929.25 5793245.5) |   253 |    78 |    70\n"
8442" POINT(3427929.25 5793247)   |   253 |    96 |    80\n"
8443" POINT(3427929.25 5793248.5) |   250 |    99 |    90\n"
8444":"
8445msgstr ""
8446"-- 上の例と同じに、1番、2番、3番バンドの全ての値を得ますが、\n"
8447"-- ピクセル毎の左上隅のポイントを返します\n"
8448"SELECT ST_AsText(ST_SetSRID(\n"
8449"        ST_Point(ST_UpperLeftX(rast) + ST_ScaleX(rast)*x,\n"
8450"                ST_UpperLeftY(rast) + ST_ScaleY(rast)*y),\n"
8451"                ST_SRID(rast))) As uplpt\n"
8452"    , ST_Value(rast, 1, x, y) As b1val,\n"
8453"        ST_Value(rast, 2, x, y) As b2val, ST_Value(rast, 3, x, y) As b3val\n"
8454"FROM dummy_rast CROSS JOIN\n"
8455"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
8456"WHERE rid =  2 AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast);\n"
8457"\n"
8458"            uplpt            | b1val | b2val | b3val\n"
8459"-----------------------------+-------+-------+-------\n"
8460" POINT(3427929.25 5793245.5) |   253 |    78 |    70\n"
8461" POINT(3427929.25 5793247)   |   253 |    96 |    80\n"
8462" POINT(3427929.25 5793248.5) |   250 |    99 |    90\n"
8463":"
8464
8465#. Tag: programlisting
8466#: reference_raster.xml:3621
8467#, no-c-format
8468msgid ""
8469"--- Get a polygon formed by union of all pixels\n"
8470"        that fall in a particular value range and intersect particular "
8471"polygon --\n"
8472"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
8473"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
8474"                ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
8475"                        ST_UpperLeftX(rast) + ST_ScaleX(rast),\n"
8476"                        ST_UpperLeftY(rast) + ST_ScaleY(rast), 0\n"
8477"                        ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
8478"                ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
8479"        FROM dummy_rast CROSS JOIN\n"
8480"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
8481"WHERE rid =  2\n"
8482"        AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast)) As foo\n"
8483"WHERE\n"
8484"        ST_Intersects(\n"
8485"                pixpolyg,\n"
8486"                ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
8487"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
8488"                ) AND b2val != 254;\n"
8489"\n"
8490"\n"
8491"                shadow\n"
8492"------------------------------------------------------------------------------------\n"
8493" MULTIPOLYGON(((3427928 5793243.9,3427928 5793243.85,3427927.95 "
8494"5793243.85,3427927.95 5793243.9,\n"
8495" 3427927.95 5793243.95,3427928 5793243.95,3427928.05 5793243.95,3427928.05 "
8496"5793243.9,3427928 5793243.9)),((3427927.95 5793243.9,3427927.95 579324\n"
8497"3.85,3427927.9 5793243.85,3427927.85 5793243.85,3427927.85 "
8498"5793243.9,3427927.9 5793243.9,3427927.9 5793243.95,\n"
8499"3427927.95 5793243.95,3427927.95 5793243.9)),((3427927.85 "
8500"5793243.75,3427927.85 5793243.7,3427927.8 5793243.7,3427927.8 5793243.75\n"
8501",3427927.8 5793243.8,3427927.8 5793243.85,3427927.85 5793243.85,3427927.85 "
8502"5793243.8,3427927.85 5793243.75)),\n"
8503"((3427928.05 5793243.75,3427928.05 5793243.7,3427928 5793243.7,3427927.95 "
8504"5793243.7,3427927.95 5793243.75,3427927.95 5793243.8,3427\n"
8505"927.95 5793243.85,3427928 5793243.85,3427928 5793243.8,3427928.05 "
8506"5793243.8,\n"
8507"3427928.05 5793243.75)),((3427927.95 5793243.75,3427927.95 "
8508"5793243.7,3427927.9 5793243.7,3427927.85 5793243.7,\n"
8509"3427927.85 5793243.75,3427927.85 5793243.8,3427927.85 5793243.85,3427927.9 "
8510"5793243.85,\n"
8511"3427927.95 5793243.85,3427927.95 5793243.8,3427927.95 5793243.75)))"
8512msgstr ""
8513"-- 指定した範囲内の値を持ち、指定したポリゴンにインタセクトするピクセルの\n"
8514"-- 全てを結合することによって形成されるポリゴンを得ます\n"
8515"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
8516"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
8517"                ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
8518"                        ST_UpperLeftX(rast) + ST_ScaleX(rast),\n"
8519"                        ST_UpperLeftY(rast) + ST_ScaleY(rast), 0\n"
8520"                        ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
8521"                ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
8522"        FROM dummy_rast CROSS JOIN\n"
8523"generate_series(1,1000) As x CROSS JOIN generate_series(1,1000) As y\n"
8524"WHERE rid =  2\n"
8525"        AND x &lt;= ST_Width(rast) AND y &lt;= ST_Height(rast)) As foo\n"
8526"WHERE\n"
8527"        ST_Intersects(\n"
8528"                pixpolyg,\n"
8529"                ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
8530"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
8531"                ) AND b2val != 254;\n"
8532"\n"
8533"\n"
8534"                shadow\n"
8535"------------------------------------------------------------------------------------\n"
8536" MULTIPOLYGON(((3427928 5793243.9,3427928 5793243.85,3427927.95 "
8537"5793243.85,3427927.95 5793243.9,\n"
8538" 3427927.95 5793243.95,3427928 5793243.95,3427928.05 5793243.95,3427928.05 "
8539"5793243.9,3427928 5793243.9)),((3427927.95 5793243.9,3427927.95 579324\n"
8540"3.85,3427927.9 5793243.85,3427927.85 5793243.85,3427927.85 "
8541"5793243.9,3427927.9 5793243.9,3427927.9 5793243.95,\n"
8542"3427927.95 5793243.95,3427927.95 5793243.9)),((3427927.85 "
8543"5793243.75,3427927.85 5793243.7,3427927.8 5793243.7,3427927.8 5793243.75\n"
8544",3427927.8 5793243.8,3427927.8 5793243.85,3427927.85 5793243.85,3427927.85 "
8545"5793243.8,3427927.85 5793243.75)),\n"
8546"((3427928.05 5793243.75,3427928.05 5793243.7,3427928 5793243.7,3427927.95 "
8547"5793243.7,3427927.95 5793243.75,3427927.95 5793243.8,3427\n"
8548"927.95 5793243.85,3427928 5793243.85,3427928 5793243.8,3427928.05 "
8549"5793243.8,\n"
8550"3427928.05 5793243.75)),((3427927.95 5793243.75,3427927.95 "
8551"5793243.7,3427927.9 5793243.7,3427927.85 5793243.7,\n"
8552"3427927.85 5793243.75,3427927.85 5793243.8,3427927.85 5793243.85,3427927.9 "
8553"5793243.85,\n"
8554"3427927.95 5793243.85,3427927.95 5793243.8,3427927.95 5793243.75)))"
8555
8556#. Tag: programlisting
8557#: reference_raster.xml:3623
8558#, no-c-format
8559msgid ""
8560"--- Checking all the pixels of a large raster tile can take a long time.\n"
8561"--- You can dramatically improve speed at some lose of precision by orders "
8562"of magnitude\n"
8563"--  by sampling pixels using the step optional parameter of "
8564"generate_series.\n"
8565"--  This next example does the same as previous but by checking 1 for every "
8566"4 (2x2) pixels and putting in the last checked\n"
8567"--  putting in the checked pixel as the value for subsequent 4\n"
8568"\n"
8569"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
8570"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
8571"                ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
8572"                        ST_UpperLeftX(rast) + ST_ScaleX(rast)*2,\n"
8573"                        ST_UpperLeftY(rast) + ST_ScaleY(rast)*2, 0\n"
8574"                        ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
8575"                ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
8576"        FROM dummy_rast CROSS JOIN\n"
8577"generate_series(1,1000,2) As x CROSS JOIN generate_series(1,1000,2) As y\n"
8578"WHERE rid =  2\n"
8579"        AND x &lt;= ST_Width(rast)  AND y &lt;= ST_Height(rast)  ) As foo\n"
8580"WHERE\n"
8581"        ST_Intersects(\n"
8582"                pixpolyg,\n"
8583"                ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
8584"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
8585"                ) AND b2val != 254;\n"
8586"\n"
8587"                shadow\n"
8588"------------------------------------------------------------------------------------\n"
8589" MULTIPOLYGON(((3427927.9 5793243.85,3427927.8 5793243.85,3427927.8 "
8590"5793243.95,\n"
8591" 3427927.9 5793243.95,3427928 5793243.95,3427928.1 5793243.95,3427928.1 "
8592"5793243.85,3427928 5793243.85,3427927.9 5793243.85)),\n"
8593" ((3427927.9 5793243.65,3427927.8 5793243.65,3427927.8 5793243.75,3427927.8 "
8594"5793243.85,3427927.9 5793243.85,\n"
8595" 3427928 5793243.85,3427928 5793243.75,3427928.1 5793243.75,3427928.1 "
8596"5793243.65,3427928 5793243.65,3427927.9 5793243.65)))"
8597msgstr ""
8598"-- 大きなラスタタイルの全てのピクセルをチェックは長時間かかります。\n"
8599"-- generate_seriesの任意引数stepを使用してサンプリングすることで、\n"
8600"-- 精度を大きく落としますが、劇的な速度改善が可能です。\n"
8601"-- 次の例では、前の例と同じことをしていますが、\n"
8602"-- 4 (2x2)ピクセルごとに1度チェックを行い、4ピクセルの値として置いていま"
8603"す。\n"
8604"\n"
8605"SELECT ST_AsText(ST_Union(pixpolyg)) As shadow\n"
8606"FROM (SELECT ST_Translate(ST_MakeEnvelope(\n"
8607"                ST_UpperLeftX(rast), ST_UpperLeftY(rast),\n"
8608"                        ST_UpperLeftX(rast) + ST_ScaleX(rast)*2,\n"
8609"                        ST_UpperLeftY(rast) + ST_ScaleY(rast)*2, 0\n"
8610"                        ), ST_ScaleX(rast)*x, ST_ScaleY(rast)*y\n"
8611"                ) As pixpolyg, ST_Value(rast, 2, x, y) As b2val\n"
8612"        FROM dummy_rast CROSS JOIN\n"
8613"generate_series(1,1000,2) As x CROSS JOIN generate_series(1,1000,2) As y\n"
8614"WHERE rid =  2\n"
8615"        AND x &lt;= ST_Width(rast)  AND y &lt;= ST_Height(rast)  ) As foo\n"
8616"WHERE\n"
8617"        ST_Intersects(\n"
8618"                pixpolyg,\n"
8619"                ST_GeomFromText('POLYGON((3427928 5793244,3427927.75 "
8620"5793243.75,3427928 5793243.75,3427928 5793244))',0)\n"
8621"                ) AND b2val != 254;\n"
8622"\n"
8623"                shadow\n"
8624"------------------------------------------------------------------------------------\n"
8625" MULTIPOLYGON(((3427927.9 5793243.85,3427927.8 5793243.85,3427927.8 "
8626"5793243.95,\n"
8627" 3427927.9 5793243.95,3427928 5793243.95,3427928.1 5793243.95,3427928.1 "
8628"5793243.85,3427928 5793243.85,3427927.9 5793243.85)),\n"
8629" ((3427927.9 5793243.65,3427927.8 5793243.65,3427927.8 5793243.75,3427927.8 "
8630"5793243.85,3427927.9 5793243.85,\n"
8631" 3427928 5793243.85,3427928 5793243.75,3427928.1 5793243.75,3427928.1 "
8632"5793243.65,3427928 5793243.65,3427927.9 5793243.65)))"
8633
8634#. Tag: para
8635#: reference_raster.xml:3628
8636#, no-c-format
8637msgid ""
8638", <xref linkend=\"RT_ST_DumpAsPolygons\"/>, <xref linkend=\"RT_ST_NumBands\"/"
8639">, <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=\"RT_ST_ScaleX\"/"
8640">, <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
8641"<xref linkend=\"RT_ST_UpperLeftY\"/>, <xref linkend=\"RT_ST_SRID\"/>, <xref "
8642"linkend=\"ST_AsText\"/>, <xref linkend=\"ST_Point\"/>, <xref linkend="
8643"\"ST_MakeEnvelope\"/>, <xref linkend=\"ST_Intersects\"/>, <xref linkend="
8644"\"ST_Intersection\"/>"
8645msgstr ""
8646", <xref linkend=\"RT_ST_DumpAsPolygons\"/>, <xref linkend=\"RT_ST_NumBands\"/"
8647">, <xref linkend=\"RT_ST_PixelAsPolygon\"/>, <xref linkend=\"RT_ST_ScaleX\"/"
8648">, <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
8649"<xref linkend=\"RT_ST_UpperLeftY\"/>, <xref linkend=\"RT_ST_SRID\"/>, <xref "
8650"linkend=\"ST_AsText\"/>, <xref linkend=\"ST_Point\"/>, <xref linkend="
8651"\"ST_MakeEnvelope\"/>, <xref linkend=\"ST_Intersects\"/>, <xref linkend="
8652"\"ST_Intersection\"/>"
8653
8654#. Tag: refname
8655#: reference_raster.xml:3649
8656#, no-c-format
8657msgid "ST_NearestValue"
8658msgstr "ST_NearestValue"
8659
8660#. Tag: refpurpose
8661#: reference_raster.xml:3650
8662#, no-c-format
8663msgid ""
8664"Returns the nearest non-<varname>NODATA</varname> value of a given band's "
8665"pixel specified by a columnx and rowy or a geometric point expressed in the "
8666"same spatial reference coordinate system as the raster."
8667msgstr ""
8668"与えられたバンドの、columnxとrowyで指定されるか、またはラスタと同じ空間参照系"
8669"で表現されたポイントで指定されたピクセルに最も近い<varname>NODATA</varname>で"
8670"ない値を返します。"
8671
8672#. Tag: funcsynopsis
8673#: reference_raster.xml:3656
8674#, no-c-format
8675msgid ""
8676"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8677"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8678"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8679"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8680"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8681"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8682"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8683"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8684"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8685"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8686"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8687"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8688"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8689"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8690"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
8691"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
8692"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8693"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8694"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8695"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8696"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
8697"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
8698"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8699"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8700msgstr ""
8701"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8702"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8703"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8704"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8705"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8706"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8707"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8708"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8709"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8710"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8711"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8712"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8713"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8714"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8715"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
8716"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
8717"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8718"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8719"<funcprototype> <funcdef>double precision <function>ST_NearestValue</"
8720"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8721"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnx</"
8722"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowy</"
8723"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8724"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8725
8726#. Tag: para
8727#: reference_raster.xml:3693
8728#, no-c-format
8729msgid ""
8730"Returns the nearest non-<varname>NODATA</varname> value of a given band in a "
8731"given columnx, rowy pixel or at a specific geometric point. If the columnx, "
8732"rowy pixel or the pixel at the specified geometric point is <varname>NODATA</"
8733"varname>, the function will find the nearest pixel to the columnx, rowy "
8734"pixel or geometric point whose value is not <varname>NODATA</varname>."
8735msgstr ""
8736"与えられたバンドの、columnxとrowyで指定されるか、またはラスタと同じ空間参照系"
8737"で表現されたポイントで指定されたピクセルに最も近い<varname>NODATA</varname>で"
8738"ない値を返します。columnx, rowyピクセルまたは指定したジオメトリポイントのピク"
8739"セルが<varname>NODATA</varname>である場合には、この関数は、columnx, rowyピク"
8740"セルかジオメトリポイントのピクセルから最も近い<varname>NODATA</varname>.でな"
8741"いピクセルを探索します。"
8742
8743#. Tag: para
8744#: reference_raster.xml:3696 reference_raster.xml:3783
8745#, no-c-format
8746msgid ""
8747"Band numbers start at 1 and <varname>bandnum</varname> is assumed to be 1 if "
8748"not specified. If <varname>exclude_nodata_value</varname> is set to false, "
8749"then all pixels include <varname>nodata</varname> pixels are considered to "
8750"intersect and return value. If <varname>exclude_nodata_value</varname> is "
8751"not passed in then reads it from metadata of raster."
8752msgstr ""
8753"バンド番号は1始まりで、<varname>bandnum</varname>が指定されていない場合には、"
8754"1番と仮定します。<varname>exclude_nodata_value</varname>がFALSEに設定された場"
8755"合には、<varname>NODATA</varname>ピクセルを含む全てのピクセルがインタセクトす"
8756"るかが考慮され、値を返します。<varname>exclude_nodata_value</varname>を渡さな"
8757"い場合には、ラスタのメタデータから読みます。"
8758
8759#. Tag: para
8760#: reference_raster.xml:3701
8761#, no-c-format
8762msgid "ST_NearestValue is a drop-in replacement for ST_Value."
8763msgstr "ST_NearestValueはST_Valueと交換可能です。"
8764
8765#. Tag: programlisting
8766#: reference_raster.xml:3710
8767#, no-c-format
8768msgid ""
8769"-- pixel 2x2 has value\n"
8770"SELECT\n"
8771"        ST_Value(rast, 2, 2) AS value,\n"
8772"        ST_NearestValue(rast, 2, 2) AS nearestvalue\n"
8773"FROM (\n"
8774"        SELECT\n"
8775"                ST_SetValue(\n"
8776"                        ST_SetValue(\n"
8777"                                ST_SetValue(\n"
8778"                                        ST_SetValue(\n"
8779"                                                ST_SetValue(\n"
8780"                                                        ST_AddBand(\n"
8781"                                                                ST_MakeEmptyRaster(5, "
8782"5, -2, 2, 1, -1, 0, 0, 0),\n"
8783"                                                                '8BUI'::"
8784"text, 1, 0\n"
8785"                                                        ),\n"
8786"                                                        1, 1, 0.\n"
8787"                                                ),\n"
8788"                                                2, 3, 0.\n"
8789"                                        ),\n"
8790"                                        3, 5, 0.\n"
8791"                                ),\n"
8792"                                4, 2, 0.\n"
8793"                        ),\n"
8794"                        5, 4, 0.\n"
8795"                ) AS rast\n"
8796") AS foo\n"
8797"\n"
8798" value | nearestvalue\n"
8799"-------+--------------\n"
8800"     1 |            1"
8801msgstr ""
8802"-- 2,2ピクセルは値を持っています\n"
8803"SELECT\n"
8804"        ST_Value(rast, 2, 2) AS value,\n"
8805"        ST_NearestValue(rast, 2, 2) AS nearestvalue\n"
8806"FROM (\n"
8807"        SELECT\n"
8808"                ST_SetValue(\n"
8809"                        ST_SetValue(\n"
8810"                                ST_SetValue(\n"
8811"                                        ST_SetValue(\n"
8812"                                                ST_SetValue(\n"
8813"                                                        ST_AddBand(\n"
8814"                                                                ST_MakeEmptyRaster(5, "
8815"5, -2, 2, 1, -1, 0, 0, 0),\n"
8816"                                                                '8BUI'::"
8817"text, 1, 0\n"
8818"                                                        ),\n"
8819"                                                        1, 1, 0.\n"
8820"                                                ),\n"
8821"                                                2, 3, 0.\n"
8822"                                        ),\n"
8823"                                        3, 5, 0.\n"
8824"                                ),\n"
8825"                                4, 2, 0.\n"
8826"                        ),\n"
8827"                        5, 4, 0.\n"
8828"                ) AS rast\n"
8829") AS foo\n"
8830"\n"
8831" value | nearestvalue\n"
8832"-------+--------------\n"
8833"     1 |            1"
8834
8835#. Tag: programlisting
8836#: reference_raster.xml:3712
8837#, no-c-format
8838msgid ""
8839"-- pixel 2x3 is NODATA\n"
8840"SELECT\n"
8841"        ST_Value(rast, 2, 3) AS value,\n"
8842"        ST_NearestValue(rast, 2, 3) AS nearestvalue\n"
8843"FROM (\n"
8844"        SELECT\n"
8845"                ST_SetValue(\n"
8846"                        ST_SetValue(\n"
8847"                                ST_SetValue(\n"
8848"                                        ST_SetValue(\n"
8849"                                                ST_SetValue(\n"
8850"                                                        ST_AddBand(\n"
8851"                                                                ST_MakeEmptyRaster(5, "
8852"5, -2, 2, 1, -1, 0, 0, 0),\n"
8853"                                                                '8BUI'::"
8854"text, 1, 0\n"
8855"                                                        ),\n"
8856"                                                        1, 1, 0.\n"
8857"                                                ),\n"
8858"                                                2, 3, 0.\n"
8859"                                        ),\n"
8860"                                        3, 5, 0.\n"
8861"                                ),\n"
8862"                                4, 2, 0.\n"
8863"                        ),\n"
8864"                        5, 4, 0.\n"
8865"                ) AS rast\n"
8866") AS foo\n"
8867"\n"
8868" value | nearestvalue\n"
8869"-------+--------------\n"
8870"       |            1"
8871msgstr ""
8872"-- 2,3ピクセルはNODATAです\n"
8873"SELECT\n"
8874"        ST_Value(rast, 2, 3) AS value,\n"
8875"        ST_NearestValue(rast, 2, 3) AS nearestvalue\n"
8876"FROM (\n"
8877"        SELECT\n"
8878"                ST_SetValue(\n"
8879"                        ST_SetValue(\n"
8880"                                ST_SetValue(\n"
8881"                                        ST_SetValue(\n"
8882"                                                ST_SetValue(\n"
8883"                                                        ST_AddBand(\n"
8884"                                                                ST_MakeEmptyRaster(5, "
8885"5, -2, 2, 1, -1, 0, 0, 0),\n"
8886"                                                                '8BUI'::"
8887"text, 1, 0\n"
8888"                                                        ),\n"
8889"                                                        1, 1, 0.\n"
8890"                                                ),\n"
8891"                                                2, 3, 0.\n"
8892"                                        ),\n"
8893"                                        3, 5, 0.\n"
8894"                                ),\n"
8895"                                4, 2, 0.\n"
8896"                        ),\n"
8897"                        5, 4, 0.\n"
8898"                ) AS rast\n"
8899") AS foo\n"
8900"\n"
8901" value | nearestvalue\n"
8902"-------+--------------\n"
8903"       |            1"
8904
8905#. Tag: para
8906#: reference_raster.xml:3718
8907#, no-c-format
8908msgid ", <xref linkend=\"RT_ST_Value\"/>"
8909msgstr ", <xref linkend=\"RT_ST_Value\"/>"
8910
8911#. Tag: refname
8912#: reference_raster.xml:3728
8913#, no-c-format
8914msgid "ST_Neighborhood"
8915msgstr "ST_Neighborhood"
8916
8917#. Tag: refpurpose
8918#: reference_raster.xml:3729
8919#, no-c-format
8920msgid ""
8921"Returns a 2-D double precision array of the non-<varname>NODATA</varname> "
8922"values around a given band's pixel specified by either a columnX and rowY or "
8923"a geometric point expressed in the same spatial reference coordinate system "
8924"as the raster."
8925msgstr ""
8926"与えられたバンドのcolumnX, columnYか、ラスタと同じ空間参照系のジオメトリポイ"
8927"ントで指定されたピクセルの周囲にある、<varname>NODATA</varname>でない2次元倍"
8928"精度浮動小数点数配列を返します。"
8929
8930#. Tag: funcsynopsis
8931#: reference_raster.xml:3735
8932#, no-c-format
8933msgid ""
8934"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8935"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8936"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8937"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
8938"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
8939"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8940"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8941"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8942"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8943"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8944"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8945"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
8946"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
8947"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8948"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8949"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8950"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8951"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8952"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8953"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8954"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8955"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8956"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8957"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8958"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8959"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8960"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8961"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8962"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8963"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8964"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8965"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8966msgstr ""
8967"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8968"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8969"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8970"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
8971"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
8972"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8973"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8974"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8975"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8976"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8977"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8978"parameter></paramdef> <paramdef><type>integer </type> <parameter>columnX</"
8979"parameter></paramdef> <paramdef><type>integer </type> <parameter>rowY</"
8980"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8981"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8982"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8983"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8984"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8985"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8986"parameter></paramdef> <paramdef><type>integer </type> <parameter>bandnum</"
8987"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8988"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8989"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8990"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8991"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
8992"<funcprototype> <funcdef>double precision[][] <function>ST_Neighborhood</"
8993"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
8994"parameter></paramdef> <paramdef><type>geometry </type> <parameter>pt</"
8995"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceX</"
8996"parameter></paramdef> <paramdef><type>integer </type> <parameter>distanceY</"
8997"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
8998"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype>"
8999
9000#. Tag: para
9001#: reference_raster.xml:3780
9002#, no-c-format
9003msgid ""
9004"Returns a 2-D double precision array of the non-<varname>NODATA</varname> "
9005"values around a given band's pixel specified by either a columnX and rowY or "
9006"a geometric point expressed in the same spatial reference coordinate system "
9007"as the raster. The <varname>distanceX</varname> and <varname>distanceY</"
9008"varname> parameters define the number of pixels around the specified pixel "
9009"in the X and Y axes, e.g. I want all values within 3 pixel distance along "
9010"the X axis and 2 pixel distance along the Y axis around my pixel of "
9011"interest. The center value of the 2-D array will be the value at the pixel "
9012"specified by the columnX and rowY or the geometric point."
9013msgstr ""
9014"与えられたバンドのcolumnX, columnYか、ラスタと同じ空間参照系のジオメトリポイ"
9015"ントで指定されたピクセルの周囲にある、<varname>NODATA</varname>でない2次元倍"
9016"精度浮動小数点数配列を返します。<varname>distanceX</varname>と"
9017"<varname>distanceY</varname>引数は、たとえば、対象ピクセルからX軸に沿って3ピ"
9018"クセルとしてY軸に沿って2ピクセルというふうに、指定したピクセルの周囲のピクセ"
9019"ル数を、それぞれX方向とY方向に定義します。2次元配列の中心の値はcolumnX, "
9020"columnYまたはジオメトリポイントで指定したピクセルの値です。"
9021
9022#. Tag: para
9023#: reference_raster.xml:3787
9024#, no-c-format
9025msgid ""
9026"The number of elements along each axis of the returning 2-D array is 2 * "
9027"(<varname>distanceX</varname>|<varname>distanceY</varname>) + 1. So for a "
9028"<varname>distanceX</varname> and <varname>distanceY</varname> of 1, the "
9029"returning array will be 3x3."
9030msgstr ""
9031"返される2次元配列の各軸の要素数は2 * (<varname>distanceX</varname>|"
9032"<varname>distanceY</varname>) + 1です。<varname>distanceX</varname>と"
9033"<varname>distanceY</varname>を1にすると、3x3の配列が返ります。"
9034
9035#. Tag: para
9036#: reference_raster.xml:3792
9037#, no-c-format
9038msgid ""
9039"The 2-D array output can be passed to any of the raster processing builtin "
9040"functions, e.g. ST_Min4ma, ST_Sum4ma, ST_Mean4ma."
9041msgstr ""
9042"2次元配列の出力はST_Min4ma, ST_Sum4ma, ST_Mean4maといったあらゆるラスタ処理関"
9043"数に渡すことができます。"
9044
9045#. Tag: programlisting
9046#: reference_raster.xml:3802
9047#, no-c-format
9048msgid ""
9049"-- pixel 2x2 has value\n"
9050"SELECT\n"
9051"        ST_Neighborhood(rast, 2, 2, 1, 1)\n"
9052"FROM (\n"
9053"        SELECT\n"
9054"                ST_SetValues(\n"
9055"                        ST_AddBand(\n"
9056"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9057"0),\n"
9058"                                '8BUI'::text, 1, 0\n"
9059"                        ),\n"
9060"                        1, 1, 1, ARRAY[\n"
9061"                                [0, 1, 1, 1, 1],\n"
9062"                                [1, 1, 1, 0, 1],\n"
9063"                                [1, 0, 1, 1, 1],\n"
9064"                                [1, 1, 1, 1, 0],\n"
9065"                                [1, 1, 0, 1, 1]\n"
9066"                        ]::double precision[],\n"
9067"                        1\n"
9068"                ) AS rast\n"
9069") AS foo\n"
9070"\n"
9071"         st_neighborhood\n"
9072"---------------------------------\n"
9073" {{NULL,1,1},{1,1,NULL},{1,1,1}}"
9074msgstr ""
9075"-- 2,3ピクセルは値を持っています\n"
9076"SELECT\n"
9077"        ST_Neighborhood(rast, 2, 2, 1, 1)\n"
9078"FROM (\n"
9079"        SELECT\n"
9080"                ST_SetValues(\n"
9081"                        ST_AddBand(\n"
9082"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9083"0),\n"
9084"                                '8BUI'::text, 1, 0\n"
9085"                        ),\n"
9086"                        1, 1, 1, ARRAY[\n"
9087"                                [0, 1, 1, 1, 1],\n"
9088"                                [1, 1, 1, 0, 1],\n"
9089"                                [1, 0, 1, 1, 1],\n"
9090"                                [1, 1, 1, 1, 0],\n"
9091"                                [1, 1, 0, 1, 1]\n"
9092"                        ]::double precision[],\n"
9093"                        1\n"
9094"                ) AS rast\n"
9095") AS foo\n"
9096"\n"
9097"         st_neighborhood\n"
9098"---------------------------------\n"
9099" {{NULL,1,1},{1,1,NULL},{1,1,1}}"
9100
9101#. Tag: programlisting
9102#: reference_raster.xml:3804
9103#, no-c-format
9104msgid ""
9105"-- pixel 2x3 is NODATA\n"
9106"SELECT\n"
9107"        ST_Neighborhood(rast, 2, 3, 1, 1)\n"
9108"FROM (\n"
9109"        SELECT\n"
9110"                ST_SetValues(\n"
9111"                        ST_AddBand(\n"
9112"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9113"0),\n"
9114"                                '8BUI'::text, 1, 0\n"
9115"                        ),\n"
9116"                        1, 1, 1, ARRAY[\n"
9117"                                [0, 1, 1, 1, 1],\n"
9118"                                [1, 1, 1, 0, 1],\n"
9119"                                [1, 0, 1, 1, 1],\n"
9120"                                [1, 1, 1, 1, 0],\n"
9121"                                [1, 1, 0, 1, 1]\n"
9122"                        ]::double precision[],\n"
9123"                        1\n"
9124"                ) AS rast\n"
9125") AS foo\n"
9126"\n"
9127"       st_neighborhood\n"
9128"------------------------------\n"
9129" {{1,1,1},{1,NULL,1},{1,1,1}}"
9130msgstr ""
9131"-- 2,3ピクセルはNODATAです\n"
9132"SELECT\n"
9133"        ST_Neighborhood(rast, 2, 3, 1, 1)\n"
9134"FROM (\n"
9135"        SELECT\n"
9136"                ST_SetValues(\n"
9137"                        ST_AddBand(\n"
9138"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9139"0),\n"
9140"                                '8BUI'::text, 1, 0\n"
9141"                        ),\n"
9142"                        1, 1, 1, ARRAY[\n"
9143"                                [0, 1, 1, 1, 1],\n"
9144"                                [1, 1, 1, 0, 1],\n"
9145"                                [1, 0, 1, 1, 1],\n"
9146"                                [1, 1, 1, 1, 0],\n"
9147"                                [1, 1, 0, 1, 1]\n"
9148"                        ]::double precision[],\n"
9149"                        1\n"
9150"                ) AS rast\n"
9151") AS foo\n"
9152"\n"
9153"       st_neighborhood\n"
9154"------------------------------\n"
9155" {{1,1,1},{1,NULL,1},{1,1,1}}"
9156
9157#. Tag: programlisting
9158#: reference_raster.xml:3806
9159#, no-c-format
9160msgid ""
9161"-- pixel 3x3 has value\n"
9162"-- exclude_nodata_value = FALSE\n"
9163"SELECT\n"
9164"        ST_Neighborhood(rast, 3, 3, 1, 1, false)\n"
9165"FROM (\n"
9166"                ST_SetValues(\n"
9167"                        ST_AddBand(\n"
9168"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9169"0),\n"
9170"                                '8BUI'::text, 1, 0\n"
9171"                        ),\n"
9172"                        1, 1, 1, ARRAY[\n"
9173"                                [0, 1, 1, 1, 1],\n"
9174"                                [1, 1, 1, 0, 1],\n"
9175"                                [1, 0, 1, 1, 1],\n"
9176"                                [1, 1, 1, 1, 0],\n"
9177"                                [1, 1, 0, 1, 1]\n"
9178"                        ]::double precision[],\n"
9179"                        1\n"
9180"                ) AS rast\n"
9181") AS foo\n"
9182"\n"
9183"      st_neighborhood\n"
9184"---------------------------\n"
9185" {{1,0,1},{1,1,1},{0,1,1}}"
9186msgstr ""
9187"-- 2,3ピクセルは値を持っています\n"
9188"-- exclude_nodata_value = FALSE\n"
9189"SELECT\n"
9190"        ST_Neighborhood(rast, 3, 3, 1, 1, false)\n"
9191"FROM (\n"
9192"                ST_SetValues(\n"
9193"                        ST_AddBand(\n"
9194"                                ST_MakeEmptyRaster(5, 5, -2, 2, 1, -1, 0, 0, "
9195"0),\n"
9196"                                '8BUI'::text, 1, 0\n"
9197"                        ),\n"
9198"                        1, 1, 1, ARRAY[\n"
9199"                                [0, 1, 1, 1, 1],\n"
9200"                                [1, 1, 1, 0, 1],\n"
9201"                                [1, 0, 1, 1, 1],\n"
9202"                                [1, 1, 1, 1, 0],\n"
9203"                                [1, 1, 0, 1, 1]\n"
9204"                        ]::double precision[],\n"
9205"                        1\n"
9206"                ) AS rast\n"
9207") AS foo\n"
9208"\n"
9209"      st_neighborhood\n"
9210"---------------------------\n"
9211" {{1,0,1},{1,1,1},{0,1,1}}"
9212
9213#. Tag: para
9214#: reference_raster.xml:3812
9215#, no-c-format
9216msgid ""
9217", <xref linkend=\"RT_ST_Min4ma\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, <xref "
9218"linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref linkend="
9219"\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref linkend="
9220"\"RT_ST_StdDev4ma\"/>"
9221msgstr ""
9222", <xref linkend=\"RT_ST_Min4ma\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, <xref "
9223"linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref linkend="
9224"\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref linkend="
9225"\"RT_ST_StdDev4ma\"/>"
9226
9227#. Tag: refname
9228#: reference_raster.xml:3829
9229#, no-c-format
9230msgid "ST_SetValue"
9231msgstr "ST_SetValue"
9232
9233#. Tag: refpurpose
9234#: reference_raster.xml:3830
9235#, no-c-format
9236msgid ""
9237"Returns modified raster resulting from setting the value of a given band in "
9238"a given columnx, rowy pixel or the pixels that intersect a particular "
9239"geometry. Band numbers start at 1 and assumed to be 1 if not specified."
9240msgstr ""
9241"与えられたバンドのcolumnX, columnYか、ラスタと同じ空間参照系のジオメトリポイ"
9242"ントで指定されたピクセルの値または指定したジオメトリとインタセクトするピクセ"
9243"ル群の値を設定することから得られる、変更されたラスタを返します。バンド番号は1"
9244"始まりで、指定しない場合には、1番と仮定します。"
9245
9246#. Tag: funcsynopsis
9247#: reference_raster.xml:3834
9248#, no-c-format
9249msgid ""
9250"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
9251"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9252"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
9253"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
9254"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9255"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9256"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
9257"<parameter>rast</parameter></paramdef> <paramdef><type>geometry </type> "
9258"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
9259"type> <parameter>newvalue</parameter></paramdef> </funcprototype> "
9260"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
9261"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9262"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
9263"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9264"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9265"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9266"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9267"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
9268"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
9269"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
9270"<parameter>rowy</parameter></paramdef> <paramdef><type>double precision </"
9271"type> <parameter>newvalue</parameter></paramdef> </funcprototype>"
9272msgstr ""
9273"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
9274"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9275"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
9276"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
9277"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9278"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9279"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
9280"<parameter>rast</parameter></paramdef> <paramdef><type>geometry </type> "
9281"<parameter>geom</parameter></paramdef> <paramdef><type>double precision </"
9282"type> <parameter>newvalue</parameter></paramdef> </funcprototype> "
9283"<funcprototype> <funcdef>raster <function>ST_SetValue</function></funcdef> "
9284"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9285"<paramdef><type>integer </type> <parameter>bandnum</parameter></paramdef> "
9286"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9287"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9288"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9289"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9290"<function>ST_SetValue</function></funcdef> <paramdef><type>raster </type> "
9291"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
9292"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
9293"<parameter>rowy</parameter></paramdef> <paramdef><type>double precision </"
9294"type> <parameter>newvalue</parameter></paramdef> </funcprototype>"
9295
9296#. Tag: para
9297#: reference_raster.xml:3868
9298#, no-c-format
9299msgid ""
9300"Returns modified raster resulting from setting the specified pixels' values "
9301"to new value for the designated band given the raster's row and column or a "
9302"geometry. If no band is specified, then band 1 is assumed."
9303msgstr ""
9304"指定されたバンドの、与えられたラスタの行と列またはジオメトリで指定したピクセ"
9305"ルの値を新しい値に設定することで得られる、変更したラスタを返します。バンドが"
9306"指定されいていない場合には、1番と仮定します。"
9307
9308#. Tag: para
9309#: reference_raster.xml:3871
9310#, no-c-format
9311msgid ""
9312"Enhanced: 2.1.0 Geometry variant of ST_SetValue() now supports any geometry "
9313"type, not just point. The geometry variant is a wrapper around the geomval[] "
9314"variant of ST_SetValues()"
9315msgstr ""
9316"Enhanced: 2.1.0 ST_SetValueでジオメトリを用いる形式が、ポイントだけでなくあら"
9317"ゆるジオメトリタイプに対応するようになりました。ジオメトリを用いる形式は"
9318"ST_SetValuesのgeomval[]を用いる形式をラップしたものです。"
9319
9320#. Tag: programlisting
9321#: reference_raster.xml:3877
9322#, no-c-format
9323msgid ""
9324"-- Geometry example\n"
9325"SELECT (foo.geomval).val, ST_AsText(ST_Union((foo.geomval).geom))\n"
9326"FROM (SELECT ST_DumpAsPolygons(\n"
9327"                ST_SetValue(rast,1,\n"
9328"                                ST_Point(3427927.75, 5793243.95),\n"
9329"                                50)\n"
9330"                        ) As geomval\n"
9331"FROM dummy_rast\n"
9332"where rid = 2) As foo\n"
9333"WHERE (foo.geomval).val &lt; 250\n"
9334"GROUP BY (foo.geomval).val;\n"
9335"\n"
9336" val |                                                     st_astext\n"
9337"-----+-------------------------------------------------------------------\n"
9338"  50 | POLYGON((3427927.75 5793244,3427927.75 5793243.95,3427927.8 "
9339"579324 ...\n"
9340" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 57932 ..."
9341msgstr ""
9342"-- ジオメトリの例\n"
9343"SELECT (foo.geomval).val, ST_AsText(ST_Union((foo.geomval).geom))\n"
9344"FROM (SELECT ST_DumpAsPolygons(\n"
9345"                ST_SetValue(rast,1,\n"
9346"                                ST_Point(3427927.75, 5793243.95),\n"
9347"                                50)\n"
9348"                        ) As geomval\n"
9349"FROM dummy_rast\n"
9350"where rid = 2) As foo\n"
9351"WHERE (foo.geomval).val &lt; 250\n"
9352"GROUP BY (foo.geomval).val;\n"
9353"\n"
9354" val |                                                     st_astext\n"
9355"-----+-------------------------------------------------------------------\n"
9356"  50 | POLYGON((3427927.75 5793244,3427927.75 5793243.95,3427927.8 "
9357"579324 ...\n"
9358" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 57932 ..."
9359
9360#. Tag: programlisting
9361#: reference_raster.xml:3879
9362#, no-c-format
9363msgid ""
9364"-- Store the changed raster --\n"
9365"        UPDATE dummy_rast SET rast = ST_SetValue(rast,1, "
9366"ST_Point(3427927.75, 5793243.95),100)\n"
9367"                WHERE rid = 2   ;"
9368msgstr ""
9369"-- 変更したラスタの格納 --\n"
9370"        UPDATE dummy_rast SET rast = ST_SetValue(rast,1, "
9371"ST_Point(3427927.75, 5793243.95),100)\n"
9372"                WHERE rid = 2   ;"
9373
9374#. Tag: para
9375#: reference_raster.xml:3883 reference_raster.xml:9961
9376#, no-c-format
9377msgid ", <xref linkend=\"RT_ST_DumpAsPolygons\"/>"
9378msgstr ", <xref linkend=\"RT_ST_DumpAsPolygons\"/>"
9379
9380#. Tag: refname
9381#: reference_raster.xml:3889
9382#, no-c-format
9383msgid "ST_SetValues"
9384msgstr "ST_SetValues"
9385
9386#. Tag: refpurpose
9387#: reference_raster.xml:3890
9388#, no-c-format
9389msgid ""
9390"Returns modified raster resulting from setting the values of a given band."
9391msgstr "与えられたバンドに複数の値を設定して、変更されたラスタを返します。"
9392
9393#. Tag: funcsynopsis
9394#: reference_raster.xml:3894
9395#, no-c-format
9396msgid ""
9397"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9398"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9399"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9400"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9401"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9402"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
9403"parameter></paramdef> <paramdef><type>boolean[][] </type> "
9404"<parameter>noset=NULL</parameter></paramdef> <paramdef><type>boolean </type> "
9405"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9406"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9407"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9408"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9409"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9410"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9411"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
9412"parameter></paramdef> <paramdef><type>double precision </type> "
9413"<parameter>nosetvalue</parameter></paramdef> <paramdef><type>boolean </type> "
9414"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9415"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9416"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9417"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9418"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9419"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9420"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
9421"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
9422"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9423"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
9424"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9425"<function>ST_SetValues</function></funcdef> <paramdef><type>raster </type> "
9426"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
9427"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
9428"<parameter>rowy</parameter></paramdef> <paramdef><type>integer </type> "
9429"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
9430"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
9431"type> <parameter>newvalue</parameter></paramdef> <paramdef><type>boolean </"
9432"type> <parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9433"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9434"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9435"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9436"<paramdef><type>geomval[] </type> <parameter>geomvalset</parameter></"
9437"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
9438"parameter></paramdef> </funcprototype>"
9439msgstr ""
9440"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9441"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9442"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9443"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9444"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9445"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
9446"parameter></paramdef> <paramdef><type>boolean[][] </type> "
9447"<parameter>noset=NULL</parameter></paramdef> <paramdef><type>boolean </type> "
9448"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9449"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9450"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9451"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9452"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9453"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9454"<paramdef><type>double precision[][] </type> <parameter>newvalueset</"
9455"parameter></paramdef> <paramdef><type>double precision </type> "
9456"<parameter>nosetvalue</parameter></paramdef> <paramdef><type>boolean </type> "
9457"<parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9458"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9459"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9460"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9461"<paramdef><type>integer </type> <parameter>columnx</parameter></paramdef> "
9462"<paramdef><type>integer </type> <parameter>rowy</parameter></paramdef> "
9463"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
9464"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
9465"<paramdef><type>double precision </type> <parameter>newvalue</parameter></"
9466"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
9467"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
9468"<function>ST_SetValues</function></funcdef> <paramdef><type>raster </type> "
9469"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
9470"<parameter>columnx</parameter></paramdef> <paramdef><type>integer </type> "
9471"<parameter>rowy</parameter></paramdef> <paramdef><type>integer </type> "
9472"<parameter>width</parameter></paramdef> <paramdef><type>integer </type> "
9473"<parameter>height</parameter></paramdef> <paramdef><type>double precision </"
9474"type> <parameter>newvalue</parameter></paramdef> <paramdef><type>boolean </"
9475"type> <parameter>keepnodata=FALSE</parameter></paramdef> </funcprototype> "
9476"<funcprototype> <funcdef>raster <function>ST_SetValues</function></funcdef> "
9477"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
9478"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
9479"<paramdef><type>geomval[] </type> <parameter>geomvalset</parameter></"
9480"paramdef> <paramdef><type>boolean </type> <parameter>keepnodata=FALSE</"
9481"parameter></paramdef> </funcprototype>"
9482
9483#. Tag: para
9484#: reference_raster.xml:3953
9485#, fuzzy, no-c-format
9486msgid ""
9487"Returns modified raster resulting from setting specified pixels to new "
9488"value(s) for the designated band. <varname>columnx</varname> and "
9489"<varname>rowy</varname> are 1-indexed."
9490msgstr "指定されたバンドに値を設定して、変更されたラスタを返します。"
9491
9492#. Tag: para
9493#: reference_raster.xml:3957
9494#, no-c-format
9495msgid ""
9496"If <varname>keepnodata</varname> is TRUE, those pixels whose values are "
9497"NODATA will not be set with the corresponding value in <varname>newvalueset</"
9498"varname>."
9499msgstr ""
9500"<varname>keepnodata</varname>がTRUEの場合には、NODATA値を持つピクセルは"
9501"<varname>newvalueset</varname>に一致する値に設定しません。"
9502
9503#. Tag: para
9504#: reference_raster.xml:3961
9505#, no-c-format
9506msgid ""
9507"For Variant 1, the specific pixels to be set are determined by the "
9508"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates and "
9509"the dimensions of the <varname>newvalueset</varname> array. <varname>noset</"
9510"varname> can be used to prevent pixels with values present in "
9511"<varname>newvalueset</varname> from being set (due to PostgreSQL not "
9512"permitting ragged/jagged arrays). See example Variant 1."
9513msgstr ""
9514"一つ目の形式では、設定するピクセルを<varname>columnx</varname>, "
9515"<varname>rowy</varname>のピクセル座標で決定し、 範囲を<varname>newvalueset</"
9516"varname>配列で決定します。<varname>noset</varname>によって、ピクセルを"
9517"<varname>newvalueset</varname>内にある値で、一部を設定されないようにすること"
9518"ができます (PostgreSQLは不調和配列、ジャグ配列を許さないため)。一つ目の形式の"
9519"例をご覧ください。"
9520
9521#. Tag: para
9522#: reference_raster.xml:3965
9523#, no-c-format
9524msgid ""
9525"Variant 2 is like Variant 1 but with a simple double precision "
9526"<varname>nosetvalue</varname> instead of a boolean <varname>noset</varname> "
9527"array. Elements in <varname>newvalueset</varname> with the "
9528"<varname>nosetvalue</varname> value with be skipped. See example Variant 2."
9529msgstr ""
9530"二つ目の形式では、一つ目の形式と似ていますが、倍精度浮動小数点数のスカラ値で"
9531"ある<varname>nosetvalue</varname>を<varname>noset</varname>配列の代わりに使う"
9532"点が違います。<varname>nosetvalue</varname>の値になる<varname>newvalueset</"
9533"varname>内の要素の設定は行いません。二つ目の形式の例をご覧下さい。"
9534
9535#. Tag: para
9536#: reference_raster.xml:3969
9537#, no-c-format
9538msgid ""
9539"For Variant 3, the specific pixels to be set are determined by the "
9540"<varname>columnx</varname>, <varname>rowy</varname> pixel coordinates, "
9541"<varname>width</varname> and <varname>height</varname>. See example Variant "
9542"3."
9543msgstr ""
9544"三つ目の形式では、設定するピクセルを<varname>columnx</varname>, "
9545"<varname>rowy</varname>のピクセル座標と<varname>width</varname>, "
9546"<varname>height</varname>.で決定します。三つ目の形式の例をご覧ください。"
9547
9548#. Tag: para
9549#: reference_raster.xml:3973
9550#, no-c-format
9551msgid ""
9552"Variant 4 is the same as Variant 3 with the exception that it assumes that "
9553"the first band's pixels of <varname>rast</varname> will be set."
9554msgstr ""
9555"四つ目の形式では、<varname>rast</varname>の1番バンドのピクセルを設定すると仮"
9556"定する点を除いては、三つ目の形式と同じです。"
9557
9558#. Tag: para
9559#: reference_raster.xml:3977
9560#, no-c-format
9561msgid ""
9562"For Variant 5, an array of <xref linkend=\"geomval\"/> is used to determine "
9563"the specific pixels to be set. If all the geometries in the array are of "
9564"type POINT or MULTIPOINT, the function uses a shortcut where the longitude "
9565"and latitude of each point is used to set a pixel directly. Otherwise, the "
9566"geometries are converted to rasters and then iterated through in one pass. "
9567"See example Variant 5."
9568msgstr ""
9569"五つ目の形式では、設定するピクセルを<xref linkend=\"geomval\"/>の配列で決定し"
9570"ます。配列内の全てのジオメトリのタイプがPOINTまたはMULTIPOINTである場合には、"
9571"ポイントごとの経度と緯度がピクセルの設定に直接使うためのショートカットに使わ"
9572"れます。他の場合には、ジオメトリはラスタに変換され一つずつ渡されます。五つ目"
9573"の形式の例をご覧下さい。"
9574
9575#. Tag: programlisting
9576#: reference_raster.xml:3988
9577#, no-c-format
9578msgid ""
9579"/*\n"
9580"The ST_SetValues() does the following...\n"
9581"\n"
9582"+ - + - + - +          + - + - + - +\n"
9583"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
9584"+ - + - + - +          + - + - + - +\n"
9585"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
9586"+ - + - + - +          + - + - + - +\n"
9587"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
9588"+ - + - + - +          + - + - + - +\n"
9589"*/\n"
9590"SELECT\n"
9591"        (poly).x,\n"
9592"        (poly).y,\n"
9593"        (poly).val\n"
9594"FROM (\n"
9595"SELECT\n"
9596"        ST_PixelAsPolygons(\n"
9597"                ST_SetValues(\n"
9598"                        ST_AddBand(\n"
9599"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9600"0),\n"
9601"                                1, '8BUI', 1, 0\n"
9602"                        ),\n"
9603"                        1, 2, 2, ARRAY[[9, 9], [9, 9]]::double precision[]"
9604"[]\n"
9605"                )\n"
9606"        ) AS poly\n"
9607") foo\n"
9608"ORDER BY 1, 2;\n"
9609"\n"
9610" x | y | val\n"
9611"---+---+-----\n"
9612" 1 | 1 |   1\n"
9613" 1 | 2 |   1\n"
9614" 1 | 3 |   1\n"
9615" 2 | 1 |   1\n"
9616" 2 | 2 |   9\n"
9617" 2 | 3 |   9\n"
9618" 3 | 1 |   1\n"
9619" 3 | 2 |   9\n"
9620" 3 | 3 |   9"
9621msgstr ""
9622"/*\n"
9623"ST_SetValues()によって次のように書き換わります\n"
9624"\n"
9625"+ - + - + - +          + - + - + - +\n"
9626"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
9627"+ - + - + - +          + - + - + - +\n"
9628"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
9629"+ - + - + - +          + - + - + - +\n"
9630"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
9631"+ - + - + - +          + - + - + - +\n"
9632"*/\n"
9633"SELECT\n"
9634"        (poly).x,\n"
9635"        (poly).y,\n"
9636"        (poly).val\n"
9637"FROM (\n"
9638"SELECT\n"
9639"        ST_PixelAsPolygons(\n"
9640"                ST_SetValues(\n"
9641"                        ST_AddBand(\n"
9642"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9643"0),\n"
9644"                                1, '8BUI', 1, 0\n"
9645"                        ),\n"
9646"                        1, 2, 2, ARRAY[[9, 9], [9, 9]]::double precision[]"
9647"[]\n"
9648"                )\n"
9649"        ) AS poly\n"
9650") foo\n"
9651"ORDER BY 1, 2;\n"
9652"\n"
9653" x | y | val\n"
9654"---+---+-----\n"
9655" 1 | 1 |   1\n"
9656" 1 | 2 |   1\n"
9657" 1 | 3 |   1\n"
9658" 2 | 1 |   1\n"
9659" 2 | 2 |   9\n"
9660" 2 | 3 |   9\n"
9661" 3 | 1 |   1\n"
9662" 3 | 2 |   9\n"
9663" 3 | 3 |   9"
9664
9665#. Tag: programlisting
9666#: reference_raster.xml:3990
9667#, no-c-format
9668msgid ""
9669"/*\n"
9670"The ST_SetValues() does the following...\n"
9671"\n"
9672"+ - + - + - +          + - + - + - +\n"
9673"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9674"+ - + - + - +          + - + - + - +\n"
9675"| 1 | 1 | 1 |    =>    | 9 |   | 9 |\n"
9676"+ - + - + - +          + - + - + - +\n"
9677"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9678"+ - + - + - +          + - + - + - +\n"
9679"*/\n"
9680"SELECT\n"
9681"        (poly).x,\n"
9682"        (poly).y,\n"
9683"        (poly).val\n"
9684"FROM (\n"
9685"SELECT\n"
9686"        ST_PixelAsPolygons(\n"
9687"                ST_SetValues(\n"
9688"                        ST_AddBand(\n"
9689"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9690"0),\n"
9691"                                1, '8BUI', 1, 0\n"
9692"                        ),\n"
9693"                        1, 1, 1, ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9694"double precision[][]\n"
9695"                )\n"
9696"        ) AS poly\n"
9697") foo\n"
9698"ORDER BY 1, 2;\n"
9699"\n"
9700" x | y | val\n"
9701"---+---+-----\n"
9702" 1 | 1 |   9\n"
9703" 1 | 2 |   9\n"
9704" 1 | 3 |   9\n"
9705" 2 | 1 |   9\n"
9706" 2 | 2 |\n"
9707" 2 | 3 |   9\n"
9708" 3 | 1 |   9\n"
9709" 3 | 2 |   9\n"
9710" 3 | 3 |   9"
9711msgstr ""
9712"/*\n"
9713"ST_SetValues()によって次のように書き換わります\n"
9714"\n"
9715"+ - + - + - +          + - + - + - +\n"
9716"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9717"+ - + - + - +          + - + - + - +\n"
9718"| 1 | 1 | 1 |    =>    | 9 |   | 9 |\n"
9719"+ - + - + - +          + - + - + - +\n"
9720"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9721"+ - + - + - +          + - + - + - +\n"
9722"*/\n"
9723"SELECT\n"
9724"        (poly).x,\n"
9725"        (poly).y,\n"
9726"        (poly).val\n"
9727"FROM (\n"
9728"SELECT\n"
9729"        ST_PixelAsPolygons(\n"
9730"                ST_SetValues(\n"
9731"                        ST_AddBand(\n"
9732"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9733"0),\n"
9734"                                1, '8BUI', 1, 0\n"
9735"                        ),\n"
9736"                        1, 1, 1, ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9737"double precision[][]\n"
9738"                )\n"
9739"        ) AS poly\n"
9740") foo\n"
9741"ORDER BY 1, 2;\n"
9742"\n"
9743" x | y | val\n"
9744"---+---+-----\n"
9745" 1 | 1 |   9\n"
9746" 1 | 2 |   9\n"
9747" 1 | 3 |   9\n"
9748" 2 | 1 |   9\n"
9749" 2 | 2 |\n"
9750" 2 | 3 |   9\n"
9751" 3 | 1 |   9\n"
9752" 3 | 2 |   9\n"
9753" 3 | 3 |   9"
9754
9755#. Tag: programlisting
9756#: reference_raster.xml:3992
9757#, no-c-format
9758msgid ""
9759"/*\n"
9760"The ST_SetValues() does the following...\n"
9761"\n"
9762"+ - + - + - +          + - + - + - +\n"
9763"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9764"+ - + - + - +          + - + - + - +\n"
9765"| 1 | 1 | 1 |    =>    | 1 |   | 9 |\n"
9766"+ - + - + - +          + - + - + - +\n"
9767"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9768"+ - + - + - +          + - + - + - +\n"
9769"*/\n"
9770"SELECT\n"
9771"        (poly).x,\n"
9772"        (poly).y,\n"
9773"        (poly).val\n"
9774"FROM (\n"
9775"SELECT\n"
9776"        ST_PixelAsPolygons(\n"
9777"                ST_SetValues(\n"
9778"                        ST_AddBand(\n"
9779"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9780"0),\n"
9781"                                1, '8BUI', 1, 0\n"
9782"                        ),\n"
9783"                        1, 1, 1,\n"
9784"                                ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9785"double precision[][],\n"
9786"                                ARRAY[[false], [true]]::boolean[][]\n"
9787"                )\n"
9788"        ) AS poly\n"
9789") foo\n"
9790"ORDER BY 1, 2;\n"
9791"\n"
9792" x | y | val\n"
9793"---+---+-----\n"
9794" 1 | 1 |   9\n"
9795" 1 | 2 |   1\n"
9796" 1 | 3 |   9\n"
9797" 2 | 1 |   9\n"
9798" 2 | 2 |\n"
9799" 2 | 3 |   9\n"
9800" 3 | 1 |   9\n"
9801" 3 | 2 |   9\n"
9802" 3 | 3 |   9"
9803msgstr ""
9804"/*\n"
9805"ST_SetValues()によって次のように書き換わります\n"
9806"\n"
9807"+ - + - + - +          + - + - + - +\n"
9808"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9809"+ - + - + - +          + - + - + - +\n"
9810"| 1 | 1 | 1 |    =>    | 1 |   | 9 |\n"
9811"+ - + - + - +          + - + - + - +\n"
9812"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9813"+ - + - + - +          + - + - + - +\n"
9814"*/\n"
9815"SELECT\n"
9816"        (poly).x,\n"
9817"        (poly).y,\n"
9818"        (poly).val\n"
9819"FROM (\n"
9820"SELECT\n"
9821"        ST_PixelAsPolygons(\n"
9822"                ST_SetValues(\n"
9823"                        ST_AddBand(\n"
9824"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9825"0),\n"
9826"                                1, '8BUI', 1, 0\n"
9827"                        ),\n"
9828"                        1, 1, 1,\n"
9829"                                ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9830"double precision[][],\n"
9831"                                ARRAY[[false], [true]]::boolean[][]\n"
9832"                )\n"
9833"        ) AS poly\n"
9834") foo\n"
9835"ORDER BY 1, 2;\n"
9836"\n"
9837" x | y | val\n"
9838"---+---+-----\n"
9839" 1 | 1 |   9\n"
9840" 1 | 2 |   1\n"
9841" 1 | 3 |   9\n"
9842" 2 | 1 |   9\n"
9843" 2 | 2 |\n"
9844" 2 | 3 |   9\n"
9845" 3 | 1 |   9\n"
9846" 3 | 2 |   9\n"
9847" 3 | 3 |   9"
9848
9849#. Tag: programlisting
9850#: reference_raster.xml:3994
9851#, no-c-format
9852msgid ""
9853"/*\n"
9854"The ST_SetValues() does the following...\n"
9855"\n"
9856"+ - + - + - +          + - + - + - +\n"
9857"|   | 1 | 1 |          |   | 9 | 9 |\n"
9858"+ - + - + - +          + - + - + - +\n"
9859"| 1 | 1 | 1 |    =>    | 1 |   | 9 |\n"
9860"+ - + - + - +          + - + - + - +\n"
9861"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9862"+ - + - + - +          + - + - + - +\n"
9863"*/\n"
9864"SELECT\n"
9865"        (poly).x,\n"
9866"        (poly).y,\n"
9867"        (poly).val\n"
9868"FROM (\n"
9869"SELECT\n"
9870"        ST_PixelAsPolygons(\n"
9871"                ST_SetValues(\n"
9872"                        ST_SetValue(\n"
9873"                                ST_AddBand(\n"
9874"                                        ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
9875"-1, 0, 0, 0),\n"
9876"                                        1, '8BUI', 1, 0\n"
9877"                                ),\n"
9878"                                1, 1, 1, NULL\n"
9879"                        ),\n"
9880"                        1, 1, 1,\n"
9881"                                ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9882"double precision[][],\n"
9883"                                ARRAY[[false], [true]]::boolean[][],\n"
9884"                                TRUE\n"
9885"                )\n"
9886"        ) AS poly\n"
9887") foo\n"
9888"ORDER BY 1, 2;\n"
9889"\n"
9890" x | y | val\n"
9891"---+---+-----\n"
9892" 1 | 1 |\n"
9893" 1 | 2 |   1\n"
9894" 1 | 3 |   9\n"
9895" 2 | 1 |   9\n"
9896" 2 | 2 |\n"
9897" 2 | 3 |   9\n"
9898" 3 | 1 |   9\n"
9899" 3 | 2 |   9\n"
9900" 3 | 3 |   9"
9901msgstr ""
9902"/*\n"
9903"ST_SetValues()によって次のように書き換わります\n"
9904"\n"
9905"+ - + - + - +          + - + - + - +\n"
9906"|   | 1 | 1 |          |   | 9 | 9 |\n"
9907"+ - + - + - +          + - + - + - +\n"
9908"| 1 | 1 | 1 |    =>    | 1 |   | 9 |\n"
9909"+ - + - + - +          + - + - + - +\n"
9910"| 1 | 1 | 1 |          | 9 | 9 | 9 |\n"
9911"+ - + - + - +          + - + - + - +\n"
9912"*/\n"
9913"SELECT\n"
9914"        (poly).x,\n"
9915"        (poly).y,\n"
9916"        (poly).val\n"
9917"FROM (\n"
9918"SELECT\n"
9919"        ST_PixelAsPolygons(\n"
9920"                ST_SetValues(\n"
9921"                        ST_SetValue(\n"
9922"                                ST_AddBand(\n"
9923"                                        ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
9924"-1, 0, 0, 0),\n"
9925"                                        1, '8BUI', 1, 0\n"
9926"                                ),\n"
9927"                                1, 1, 1, NULL\n"
9928"                        ),\n"
9929"                        1, 1, 1,\n"
9930"                                ARRAY[[9, 9, 9], [9, NULL, 9], [9, 9, 9]]::"
9931"double precision[][],\n"
9932"                                ARRAY[[false], [true]]::boolean[][],\n"
9933"                                TRUE\n"
9934"                )\n"
9935"        ) AS poly\n"
9936") foo\n"
9937"ORDER BY 1, 2;\n"
9938"\n"
9939" x | y | val\n"
9940"---+---+-----\n"
9941" 1 | 1 |\n"
9942" 1 | 2 |   1\n"
9943" 1 | 3 |   9\n"
9944" 2 | 1 |   9\n"
9945" 2 | 2 |\n"
9946" 2 | 3 |   9\n"
9947" 3 | 1 |   9\n"
9948" 3 | 2 |   9\n"
9949" 3 | 3 |   9"
9950
9951#. Tag: programlisting
9952#: reference_raster.xml:4001
9953#, no-c-format
9954msgid ""
9955"/*\n"
9956"The ST_SetValues() does the following...\n"
9957"\n"
9958"+ - + - + - +          + - + - + - +\n"
9959"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
9960"+ - + - + - +          + - + - + - +\n"
9961"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
9962"+ - + - + - +          + - + - + - +\n"
9963"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
9964"+ - + - + - +          + - + - + - +\n"
9965"*/\n"
9966"SELECT\n"
9967"        (poly).x,\n"
9968"        (poly).y,\n"
9969"        (poly).val\n"
9970"FROM (\n"
9971"SELECT\n"
9972"        ST_PixelAsPolygons(\n"
9973"                ST_SetValues(\n"
9974"                        ST_AddBand(\n"
9975"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
9976"0),\n"
9977"                                1, '8BUI', 1, 0\n"
9978"                        ),\n"
9979"                        1, 1, 1, ARRAY[[-1, -1, -1], [-1, 9, 9], [-1, 9, "
9980"9]]::double precision[][], -1\n"
9981"                )\n"
9982"        ) AS poly\n"
9983") foo\n"
9984"ORDER BY 1, 2;\n"
9985"\n"
9986" x | y | val\n"
9987"---+---+-----\n"
9988" 1 | 1 |   1\n"
9989" 1 | 2 |   1\n"
9990" 1 | 3 |   1\n"
9991" 2 | 1 |   1\n"
9992" 2 | 2 |   9\n"
9993" 2 | 3 |   9\n"
9994" 3 | 1 |   1\n"
9995" 3 | 2 |   9\n"
9996" 3 | 3 |   9"
9997msgstr ""
9998"/*\n"
9999"ST_SetValues()によって次のように書き換わります\n"
10000"\n"
10001"+ - + - + - +          + - + - + - +\n"
10002"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10003"+ - + - + - +          + - + - + - +\n"
10004"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
10005"+ - + - + - +          + - + - + - +\n"
10006"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10007"+ - + - + - +          + - + - + - +\n"
10008"*/\n"
10009"SELECT\n"
10010"        (poly).x,\n"
10011"        (poly).y,\n"
10012"        (poly).val\n"
10013"FROM (\n"
10014"SELECT\n"
10015"        ST_PixelAsPolygons(\n"
10016"                ST_SetValues(\n"
10017"                        ST_AddBand(\n"
10018"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
10019"0),\n"
10020"                                1, '8BUI', 1, 0\n"
10021"                        ),\n"
10022"                        1, 1, 1, ARRAY[[-1, -1, -1], [-1, 9, 9], [-1, 9, "
10023"9]]::double precision[][], -1\n"
10024"                )\n"
10025"        ) AS poly\n"
10026") foo\n"
10027"ORDER BY 1, 2;\n"
10028"\n"
10029" x | y | val\n"
10030"---+---+-----\n"
10031" 1 | 1 |   1\n"
10032" 1 | 2 |   1\n"
10033" 1 | 3 |   1\n"
10034" 2 | 1 |   1\n"
10035" 2 | 2 |   9\n"
10036" 2 | 3 |   9\n"
10037" 3 | 1 |   1\n"
10038" 3 | 2 |   9\n"
10039" 3 | 3 |   9"
10040
10041#. Tag: programlisting
10042#: reference_raster.xml:4003
10043#, no-c-format
10044msgid ""
10045"/*\n"
10046"This example is like the previous one.  Instead of nosetvalue = -1, "
10047"nosetvalue = NULL\n"
10048"\n"
10049"The ST_SetValues() does the following...\n"
10050"\n"
10051"+ - + - + - +          + - + - + - +\n"
10052"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10053"+ - + - + - +          + - + - + - +\n"
10054"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
10055"+ - + - + - +          + - + - + - +\n"
10056"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10057"+ - + - + - +          + - + - + - +\n"
10058"*/\n"
10059"SELECT\n"
10060"        (poly).x,\n"
10061"        (poly).y,\n"
10062"        (poly).val\n"
10063"FROM (\n"
10064"SELECT\n"
10065"        ST_PixelAsPolygons(\n"
10066"                ST_SetValues(\n"
10067"                        ST_AddBand(\n"
10068"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
10069"0),\n"
10070"                                1, '8BUI', 1, 0\n"
10071"                        ),\n"
10072"                        1, 1, 1, ARRAY[[NULL, NULL, NULL], [NULL, 9, 9], "
10073"[NULL, 9, 9]]::double precision[][], NULL::double precision\n"
10074"                )\n"
10075"        ) AS poly\n"
10076") foo\n"
10077"ORDER BY 1, 2;\n"
10078"\n"
10079" x | y | val\n"
10080"---+---+-----\n"
10081" 1 | 1 |   1\n"
10082" 1 | 2 |   1\n"
10083" 1 | 3 |   1\n"
10084" 2 | 1 |   1\n"
10085" 2 | 2 |   9\n"
10086" 2 | 3 |   9\n"
10087" 3 | 1 |   1\n"
10088" 3 | 2 |   9\n"
10089" 3 | 3 |   9"
10090msgstr ""
10091"/*\n"
10092"この例は上の例と似ていますが、nosetvalueを-1でなくNULLにしています。\n"
10093"\n"
10094"\n"
10095"ST_SetValues()によって次のように書き換わります\n"
10096"\n"
10097"+ - + - + - +          + - + - + - +\n"
10098"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10099"+ - + - + - +          + - + - + - +\n"
10100"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
10101"+ - + - + - +          + - + - + - +\n"
10102"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10103"+ - + - + - +          + - + - + - +\n"
10104"*/\n"
10105"SELECT\n"
10106"        (poly).x,\n"
10107"        (poly).y,\n"
10108"        (poly).val\n"
10109"FROM (\n"
10110"SELECT\n"
10111"        ST_PixelAsPolygons(\n"
10112"                ST_SetValues(\n"
10113"                        ST_AddBand(\n"
10114"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
10115"0),\n"
10116"                                1, '8BUI', 1, 0\n"
10117"                        ),\n"
10118"                        1, 1, 1, ARRAY[[NULL, NULL, NULL], [NULL, 9, 9], "
10119"[NULL, 9, 9]]::double precision[][], NULL::double precision\n"
10120"                )\n"
10121"        ) AS poly\n"
10122") foo\n"
10123"ORDER BY 1, 2;\n"
10124"\n"
10125" x | y | val\n"
10126"---+---+-----\n"
10127" 1 | 1 |   1\n"
10128" 1 | 2 |   1\n"
10129" 1 | 3 |   1\n"
10130" 2 | 1 |   1\n"
10131" 2 | 2 |   9\n"
10132" 2 | 3 |   9\n"
10133" 3 | 1 |   1\n"
10134" 3 | 2 |   9\n"
10135" 3 | 3 |   9"
10136
10137#. Tag: title
10138#: reference_raster.xml:4008 reference_raster.xml:4953
10139#, no-c-format
10140msgid "Examples: Variant 3"
10141msgstr "例: 三つ目の形式"
10142
10143#. Tag: programlisting
10144#: reference_raster.xml:4010
10145#, no-c-format
10146msgid ""
10147"/*\n"
10148"The ST_SetValues() does the following...\n"
10149"\n"
10150"+ - + - + - +          + - + - + - +\n"
10151"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10152"+ - + - + - +          + - + - + - +\n"
10153"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
10154"+ - + - + - +          + - + - + - +\n"
10155"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10156"+ - + - + - +          + - + - + - +\n"
10157"*/\n"
10158"SELECT\n"
10159"        (poly).x,\n"
10160"        (poly).y,\n"
10161"        (poly).val\n"
10162"FROM (\n"
10163"SELECT\n"
10164"        ST_PixelAsPolygons(\n"
10165"                ST_SetValues(\n"
10166"                        ST_AddBand(\n"
10167"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
10168"0),\n"
10169"                                1, '8BUI', 1, 0\n"
10170"                        ),\n"
10171"                        1, 2, 2, 2, 2, 9\n"
10172"                )\n"
10173"        ) AS poly\n"
10174") foo\n"
10175"ORDER BY 1, 2;\n"
10176"\n"
10177" x | y | val\n"
10178"---+---+-----\n"
10179" 1 | 1 |   1\n"
10180" 1 | 2 |   1\n"
10181" 1 | 3 |   1\n"
10182" 2 | 1 |   1\n"
10183" 2 | 2 |   9\n"
10184" 2 | 3 |   9\n"
10185" 3 | 1 |   1\n"
10186" 3 | 2 |   9\n"
10187" 3 | 3 |   9"
10188msgstr ""
10189"/*\n"
10190"ST_SetValues()によって次のように書き換わります\n"
10191"\n"
10192"+ - + - + - +          + - + - + - +\n"
10193"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10194"+ - + - + - +          + - + - + - +\n"
10195"| 1 | 1 | 1 |    =>    | 1 | 9 | 9 |\n"
10196"+ - + - + - +          + - + - + - +\n"
10197"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10198"+ - + - + - +          + - + - + - +\n"
10199"*/\n"
10200"SELECT\n"
10201"        (poly).x,\n"
10202"        (poly).y,\n"
10203"        (poly).val\n"
10204"FROM (\n"
10205"SELECT\n"
10206"        ST_PixelAsPolygons(\n"
10207"                ST_SetValues(\n"
10208"                        ST_AddBand(\n"
10209"                                ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, 0, 0, "
10210"0),\n"
10211"                                1, '8BUI', 1, 0\n"
10212"                        ),\n"
10213"                        1, 2, 2, 2, 2, 9\n"
10214"                )\n"
10215"        ) AS poly\n"
10216") foo\n"
10217"ORDER BY 1, 2;\n"
10218"\n"
10219" x | y | val\n"
10220"---+---+-----\n"
10221" 1 | 1 |   1\n"
10222" 1 | 2 |   1\n"
10223" 1 | 3 |   1\n"
10224" 2 | 1 |   1\n"
10225" 2 | 2 |   9\n"
10226" 2 | 3 |   9\n"
10227" 3 | 1 |   1\n"
10228" 3 | 2 |   9\n"
10229" 3 | 3 |   9"
10230
10231#. Tag: programlisting
10232#: reference_raster.xml:4012
10233#, no-c-format
10234msgid ""
10235"/*\n"
10236"The ST_SetValues() does the following...\n"
10237"\n"
10238"+ - + - + - +          + - + - + - +\n"
10239"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10240"+ - + - + - +          + - + - + - +\n"
10241"| 1 |   | 1 |    =>    | 1 |   | 9 |\n"
10242"+ - + - + - +          + - + - + - +\n"
10243"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10244"+ - + - + - +          + - + - + - +\n"
10245"*/\n"
10246"SELECT\n"
10247"        (poly).x,\n"
10248"        (poly).y,\n"
10249"        (poly).val\n"
10250"FROM (\n"
10251"SELECT\n"
10252"        ST_PixelAsPolygons(\n"
10253"                ST_SetValues(\n"
10254"                        ST_SetValue(\n"
10255"                                ST_AddBand(\n"
10256"                                        ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
10257"-1, 0, 0, 0),\n"
10258"                                        1, '8BUI', 1, 0\n"
10259"                                ),\n"
10260"                                1, 2, 2, NULL\n"
10261"                        ),\n"
10262"                        1, 2, 2, 2, 2, 9, TRUE\n"
10263"                )\n"
10264"        ) AS poly\n"
10265") foo\n"
10266"ORDER BY 1, 2;\n"
10267"\n"
10268" x | y | val\n"
10269"---+---+-----\n"
10270" 1 | 1 |   1\n"
10271" 1 | 2 |   1\n"
10272" 1 | 3 |   1\n"
10273" 2 | 1 |   1\n"
10274" 2 | 2 |\n"
10275" 2 | 3 |   9\n"
10276" 3 | 1 |   1\n"
10277" 3 | 2 |   9\n"
10278" 3 | 3 |   9"
10279msgstr ""
10280"/*\n"
10281"ST_SetValues()によって次のように書き換わります\n"
10282"\n"
10283"+ - + - + - +          + - + - + - +\n"
10284"| 1 | 1 | 1 |          | 1 | 1 | 1 |\n"
10285"+ - + - + - +          + - + - + - +\n"
10286"| 1 |   | 1 |    =>    | 1 |   | 9 |\n"
10287"+ - + - + - +          + - + - + - +\n"
10288"| 1 | 1 | 1 |          | 1 | 9 | 9 |\n"
10289"+ - + - + - +          + - + - + - +\n"
10290"*/\n"
10291"SELECT\n"
10292"        (poly).x,\n"
10293"        (poly).y,\n"
10294"        (poly).val\n"
10295"FROM (\n"
10296"SELECT\n"
10297"        ST_PixelAsPolygons(\n"
10298"                ST_SetValues(\n"
10299"                        ST_SetValue(\n"
10300"                                ST_AddBand(\n"
10301"                                        ST_MakeEmptyRaster(3, 3, 0, 0, 1, "
10302"-1, 0, 0, 0),\n"
10303"                                        1, '8BUI', 1, 0\n"
10304"                                ),\n"
10305"                                1, 2, 2, NULL\n"
10306"                        ),\n"
10307"                        1, 2, 2, 2, 2, 9, TRUE\n"
10308"                )\n"
10309"        ) AS poly\n"
10310") foo\n"
10311"ORDER BY 1, 2;\n"
10312"\n"
10313" x | y | val\n"
10314"---+---+-----\n"
10315" 1 | 1 |   1\n"
10316" 1 | 2 |   1\n"
10317" 1 | 3 |   1\n"
10318" 2 | 1 |   1\n"
10319" 2 | 2 |\n"
10320" 2 | 3 |   9\n"
10321" 3 | 1 |   1\n"
10322" 3 | 2 |   9\n"
10323" 3 | 3 |   9"
10324
10325#. Tag: title
10326#: reference_raster.xml:4017
10327#, no-c-format
10328msgid "Examples: Variant 5"
10329msgstr "例: 五つ目の形式"
10330
10331#. Tag: programlisting
10332#: reference_raster.xml:4019
10333#, no-c-format
10334msgid ""
10335"WITH foo AS (\n"
10336"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10337"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10338"), bar AS (\n"
10339"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10340"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10341"geometry geom UNION ALL\n"
10342"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10343"0 0))'::geometry geom UNION ALL\n"
10344"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10345")\n"
10346"SELECT\n"
10347"        rid, gid, ST_DumpValues(ST_SetValue(rast, 1, geom, gid))\n"
10348"FROM foo t1\n"
10349"CROSS JOIN bar t2\n"
10350"ORDER BY rid, gid;\n"
10351"\n"
10352" rid | gid |                                                                "
10353"st_dumpvalues\n"
10354"-----+-----"
10355"+---------------------------------------------------------------------------------------------------------------------------------------------\n"
10356"   1 |   1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},"
10357"{NULL,NULL,1,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,"
10358"NULL}}\")\n"
10359"   1 |   2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},{NULL,2,2,2,"
10360"NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10361"   1 |   3 | (1,\"{{3,3,3,3,3},{3,NULL,NULL,NULL,NULL},{3,NULL,NULL,NULL,"
10362"NULL},{3,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10363"   1 |   4 | (1,\"{{4,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,"
10364"NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,4}}\")\n"
10365"(4 rows)"
10366msgstr ""
10367"WITH foo AS (\n"
10368"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10369"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10370"), bar AS (\n"
10371"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10372"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10373"geometry geom UNION ALL\n"
10374"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10375"0 0))'::geometry geom UNION ALL\n"
10376"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10377")\n"
10378"SELECT\n"
10379"        rid, gid, ST_DumpValues(ST_SetValue(rast, 1, geom, gid))\n"
10380"FROM foo t1\n"
10381"CROSS JOIN bar t2\n"
10382"ORDER BY rid, gid;\n"
10383"\n"
10384" rid | gid |                                                                "
10385"st_dumpvalues\n"
10386"-----+-----"
10387"+---------------------------------------------------------------------------------------------------------------------------------------------\n"
10388"   1 |   1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},"
10389"{NULL,NULL,1,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,"
10390"NULL}}\")\n"
10391"   1 |   2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},{NULL,2,2,2,"
10392"NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10393"   1 |   3 | (1,\"{{3,3,3,3,3},{3,NULL,NULL,NULL,NULL},{3,NULL,NULL,NULL,"
10394"NULL},{3,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10395"   1 |   4 | (1,\"{{4,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,"
10396"NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,NULL},{NULL,NULL,NULL,NULL,4}}\")\n"
10397"(4 rows)"
10398
10399#. Tag: para
10400#: reference_raster.xml:4021
10401#, no-c-format
10402msgid ""
10403"The following shows that geomvals later in the array can overwrite prior "
10404"geomvals"
10405msgstr ""
10406"配列内における後のgeomvalsで前のgeomvalsを上書きできることを示しています。"
10407
10408#. Tag: programlisting
10409#: reference_raster.xml:4022
10410#, no-c-format
10411msgid ""
10412"WITH foo AS (\n"
10413"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10414"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10415"), bar AS (\n"
10416"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10417"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10418"geometry geom UNION ALL\n"
10419"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10420"0 0))'::geometry geom UNION ALL\n"
10421"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10422")\n"
10423"SELECT\n"
10424"        t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
10425"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
10426"FROM foo t1\n"
10427"CROSS JOIN bar t2\n"
10428"CROSS JOIN bar t3\n"
10429"WHERE t2.gid = 1\n"
10430"        AND t3.gid = 2\n"
10431"ORDER BY t1.rid, t2.gid, t3.gid;\n"
10432"\n"
10433" rid | gid | gid |                                                    "
10434"st_dumpvalues\n"
10435"-----+-----+-----"
10436"+---------------------------------------------------------------------------------------------------------------------\n"
10437"   1 |   1 |   2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
10438"{NULL,2,2,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10439"(1 row)"
10440msgstr ""
10441"WITH foo AS (\n"
10442"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10443"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10444"), bar AS (\n"
10445"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10446"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10447"geometry geom UNION ALL\n"
10448"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10449"0 0))'::geometry geom UNION ALL\n"
10450"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10451")\n"
10452"SELECT\n"
10453"        t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
10454"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
10455"FROM foo t1\n"
10456"CROSS JOIN bar t2\n"
10457"CROSS JOIN bar t3\n"
10458"WHERE t2.gid = 1\n"
10459"        AND t3.gid = 2\n"
10460"ORDER BY t1.rid, t2.gid, t3.gid;\n"
10461"\n"
10462" rid | gid | gid |                                                    "
10463"st_dumpvalues\n"
10464"-----+-----+-----"
10465"+---------------------------------------------------------------------------------------------------------------------\n"
10466"   1 |   1 |   2 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
10467"{NULL,2,2,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10468"(1 row)"
10469
10470#. Tag: para
10471#: reference_raster.xml:4024
10472#, no-c-format
10473msgid "This example is the opposite of the prior example"
10474msgstr "この例は前の例の逆です。"
10475
10476#. Tag: programlisting
10477#: reference_raster.xml:4025
10478#, no-c-format
10479msgid ""
10480"WITH foo AS (\n"
10481"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10482"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10483"), bar AS (\n"
10484"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10485"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10486"geometry geom UNION ALL\n"
10487"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10488"0 0))'::geometry geom UNION ALL\n"
10489"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10490")\n"
10491"SELECT\n"
10492"        t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
10493"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
10494"FROM foo t1\n"
10495"CROSS JOIN bar t2\n"
10496"CROSS JOIN bar t3\n"
10497"WHERE t2.gid = 2\n"
10498"        AND t3.gid = 1\n"
10499"ORDER BY t1.rid, t2.gid, t3.gid;\n"
10500"\n"
10501" rid | gid | gid |                                                    "
10502"st_dumpvalues\n"
10503"-----+-----+-----"
10504"+---------------------------------------------------------------------------------------------------------------------\n"
10505"   1 |   2 |   1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
10506"{NULL,2,1,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10507"(1 row)"
10508msgstr ""
10509"WITH foo AS (\n"
10510"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, "
10511"0, 0), 1, '8BUI', 0, 0) AS rast\n"
10512"), bar AS (\n"
10513"        SELECT 1 AS gid, 'SRID=0;POINT(2.5 -2.5)'::geometry geom UNION ALL\n"
10514"        SELECT 2 AS gid, 'SRID=0;POLYGON((1 -1, 4 -1, 4 -4, 1 -4, 1 -1))'::"
10515"geometry geom UNION ALL\n"
10516"        SELECT 3 AS gid, 'SRID=0;POLYGON((0 0, 5 0, 5 -1, 1 -1, 1 -4, 0 -4, "
10517"0 0))'::geometry geom UNION ALL\n"
10518"        SELECT 4 AS gid, 'SRID=0;MULTIPOINT(0 0, 4 4, 4 -4)'::geometry\n"
10519")\n"
10520"SELECT\n"
10521"        t1.rid, t2.gid, t3.gid, ST_DumpValues(ST_SetValues(rast, 1, "
10522"ARRAY[ROW(t2.geom, t2.gid), ROW(t3.geom, t3.gid)]::geomval[]))\n"
10523"FROM foo t1\n"
10524"CROSS JOIN bar t2\n"
10525"CROSS JOIN bar t3\n"
10526"WHERE t2.gid = 2\n"
10527"        AND t3.gid = 1\n"
10528"ORDER BY t1.rid, t2.gid, t3.gid;\n"
10529"\n"
10530" rid | gid | gid |                                                    "
10531"st_dumpvalues\n"
10532"-----+-----+-----"
10533"+---------------------------------------------------------------------------------------------------------------------\n"
10534"   1 |   2 |   1 | (1,\"{{NULL,NULL,NULL,NULL,NULL},{NULL,2,2,2,NULL},"
10535"{NULL,2,1,2,NULL},{NULL,2,2,2,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
10536"(1 row)"
10537
10538#. Tag: para
10539#: reference_raster.xml:4032
10540#, no-c-format
10541msgid ""
10542", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_PixelAsPolygons"
10543"\"/>"
10544msgstr ""
10545", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_PixelAsPolygons"
10546"\"/>"
10547
10548#. Tag: refname
10549#: reference_raster.xml:4042
10550#, no-c-format
10551msgid "ST_DumpValues"
10552msgstr "ST_DumpValues"
10553
10554#. Tag: refpurpose
10555#: reference_raster.xml:4043
10556#, no-c-format
10557msgid "Get the values of the specified band as a 2-dimension array."
10558msgstr "指定したバンドの値を2次元で得ます。"
10559
10560#. Tag: funcsynopsis
10561#: reference_raster.xml:4049
10562#, no-c-format
10563msgid ""
10564"<funcprototype> <funcdef>setof record <function>ST_DumpValues</function></"
10565"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
10566"paramdef> <paramdef> <type>integer[] </type> <parameter>nband=NULL</"
10567"parameter> </paramdef> <paramdef> <type>boolean </type> "
10568"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
10569"funcprototype> <funcprototype> <funcdef>double precision[][] "
10570"<function>ST_DumpValues</function></funcdef> <paramdef> <type>raster </type> "
10571"<parameter>rast</parameter> </paramdef> <paramdef> <type>integer </type> "
10572"<parameter>nband</parameter> </paramdef> <paramdef> <type>boolean </type> "
10573"<parameter>exclude_nodata_value=true</parameter> </paramdef> </funcprototype>"
10574msgstr ""
10575"<funcprototype> <funcdef>setof record <function>ST_DumpValues</function></"
10576"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
10577"paramdef> <paramdef> <type>integer[] </type> <parameter>nband=NULL</"
10578"parameter> </paramdef> <paramdef> <type>boolean </type> "
10579"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
10580"funcprototype> <funcprototype> <funcdef>double precision[][] "
10581"<function>ST_DumpValues</function></funcdef> <paramdef> <type>raster </type> "
10582"<parameter>rast</parameter> </paramdef> <paramdef> <type>integer </type> "
10583"<parameter>nband</parameter> </paramdef> <paramdef> <type>boolean </type> "
10584"<parameter>exclude_nodata_value=true</parameter> </paramdef> </funcprototype>"
10585
10586#. Tag: para
10587#: reference_raster.xml:4080
10588#, no-c-format
10589msgid ""
10590"Get the values of the specified band as a 2-dimension array (first index is "
10591"row, second is column). If <varname>nband</varname> is NULL or not provided, "
10592"all raster bands are processed."
10593msgstr ""
10594"指定したバンドの値を2次元で得ます (一つ目の添え字で行、二つ目の添え字で列に、"
10595"それぞれ対応します)。<varname>nband</varname>がNULLまたは指定されていない場合"
10596"には、全てのラスタバンドが処理されます。"
10597
10598#. Tag: programlisting
10599#: reference_raster.xml:4090
10600#, no-c-format
10601msgid ""
10602"WITH foo AS (\n"
10603"        SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
10604"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
10605"'16BSI', 0, 0) AS rast\n"
10606")\n"
10607"SELECT\n"
10608"        (ST_DumpValues(rast)).*\n"
10609"FROM foo;\n"
10610"\n"
10611" nband |                       valarray\n"
10612"-------+------------------------------------------------------\n"
10613"     1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
10614"     2 | {{3,3,3},{3,3,3},{3,3,3}}\n"
10615"     3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
10616"(3 rows)"
10617msgstr ""
10618"WITH foo AS (\n"
10619"        SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
10620"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
10621"'16BSI', 0, 0) AS rast\n"
10622")\n"
10623"SELECT\n"
10624"        (ST_DumpValues(rast)).*\n"
10625"FROM foo;\n"
10626"\n"
10627" nband |                       valarray\n"
10628"-------+------------------------------------------------------\n"
10629"     1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
10630"     2 | {{3,3,3},{3,3,3},{3,3,3}}\n"
10631"     3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
10632"(3 rows)"
10633
10634#. Tag: programlisting
10635#: reference_raster.xml:4092
10636#, no-c-format
10637msgid ""
10638"WITH foo AS (\n"
10639"        SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
10640"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
10641"'16BSI', 0, 0) AS rast\n"
10642")\n"
10643"SELECT\n"
10644"        (ST_DumpValues(rast, ARRAY[3, 1])).*\n"
10645"FROM foo;\n"
10646"\n"
10647" nband |                       valarray\n"
10648"-------+------------------------------------------------------\n"
10649"     3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
10650"     1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
10651"(2 rows)"
10652msgstr ""
10653"WITH foo AS (\n"
10654"        SELECT ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, "
10655"0, 1, -1, 0, 0, 0), 1, '8BUI'::text, 1, 0), 2, '32BF'::text, 3, -9999), 3, "
10656"'16BSI', 0, 0) AS rast\n"
10657")\n"
10658"SELECT\n"
10659"        (ST_DumpValues(rast, ARRAY[3, 1])).*\n"
10660"FROM foo;\n"
10661"\n"
10662" nband |                       valarray\n"
10663"-------+------------------------------------------------------\n"
10664"     3 | {{NULL,NULL,NULL},{NULL,NULL,NULL},{NULL,NULL,NULL}}\n"
10665"     1 | {{1,1,1},{1,1,1},{1,1,1}}\n"
10666"(2 rows)"
10667
10668#. Tag: programlisting
10669#: reference_raster.xml:4093
10670#, no-c-format
10671msgid ""
10672"WITH foo AS (\n"
10673"        SELECT ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
10674"0, 0, 0), 1, '8BUI', 1, 0), 1, 2, 5) AS rast\n"
10675")\n"
10676"SELECT\n"
10677"        (ST_DumpValues(rast, 1))[2][1]\n"
10678"FROM foo;\n"
10679"\n"
10680" st_dumpvalues\n"
10681"---------------\n"
10682"             5\n"
10683"(1 row)"
10684msgstr ""
10685"WITH foo AS (\n"
10686"        SELECT ST_SetValue(ST_AddBand(ST_MakeEmptyRaster(3, 3, 0, 0, 1, -1, "
10687"0, 0, 0), 1, '8BUI', 1, 0), 1, 2, 5) AS rast\n"
10688")\n"
10689"SELECT\n"
10690"        (ST_DumpValues(rast, 1))[2][1]\n"
10691"FROM foo;\n"
10692"\n"
10693" st_dumpvalues\n"
10694"---------------\n"
10695"             5\n"
10696"(1 row)"
10697
10698#. Tag: para
10699#: reference_raster.xml:4098
10700#, no-c-format
10701msgid ""
10702", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_SetValues\"/>"
10703msgstr ""
10704", <xref linkend=\"RT_ST_SetValue\"/>, <xref linkend=\"RT_ST_SetValues\"/>"
10705
10706#. Tag: refname
10707#: reference_raster.xml:4109
10708#, no-c-format
10709msgid "ST_PixelOfValue"
10710msgstr "ST_PixelOfValue"
10711
10712#. Tag: refpurpose
10713#: reference_raster.xml:4110
10714#, no-c-format
10715msgid ""
10716"Get the columnx, rowy coordinates of the pixel whose value equals the search "
10717"value."
10718msgstr "検索値と同じ値を持つピクセルのcolumnx, rowyピクセル座標を得ます。"
10719
10720#. Tag: funcsynopsis
10721#: reference_raster.xml:4116
10722#, no-c-format
10723msgid ""
10724"<funcprototype> <funcdef>setof record <function>ST_PixelOfValue</function></"
10725"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
10726"paramdef> <paramdef> <type>integer </type> <parameter>nband</parameter> </"
10727"paramdef> <paramdef> <type>double precision[] </type> <parameter>search</"
10728"parameter> </paramdef> <paramdef> <type>boolean </type> "
10729"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
10730"funcprototype> <funcprototype> <funcdef>setof record "
10731"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10732"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
10733"precision[] </type> <parameter>search</parameter> </paramdef> <paramdef> "
10734"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10735"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
10736"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10737"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>integer </"
10738"type> <parameter>nband</parameter> </paramdef> <paramdef> <type>double "
10739"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
10740"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10741"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
10742"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10743"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
10744"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
10745"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10746"paramdef> </funcprototype>"
10747msgstr ""
10748"<funcprototype> <funcdef>setof record <function>ST_PixelOfValue</function></"
10749"funcdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
10750"paramdef> <paramdef> <type>integer </type> <parameter>nband</parameter> </"
10751"paramdef> <paramdef> <type>double precision[] </type> <parameter>search</"
10752"parameter> </paramdef> <paramdef> <type>boolean </type> "
10753"<parameter>exclude_nodata_value=true</parameter> </paramdef> </"
10754"funcprototype> <funcprototype> <funcdef>setof record "
10755"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10756"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
10757"precision[] </type> <parameter>search</parameter> </paramdef> <paramdef> "
10758"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10759"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
10760"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10761"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>integer </"
10762"type> <parameter>nband</parameter> </paramdef> <paramdef> <type>double "
10763"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
10764"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10765"paramdef> </funcprototype> <funcprototype> <funcdef>setof record "
10766"<function>ST_PixelOfValue</function></funcdef> <paramdef> <type>raster </"
10767"type> <parameter>rast</parameter> </paramdef> <paramdef> <type>double "
10768"precision </type> <parameter>search</parameter> </paramdef> <paramdef> "
10769"<type>boolean </type> <parameter>exclude_nodata_value=true</parameter> </"
10770"paramdef> </funcprototype>"
10771
10772#. Tag: para
10773#: reference_raster.xml:4177
10774#, no-c-format
10775msgid ""
10776"Get the columnx, rowy coordinates of the pixel whose value equals the search "
10777"value. If no band is specified, then band 1 is assumed."
10778msgstr ""
10779"検索値と同じ値を持つピクセルのcolumnx, rowyピクセル座標を得ます。バンドを指定"
10780"しない場合には、1番と仮定します。"
10781
10782#. Tag: programlisting
10783#: reference_raster.xml:4186
10784#, no-c-format
10785msgid ""
10786"SELECT\n"
10787"        (pixels).*\n"
10788"FROM (\n"
10789"        SELECT\n"
10790"                ST_PixelOfValue(\n"
10791"                        ST_SetValue(\n"
10792"                                ST_SetValue(\n"
10793"                                        ST_SetValue(\n"
10794"                                                ST_SetValue(\n"
10795"                                                        ST_SetValue(\n"
10796"                                                                ST_AddBand(\n"
10797"                                                                        ST_MakeEmptyRaster(5, "
10798"5, -2, 2, 1, -1, 0, 0, 0),\n"
10799"                                                                        '8BUI'::"
10800"text, 1, 0\n"
10801"                                                                ),\n"
10802"                                                                1, 1, 0\n"
10803"                                                        ),\n"
10804"                                                        2, 3, 0\n"
10805"                                                ),\n"
10806"                                                3, 5, 0\n"
10807"                                        ),\n"
10808"                                        4, 2, 0\n"
10809"                                ),\n"
10810"                                5, 4, 255\n"
10811"                        )\n"
10812"                , 1, ARRAY[1, 255]) AS pixels\n"
10813") AS foo\n"
10814"\n"
10815" val | x | y\n"
10816"-----+---+---\n"
10817"   1 | 1 | 2\n"
10818"   1 | 1 | 3\n"
10819"   1 | 1 | 4\n"
10820"   1 | 1 | 5\n"
10821"   1 | 2 | 1\n"
10822"   1 | 2 | 2\n"
10823"   1 | 2 | 4\n"
10824"   1 | 2 | 5\n"
10825"   1 | 3 | 1\n"
10826"   1 | 3 | 2\n"
10827"   1 | 3 | 3\n"
10828"   1 | 3 | 4\n"
10829"   1 | 4 | 1\n"
10830"   1 | 4 | 3\n"
10831"   1 | 4 | 4\n"
10832"   1 | 4 | 5\n"
10833"   1 | 5 | 1\n"
10834"   1 | 5 | 2\n"
10835"   1 | 5 | 3\n"
10836" 255 | 5 | 4\n"
10837"   1 | 5 | 5"
10838msgstr ""
10839"SELECT\n"
10840"        (pixels).*\n"
10841"FROM (\n"
10842"        SELECT\n"
10843"                ST_PixelOfValue(\n"
10844"                        ST_SetValue(\n"
10845"                                ST_SetValue(\n"
10846"                                        ST_SetValue(\n"
10847"                                                ST_SetValue(\n"
10848"                                                        ST_SetValue(\n"
10849"                                                                ST_AddBand(\n"
10850"                                                                        ST_MakeEmptyRaster(5, "
10851"5, -2, 2, 1, -1, 0, 0, 0),\n"
10852"                                                                        '8BUI'::"
10853"text, 1, 0\n"
10854"                                                                ),\n"
10855"                                                                1, 1, 0\n"
10856"                                                        ),\n"
10857"                                                        2, 3, 0\n"
10858"                                                ),\n"
10859"                                                3, 5, 0\n"
10860"                                        ),\n"
10861"                                        4, 2, 0\n"
10862"                                ),\n"
10863"                                5, 4, 255\n"
10864"                        )\n"
10865"                , 1, ARRAY[1, 255]) AS pixels\n"
10866") AS foo\n"
10867"\n"
10868" val | x | y\n"
10869"-----+---+---\n"
10870"   1 | 1 | 2\n"
10871"   1 | 1 | 3\n"
10872"   1 | 1 | 4\n"
10873"   1 | 1 | 5\n"
10874"   1 | 2 | 1\n"
10875"   1 | 2 | 2\n"
10876"   1 | 2 | 4\n"
10877"   1 | 2 | 5\n"
10878"   1 | 3 | 1\n"
10879"   1 | 3 | 2\n"
10880"   1 | 3 | 3\n"
10881"   1 | 3 | 4\n"
10882"   1 | 4 | 1\n"
10883"   1 | 4 | 3\n"
10884"   1 | 4 | 4\n"
10885"   1 | 4 | 5\n"
10886"   1 | 5 | 1\n"
10887"   1 | 5 | 2\n"
10888"   1 | 5 | 3\n"
10889" 255 | 5 | 4\n"
10890"   1 | 5 | 5"
10891
10892#. Tag: title
10893#: reference_raster.xml:4194
10894#, no-c-format
10895msgid "Raster Editors"
10896msgstr "ラスタエディタ"
10897
10898#. Tag: refname
10899#: reference_raster.xml:4198
10900#, no-c-format
10901msgid "ST_SetGeoReference"
10902msgstr "ST_SetGeoReference"
10903
10904#. Tag: refpurpose
10905#: reference_raster.xml:4199
10906#, no-c-format
10907msgid ""
10908"Set Georeference 6 georeference parameters in a single call. Numbers should "
10909"be separated by white space. Accepts inputs in GDAL or ESRI format. Default "
10910"is GDAL."
10911msgstr ""
10912"地理参照6パラメタを一度に設定します。数値は空白で区切ります。GDALまたはESRI書"
10913"式の入力を受け付けます。デフォルトはGDALです。"
10914
10915#. Tag: funcsynopsis
10916#: reference_raster.xml:4203
10917#, no-c-format
10918msgid ""
10919"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
10920"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
10921"paramdef> <paramdef><type>text </type> <parameter>georefcoords</parameter></"
10922"paramdef> <paramdef choice=\"opt\"><type>text </type> "
10923"<parameter>format=GDAL</parameter></paramdef> </funcprototype> "
10924"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
10925"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
10926"paramdef> <paramdef><type>double precision </type> <parameter>upperleftx</"
10927"parameter></paramdef> <paramdef><type>double precision </type> "
10928"<parameter>upperlefty</parameter></paramdef> <paramdef><type>double "
10929"precision </type> <parameter>scalex</parameter></paramdef> "
10930"<paramdef><type>double precision </type> <parameter>scaley</parameter></"
10931"paramdef> <paramdef><type>double precision </type> <parameter>skewx</"
10932"parameter></paramdef> <paramdef><type>double precision </type> "
10933"<parameter>skewy</parameter></paramdef> </funcprototype>"
10934msgstr ""
10935"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
10936"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
10937"paramdef> <paramdef><type>text </type> <parameter>georefcoords</parameter></"
10938"paramdef> <paramdef choice=\"opt\"><type>text </type> "
10939"<parameter>format=GDAL</parameter></paramdef> </funcprototype> "
10940"<funcprototype> <funcdef>raster <function>ST_SetGeoReference</function></"
10941"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
10942"paramdef> <paramdef><type>double precision </type> <parameter>upperleftx</"
10943"parameter></paramdef> <paramdef><type>double precision </type> "
10944"<parameter>upperlefty</parameter></paramdef> <paramdef><type>double "
10945"precision </type> <parameter>scalex</parameter></paramdef> "
10946"<paramdef><type>double precision </type> <parameter>scaley</parameter></"
10947"paramdef> <paramdef><type>double precision </type> <parameter>skewx</"
10948"parameter></paramdef> <paramdef><type>double precision </type> "
10949"<parameter>skewy</parameter></paramdef> </funcprototype>"
10950
10951#. Tag: para
10952#: reference_raster.xml:4229
10953#, no-c-format
10954msgid ""
10955"Set Georeference 6 georeference parameters in a single call. Accepts inputs "
10956"in 'GDAL' or 'ESRI' format. Default is GDAL. If 6 coordinates are not "
10957"provided will return null."
10958msgstr ""
10959"地理参照6パラメタを一度に設定します。'GDAL'または'ESRI'書式の入力を受け付けま"
10960"す。デフォルトはGDALです。6パラメタが与えられない場合には、NULLを返します。"
10961
10962#. Tag: programlisting
10963#: reference_raster.xml:4232
10964#, no-c-format
10965msgid "scalex skewy skewx scaley upperleftx upperlefty"
10966msgstr "scalex skewy skewx scaley upperleftx upperlefty"
10967
10968#. Tag: programlisting
10969#: reference_raster.xml:4234
10970#, no-c-format
10971msgid ""
10972"scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5"
10973msgstr ""
10974"scalex skewy skewx scaley upperleftx + scalex*0.5 upperlefty + scaley*0.5"
10975
10976#. Tag: para
10977#: reference_raster.xml:4237
10978#, no-c-format
10979msgid ""
10980"If the raster has out-db bands, changing the georeference may result in "
10981"incorrect access of the band's externally stored data."
10982msgstr ""
10983"ラスタがデータベース外のバンドを持っている場合には、地理参照の変更によって、"
10984"バンドの外部保存されているデータに正しくアクセスできなくなることがあります。"
10985
10986#. Tag: para
10987#: reference_raster.xml:4242
10988#, no-c-format
10989msgid ""
10990"Enhanced: 2.1.0 Addition of ST_SetGeoReference(raster, double "
10991"precision, ...) variant"
10992msgstr ""
10993"Enhanced: 2.1.0 ST_SetGeoReference(raster, double precision, ...)形式を追加し"
10994"ました。"
10995
10996#. Tag: programlisting
10997#: reference_raster.xml:4249
10998#, no-c-format
10999msgid ""
11000"WITH foo AS (\n"
11001"        SELECT ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0) AS rast\n"
11002")\n"
11003"SELECT\n"
11004"        0 AS rid, (ST_Metadata(rast)).*\n"
11005"FROM foo\n"
11006"UNION ALL\n"
11007"SELECT\n"
11008"        1, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 0.1 0.1', "
11009"'GDAL'))).*\n"
11010"FROM foo\n"
11011"UNION ALL\n"
11012"SELECT\n"
11013"        2, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 5.1 -4.9', "
11014"'ESRI'))).*\n"
11015"FROM foo\n"
11016"UNION ALL\n"
11017"SELECT\n"
11018"        3, (ST_Metadata(ST_SetGeoReference(rast, 1, 1, 10, -10, 0.001, "
11019"0.001))).*\n"
11020"FROM foo\n"
11021"\n"
11022" rid |     upperleftx     |     upperlefty     | width | height | scalex | "
11023"scaley | skewx | skewy | srid | numbands\n"
11024"-----+--------------------+--------------------+-------+--------+--------"
11025"+--------+-------+-------+------+----------\n"
11026"   0 |                  0 |                  0 |     5 |      5 |      1 "
11027"|     -1 |     0 |     0 |    0 |        0\n"
11028"   1 |                0.1 |                0.1 |     5 |      5 |     10 "
11029"|    -10 |     0 |     0 |    0 |        0\n"
11030"   2 | 0.0999999999999996 | 0.0999999999999996 |     5 |      5 |     10 "
11031"|    -10 |     0 |     0 |    0 |        0\n"
11032"   3 |                  1 |                  1 |     5 |      5 |     10 "
11033"|    -10 | 0.001 | 0.001 |    0 |        0"
11034msgstr ""
11035"WITH foo AS (\n"
11036"        SELECT ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0) AS rast\n"
11037")\n"
11038"SELECT\n"
11039"        0 AS rid, (ST_Metadata(rast)).*\n"
11040"FROM foo\n"
11041"UNION ALL\n"
11042"SELECT\n"
11043"        1, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 0.1 0.1', "
11044"'GDAL'))).*\n"
11045"FROM foo\n"
11046"UNION ALL\n"
11047"SELECT\n"
11048"        2, (ST_Metadata(ST_SetGeoReference(rast, '10 0 0 -10 5.1 -4.9', "
11049"'ESRI'))).*\n"
11050"FROM foo\n"
11051"UNION ALL\n"
11052"SELECT\n"
11053"        3, (ST_Metadata(ST_SetGeoReference(rast, 1, 1, 10, -10, 0.001, "
11054"0.001))).*\n"
11055"FROM foo\n"
11056"\n"
11057" rid |     upperleftx     |     upperlefty     | width | height | scalex | "
11058"scaley | skewx | skewy | srid | numbands\n"
11059"-----+--------------------+--------------------+-------+--------+--------"
11060"+--------+-------+-------+------+----------\n"
11061"   0 |                  0 |                  0 |     5 |      5 |      1 "
11062"|     -1 |     0 |     0 |    0 |        0\n"
11063"   1 |                0.1 |                0.1 |     5 |      5 |     10 "
11064"|    -10 |     0 |     0 |    0 |        0\n"
11065"   2 | 0.0999999999999996 | 0.0999999999999996 |     5 |      5 |     10 "
11066"|    -10 |     0 |     0 |    0 |        0\n"
11067"   3 |                  1 |                  1 |     5 |      5 |     10 "
11068"|    -10 | 0.001 | 0.001 |    0 |        0"
11069
11070#. Tag: para
11071#: reference_raster.xml:4254
11072#, no-c-format
11073msgid ""
11074", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
11075"linkend=\"RT_ST_UpperLeftX\"/>, <xref linkend=\"RT_ST_UpperLeftY\"/>"
11076msgstr ""
11077", <xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
11078"linkend=\"RT_ST_UpperLeftX\"/>, <xref linkend=\"RT_ST_UpperLeftY\"/>"
11079
11080#. Tag: refname
11081#: reference_raster.xml:4260
11082#, no-c-format
11083msgid "ST_SetRotation"
11084msgstr "ST_SetRotation"
11085
11086#. Tag: refpurpose
11087#: reference_raster.xml:4261
11088#, no-c-format
11089msgid "Set the rotation of the raster in radian."
11090msgstr "ラスタの回転をラジアン単位で設定します。"
11091
11092#. Tag: funcprototype
11093#: reference_raster.xml:4266
11094#, no-c-format
11095msgid ""
11096"<funcdef>float8 <function>ST_SetRotation</function></funcdef> "
11097"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef> "
11098"<paramdef><type>float8</type> <parameter>rotation</parameter></paramdef>"
11099msgstr ""
11100"<funcdef>float8 <function>ST_SetRotation</function></funcdef> "
11101"<paramdef><type>raster</type> <parameter>rast</parameter></paramdef> "
11102"<paramdef><type>float8</type> <parameter>rotation</parameter></paramdef>"
11103
11104#. Tag: para
11105#: reference_raster.xml:4277
11106#, no-c-format
11107msgid ""
11108"Uniformly rotate the raster. Rotation is in radian. Refer to <ulink url="
11109"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> for more "
11110"details."
11111msgstr ""
11112"ラスタを回転させます。回転はラジアン単位です。詳細については<ulink url="
11113"\"http://en.wikipedia.org/wiki/World_file\">World File</ulink> (英語版"
11114"WikiPedia)をご覧下さい。"
11115
11116#. Tag: programlisting
11117#: reference_raster.xml:4283
11118#, no-c-format
11119msgid ""
11120"SELECT\n"
11121"  ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),\n"
11122"  ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)\n"
11123"FROM (\n"
11124"  SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast\n"
11125") AS foo;\n"
11126"      st_scalex      |      st_scaley      |      st_skewx      |      "
11127"st_skewy      | st_scalex | st_scaley | st_skewx | st_skewy\n"
11128"---------------------+---------------------+--------------------"
11129"+--------------------+-----------+-----------+----------+----------\n"
11130"   -1.51937582571764 |   -2.27906373857646 |   1.95086352047135 |   "
11131"1.30057568031423 |         2 |         3 |        0 |        0\n"
11132" -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | "
11133"0.0325143920078558 |      0.05 |     -0.05 |        0 |        0"
11134msgstr ""
11135"SELECT\n"
11136"  ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),\n"
11137"  ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)\n"
11138"FROM (\n"
11139"  SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast\n"
11140") AS foo;\n"
11141"      st_scalex      |      st_scaley      |      st_skewx      |      "
11142"st_skewy      | st_scalex | st_scaley | st_skewx | st_skewy\n"
11143"---------------------+---------------------+--------------------"
11144"+--------------------+-----------+-----------+----------+----------\n"
11145"   -1.51937582571764 |   -2.27906373857646 |   1.95086352047135 |   "
11146"1.30057568031423 |         2 |         3 |        0 |        0\n"
11147" -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | "
11148"0.0325143920078558 |      0.05 |     -0.05 |        0 |        0"
11149
11150#. Tag: refname
11151#: reference_raster.xml:4296
11152#, no-c-format
11153msgid "ST_SetScale"
11154msgstr "ST_SetScale"
11155
11156#. Tag: refpurpose
11157#: reference_raster.xml:4297
11158#, no-c-format
11159msgid ""
11160"Sets the X and Y size of pixels in units of coordinate reference system. "
11161"Number units/pixel width/height."
11162msgstr ""
11163"ピクセルサイズのX値とY値を空間参照系の単位で設定します。数値は単位/ピクセルの"
11164"幅または高さです。"
11165
11166#. Tag: funcsynopsis
11167#: reference_raster.xml:4301
11168#, no-c-format
11169msgid ""
11170"<funcprototype> <funcdef>raster <function>ST_SetScale</function></funcdef> "
11171"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11172"<paramdef><type>float8 </type> <parameter>xy</parameter></paramdef> </"
11173"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetScale</"
11174"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
11175"parameter></paramdef> <paramdef><type>float8 </type> <parameter>x</"
11176"parameter></paramdef> <paramdef><type>float8 </type> <parameter>y</"
11177"parameter></paramdef> </funcprototype>"
11178msgstr ""
11179"<funcprototype> <funcdef>raster <function>ST_SetScale</function></funcdef> "
11180"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11181"<paramdef><type>float8 </type> <parameter>xy</parameter></paramdef> </"
11182"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetScale</"
11183"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
11184"parameter></paramdef> <paramdef><type>float8 </type> <parameter>x</"
11185"parameter></paramdef> <paramdef><type>float8 </type> <parameter>y</"
11186"parameter></paramdef> </funcprototype>"
11187
11188#. Tag: para
11189#: reference_raster.xml:4320
11190#, no-c-format
11191msgid ""
11192"Sets the X and Y size of pixels in units of coordinate reference system. "
11193"Number units/pixel width/height. If only one unit passed in, assumed X and Y "
11194"are the same number."
11195msgstr ""
11196"ピクセルサイズのX値とY値を空間参照系の単位で設定します。数値は単位/ピクセルの"
11197"幅または高さです。一つだけ渡した場合には、X値とY値は同じ値に設定されます。"
11198
11199#. Tag: para
11200#: reference_raster.xml:4323
11201#, no-c-format
11202msgid ""
11203"ST_SetScale is different from <xref linkend=\"RT_ST_Rescale\"/> in that "
11204"ST_SetScale do not resample the raster to match the raster extent. It only "
11205"changes the metadata (or georeference) of the raster to correct an "
11206"originally mis-specified scaling. ST_Rescale results in a raster having "
11207"different width and height computed to fit the geographic extent of the "
11208"input raster. ST_SetScale do not modify the width, nor the height of the "
11209"raster."
11210msgstr ""
11211"ST_SetScaleはラスタの範囲をあわせるためのリサンプリングをしない点で<xref "
11212"linkend=\"RT_ST_Rescale\"/>と異なります。根本的に誤った設定を行ったのを訂正す"
11213"るためにラスタのメタデータ (地理参照)を変更するだけです。ST_Rescaleは、入力ラ"
11214"スタの地理範囲に合わせて計算された幅、高さを持つラスタを返します。ST_SetScale"
11215"はラスタの幅も高さも変更しません。"
11216
11217#. Tag: para
11218#: reference_raster.xml:4325
11219#, no-c-format
11220msgid ""
11221"Changed: 2.0.0 In WKTRaster versions this was called ST_SetPixelSize. This "
11222"was changed in 2.0.0."
11223msgstr ""
11224"Changed: 2.0.0 WKTRaster版では、ST_SetPixelSizeと呼ばれていました。2.0.0で変"
11225"更されました。"
11226
11227#. Tag: programlisting
11228#: reference_raster.xml:4331
11229#, no-c-format
11230msgid ""
11231"UPDATE dummy_rast\n"
11232"        SET rast = ST_SetScale(rast, 1.5)\n"
11233"WHERE rid = 2;\n"
11234"\n"
11235"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
11236"newbox\n"
11237"FROM dummy_rast\n"
11238"WHERE rid = 2;\n"
11239"\n"
11240" pixx | pixy |                    newbox\n"
11241"------+------+----------------------------------------------\n"
11242"  1.5 |  1.5 | BOX(3427927.75 5793244 0, 3427935.25 5793251.5 0)"
11243msgstr ""
11244"UPDATE dummy_rast\n"
11245"        SET rast = ST_SetScale(rast, 1.5)\n"
11246"WHERE rid = 2;\n"
11247"\n"
11248"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
11249"newbox\n"
11250"FROM dummy_rast\n"
11251"WHERE rid = 2;\n"
11252"\n"
11253" pixx | pixy |                    newbox\n"
11254"------+------+----------------------------------------------\n"
11255"  1.5 |  1.5 | BOX(3427927.75 5793244 0, 3427935.25 5793251.5 0)"
11256
11257#. Tag: programlisting
11258#: reference_raster.xml:4332
11259#, no-c-format
11260msgid ""
11261"UPDATE dummy_rast\n"
11262"        SET rast = ST_SetScale(rast, 1.5, 0.55)\n"
11263"WHERE rid = 2;\n"
11264"\n"
11265"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
11266"newbox\n"
11267"FROM dummy_rast\n"
11268"WHERE rid = 2;\n"
11269"\n"
11270" pixx | pixy |                   newbox\n"
11271"------+------+--------------------------------------------\n"
11272"  1.5 | 0.55 | BOX(3427927.75 5793244 0,3427935.25 5793247 0)"
11273msgstr ""
11274"UPDATE dummy_rast\n"
11275"        SET rast = ST_SetScale(rast, 1.5, 0.55)\n"
11276"WHERE rid = 2;\n"
11277"\n"
11278"SELECT ST_ScaleX(rast) As pixx, ST_ScaleY(rast) As pixy, Box3D(rast) As "
11279"newbox\n"
11280"FROM dummy_rast\n"
11281"WHERE rid = 2;\n"
11282"\n"
11283" pixx | pixy |                   newbox\n"
11284"------+------+--------------------------------------------\n"
11285"  1.5 | 0.55 | BOX(3427927.75 5793244 0,3427935.25 5793247 0)"
11286
11287#. Tag: para
11288#: reference_raster.xml:4338
11289#, no-c-format
11290msgid ", <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_Box3D\"/>"
11291msgstr ", <xref linkend=\"RT_ST_ScaleY\"/>, <xref linkend=\"RT_Box3D\"/>"
11292
11293#. Tag: refname
11294#: reference_raster.xml:4344
11295#, no-c-format
11296msgid "ST_SetSkew"
11297msgstr "ST_SetSkew"
11298
11299#. Tag: refpurpose
11300#: reference_raster.xml:4345
11301#, no-c-format
11302msgid ""
11303"Sets the georeference X and Y skew (or rotation parameter). If only one is "
11304"passed in, sets X and Y to the same value."
11305msgstr ""
11306"地理参照のスキュー (回転パラメタ)のX値とY値を設定します。一つだけ渡した場合に"
11307"は、X値とY値は同じ値に設定されます。"
11308
11309#. Tag: funcsynopsis
11310#: reference_raster.xml:4349
11311#, no-c-format
11312msgid ""
11313"<funcprototype> <funcdef>raster <function>ST_SetSkew</function></funcdef> "
11314"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11315"<paramdef><type>float8 </type> <parameter>skewxy</parameter></paramdef> </"
11316"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetSkew</"
11317"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
11318"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewx</"
11319"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewy</"
11320"parameter></paramdef> </funcprototype>"
11321msgstr ""
11322"<funcprototype> <funcdef>raster <function>ST_SetSkew</function></funcdef> "
11323"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11324"<paramdef><type>float8 </type> <parameter>skewxy</parameter></paramdef> </"
11325"funcprototype> <funcprototype> <funcdef>raster <function>ST_SetSkew</"
11326"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
11327"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewx</"
11328"parameter></paramdef> <paramdef><type>float8 </type> <parameter>skewy</"
11329"parameter></paramdef> </funcprototype>"
11330
11331#. Tag: para
11332#: reference_raster.xml:4367
11333#, no-c-format
11334msgid ""
11335"Sets the georeference X and Y skew (or rotation parameter). If only one is "
11336"passed in, sets X and Y to the same value. Refer to <ulink url=\"http://en."
11337"wikipedia.org/wiki/World_file\">World File</ulink> for more details."
11338msgstr ""
11339"地理参照のスキュー (回転パラメタ)のX値とY値を設定します。一つだけ渡した場合に"
11340"は、X値とY値は同じ値に設定されます。詳細については<ulink url=\"http://en."
11341"wikipedia.org/wiki/World_file\">World File</ulink> (英語版WikiPedia)をご覧下"
11342"さい。"
11343
11344#. Tag: programlisting
11345#: reference_raster.xml:4374
11346#, no-c-format
11347msgid ""
11348"-- Example 1\n"
11349"UPDATE dummy_rast SET rast = ST_SetSkew(rast,1,2) WHERE rid = 1;\n"
11350"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
11351"    ST_GeoReference(rast) as georef\n"
11352"FROM dummy_rast WHERE rid = 1;\n"
11353"\n"
11354"rid | skewx | skewy |    georef\n"
11355"----+-------+-------+--------------\n"
11356"  1 |     1 |     2 | 2.0000000000\n"
11357"                    : 2.0000000000\n"
11358"                    : 1.0000000000\n"
11359"                    : 3.0000000000\n"
11360"                    : 0.5000000000\n"
11361"                    : 0.5000000000"
11362msgstr ""
11363"-- 例1\n"
11364"UPDATE dummy_rast SET rast = ST_SetSkew(rast,1,2) WHERE rid = 1;\n"
11365"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
11366"    ST_GeoReference(rast) as georef\n"
11367"FROM dummy_rast WHERE rid = 1;\n"
11368"\n"
11369"rid | skewx | skewy |    georef\n"
11370"----+-------+-------+--------------\n"
11371"  1 |     1 |     2 | 2.0000000000\n"
11372"                    : 2.0000000000\n"
11373"                    : 1.0000000000\n"
11374"                    : 3.0000000000\n"
11375"                    : 0.5000000000\n"
11376"                    : 0.5000000000"
11377
11378#. Tag: programlisting
11379#: reference_raster.xml:4376
11380#, no-c-format
11381msgid ""
11382"-- Example 2 set both to same number:\n"
11383"UPDATE dummy_rast SET rast = ST_SetSkew(rast,0) WHERE rid = 1;\n"
11384"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
11385"    ST_GeoReference(rast) as georef\n"
11386"FROM dummy_rast WHERE rid = 1;\n"
11387"\n"
11388" rid | skewx | skewy |    georef\n"
11389"-----+-------+-------+--------------\n"
11390"   1 |     0 |     0 | 2.0000000000\n"
11391"                     : 0.0000000000\n"
11392"                     : 0.0000000000\n"
11393"                     : 3.0000000000\n"
11394"                     : 0.5000000000\n"
11395"                     : 0.5000000000"
11396msgstr ""
11397"-- 例2 同じ値に設定\n"
11398"UPDATE dummy_rast SET rast = ST_SetSkew(rast,0) WHERE rid = 1;\n"
11399"SELECT rid, ST_SkewX(rast) As skewx, ST_SkewY(rast) As skewy,\n"
11400"    ST_GeoReference(rast) as georef\n"
11401"FROM dummy_rast WHERE rid = 1;\n"
11402"\n"
11403" rid | skewx | skewy |    georef\n"
11404"-----+-------+-------+--------------\n"
11405"   1 |     0 |     0 | 2.0000000000\n"
11406"                     : 0.0000000000\n"
11407"                     : 0.0000000000\n"
11408"                     : 3.0000000000\n"
11409"                     : 0.5000000000\n"
11410"                     : 0.5000000000"
11411
11412#. Tag: para
11413#: reference_raster.xml:4383
11414#, no-c-format
11415msgid ""
11416", <xref linkend=\"RT_ST_SetGeoReference\"/>, <xref linkend=\"RT_ST_SkewX\"/"
11417">, <xref linkend=\"RT_ST_SkewY\"/>"
11418msgstr ""
11419", <xref linkend=\"RT_ST_SetGeoReference\"/>, <xref linkend=\"RT_ST_SkewX\"/"
11420">, <xref linkend=\"RT_ST_SkewY\"/>"
11421
11422#. Tag: refname
11423#: reference_raster.xml:4389
11424#, no-c-format
11425msgid "ST_SetSRID"
11426msgstr "ST_SetSRID"
11427
11428#. Tag: refpurpose
11429#: reference_raster.xml:4391
11430#, no-c-format
11431msgid ""
11432"Sets the SRID of a raster to a particular integer srid defined in the "
11433"spatial_ref_sys table."
11434msgstr "スタのSRIDをspatial_ref_sysに定義されている特定の整数値に設定します。"
11435
11436#. Tag: funcprototype
11437#: reference_raster.xml:4396
11438#, no-c-format
11439msgid ""
11440"<funcdef>raster <function>ST_SetSRID</function></funcdef> "
11441"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11442"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef>"
11443msgstr ""
11444"<funcdef>raster <function>ST_SetSRID</function></funcdef> "
11445"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11446"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef>"
11447
11448#. Tag: para
11449#: reference_raster.xml:4411
11450#, no-c-format
11451msgid "Sets the SRID on a raster to a particular integer value."
11452msgstr "ラスタのSRIDを特定の整数値に設定します。"
11453
11454#. Tag: para
11455#: reference_raster.xml:4414
11456#, no-c-format
11457msgid ""
11458"This function does not transform the raster in any way - it simply sets meta "
11459"data defining the spatial ref of the coordinate reference system that it's "
11460"currently in. Useful for transformations later."
11461msgstr ""
11462"ラスタの投影変換は行いません。単にメタデータを空間参照系の定義されている値に"
11463"設定するだけです。後で投影変換を行う場合に使います。"
11464
11465#. Tag: para
11466#: reference_raster.xml:4424
11467#, no-c-format
11468msgid ", <xref linkend=\"RT_ST_SRID\"/>"
11469msgstr ", <xref linkend=\"RT_ST_SRID\"/>"
11470
11471#. Tag: refname
11472#: reference_raster.xml:4431
11473#, no-c-format
11474msgid "ST_SetUpperLeft"
11475msgstr "ST_SetUpperLeft"
11476
11477#. Tag: refpurpose
11478#: reference_raster.xml:4432
11479#, no-c-format
11480msgid ""
11481"Sets the value of the upper left corner of the pixel of the raster to "
11482"projected X and Y coordinates."
11483msgstr "ラスタの左上隅の投影座標系のX値とY値を設定します。"
11484
11485#. Tag: funcprototype
11486#: reference_raster.xml:4437
11487#, no-c-format
11488msgid ""
11489"<funcdef>raster <function>ST_SetUpperLeft</function></funcdef> "
11490"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11491"<paramdef><type>double precision </type> <parameter>x</parameter></paramdef> "
11492"<paramdef><type>double precision </type> <parameter>y</parameter></paramdef>"
11493msgstr ""
11494"<funcdef>raster <function>ST_SetUpperLeft</function></funcdef> "
11495"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11496"<paramdef><type>double precision </type> <parameter>x</parameter></paramdef> "
11497"<paramdef><type>double precision </type> <parameter>y</parameter></paramdef>"
11498
11499#. Tag: para
11500#: reference_raster.xml:4449
11501#, no-c-format
11502msgid ""
11503"Set the value of the upper left corner of raster to the projected X and Y "
11504"coordinates"
11505msgstr "ラスタの左上隅の投影座標系のX値とY値を設定します。"
11506
11507#. Tag: programlisting
11508#: reference_raster.xml:4455
11509#, no-c-format
11510msgid ""
11511"SELECT ST_SetUpperLeft(rast,-71.01,42.37)\n"
11512"FROM dummy_rast\n"
11513"WHERE rid = 2;"
11514msgstr ""
11515"SELECT ST_SetUpperLeft(rast,-71.01,42.37)\n"
11516"FROM dummy_rast\n"
11517"WHERE rid = 2;"
11518
11519#. Tag: para
11520#: reference_raster.xml:4461
11521#, no-c-format
11522msgid ", <xref linkend=\"RT_ST_UpperLeftY\"/>"
11523msgstr ", <xref linkend=\"RT_ST_UpperLeftY\"/>"
11524
11525#. Tag: refname
11526#: reference_raster.xml:4467
11527#, no-c-format
11528msgid "ST_Resample"
11529msgstr "ST_Resample"
11530
11531#. Tag: refpurpose
11532#: reference_raster.xml:4468
11533#, no-c-format
11534msgid ""
11535"Resample a raster using a specified resampling algorithm, new dimensions, an "
11536"arbitrary grid corner and a set of raster georeferencing attributes defined "
11537"or borrowed from another raster."
11538msgstr ""
11539"指定したリサンプリングアルゴリズム、新しいピクセル範囲、グリッドの隅、定義す"
11540"るか他のラスタから借りてきた地理参照属性を使ってリサンプリングを行います。"
11541
11542#. Tag: funcsynopsis
11543#: reference_raster.xml:4474
11544#, no-c-format
11545msgid ""
11546"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
11547"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11548"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
11549"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
11550"<paramdef choice=\"opt\"><type>double precision </type> "
11551"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
11552"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
11553"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
11554"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
11555"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
11556"<paramdef choice=\"opt\"><type>text </type> "
11557"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11558"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11559"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11560"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
11561"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt\"><type>double "
11562"precision </type> <parameter>scalex=0</parameter></paramdef> <paramdef "
11563"choice=\"opt\"><type>double precision </type> <parameter>scaley=0</"
11564"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11565"type> <parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
11566"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
11567"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
11568"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
11569"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
11570"<paramdef choice=\"opt\"><type>text </type> "
11571"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
11572"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
11573"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11574"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
11575"<parameter>rast</parameter></paramdef> <paramdef><type>raster </type> "
11576"<parameter>ref</parameter></paramdef> <paramdef choice=\"opt\"><type>text </"
11577"type> <parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11578"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11579"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
11580"<parameter>usescale=true</parameter></paramdef> </funcprototype> "
11581"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
11582"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11583"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
11584"<paramdef><type>boolean </type> <parameter>usescale</parameter></paramdef> "
11585"<paramdef choice=\"opt\"><type>text </type> "
11586"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11587"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11588"parameter></paramdef> </funcprototype>"
11589msgstr ""
11590"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
11591"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11592"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
11593"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
11594"<paramdef choice=\"opt\"><type>double precision </type> "
11595"<parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
11596"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
11597"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
11598"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
11599"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
11600"<paramdef choice=\"opt\"><type>text </type> "
11601"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11602"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11603"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11604"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
11605"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt\"><type>double "
11606"precision </type> <parameter>scalex=0</parameter></paramdef> <paramdef "
11607"choice=\"opt\"><type>double precision </type> <parameter>scaley=0</"
11608"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11609"type> <parameter>gridx=NULL</parameter></paramdef> <paramdef choice=\"opt"
11610"\"><type>double precision </type> <parameter>gridy=NULL</parameter></"
11611"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
11612"<parameter>skewx=0</parameter></paramdef> <paramdef choice=\"opt"
11613"\"><type>double precision </type> <parameter>skewy=0</parameter></paramdef> "
11614"<paramdef choice=\"opt\"><type>text </type> "
11615"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
11616"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
11617"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11618"<function>ST_Resample</function></funcdef> <paramdef><type>raster </type> "
11619"<parameter>rast</parameter></paramdef> <paramdef><type>raster </type> "
11620"<parameter>ref</parameter></paramdef> <paramdef choice=\"opt\"><type>text </"
11621"type> <parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11622"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11623"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
11624"<parameter>usescale=true</parameter></paramdef> </funcprototype> "
11625"<funcprototype> <funcdef>raster <function>ST_Resample</function></funcdef> "
11626"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11627"<paramdef><type>raster </type> <parameter>ref</parameter></paramdef> "
11628"<paramdef><type>boolean </type> <parameter>usescale</parameter></paramdef> "
11629"<paramdef choice=\"opt\"><type>text </type> "
11630"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11631"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11632"parameter></paramdef> </funcprototype>"
11633
11634#. Tag: para
11635#: reference_raster.xml:4524
11636#, no-c-format
11637msgid ""
11638"Resample a raster using a specified resampling algorithm, new dimensions "
11639"(width &amp; height), a grid corner (gridx &amp; gridy) and a set of raster "
11640"georeferencing attributes (scalex, scaley, skewx &amp; skewy) defined or "
11641"borrowed from another raster. If using a reference raster, the two rasters "
11642"must have the same SRID."
11643msgstr ""
11644"指定したリサンプリングアルゴリズム、新しいピクセル範囲 (width &amp; height)、"
11645"グリッド隅 (gridx &amp; gridy)、定義するか他のラスタから借りてきた地理参照属"
11646"性 (scalex, scaley, skewx, skewy)を使ってリサンプリングを行います。参照ラスタ"
11647"を使用する場合には、二つのラスタは同じSRIDでなければなりません。"
11648
11649#. Tag: para
11650#: reference_raster.xml:4528
11651#, no-c-format
11652msgid ""
11653"New pixel values are computed using the NearestNeighbor (English or American "
11654"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
11655"Default is NearestNeighbor which is the fastest but produce the worst "
11656"interpolation."
11657msgstr ""
11658"新しいピクセル値は、リサンプリングアルゴリズムとして最近傍補間 "
11659"('NearestNeighbor' (米式綴り方))、双線形補間 ('Bilinear')、3次補間 "
11660"('Cubic')、3次スプライン補間 ('CubicSpline')、ランチョス補間 ('Lanczos')を用"
11661"います。デフォルトは最も早いですが最も悪い内挿を行う最近傍補間です。"
11662
11663#. Tag: para
11664#: reference_raster.xml:4532
11665#, no-c-format
11666msgid ""
11667"A maxerror percent of 0.125 is used if no <varname>maxerr</varname> is "
11668"specified."
11669msgstr "<varname>maxerr</varname>が指定されていない場合には0.125とします。"
11670
11671#. Tag: para
11672#: reference_raster.xml:4537 reference_raster.xml:4601
11673#: reference_raster.xml:4669 reference_raster.xml:4747
11674#, no-c-format
11675msgid ""
11676"Refer to: <ulink url=\"http://www.gdal.org/gdalwarp.html\">GDAL Warp "
11677"resampling methods</ulink> for more details."
11678msgstr ""
11679"詳細については <ulink url=\"http://www.gdal.org/gdalwarp.html\">GDAL Warp "
11680"resampling methods</ulink>をご覧下さい。"
11681
11682#. Tag: para
11683#: reference_raster.xml:4541 reference_raster.xml:4605
11684#: reference_raster.xml:4673 reference_raster.xml:4751
11685#: reference_raster.xml:4907
11686#, no-c-format
11687msgid "Availability: 2.0.0 Requires GDAL 1.6.1+"
11688msgstr "Availability: 2.0.0 GDAL 1.6.1以上が必要です。"
11689
11690#. Tag: para
11691#: reference_raster.xml:4542
11692#, no-c-format
11693msgid ""
11694"Changed: 2.1.0 Parameter srid removed. Variants with a reference raster no "
11695"longer applies the reference raster's SRID. Use ST_Transform() to reproject "
11696"raster. Works on rasters with no SRID."
11697msgstr ""
11698"Changed: 2.1.0 srid引数を削除しました。参照ラスタを使う形式では、もはや参照ラ"
11699"スタのSRIDを適用しません。ラスタの投影変換にはST_Transform()を使います。SRID"
11700"なしで動作します。"
11701
11702#. Tag: programlisting
11703#: reference_raster.xml:4548
11704#, no-c-format
11705msgid ""
11706"SELECT\n"
11707"        ST_Width(orig) AS orig_width,\n"
11708"        ST_Width(reduce_100) AS new_width\n"
11709"FROM (\n"
11710"        SELECT\n"
11711"                rast AS orig,\n"
11712"                ST_Resample(rast,100,100) AS reduce_100\n"
11713"        FROM aerials.boston\n"
11714"        WHERE ST_Intersects(rast,\n"
11715"                ST_Transform(\n"
11716"                        ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, "
11717"4326),26986)\n"
11718"        )\n"
11719"        LIMIT 1\n"
11720") AS foo;\n"
11721"\n"
11722" orig_width | new_width\n"
11723"------------+-------------\n"
11724"        200 |         100"
11725msgstr ""
11726"SELECT\n"
11727"        ST_Width(orig) AS orig_width,\n"
11728"        ST_Width(reduce_100) AS new_width\n"
11729"FROM (\n"
11730"        SELECT\n"
11731"                rast AS orig,\n"
11732"                ST_Resample(rast,100,100) AS reduce_100\n"
11733"        FROM aerials.boston\n"
11734"        WHERE ST_Intersects(rast,\n"
11735"                ST_Transform(\n"
11736"                        ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, "
11737"4326),26986)\n"
11738"        )\n"
11739"        LIMIT 1\n"
11740") AS foo;\n"
11741"\n"
11742" orig_width | new_width\n"
11743"------------+-------------\n"
11744"        200 |         100"
11745
11746#. Tag: para
11747#: reference_raster.xml:4553
11748#, no-c-format
11749msgid ", <xref linkend=\"RT_ST_Resize\"/>, <xref linkend=\"RT_ST_Transform\"/>"
11750msgstr ""
11751", <xref linkend=\"RT_ST_Resize\"/>, <xref linkend=\"RT_ST_Transform\"/>"
11752
11753#. Tag: refname
11754#: reference_raster.xml:4563
11755#, no-c-format
11756msgid "ST_Rescale"
11757msgstr "ST_Rescale"
11758
11759#. Tag: refpurpose
11760#: reference_raster.xml:4564
11761#, no-c-format
11762msgid ""
11763"Resample a raster by adjusting only its scale (or pixel size). New pixel "
11764"values are computed using the NearestNeighbor (english or american "
11765"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
11766"Default is NearestNeighbor."
11767msgstr ""
11768"スケール (ピクセルサイズ)だけを調整するリサンプリングを行います。新しいピクセ"
11769"ル値のリサンプリングアルゴリズムとして最近傍補間 ('NearestNeighbor' (米式綴り"
11770"方))、双線形補間 ('Bilinear')、3次補間 ('Cubic')、3次スプライン補間 "
11771"('CubicSpline')、ランチョス補間 ('Lanczos')を用います。デフォルトは最近傍補間"
11772"です。"
11773
11774#. Tag: funcsynopsis
11775#: reference_raster.xml:4569
11776#, no-c-format
11777msgid ""
11778"<funcprototype> <funcdef>raster <function>ST_Rescale</function></funcdef> "
11779"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11780"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
11781"paramdef> <paramdef choice=\"opt\"><type>text </type> "
11782"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11783"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11784"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11785"<function>ST_Rescale</function></funcdef> <paramdef><type>raster </type> "
11786"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
11787"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
11788"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
11789"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
11790"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11791"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
11792msgstr ""
11793"<funcprototype> <funcdef>raster <function>ST_Rescale</function></funcdef> "
11794"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11795"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
11796"paramdef> <paramdef choice=\"opt\"><type>text </type> "
11797"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11798"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11799"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11800"<function>ST_Rescale</function></funcdef> <paramdef><type>raster </type> "
11801"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
11802"type> <parameter>scalex</parameter></paramdef> <paramdef><type>double "
11803"precision </type> <parameter>scaley</parameter></paramdef> <paramdef choice="
11804"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
11805"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11806"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
11807
11808#. Tag: para
11809#: reference_raster.xml:4593
11810#, no-c-format
11811msgid ""
11812"Resample a raster by adjusting only its scale (or pixel size). New pixel "
11813"values are computed using the NearestNeighbor (english or american "
11814"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
11815"default is NearestNeighbor which is the fastest but results in the worst "
11816"interpolation."
11817msgstr ""
11818"スケール (ピクセルサイズ)だけを調整するリサンプリングを行います。新しいピクセ"
11819"ル値のリサンプリングアルゴリズムとして最近傍補間 ('NearestNeighbor' (米式綴り"
11820"方))、双線形補間 ('Bilinear')、3次補間 ('Cubic')、3次スプライン補間 "
11821"('CubicSpline')、ランチョス補間 ('Lanczos')を用います。デフォルトは最も早いで"
11822"すが最も悪い内挿を行う最近傍補間です。"
11823
11824#. Tag: para
11825#: reference_raster.xml:4595
11826#, no-c-format
11827msgid ""
11828"<varname>scalex</varname> and <varname>scaley</varname> define the new pixel "
11829"size. scaley must often be negative to get well oriented raster."
11830msgstr ""
11831"<varname>scalex</varname>と<varname>scaley</varname>で、新しいピクセルサイズ"
11832"を定義します。ラスタを正しい方向にするには、scaleyは負数でなければならないこ"
11833"とがしばしばあります。"
11834
11835#. Tag: para
11836#: reference_raster.xml:4597
11837#, no-c-format
11838msgid ""
11839"When the new scalex or scaley is not a divisor of the raster width or "
11840"height, the extent of the resulting raster is expanded to encompass the "
11841"extent of the provided raster. If you want to be sure to retain exact input "
11842"extent see <xref linkend=\"RT_ST_Resize\"/>"
11843msgstr ""
11844"新しいscalexまたはscaleyがラスタのwidthまたはheightの除数でない時、結果ラスタ"
11845"の範囲は元のラスタの範囲を含むために拡大されます。<xref linkend="
11846"\"RT_ST_Resize\"/>をご覧ください。"
11847
11848#. Tag: para
11849#: reference_raster.xml:4599
11850#, no-c-format
11851msgid ""
11852"<varname>maxerr</varname> is the threshold for transformation approximation "
11853"by the resampling algorithm (in pixel units). A default of 0.125 is used if "
11854"no <varname>maxerr</varname> is specified, which is the same value used in "
11855"GDAL gdalwarp utility. If set to zero, no approximation takes place."
11856msgstr ""
11857
11858#. Tag: para
11859#: reference_raster.xml:4603
11860#, no-c-format
11861msgid ""
11862"ST_Rescale is different from <xref linkend=\"RT_ST_SetScale\"/> in that "
11863"ST_SetScale do not resample the raster to match the raster extent. "
11864"ST_SetScale only changes the metadata (or georeference) of the raster to "
11865"correct an originally mis-specified scaling. ST_Rescale results in a raster "
11866"having different width and height computed to fit the geographic extent of "
11867"the input raster. ST_SetScale do not modify the width, nor the height of the "
11868"raster."
11869msgstr ""
11870"ST_Recalcは、ST_SetScaleはラスタ範囲に合わせるためのリサンプリングをしない点"
11871"で、<xref linkend=\"RT_ST_SetScale\"/>と異なります。ST_SetScaleは根本的に誤っ"
11872"た設定を行ったのを訂正するためにラスタのメタデータ (地理参照)を変更するだけで"
11873"す。ST_Rescaleは、入力ラスタの地理範囲に合わせて計算された幅、高さを持つラス"
11874"タを返します。ST_SetScaleはラスタの幅も高さも変更しません。"
11875
11876#. Tag: para
11877#: reference_raster.xml:4606 reference_raster.xml:4674
11878#: reference_raster.xml:4752
11879#, no-c-format
11880msgid "Changed: 2.1.0 Works on rasters with no SRID"
11881msgstr "Changed: 2.1.0 SRIDなしのラスタで動作するようになりました。"
11882
11883#. Tag: para
11884#: reference_raster.xml:4611
11885#, no-c-format
11886msgid ""
11887"A simple example rescaling a raster from a pixel size of 0.001 degree to a "
11888"pixel size of 0.0015 degree."
11889msgstr ""
11890"ラスタのピクセルサイズを0.001度から0.0015度にスケール再設定を行う例です。"
11891
11892#. Tag: programlisting
11893#: reference_raster.xml:4613
11894#, no-c-format
11895msgid ""
11896"-- the original raster pixel size\n"
11897"SELECT ST_PixelWidth(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
11898"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0)) width\n"
11899"\n"
11900"   width\n"
11901"----------\n"
11902"0.001\n"
11903"\n"
11904"-- the rescaled raster raster pixel size\n"
11905"SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, "
11906"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015)) width\n"
11907"\n"
11908"   width\n"
11909"----------\n"
11910"0.0015"
11911msgstr ""
11912"-- 元のラスタのピクセルサイズ\n"
11913"SELECT ST_PixelWidth(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
11914"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0)) width\n"
11915"\n"
11916"   width\n"
11917"----------\n"
11918"0.001\n"
11919"\n"
11920"-- スケール再設定したラスタのピクセルサイズ\n"
11921"SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, "
11922"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015)) width\n"
11923"\n"
11924"   width\n"
11925"----------\n"
11926"0.0015"
11927
11928#. Tag: para
11929#: reference_raster.xml:4618
11930#, no-c-format
11931msgid ""
11932", <xref linkend=\"RT_ST_Resample\"/>, <xref linkend=\"RT_ST_SetScale\"/>, "
11933"<xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
11934"linkend=\"RT_ST_Transform\"/>"
11935msgstr ""
11936", <xref linkend=\"RT_ST_Resample\"/>, <xref linkend=\"RT_ST_SetScale\"/>, "
11937"<xref linkend=\"RT_ST_ScaleX\"/>, <xref linkend=\"RT_ST_ScaleY\"/>, <xref "
11938"linkend=\"RT_ST_Transform\"/>"
11939
11940#. Tag: refname
11941#: reference_raster.xml:4631
11942#, no-c-format
11943msgid "ST_Reskew"
11944msgstr "ST_Reskew"
11945
11946#. Tag: refpurpose
11947#: reference_raster.xml:4632
11948#, no-c-format
11949msgid ""
11950"Resample a raster by adjusting only its skew (or rotation parameters). New "
11951"pixel values are computed using the NearestNeighbor (english or american "
11952"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. "
11953"Default is NearestNeighbor."
11954msgstr ""
11955"キュー (回転パラメタ)だけを調整するリサンプリングを行います。新しいピクセル値"
11956"のリサンプリングアルゴリズムとして最近傍補間 ('NearestNeighbor' (米式綴り"
11957"方))、双線形補間 ('Bilinear')、3次補間 ('Cubic')、3次スプライン補間 "
11958"('CubicSpline')、ランチョス補間 ('Lanczos')を用います。デフォルトは最近傍補間"
11959"です。"
11960
11961#. Tag: funcsynopsis
11962#: reference_raster.xml:4637
11963#, no-c-format
11964msgid ""
11965"<funcprototype> <funcdef>raster <function>ST_Reskew</function></funcdef> "
11966"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11967"<paramdef><type>double precision </type> <parameter>skewxy</parameter></"
11968"paramdef> <paramdef choice=\"opt\"><type>text </type> "
11969"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11970"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11971"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11972"<function>ST_Reskew</function></funcdef> <paramdef><type>raster </type> "
11973"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
11974"type> <parameter>skewx</parameter></paramdef> <paramdef><type>double "
11975"precision </type> <parameter>skewy</parameter></paramdef> <paramdef choice="
11976"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
11977"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11978"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
11979msgstr ""
11980"<funcprototype> <funcdef>raster <function>ST_Reskew</function></funcdef> "
11981"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
11982"<paramdef><type>double precision </type> <parameter>skewxy</parameter></"
11983"paramdef> <paramdef choice=\"opt\"><type>text </type> "
11984"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
11985"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
11986"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
11987"<function>ST_Reskew</function></funcdef> <paramdef><type>raster </type> "
11988"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
11989"type> <parameter>skewx</parameter></paramdef> <paramdef><type>double "
11990"precision </type> <parameter>skewy</parameter></paramdef> <paramdef choice="
11991"\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbour</"
11992"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
11993"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype>"
11994
11995#. Tag: para
11996#: reference_raster.xml:4661
11997#, no-c-format
11998msgid ""
11999"Resample a raster by adjusting only its skew (or rotation parameters). New "
12000"pixel values are computed using the NearestNeighbor (english or american "
12001"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
12002"default is NearestNeighbor which is the fastest but results in the worst "
12003"interpolation."
12004msgstr ""
12005"スキュー (回転パラメタ)だけを調整するリサンプリングを行います。新しいピクセル"
12006"値のリサンプリングアルゴリズムとして最近傍補間 ('NearestNeighbor' (米式綴り"
12007"方))、双線形補間 ('Bilinear')、3次補間 ('Cubic')、3次スプライン補間 "
12008"('CubicSpline')、ランチョス補間 ('Lanczos')を用います。デフォルトは最も早いで"
12009"すが最も悪い内挿を行う最近傍補間です。"
12010
12011#. Tag: para
12012#: reference_raster.xml:4663
12013#, no-c-format
12014msgid ""
12015"<varname>skewx</varname> and <varname>skewy</varname> define the new skew."
12016msgstr ""
12017"<varname>skewx</varname>と<varname>skewy</varname>によって新しいスキューが定"
12018"義されます。"
12019
12020#. Tag: para
12021#: reference_raster.xml:4665 reference_raster.xml:4743
12022#, no-c-format
12023msgid ""
12024"The extent of the new raster will encompass the extent of the provided "
12025"raster."
12026msgstr "新しいラスタの範囲は元のラスタの範囲を含みます。"
12027
12028#. Tag: para
12029#: reference_raster.xml:4667 reference_raster.xml:4745
12030#, no-c-format
12031msgid ""
12032"A maxerror percent of 0.125 if no <varname>maxerr</varname> is specified."
12033msgstr "<varname>maxerr</varname>が指定されていない場合には0.125とします。"
12034
12035#. Tag: para
12036#: reference_raster.xml:4671
12037#, no-c-format
12038msgid ""
12039"ST_Reskew is different from <xref linkend=\"RT_ST_SetSkew\"/> in that "
12040"ST_SetSkew do not resample the raster to match the raster extent. ST_SetSkew "
12041"only changes the metadata (or georeference) of the raster to correct an "
12042"originally mis-specified skew. ST_Reskew results in a raster having "
12043"different width and height computed to fit the geographic extent of the "
12044"input raster. ST_SetSkew do not modify the width, nor the height of the "
12045"raster."
12046msgstr ""
12047"ST_Reskewは、ST_SetSkewがラスタの範囲をあわせるためのリサンプリングをしない点"
12048"で<xref linkend=\"RT_ST_SetSkew\"/>と異なります。根本的に誤った設定を行ったの"
12049"を訂正するためにラスタのメタデータ (地理参照)を変更するだけです。ST_Reskew"
12050"は、入力ラスタの地理範囲に合わせて計算された幅、高さを持つラスタを返します。"
12051"ST_SetSkewはラスタの幅も高さも変更しません。"
12052
12053#. Tag: para
12054#: reference_raster.xml:4679
12055#, no-c-format
12056msgid ""
12057"A simple example reskewing a raster from a skew of 0.0 to a skew of 0.0015."
12058msgstr "スキューを0.0から0.0015に再設定する簡単な例です。"
12059
12060#. Tag: programlisting
12061#: reference_raster.xml:4681
12062#, no-c-format
12063msgid ""
12064"-- the original raster non-rotated\n"
12065"SELECT ST_Rotation(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
12066"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
12067"\n"
12068"-- result\n"
12069"0\n"
12070"\n"
12071"-- the reskewed raster raster rotation\n"
12072"SELECT ST_Rotation(ST_Reskew(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, "
12073"0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015));\n"
12074"\n"
12075"-- result\n"
12076"-0.982793723247329"
12077msgstr ""
12078"-- 回転前の元のラスタ\n"
12079"SELECT ST_Rotation(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001, "
12080"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
12081"\n"
12082"-- 結果\n"
12083"0\n"
12084"\n"
12085"-- ST_Reskewを施したラスタの回転\n"
12086"SELECT ST_Rotation(ST_Reskew(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, "
12087"0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0015));\n"
12088"\n"
12089"-- 結果\n"
12090"-0.982793723247329"
12091
12092#. Tag: para
12093#: reference_raster.xml:4687
12094#, no-c-format
12095msgid ""
12096", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>, "
12097"<xref linkend=\"RT_ST_SetRotation\"/>, <xref linkend=\"RT_ST_SkewX\"/>, "
12098"<xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_Transform\"/>"
12099msgstr ""
12100", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_SetSkew\"/>, "
12101"<xref linkend=\"RT_ST_SetRotation\"/>, <xref linkend=\"RT_ST_SkewX\"/>, "
12102"<xref linkend=\"RT_ST_SkewY\"/>, <xref linkend=\"RT_ST_Transform\"/>"
12103
12104#. Tag: refname
12105#: reference_raster.xml:4693
12106#, no-c-format
12107msgid "ST_SnapToGrid"
12108msgstr "ST_SnapToGrid"
12109
12110#. Tag: refpurpose
12111#: reference_raster.xml:4694
12112#, no-c-format
12113msgid ""
12114"Resample a raster by snapping it to a grid. New pixel values are computed "
12115"using the NearestNeighbor (english or american spelling), Bilinear, Cubic, "
12116"CubicSpline or Lanczos resampling algorithm. Default is NearestNeighbor."
12117msgstr ""
12118"グリッドにスナップすることでラスタをリサンプリングします。新しいピクセル値の"
12119"リサンプリングアルゴリズムとして最近傍補間 ('NearestNeighbor' (米式綴り方))、"
12120"双線形補間 ('Bilinear')、3次補間 ('Cubic')、3次スプライン補間 "
12121"('CubicSpline')、ランチョス補間('Lanczos')を用います。デフォルトは最近傍補間"
12122"です。"
12123
12124#. Tag: funcsynopsis
12125#: reference_raster.xml:4699
12126#, no-c-format
12127msgid ""
12128"<funcprototype> <funcdef>raster <function>ST_SnapToGrid</function></funcdef> "
12129"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12130"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
12131"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
12132"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
12133"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12134"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12135"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
12136"type> <parameter>scalex=DEFAULT 0</parameter></paramdef> <paramdef choice="
12137"\"opt\"><type>double precision </type> <parameter>scaley=DEFAULT 0</"
12138"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12139"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
12140"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12141"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
12142"precision </type> <parameter>gridy</parameter></paramdef> "
12143"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
12144"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
12145"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
12146"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12147"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12148"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12149"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
12150"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12151"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
12152"precision </type> <parameter>gridy</parameter></paramdef> "
12153"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
12154"paramdef> <paramdef choice=\"opt\"><type>text </type> "
12155"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12156"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12157"parameter></paramdef> </funcprototype>"
12158msgstr ""
12159"<funcprototype> <funcdef>raster <function>ST_SnapToGrid</function></funcdef> "
12160"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12161"<paramdef><type>double precision </type> <parameter>gridx</parameter></"
12162"paramdef> <paramdef><type>double precision </type> <parameter>gridy</"
12163"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
12164"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12165"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12166"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
12167"type> <parameter>scalex=DEFAULT 0</parameter></paramdef> <paramdef choice="
12168"\"opt\"><type>double precision </type> <parameter>scaley=DEFAULT 0</"
12169"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12170"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
12171"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12172"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
12173"precision </type> <parameter>gridy</parameter></paramdef> "
12174"<paramdef><type>double precision </type> <parameter>scalex</parameter></"
12175"paramdef> <paramdef><type>double precision </type> <parameter>scaley</"
12176"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
12177"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12178"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12179"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12180"<function>ST_SnapToGrid</function></funcdef> <paramdef><type>raster </type> "
12181"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12182"type> <parameter>gridx</parameter></paramdef> <paramdef><type>double "
12183"precision </type> <parameter>gridy</parameter></paramdef> "
12184"<paramdef><type>double precision </type> <parameter>scalexy</parameter></"
12185"paramdef> <paramdef choice=\"opt\"><type>text </type> "
12186"<parameter>algorithm=NearestNeighbour</parameter></paramdef> <paramdef "
12187"choice=\"opt\"><type>double precision </type> <parameter>maxerr=0.125</"
12188"parameter></paramdef> </funcprototype>"
12189
12190#. Tag: para
12191#: reference_raster.xml:4738
12192#, no-c-format
12193msgid ""
12194"Resample a raster by snapping it to a grid defined by an arbitrary pixel "
12195"corner (gridx &amp; gridy) and optionally a pixel size (scalex &amp; "
12196"scaley). New pixel values are computed using the NearestNeighbor (english or "
12197"american spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling "
12198"algorithm. The default is NearestNeighbor which is the fastest but results "
12199"in the worst interpolation."
12200msgstr ""
12201"任意のピクセル隅 (gridx &amp; gridy)と、任意引数としてピクセルサイズ (scalex "
12202"&amp; scaley)によって定義されるグリッドにスナップすることでラスタをリサンプリ"
12203"ングします。新しいピクセル値のリサンプリングアルゴリズムとして最近傍補間 "
12204"('NearestNeighbor' (米式綴り方))、双線形補間 ('Bilinear')、3次補間 "
12205"('Cubic')、3次スプライン補間 ('CubicSpline')、ランチョス補間 ('Lanczos')を用"
12206"います。デフォルトは最も早いですが最も悪い内挿を行う最近傍補間です。"
12207
12208#. Tag: para
12209#: reference_raster.xml:4740
12210#, no-c-format
12211msgid ""
12212"<varname>gridx</varname> and <varname>gridy</varname> define any arbitrary "
12213"pixel corner of the new grid. This is not necessarily the upper left corner "
12214"of the new raster and it does not have to be inside or on the edge of the "
12215"new raster extent."
12216msgstr ""
12217"<varname>gridx</varname>と<varname>gridy</varname>は、新しいグリッドの任意の"
12218"ピクセル隅を定義します。これは新しいラスタの左上隅に必ずなるものではありませ"
12219"ん。新しいラスタ範囲の内部または境界である必要はありません。"
12220
12221#. Tag: para
12222#: reference_raster.xml:4742
12223#, no-c-format
12224msgid ""
12225"You can optionally define the pixel size of the new grid with "
12226"<varname>scalex</varname> and <varname>scaley</varname>."
12227msgstr ""
12228"任意引数として、新しいグリッドのピクセルサイズを<varname>scalex</varname>と"
12229"<varname>scaley</varname>で指定することができます。"
12230
12231#. Tag: para
12232#: reference_raster.xml:4749
12233#, no-c-format
12234msgid ""
12235"Use <xref linkend=\"RT_ST_Resample\"/> if you need more control over the "
12236"grid parameters."
12237msgstr ""
12238"グリッドパラメタより多くの制御が必要な場合には、<xref linkend="
12239"\"RT_ST_Resample\"/>を使います。"
12240
12241#. Tag: para
12242#: reference_raster.xml:4757
12243#, no-c-format
12244msgid "A simple example snapping a raster to a slightly different grid."
12245msgstr "ラスタをわずかに異なるグリッドにスナップさせる簡単な例です。"
12246
12247#. Tag: programlisting
12248#: reference_raster.xml:4759
12249#, no-c-format
12250msgid ""
12251"-- the original raster upper left X\n"
12252"SELECT ST_UpperLeftX(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.001, "
12253"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
12254"-- result\n"
12255"0\n"
12256"\n"
12257"-- the upper left of raster after snapping\n"
12258"SELECT ST_UpperLeftX(ST_SnapToGrid(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, "
12259"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0002, 0.0002));\n"
12260"\n"
12261"--result\n"
12262"-0.0008"
12263msgstr ""
12264"-- 元のラスタの左上隅のX値\n"
12265"\n"
12266"SELECT ST_UpperLeftX(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0.001, "
12267"-0.001, 0, 0, 4269), '8BUI'::text, 1, 0));\n"
12268"-- 結果\n"
12269"0\n"
12270"\n"
12271"-- スナップしたラスタの左上隅のX値\n"
12272"SELECT ST_UpperLeftX(ST_SnapToGrid(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, "
12273"0, 0.001, -0.001, 0, 0, 4269), '8BUI'::text, 1, 0), 0.0002, 0.0002));\n"
12274"\n"
12275"-- 結果\n"
12276"-0.0008"
12277
12278#. Tag: para
12279#: reference_raster.xml:4765
12280#, no-c-format
12281msgid ""
12282", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
12283"<xref linkend=\"RT_ST_UpperLeftY\"/>"
12284msgstr ""
12285", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_UpperLeftX\"/>, "
12286"<xref linkend=\"RT_ST_UpperLeftY\"/>"
12287
12288#. Tag: refname
12289#: reference_raster.xml:4771
12290#, no-c-format
12291msgid "ST_Resize"
12292msgstr "ST_Resize"
12293
12294#. Tag: refpurpose
12295#: reference_raster.xml:4772
12296#, no-c-format
12297msgid "Resize a raster to a new width/height"
12298msgstr "ラスタを新しい幅、高さにサイズ再設定を行います。"
12299
12300#. Tag: funcsynopsis
12301#: reference_raster.xml:4776
12302#, no-c-format
12303msgid ""
12304"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
12305"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12306"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
12307"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
12308"<paramdef choice=\"opt\"><type>text </type> "
12309"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12310"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12311"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12312"<function>ST_Resize</function></funcdef> <paramdef><type>raster </type> "
12313"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12314"type> <parameter>percentwidth</parameter></paramdef> <paramdef><type>double "
12315"precision </type> <parameter>percentheight</parameter></paramdef> <paramdef "
12316"choice=\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbor</"
12317"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
12318"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
12319"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
12320"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12321"<paramdef><type>text </type> <parameter>width</parameter></paramdef> "
12322"<paramdef><type>text </type> <parameter>height</parameter></paramdef> "
12323"<paramdef choice=\"opt\"><type>text </type> "
12324"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12325"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12326"paramdef> </funcprototype>"
12327msgstr ""
12328"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
12329"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12330"<paramdef><type>integer </type> <parameter>width</parameter></paramdef> "
12331"<paramdef><type>integer </type> <parameter>height</parameter></paramdef> "
12332"<paramdef choice=\"opt\"><type>text </type> "
12333"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12334"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12335"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12336"<function>ST_Resize</function></funcdef> <paramdef><type>raster </type> "
12337"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
12338"type> <parameter>percentwidth</parameter></paramdef> <paramdef><type>double "
12339"precision </type> <parameter>percentheight</parameter></paramdef> <paramdef "
12340"choice=\"opt\"><type>text </type> <parameter>algorithm=NearestNeighbor</"
12341"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
12342"type> <parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
12343"<funcprototype> <funcdef>raster <function>ST_Resize</function></funcdef> "
12344"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12345"<paramdef><type>text </type> <parameter>width</parameter></paramdef> "
12346"<paramdef><type>text </type> <parameter>height</parameter></paramdef> "
12347"<paramdef choice=\"opt\"><type>text </type> "
12348"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12349"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12350"paramdef> </funcprototype>"
12351
12352#. Tag: para
12353#: reference_raster.xml:4810
12354#, no-c-format
12355msgid ""
12356"Resize a raster to a new width/height. The new width/height can be specified "
12357"in exact number of pixels or a percentage of the raster's width/height. The "
12358"extent of the the new raster will be the same as the extent of the provided "
12359"raster."
12360msgstr ""
12361"ラスタを新しい幅、高さにサイズ再設定を行います。新しい幅、高さはピクセル数で"
12362"確実に指定するか、ラスタの幅、高さの比率で指定します。新しいラスタの範囲は元"
12363"のラスタの範囲と同じです。"
12364
12365#. Tag: para
12366#: reference_raster.xml:4814
12367#, no-c-format
12368msgid ""
12369"New pixel values are computed using the NearestNeighbor (english or american "
12370"spelling), Bilinear, Cubic, CubicSpline or Lanczos resampling algorithm. The "
12371"default is NearestNeighbor which is the fastest but results in the worst "
12372"interpolation."
12373msgstr ""
12374"新しいピクセル値のリサンプリングアルゴリズムとして最近傍補間 "
12375"('NearestNeighbor' (米式綴り方))、双線形補間 ('Bilinear')、3次補間 "
12376"('Cubic')、3次スプライン補間 ('CubicSpline')、ランチョス補間 ('Lanczos')を用"
12377"います。デフォルトは最も早いですが最も悪い内挿を行う最近傍補間です。"
12378
12379#. Tag: para
12380#: reference_raster.xml:4818
12381#, no-c-format
12382msgid "Variant 1 expects the actual width/height of the output raster."
12383msgstr "一つ目の形式では、出力ラスタの実際の幅、高さを予定しています。"
12384
12385#. Tag: para
12386#: reference_raster.xml:4822
12387#, no-c-format
12388msgid ""
12389"Variant 2 expects decimal values between zero (0) and one (1) indicating the "
12390"percentage of the input raster's width/height."
12391msgstr ""
12392"二つ目の形式では、0から1の間の値で、入力ラスタの幅、高さに対する比率を指定し"
12393"ています。"
12394
12395#. Tag: para
12396#: reference_raster.xml:4826
12397#, no-c-format
12398msgid ""
12399"Variant 3 takes either the actual width/height of the output raster or a "
12400"textual percentage (\"20%\") indicating the percentage of the input raster's "
12401"width/height."
12402msgstr ""
12403"三つ目の形式では、出力ラスタの実際の幅、高さを取るか、文字列による入力ラスタ"
12404"の幅、高さに対する百分率 (\"20%\")を取ります。"
12405
12406#. Tag: para
12407#: reference_raster.xml:4830
12408#, no-c-format
12409msgid "Availability: 2.1.0 Requires GDAL 1.6.1+"
12410msgstr "Availability: 2.1.0 GDAL 1.6.1以上が必要です。"
12411
12412#. Tag: programlisting
12413#: reference_raster.xml:4834
12414#, no-c-format
12415msgid ""
12416"WITH foo AS(\n"
12417"SELECT\n"
12418"        1 AS rid,\n"
12419"        ST_Resize(\n"
12420"                ST_AddBand(\n"
12421"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12422"0)\n"
12423"                        , 1, '8BUI', 255, 0\n"
12424"                )\n"
12425"        , '50%', '500') AS rast\n"
12426"UNION ALL\n"
12427"SELECT\n"
12428"        2 AS rid,\n"
12429"        ST_Resize(\n"
12430"                ST_AddBand(\n"
12431"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12432"0)\n"
12433"                        , 1, '8BUI', 255, 0\n"
12434"                )\n"
12435"        , 500, 100) AS rast\n"
12436"UNION ALL\n"
12437"SELECT\n"
12438"        3 AS rid,\n"
12439"        ST_Resize(\n"
12440"                ST_AddBand(\n"
12441"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12442"0)\n"
12443"                        , 1, '8BUI', 255, 0\n"
12444"                )\n"
12445"        , 0.25, 0.9) AS rast\n"
12446"), bar AS (\n"
12447"        SELECT rid, ST_Metadata(rast) AS meta, rast FROM foo\n"
12448")\n"
12449"SELECT rid, (meta).* FROM bar\n"
12450"\n"
12451" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
12452"skewy | srid | numbands\n"
12453"-----+------------+------------+-------+--------+--------+--------+-------"
12454"+-------+------+----------\n"
12455"   1 |          0 |          0 |   500 |    500 |      1 |     -1 |     0 "
12456"|     0 |    0 |        1\n"
12457"   2 |          0 |          0 |   500 |    100 |      1 |     -1 |     0 "
12458"|     0 |    0 |        1\n"
12459"   3 |          0 |          0 |   250 |    900 |      1 |     -1 |     0 "
12460"|     0 |    0 |        1\n"
12461"(3 rows)"
12462msgstr ""
12463"WITH foo AS(\n"
12464"SELECT\n"
12465"        1 AS rid,\n"
12466"        ST_Resize(\n"
12467"                ST_AddBand(\n"
12468"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12469"0)\n"
12470"                        , 1, '8BUI', 255, 0\n"
12471"                )\n"
12472"        , '50%', '500') AS rast\n"
12473"UNION ALL\n"
12474"SELECT\n"
12475"        2 AS rid,\n"
12476"        ST_Resize(\n"
12477"                ST_AddBand(\n"
12478"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12479"0)\n"
12480"                        , 1, '8BUI', 255, 0\n"
12481"                )\n"
12482"        , 500, 100) AS rast\n"
12483"UNION ALL\n"
12484"SELECT\n"
12485"        3 AS rid,\n"
12486"        ST_Resize(\n"
12487"                ST_AddBand(\n"
12488"                        ST_MakeEmptyRaster(1000, 1000, 0, 0, 1, -1, 0, 0, "
12489"0)\n"
12490"                        , 1, '8BUI', 255, 0\n"
12491"                )\n"
12492"        , 0.25, 0.9) AS rast\n"
12493"), bar AS (\n"
12494"        SELECT rid, ST_Metadata(rast) AS meta, rast FROM foo\n"
12495")\n"
12496"SELECT rid, (meta).* FROM bar\n"
12497"\n"
12498" rid | upperleftx | upperlefty | width | height | scalex | scaley | skewx | "
12499"skewy | srid | numbands\n"
12500"-----+------------+------------+-------+--------+--------+--------+-------"
12501"+-------+------+----------\n"
12502"   1 |          0 |          0 |   500 |    500 |      1 |     -1 |     0 "
12503"|     0 |    0 |        1\n"
12504"   2 |          0 |          0 |   500 |    100 |      1 |     -1 |     0 "
12505"|     0 |    0 |        1\n"
12506"   3 |          0 |          0 |   250 |    900 |      1 |     -1 |     0 "
12507"|     0 |    0 |        1\n"
12508"(3 rows)"
12509
12510#. Tag: para
12511#: reference_raster.xml:4839
12512#, no-c-format
12513msgid ""
12514", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_Reskew\"/>, <xref "
12515"linkend=\"RT_ST_SnapToGrid\"/>"
12516msgstr ""
12517", <xref linkend=\"RT_ST_Rescale\"/>, <xref linkend=\"RT_ST_Reskew\"/>, <xref "
12518"linkend=\"RT_ST_SnapToGrid\"/>"
12519
12520#. Tag: refname
12521#: reference_raster.xml:4850
12522#, no-c-format
12523msgid "ST_Transform"
12524msgstr "ST_Transform"
12525
12526#. Tag: refpurpose
12527#: reference_raster.xml:4851
12528#, no-c-format
12529msgid ""
12530"Reprojects a raster in a known spatial reference system to another known "
12531"spatial reference system using specified resampling algorithm. Options are "
12532"NearestNeighbor, Bilinear, Cubic, CubicSpline, Lanczos defaulting to "
12533"NearestNeighbor."
12534msgstr ""
12535"ラスタを既知の空間参照系から他の既知の空間参照系に、指定したリサンプリングア"
12536"ルゴリズムで投影変換します。新しいピクセル値のリサンプリングアルゴリズムとし"
12537"て最近傍補間 ('NearestNeighbor' (米式綴り方))、双線形補間 ('Bilinear')、3次補"
12538"間 ('Cubic')、3次スプライン補間 ('CubicSpline')、ランチョス補間 ('Lanczos')を"
12539"用います。デフォルトは最近傍補間です。"
12540
12541#. Tag: funcsynopsis
12542#: reference_raster.xml:4855
12543#, no-c-format
12544msgid ""
12545"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
12546"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12547"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef> "
12548"<paramdef choice=\"opt\"><type>text </type> "
12549"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12550"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12551"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
12552"<parameter>scalex</parameter></paramdef> <paramdef choice=\"opt"
12553"\"><type>double precision </type> <parameter>scaley</parameter></paramdef> </"
12554"funcprototype> <funcprototype> <funcdef>raster <function>ST_Transform</"
12555"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
12556"parameter></paramdef> <paramdef><type>integer </type> <parameter>srid</"
12557"parameter></paramdef> <paramdef><type>double precision </type> "
12558"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
12559"type> <parameter>scaley</parameter></paramdef> <paramdef choice=\"opt"
12560"\"><type>text </type> <parameter>algorithm=NearestNeighbor</parameter></"
12561"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
12562"<parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
12563"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
12564"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12565"<paramdef><type>raster </type> <parameter>alignto</parameter></paramdef> "
12566"<paramdef choice=\"opt\"><type>text </type> "
12567"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12568"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12569"paramdef> </funcprototype>"
12570msgstr ""
12571"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
12572"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12573"<paramdef><type>integer </type> <parameter>srid</parameter></paramdef> "
12574"<paramdef choice=\"opt\"><type>text </type> "
12575"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12576"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12577"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
12578"<parameter>scalex</parameter></paramdef> <paramdef choice=\"opt"
12579"\"><type>double precision </type> <parameter>scaley</parameter></paramdef> </"
12580"funcprototype> <funcprototype> <funcdef>raster <function>ST_Transform</"
12581"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
12582"parameter></paramdef> <paramdef><type>integer </type> <parameter>srid</"
12583"parameter></paramdef> <paramdef><type>double precision </type> "
12584"<parameter>scalex</parameter></paramdef> <paramdef><type>double precision </"
12585"type> <parameter>scaley</parameter></paramdef> <paramdef choice=\"opt"
12586"\"><type>text </type> <parameter>algorithm=NearestNeighbor</parameter></"
12587"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
12588"<parameter>maxerr=0.125</parameter></paramdef> </funcprototype> "
12589"<funcprototype> <funcdef>raster <function>ST_Transform</function></funcdef> "
12590"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12591"<paramdef><type>raster </type> <parameter>alignto</parameter></paramdef> "
12592"<paramdef choice=\"opt\"><type>text </type> "
12593"<parameter>algorithm=NearestNeighbor</parameter></paramdef> <paramdef choice="
12594"\"opt\"><type>double precision </type> <parameter>maxerr=0.125</parameter></"
12595"paramdef> </funcprototype>"
12596
12597#. Tag: para
12598#: reference_raster.xml:4889
12599#, no-c-format
12600msgid ""
12601"Reprojects a raster in a known spatial reference system to another known "
12602"spatial reference system using specified pixel warping algorithm. Uses "
12603"'NearestNeighbor' if no algorithm is specified and maxerror percent of 0.125 "
12604"if no maxerr is specified."
12605msgstr ""
12606"ラスタを既知の空間参照系から他の既知の空間参照系に、指定したリサンプリングア"
12607"ルゴリズムで投影変換します。algorithmが指定されていない場合に"
12608"は'NearestNeighbor'とし、maxerrorが指定されていない場合には0.125とします。"
12609
12610#. Tag: para
12611#: reference_raster.xml:4893
12612#, no-c-format
12613msgid ""
12614"ST_Transform is often confused with ST_SetSRID(). ST_Transform actually "
12615"changes the coordinates of a raster (and resamples the pixel values) from "
12616"one spatial reference system to another, while ST_SetSRID() simply changes "
12617"the SRID identifier of the raster."
12618msgstr ""
12619"ST_TransformはしばしばST_SetSRIDと混同されます。ST_Transformは、ある空間参照"
12620"系から別の空間参照系に変更する際に、実際にラスタの座標を変更します (かつピク"
12621"セル値のリサンプリングを行います)が、ST_SetSRIDは単にラスタの空間参照系識別子"
12622"を変更するだけです。"
12623
12624#. Tag: para
12625#: reference_raster.xml:4897
12626#, no-c-format
12627msgid ""
12628"Unlike the other variants, Variant 3 requires a reference raster as "
12629"<varname>alignto</varname>. The transformed raster will be transformed to "
12630"the spatial reference system (SRID) of the reference raster and be aligned "
12631"(ST_SameAlignment = TRUE) to the reference raster."
12632msgstr ""
12633"三つ目の形式は、他の形式と違い、<varname>alignto</varname>として参照ラスタが"
12634"求められます。投影変換したラスタは参照ラスタの空間参照系 (SRID)に投影変換し"
12635"て、参照ラスタと同じアラインメントを持つようにします (ST_SameAlignmentがTRUE"
12636"になるようにします)。"
12637
12638#. Tag: para
12639#: reference_raster.xml:4902
12640#, no-c-format
12641msgid ""
12642"If you find your transformation support is not working right, you may need "
12643"to set the environment variable PROJSO to the .so or .dll projection library "
12644"your PostGIS is using. This just needs to have the name of the file. So for "
12645"example on windows, you would in Control Panel -> System -> Environment "
12646"Variables add a system variable called <varname>PROJSO</varname> and set it "
12647"to <varname>libproj.dll</varname> (if you are using proj 4.6.1). You'll have "
12648"to restart your PostgreSQL service/daemon after this change."
12649msgstr ""
12650"変換機能が思ったように働かない場合には、環境変数PROJSOをPostGISが使用する投影"
12651"変換ライブラリの.soまたは.dllに指定する必要があるかも知れません。ファイル名の"
12652"指定だけ必要です。Windowsでの例として、コントロールパネル-&gt;システム-&gt;シ"
12653"ステムの詳細設定-&gt;環境変数で、<varname>PROJSO</varname>という名前のシステ"
12654"ム変数を追加して、<varname>libproj.dll</varname> (Proj 4.6.1を使用している場"
12655"合)を設定します。変更後はPostgreSQLサービス/デーモンを再起動します。"
12656
12657#. Tag: para
12658#: reference_raster.xml:4908
12659#, no-c-format
12660msgid "Enhanced: 2.1.0 Addition of ST_Transform(rast, alignto) variant"
12661msgstr "Enhanced: 2.1.0 ST_Tranfrorm(rast, alignto)の形式を追加しました。"
12662
12663#. Tag: programlisting
12664#: reference_raster.xml:4914
12665#, no-c-format
12666msgid ""
12667"SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,\n"
12668"  ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after\n"
12669"        FROM\n"
12670"        ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84\n"
12671"  ,  ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin\n"
12672"                FROM aerials.o_2_boston\n"
12673"                        WHERE ST_Intersects(rast,\n"
12674"                                ST_Transform(ST_MakeEnvelope(-71.128, "
12675"42.2392,-71.1277, 42.2397, 4326),26986) )\n"
12676"                LIMIT 1) As foo;\n"
12677"\n"
12678" w_before | w_after | h_before | h_after\n"
12679"----------+---------+----------+---------\n"
12680"      200 |     228 |      200 |     170"
12681msgstr ""
12682"SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,\n"
12683"  ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after\n"
12684"        FROM\n"
12685"        ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84\n"
12686"  ,  ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin\n"
12687"                FROM aerials.o_2_boston\n"
12688"                        WHERE ST_Intersects(rast,\n"
12689"                                ST_Transform(ST_MakeEnvelope(-71.128, "
12690"42.2392,-71.1277, 42.2397, 4326),26986) )\n"
12691"                LIMIT 1) As foo;\n"
12692"\n"
12693" w_before | w_after | h_before | h_after\n"
12694"----------+---------+----------+---------\n"
12695"      200 |     228 |      200 |     170"
12696
12697#. Tag: para
12698#: reference_raster.xml:4924
12699#, no-c-format
12700msgid "original mass state plane meters (mass_stm)"
12701msgstr "元のラスタはメートル単位のマサチューセッツ州平面 (mass_stm)"
12702
12703#. Tag: para
12704#: reference_raster.xml:4933
12705#, no-c-format
12706msgid "After transform to wgs 84 long lat (wgs_84)"
12707msgstr "WGS84経度緯度に変換した後 (wgs_84)"
12708
12709#. Tag: para
12710#: reference_raster.xml:4942
12711#, no-c-format
12712msgid ""
12713"After transform to wgs 84 long lat with bilinear algorithm instead of NN "
12714"default (wgs_84_bilin)"
12715msgstr ""
12716"最近傍補間の代わりに双線形補間を使ってWGS84経度緯度に変換した後 "
12717"(wgs_84_bilin)"
12718
12719#. Tag: para
12720#: reference_raster.xml:4955
12721#, no-c-format
12722msgid ""
12723"The following shows the difference between using ST_Transform(raster, srid) "
12724"and ST_Transform(raster, alignto)"
12725msgstr ""
12726"次に示す例は、ST_Transform(raster, srid)とST_Transform(raster, alignto)との違"
12727"いを示しています。"
12728
12729#. Tag: programlisting
12730#: reference_raster.xml:4956
12731#, no-c-format
12732msgid ""
12733"WITH foo AS (\n"
12734"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, "
12735"600000, 100, -100, 0, 0, 2163), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
12736"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 600000, 100, "
12737"-100, 0, 0, 2163), 1, '16BUI', 2, 0) AS rast UNION ALL\n"
12738"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 600000, 100, "
12739"-100, 0, 0, 2163), 1, '16BUI', 3, 0) AS rast UNION ALL\n"
12740"\n"
12741"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599800, 100, "
12742"-100, 0, 0, 2163), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
12743"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599800, 100, "
12744"-100, 0, 0, 2163), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
12745"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599800, 100, "
12746"-100, 0, 0, 2163), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
12747"\n"
12748"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599600, 100, "
12749"-100, 0, 0, 2163), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
12750"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599600, 100, "
12751"-100, 0, 0, 2163), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
12752"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599600, 100, "
12753"-100, 0, 0, 2163), 1, '16BUI', 300, 0) AS rast\n"
12754"), bar AS (\n"
12755"        SELECT\n"
12756"                ST_Transform(rast, 4269) AS alignto\n"
12757"        FROM foo\n"
12758"        LIMIT 1\n"
12759"), baz AS (\n"
12760"        SELECT\n"
12761"                rid,\n"
12762"                rast,\n"
12763"                ST_Transform(rast, 4269) AS not_aligned,\n"
12764"                ST_Transform(rast, alignto) AS aligned\n"
12765"        FROM foo\n"
12766"        CROSS JOIN bar\n"
12767")\n"
12768"SELECT\n"
12769"        ST_SameAlignment(rast) AS rast,\n"
12770"        ST_SameAlignment(not_aligned) AS not_aligned,\n"
12771"        ST_SameAlignment(aligned) AS aligned\n"
12772"FROM baz\n"
12773"\n"
12774" rast | not_aligned | aligned\n"
12775"------+-------------+---------\n"
12776" t    | f           | t"
12777msgstr ""
12778"WITH foo AS (\n"
12779"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, "
12780"600000, 100, -100, 0, 0, 2163), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
12781"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 600000, 100, "
12782"-100, 0, 0, 2163), 1, '16BUI', 2, 0) AS rast UNION ALL\n"
12783"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 600000, 100, "
12784"-100, 0, 0, 2163), 1, '16BUI', 3, 0) AS rast UNION ALL\n"
12785"\n"
12786"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599800, 100, "
12787"-100, 0, 0, 2163), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
12788"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599800, 100, "
12789"-100, 0, 0, 2163), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
12790"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599800, 100, "
12791"-100, 0, 0, 2163), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
12792"\n"
12793"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, -500000, 599600, 100, "
12794"-100, 0, 0, 2163), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
12795"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499800, 599600, 100, "
12796"-100, 0, 0, 2163), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
12797"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, -499600, 599600, 100, "
12798"-100, 0, 0, 2163), 1, '16BUI', 300, 0) AS rast\n"
12799"), bar AS (\n"
12800"        SELECT\n"
12801"                ST_Transform(rast, 4269) AS alignto\n"
12802"        FROM foo\n"
12803"        LIMIT 1\n"
12804"), baz AS (\n"
12805"        SELECT\n"
12806"                rid,\n"
12807"                rast,\n"
12808"                ST_Transform(rast, 4269) AS not_aligned,\n"
12809"                ST_Transform(rast, alignto) AS aligned\n"
12810"        FROM foo\n"
12811"        CROSS JOIN bar\n"
12812")\n"
12813"SELECT\n"
12814"        ST_SameAlignment(rast) AS rast,\n"
12815"        ST_SameAlignment(not_aligned) AS not_aligned,\n"
12816"        ST_SameAlignment(aligned) AS aligned\n"
12817"FROM baz\n"
12818"\n"
12819" rast | not_aligned | aligned\n"
12820"------+-------------+---------\n"
12821" t    | f           | t"
12822
12823#. Tag: para
12824#: reference_raster.xml:4961
12825#, no-c-format
12826msgid ", <xref linkend=\"RT_ST_SetSRID\"/>"
12827msgstr ", <xref linkend=\"RT_ST_SetSRID\"/>"
12828
12829#. Tag: title
12830#: reference_raster.xml:4967
12831#, no-c-format
12832msgid "Raster Band Editors"
12833msgstr "ラスタバンドエディタ"
12834
12835#. Tag: refname
12836#: reference_raster.xml:4971
12837#, no-c-format
12838msgid "ST_SetBandNoDataValue"
12839msgstr "ST_SetBandNoDataValue"
12840
12841#. Tag: refpurpose
12842#: reference_raster.xml:4972
12843#, no-c-format
12844msgid ""
12845"Sets the value for the given band that represents no data. Band 1 is assumed "
12846"if no band is specified. To mark a band as having no nodata value, set the "
12847"nodata value = NULL."
12848msgstr ""
12849"指定したバンドにNODATAを表現する値を設定します。バンドを指定しない場合には、1"
12850"番と仮定します。NODATA値を持たないようにするには、nodatavalueにNULLを指定しま"
12851"す。"
12852
12853#. Tag: funcsynopsis
12854#: reference_raster.xml:4976
12855#, no-c-format
12856msgid ""
12857"<funcprototype> <funcdef>raster <function>ST_SetBandNoDataValue</function></"
12858"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
12859"paramdef> <paramdef><type>double precision </type> <parameter>nodatavalue</"
12860"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12861"<function>ST_SetBandNoDataValue</function></funcdef> <paramdef><type>raster "
12862"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
12863"type> <parameter>band</parameter></paramdef> <paramdef><type>double "
12864"precision </type> <parameter>nodatavalue</parameter></paramdef> <paramdef "
12865"choice=\"opt\"><type>boolean </type> <parameter>forcechecking=false</"
12866"parameter></paramdef> </funcprototype>"
12867msgstr ""
12868"<funcprototype> <funcdef>raster <function>ST_SetBandNoDataValue</function></"
12869"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
12870"paramdef> <paramdef><type>double precision </type> <parameter>nodatavalue</"
12871"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
12872"<function>ST_SetBandNoDataValue</function></funcdef> <paramdef><type>raster "
12873"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
12874"type> <parameter>band</parameter></paramdef> <paramdef><type>double "
12875"precision </type> <parameter>nodatavalue</parameter></paramdef> <paramdef "
12876"choice=\"opt\"><type>boolean </type> <parameter>forcechecking=false</"
12877"parameter></paramdef> </funcprototype>"
12878
12879#. Tag: para
12880#: reference_raster.xml:4997
12881#, no-c-format
12882msgid ""
12883"Sets the value that represents no data for the band. Band 1 is assumed if "
12884"not specified. This will affect results from <xref linkend=\"RT_ST_Polygon\"/"
12885">, <xref linkend=\"RT_ST_DumpAsPolygons\"/>, and the ST_PixelAs...() "
12886"functions."
12887msgstr ""
12888"指定したバンドにNODATAを表現する値を設定します。バンドを指定しない場合には、1"
12889"番と仮定します。この関数は<xref linkend=\"RT_ST_Polygon\"/>, <xref linkend="
12890"\"RT_ST_DumpAsPolygons\"/>, ST_PixelAs系関数群からの結果に影響を与えます。"
12891
12892#. Tag: programlisting
12893#: reference_raster.xml:5003
12894#, no-c-format
12895msgid ""
12896"-- change just first band no data value\n"
12897"UPDATE dummy_rast\n"
12898"        SET rast = ST_SetBandNoDataValue(rast,1, 254)\n"
12899"WHERE rid = 2;\n"
12900"\n"
12901"-- change no data band value of bands 1,2,3\n"
12902"UPDATE dummy_rast\n"
12903"        SET rast =\n"
12904"                ST_SetBandNoDataValue(\n"
12905"                        ST_SetBandNoDataValue(\n"
12906"                                ST_SetBandNoDataValue(\n"
12907"                                        rast,1, 254)\n"
12908"                                ,2,99),\n"
12909"                                3,108)\n"
12910"                WHERE rid = 2;\n"
12911"\n"
12912"-- wipe out the nodata value this will ensure all pixels are considered for "
12913"all processing functions\n"
12914"UPDATE dummy_rast\n"
12915"        SET rast = ST_SetBandNoDataValue(rast,1, NULL)\n"
12916"WHERE rid = 2;"
12917msgstr ""
12918"-- 1番バンドのNODATA値を変更します\n"
12919"UPDATE dummy_rast\n"
12920"        SET rast = ST_SetBandNoDataValue(rast,1, 254)\n"
12921"WHERE rid = 2;\n"
12922"\n"
12923"-- 1番、2番、3番のNODATA値を変更します\n"
12924"UPDATE dummy_rast\n"
12925"        SET rast =\n"
12926"                ST_SetBandNoDataValue(\n"
12927"                        ST_SetBandNoDataValue(\n"
12928"                                ST_SetBandNoDataValue(\n"
12929"                                        rast,1, 254)\n"
12930"                                ,2,99),\n"
12931"                                3,108)\n"
12932"                WHERE rid = 2;\n"
12933"\n"
12934"-- NODATA値の設定を解除して、処理関数が全てのピクセルを考慮するようにします\n"
12935"-- wipe out the nodata value this will ensure all pixels are considered for "
12936"all processing functions\n"
12937"UPDATE dummy_rast\n"
12938"        SET rast = ST_SetBandNoDataValue(rast,1, NULL)\n"
12939"WHERE rid = 2;"
12940
12941#. Tag: refname
12942#: reference_raster.xml:5015
12943#, no-c-format
12944msgid "ST_SetBandIsNoData"
12945msgstr "ST_SetBandIsNoData"
12946
12947#. Tag: refpurpose
12948#: reference_raster.xml:5016
12949#, no-c-format
12950msgid "Sets the isnodata flag of the band to TRUE."
12951msgstr "バンドのisnodataフラグをTRUEにします。"
12952
12953#. Tag: funcprototype
12954#: reference_raster.xml:5021
12955#, no-c-format
12956msgid ""
12957"<funcdef>raster <function>ST_SetBandIsNoData</function></funcdef> "
12958"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12959"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
12960"parameter></paramdef>"
12961msgstr ""
12962"<funcdef>raster <function>ST_SetBandIsNoData</function></funcdef> "
12963"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
12964"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
12965"parameter></paramdef>"
12966
12967#. Tag: para
12968#: reference_raster.xml:5032
12969#, no-c-format
12970msgid ""
12971"Sets the isnodata flag for the band to true. Band 1 is assumed if not "
12972"specified. This function should be called only when the flag is considered "
12973"dirty. That is, when the result calling <xref linkend=\"RT_ST_BandIsNoData\"/"
12974"> is different using TRUE as last argument and without using it"
12975msgstr ""
12976"バンドのisnodataフラグをTRUEにします。バンドを指定しない場合には、1番と仮定し"
12977"ます。isnodataフラグが汚れている場合にのみ呼ぶべきものです。<xref linkend="
12978"\"RT_ST_BandIsNoData\"/>の、最後の引数にTRUEを設定した場合の結果と指定しない"
12979"場合の結果とで異なっている時です。"
12980
12981#. Tag: programlisting
12982#: reference_raster.xml:5044
12983#, no-c-format
12984msgid ""
12985"-- Create dummy table with one raster column\n"
12986"create table dummy_rast (rid integer, rast raster);\n"
12987"\n"
12988"-- Add raster with two bands, one pixel/band. In the first band, nodatavalue "
12989"= pixel value = 3.\n"
12990"-- In the second band, nodatavalue = 13, pixel value = 4\n"
12991"insert into dummy_rast values(1,\n"
12992"(\n"
12993"'01' -- little endian (uint8 ndr)\n"
12994"||\n"
12995"'0000' -- version (uint16 0)\n"
12996"||\n"
12997"'0200' -- nBands (uint16 0)\n"
12998"||\n"
12999"'17263529ED684A3F' -- scaleX (float64 0.000805965234044584)\n"
13000"||\n"
13001"'F9253529ED684ABF' -- scaleY (float64 -0.00080596523404458)\n"
13002"||\n"
13003"'1C9F33CE69E352C0' -- ipX (float64 -75.5533328537098)\n"
13004"||\n"
13005"'718F0E9A27A44840' -- ipY (float64 49.2824585505576)\n"
13006"||\n"
13007"'ED50EB853EC32B3F' -- skewX (float64 0.000211812383858707)\n"
13008"||\n"
13009"'7550EB853EC32B3F' -- skewY (float64 0.000211812383858704)\n"
13010"||\n"
13011"'E6100000' -- SRID (int32 4326)\n"
13012"||\n"
13013"'0100' -- width (uint16 1)\n"
13014"||\n"
13015"'0100' -- height (uint16 1)\n"
13016"||\n"
13017"'4' -- hasnodatavalue set to true, isnodata value set to false (when it "
13018"should be true)\n"
13019"||\n"
13020"'2' -- first band type (4BUI)\n"
13021"||\n"
13022"'03' -- novalue==3\n"
13023"||\n"
13024"'03' -- pixel(0,0)==3 (same that nodata)\n"
13025"||\n"
13026"'0' -- hasnodatavalue set to false\n"
13027"||\n"
13028"'5' -- second band type (16BSI)\n"
13029"||\n"
13030"'0D00' -- novalue==13\n"
13031"||\n"
13032"'0400' -- pixel(0,0)==4\n"
13033")::raster\n"
13034");\n"
13035"\n"
13036"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
13037"false\n"
13038"select st_bandisnodata(rast, 1, TRUE) from dummy_rast where rid = 1; -- "
13039"Expected true\n"
13040"\n"
13041"-- The isnodata flag is dirty. We are going to set it to true\n"
13042"update dummy_rast set rast = st_setbandisnodata(rast, 1) where rid = 1;\n"
13043"\n"
13044"\n"
13045"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- Expected "
13046"true"
13047msgstr ""
13048"-- ラスタカラムを一つ持つダミーテーブルを生成します\n"
13049"create table dummy_rast (rid integer, rast raster);\n"
13050"\n"
13051"-- 2バンドでバンドごとに1ピクセルを持つラスタを追加します\n"
13052"-- 一つ目のバンドにはnodatavalueとピクセル値をともに3とし、\n"
13053"-- 二つ目のバンドにはnodatavalue=13とピクセル値=4とします。\n"
13054"insert into dummy_rast values(1,\n"
13055"(\n"
13056"'01' -- little endian - リトルエンディアン (uint8 ndr)\n"
13057"||\n"
13058"'0000' -- version - 版 (uint16 0)\n"
13059"||\n"
13060"'0200' -- nBands - バンド数 (uint16 0)\n"
13061"||\n"
13062"'17263529ED684A3F' -- scaleX - X方向セルサイズ (float64 "
13063"0.000805965234044584)\n"
13064"||\n"
13065"'F9253529ED684ABF' -- scaleY - Y方向セルサイズ (float64 "
13066"-0.00080596523404458)\n"
13067"||\n"
13068"'1C9F33CE69E352C0' -- ipX - 左上隅X値 (float64 -75.5533328537098)\n"
13069"||\n"
13070"'718F0E9A27A44840' -- ipY - 左上隅Y値 (float64 49.2824585505576)\n"
13071"||\n"
13072"'ED50EB853EC32B3F' -- skewX - スキューX (float64 0.000211812383858707)\n"
13073"||\n"
13074"'7550EB853EC32B3F' -- skewY - スキューY (float64 0.000211812383858704)\n"
13075"||\n"
13076"'E6100000' -- SRID (int32 4326)\n"
13077"||\n"
13078"'0100' -- width - 横セル数 (uint16 1)\n"
13079"||\n"
13080"'0100' -- height - 縦セル数 (uint16 1)\n"
13081"||\n"
13082"'4' -- hasnodatavalueをTRUEにし、isnodata値を (TRUEにするべきところ)FALSEにす"
13083"る\n"
13084"||\n"
13085"'2' -- 1番バンドのタイプ (4BUI)\n"
13086"||\n"
13087"'03' -- NODATA値==3\n"
13088"||\n"
13089"'03' -- 0列0行ピクセルの値==3 (NODATA値と同じ)\n"
13090"||\n"
13091"'0' -- hasnodatavalueをFALSEにする。\n"
13092"||\n"
13093"'5' -- 2番バンドのタイプ (16BSI)\n"
13094"||\n"
13095"'0D00' -- NODATA値==13\n"
13096"||\n"
13097"'0400' -- 0列0行ピクセルの値==4\n"
13098")::raster\n"
13099");\n"
13100"\n"
13101"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- FALSEを期"
13102"待\n"
13103"select st_bandisnodata(rast, 1, TRUE) from dummy_rast where rid = 1; -- TRUE"
13104"を期待\n"
13105"\n"
13106"-- isnodataフラグが汚れているのでTRUEに設定します\n"
13107"update dummy_rast set rast = st_setbandisnodata(rast, 1) where rid = 1;\n"
13108"\n"
13109"\n"
13110"select st_bandisnodata(rast, 1) from dummy_rast where rid = 1; -- TRUEを期待"
13111
13112#. Tag: para
13113#: reference_raster.xml:5050
13114#, no-c-format
13115msgid ""
13116", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
13117"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_BandIsNoData\"/>"
13118msgstr ""
13119", <xref linkend=\"RT_ST_NumBands\"/>, <xref linkend="
13120"\"RT_ST_SetBandNoDataValue\"/>, <xref linkend=\"RT_ST_BandIsNoData\"/>"
13121
13122#. Tag: refname
13123#: reference_raster.xml:5059
13124#, no-c-format
13125msgid "ST_SetBandPath"
13126msgstr "ST_SetBandPath"
13127
13128#. Tag: refpurpose
13129#: reference_raster.xml:5060
13130#, no-c-format
13131msgid "Update the external path and band number of an out-db band"
13132msgstr "データベース外バンドの外部パスとバンド番号を更新します。"
13133
13134#. Tag: funcprototype
13135#: reference_raster.xml:5065
13136#, no-c-format
13137msgid ""
13138"<funcdef>raster <function>ST_SetBandPath</function></funcdef> "
13139"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13140"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
13141"<paramdef><type>text </type> <parameter>outdbpath</parameter></paramdef> "
13142"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
13143"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
13144"parameter></paramdef>"
13145msgstr ""
13146"<funcdef>raster <function>ST_SetBandPath</function></funcdef> "
13147"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13148"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
13149"<paramdef><type>text </type> <parameter>outdbpath</parameter></paramdef> "
13150"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
13151"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
13152"parameter></paramdef>"
13153
13154#. Tag: para
13155#: reference_raster.xml:5079
13156#, no-c-format
13157msgid ""
13158"Updates an out-db band's external raster file path and external band number."
13159msgstr "データベース外バンドの外部パスと外部バンド番号を更新します。"
13160
13161#. Tag: para
13162#: reference_raster.xml:5082
13163#, no-c-format
13164msgid ""
13165"If <varname>force</varname> is set to true, no tests are done to ensure "
13166"compatibility (e.g. alignment, pixel support) between the external raster "
13167"file and the PostGIS raster. This mode is intended for file system changes "
13168"where the external raster resides."
13169msgstr ""
13170"<varname>force</varname>がTRUEの場合には、外部ラスタファイルとPostGISラスタと"
13171"の互換性 (例:アラインメント、ピクセル対応)確認のためのテストを行いません。こ"
13172"のモードは、外部ラスタファイルが存在するファイルシステムの変更を目的としてい"
13173"ます。"
13174
13175#. Tag: para
13176#: reference_raster.xml:5088 reference_raster.xml:5141
13177#, no-c-format
13178msgid ""
13179"Internally, this method replaces the PostGIS raster's band at index "
13180"<varname>band</varname> with a new band instead of updating the existing "
13181"path information."
13182msgstr ""
13183"内部的には、このメソッドは、存在するパス情報を更新する替わりに、PostGISラスタ"
13184"の<varname>band</varname>で指定したバンドを新しいバンドに置き換えます。"
13185
13186#. Tag: programlisting
13187#: reference_raster.xml:5098
13188#, no-c-format
13189msgid ""
13190"WITH foo AS (\n"
13191"        SELECT\n"
13192"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
13193"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
13194")\n"
13195"SELECT\n"
13196"        1 AS query,\n"
13197"        *\n"
13198"FROM ST_BandMetadata(\n"
13199"        (SELECT rast FROM foo),\n"
13200"         ARRAY[1,3,2]::int[]\n"
13201")\n"
13202"UNION ALL\n"
13203"SELECT\n"
13204"        2,\n"
13205"        *\n"
13206"FROM ST_BandMetadata(\n"
13207"        (\n"
13208"                SELECT\n"
13209"                        <emphasis role=\"strong\">ST_SetBandPath(\n"
13210"                                rast,\n"
13211"                                2,\n"
13212"                                '/home/pele/devel/geo/postgis-git/raster/"
13213"test/regress/loader/Projected2.tif',\n"
13214"                                1\n"
13215"                        )</emphasis> AS rast\n"
13216"                 FROM foo\n"
13217"        ),\n"
13218"         ARRAY[1,3,2]::int[]\n"
13219")\n"
13220"ORDER BY 1, 2;\n"
13221"\n"
13222" query | bandnum | pixeltype | nodatavalue | isoutdb "
13223"|                                      "
13224"path                                       | outdbbandnum\n"
13225"-------+---------+-----------+-------------+---------"
13226"+---------------------------------------------------------------------------------"
13227"+--------------\n"
13228"     1 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13229"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13230"     1 |       2 | 8BUI      |             | t       | /home/pele/devel/geo/"
13231"postgis-git/raster/test/regress/loader/Projected.tif       |            2\n"
13232"     1 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13233"postgis-git/raster/test/regress/loader/Projected.tif       |            3\n"
13234"     2 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13235"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13236"<emphasis role=\"strong\">     2 |       2 | 8BUI      |             | "
13237"t       | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
13238"Projected2.tif      |            1</emphasis>\n"
13239"     2 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13240"postgis-git/raster/test/regress/loader/Projected.tif       |            3"
13241msgstr ""
13242"WITH foo AS (\n"
13243"        SELECT\n"
13244"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
13245"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
13246")\n"
13247"SELECT\n"
13248"        1 AS query,\n"
13249"        *\n"
13250"FROM ST_BandMetadata(\n"
13251"        (SELECT rast FROM foo),\n"
13252"         ARRAY[1,3,2]::int[]\n"
13253")\n"
13254"UNION ALL\n"
13255"SELECT\n"
13256"        2,\n"
13257"        *\n"
13258"FROM ST_BandMetadata(\n"
13259"        (\n"
13260"                SELECT\n"
13261"                        <emphasis role=\"strong\">ST_SetBandPath(\n"
13262"                                rast,\n"
13263"                                2,\n"
13264"                                '/home/pele/devel/geo/postgis-git/raster/"
13265"test/regress/loader/Projected2.tif',\n"
13266"                                1\n"
13267"                        )</emphasis> AS rast\n"
13268"                 FROM foo\n"
13269"        ),\n"
13270"         ARRAY[1,3,2]::int[]\n"
13271")\n"
13272"ORDER BY 1, 2;\n"
13273"\n"
13274" query | bandnum | pixeltype | nodatavalue | isoutdb "
13275"|                                      "
13276"path                                       | outdbbandnum\n"
13277"-------+---------+-----------+-------------+---------"
13278"+---------------------------------------------------------------------------------"
13279"+--------------\n"
13280"     1 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13281"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13282"     1 |       2 | 8BUI      |             | t       | /home/pele/devel/geo/"
13283"postgis-git/raster/test/regress/loader/Projected.tif       |            2\n"
13284"     1 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13285"postgis-git/raster/test/regress/loader/Projected.tif       |            3\n"
13286"     2 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13287"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13288"<emphasis role=\"strong\">     2 |       2 | 8BUI      |             | "
13289"t       | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
13290"Projected2.tif      |            1</emphasis>\n"
13291"     2 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13292"postgis-git/raster/test/regress/loader/Projected.tif       |            3"
13293
13294#. Tag: para
13295#: reference_raster.xml:5103
13296#, no-c-format
13297msgid ", <xref linkend=\"RT_ST_SetBandIndex\"/>"
13298msgstr ", <xref linkend=\"RT_ST_SetBandIndex\"/>"
13299
13300#. Tag: refname
13301#: reference_raster.xml:5113
13302#, no-c-format
13303msgid "ST_SetBandIndex"
13304msgstr "ST_SetBandIndex"
13305
13306#. Tag: refpurpose
13307#: reference_raster.xml:5114
13308#, no-c-format
13309msgid "Update the external band number of an out-db band"
13310msgstr "データベース外バンドの外部バンド番号の更新"
13311
13312#. Tag: funcprototype
13313#: reference_raster.xml:5119
13314#, no-c-format
13315msgid ""
13316"<funcdef>raster <function>ST_SetBandIndex</function></funcdef> "
13317"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13318"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
13319"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
13320"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
13321"parameter></paramdef>"
13322msgstr ""
13323"<funcdef>raster <function>ST_SetBandIndex</function></funcdef> "
13324"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13325"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
13326"<paramdef><type>integer </type> <parameter>outdbindex</parameter></paramdef> "
13327"<paramdef choice=\"opt\"><type>boolean </type> <parameter>force=false</"
13328"parameter></paramdef>"
13329
13330#. Tag: para
13331#: reference_raster.xml:5132
13332#, no-c-format
13333msgid ""
13334"Updates an out-db band's external band number. This does not touch the "
13335"external raster file associated with the out-db band"
13336msgstr ""
13337"データベース外バンドの外部バンド番号を更新します。データベース外バンドと関連"
13338"する外部ラスタファイルには触れません。"
13339
13340#. Tag: para
13341#: reference_raster.xml:5135
13342#, no-c-format
13343msgid ""
13344"If <varname>force</varname> is set to true, no tests are done to ensure "
13345"compatibility (e.g. alignment, pixel support) between the external raster "
13346"file and the PostGIS raster. This mode is intended for where bands are moved "
13347"around in the external raster file."
13348msgstr ""
13349"<varname>force</varname>がTRUEの場合には、外部ラスタファイルとPostGISラスタと"
13350"の互換性 (例:アラインメント、ピクセル対応)確認のためのテストを行いません。こ"
13351"のモードは、バンドが外部ラスタファイル内で移動する場所を対象としています。"
13352
13353#. Tag: programlisting
13354#: reference_raster.xml:5151
13355#, no-c-format
13356msgid ""
13357"WITH foo AS (\n"
13358"        SELECT\n"
13359"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
13360"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
13361")\n"
13362"SELECT\n"
13363"        1 AS query,\n"
13364"        *\n"
13365"FROM ST_BandMetadata(\n"
13366"        (SELECT rast FROM foo),\n"
13367"         ARRAY[1,3,2]::int[]\n"
13368")\n"
13369"UNION ALL\n"
13370"SELECT\n"
13371"        2,\n"
13372"        *\n"
13373"FROM ST_BandMetadata(\n"
13374"        (\n"
13375"                SELECT\n"
13376"                        <emphasis role=\"strong\">ST_SetBandIndex(\n"
13377"                                rast,\n"
13378"                                2,\n"
13379"                                1\n"
13380"                        )</emphasis> AS rast\n"
13381"                 FROM foo\n"
13382"        ),\n"
13383"         ARRAY[1,3,2]::int[]\n"
13384")\n"
13385"ORDER BY 1, 2;\n"
13386"\n"
13387" query | bandnum | pixeltype | nodatavalue | isoutdb "
13388"|                                      "
13389"path                                       | outdbbandnum\n"
13390"-------+---------+-----------+-------------+---------"
13391"+---------------------------------------------------------------------------------"
13392"+--------------\n"
13393"     1 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13394"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13395"     1 |       2 | 8BUI      |             | t       | /home/pele/devel/geo/"
13396"postgis-git/raster/test/regress/loader/Projected.tif       |            2\n"
13397"     1 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13398"postgis-git/raster/test/regress/loader/Projected.tif       |            3\n"
13399"     2 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13400"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13401"<emphasis role=\"strong\">     2 |       2 | 8BUI      |             | "
13402"t       | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
13403"Projected.tif       |            1</emphasis>\n"
13404"     2 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13405"postgis-git/raster/test/regress/loader/Projected.tif       |            3"
13406msgstr ""
13407"WITH foo AS (\n"
13408"        SELECT\n"
13409"                ST_AddBand(NULL::raster, '/home/pele/devel/geo/postgis-git/"
13410"raster/test/regress/loader/Projected.tif', NULL::int[]) AS rast\n"
13411")\n"
13412"SELECT\n"
13413"        1 AS query,\n"
13414"        *\n"
13415"FROM ST_BandMetadata(\n"
13416"        (SELECT rast FROM foo),\n"
13417"         ARRAY[1,3,2]::int[]\n"
13418")\n"
13419"UNION ALL\n"
13420"SELECT\n"
13421"        2,\n"
13422"        *\n"
13423"FROM ST_BandMetadata(\n"
13424"        (\n"
13425"                SELECT\n"
13426"                        <emphasis role=\"strong\">ST_SetBandIndex(\n"
13427"                                rast,\n"
13428"                                2,\n"
13429"                                1\n"
13430"                        )</emphasis> AS rast\n"
13431"                 FROM foo\n"
13432"        ),\n"
13433"         ARRAY[1,3,2]::int[]\n"
13434")\n"
13435"ORDER BY 1, 2;\n"
13436"\n"
13437" query | bandnum | pixeltype | nodatavalue | isoutdb "
13438"|                                      "
13439"path                                       | outdbbandnum\n"
13440"-------+---------+-----------+-------------+---------"
13441"+---------------------------------------------------------------------------------"
13442"+--------------\n"
13443"     1 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13444"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13445"     1 |       2 | 8BUI      |             | t       | /home/pele/devel/geo/"
13446"postgis-git/raster/test/regress/loader/Projected.tif       |            2\n"
13447"     1 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13448"postgis-git/raster/test/regress/loader/Projected.tif       |            3\n"
13449"     2 |       1 | 8BUI      |             | t       | /home/pele/devel/geo/"
13450"postgis-git/raster/test/regress/loader/Projected.tif       |            1\n"
13451"<emphasis role=\"strong\">     2 |       2 | 8BUI      |             | "
13452"t       | /home/pele/devel/geo/postgis-git/raster/test/regress/loader/"
13453"Projected.tif       |            1</emphasis>\n"
13454"     2 |       3 | 8BUI      |             | t       | /home/pele/devel/geo/"
13455"postgis-git/raster/test/regress/loader/Projected.tif       |            3"
13456
13457#. Tag: para
13458#: reference_raster.xml:5156
13459#, no-c-format
13460msgid ", <xref linkend=\"RT_ST_SetBandPath\"/>"
13461msgstr ", <xref linkend=\"RT_ST_SetBandPath\"/>"
13462
13463#. Tag: title
13464#: reference_raster.xml:5167
13465#, no-c-format
13466msgid "Raster Band Statistics and Analytics"
13467msgstr "ラスタバンド統計情報と解析"
13468
13469#. Tag: refname
13470#: reference_raster.xml:5171
13471#, no-c-format
13472msgid "ST_Count"
13473msgstr "ST_Count"
13474
13475#. Tag: refpurpose
13476#: reference_raster.xml:5172
13477#, no-c-format
13478msgid ""
13479"Returns the number of pixels in a given band of a raster or raster coverage. "
13480"If no band is specified defaults to band 1. If exclude_nodata_value is set "
13481"to true, will only count pixels that are not equal to the nodata value."
13482msgstr ""
13483"ラスタまたはラスタカバレッジの指定したバンドのピクセル数を返します。バンドを"
13484"指定しない場合には、1番と仮定します。exclude_nodata_valueをTRUEに設定している"
13485"場合には、NODATA値と等しくないピクセルのみを数えます。"
13486
13487#. Tag: funcsynopsis
13488#: reference_raster.xml:5176
13489#, no-c-format
13490msgid ""
13491"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
13492"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13493"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13494"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13495"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
13496"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
13497"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13498"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13499"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13500"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
13501"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13502"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
13503"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
13504"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
13505"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13506"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
13507"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13508"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>boolean </"
13509"type> <parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
13510msgstr ""
13511"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
13512"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13513"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13514"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13515"<parameter>exclude_nodata_value=true</parameter></paramdef> </funcprototype> "
13516"<funcprototype> <funcdef>bigint <function>ST_Count</function></funcdef> "
13517"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13518"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13519"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13520"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
13521"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13522"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
13523"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
13524"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
13525"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13526"<function>ST_Count</function></funcdef> <paramdef><type>text </type> "
13527"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13528"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>boolean </"
13529"type> <parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
13530
13531#. Tag: para
13532#: reference_raster.xml:5207
13533#, no-c-format
13534msgid ""
13535"Returns the number of pixels in a given band of a raster or raster coverage. "
13536"If no band is specified <varname>nband</varname> defaults to 1."
13537msgstr ""
13538"ラスタまたはラスタカバレッジの指定したバンドのピクセル数を返します。"
13539"<varname>nband</varname>でバンドを指定しない場合には、1番と仮定します。"
13540
13541#. Tag: para
13542#: reference_raster.xml:5208
13543#, no-c-format
13544msgid ""
13545"If <varname>exclude_nodata_value</varname> is set to true, will only count "
13546"pixels with value not equal to the <varname>nodata</varname> value of the "
13547"raster. Set <varname>exclude_nodata_value</varname> to false to get count "
13548"all pixels"
13549msgstr ""
13550"<varname>exclude_nodata_value</varname>をTRUEに設定している場合には、"
13551"<varname>nodata</varname>値と等しくないピクセルのみ数えます。"
13552"<varname>exclude_nodata_value</varname>をFALSEに設定している場合には、全ての"
13553"ピクセルを数えます。"
13554
13555#. Tag: para
13556#: reference_raster.xml:5212
13557#, no-c-format
13558msgid ""
13559"The ST_Count(rastertable, rastercolumn, ...) variants are deprecated as of "
13560"2.2.0. Use <xref linkend=\"RT_ST_CountAgg\"/> instead."
13561msgstr ""
13562"ST_Count(rastertable, rastercolumn, ...)の形式は2.2.0で非推奨関数となりまし"
13563"た。代わりに<xref linkend=\"RT_ST_CountAgg\"/>を使います。"
13564
13565#. Tag: programlisting
13566#: reference_raster.xml:5222
13567#, no-c-format
13568msgid ""
13569"--example will count all pixels not 249 and one will count all pixels.  --\n"
13570"SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata,\n"
13571"        ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata\n"
13572"    FROM dummy_rast WHERE rid=2;\n"
13573"\n"
13574"rid | exclude_nodata | include_nodata\n"
13575"-----+----------------+----------------\n"
13576"   2 |             23 |             25"
13577msgstr ""
13578"-- 249でないピクセルの数え上げと、全てのピクセルの数え上げを行います --\n"
13579"SELECT rid, ST_Count(ST_SetBandNoDataValue(rast,249)) As exclude_nodata,\n"
13580"        ST_Count(ST_SetBandNoDataValue(rast,249),false) As include_nodata\n"
13581"    FROM dummy_rast WHERE rid=2;\n"
13582"\n"
13583"rid | exclude_nodata | include_nodata\n"
13584"-----+----------------+----------------\n"
13585"   2 |             23 |             25"
13586
13587#. Tag: para
13588#: reference_raster.xml:5227 reference_raster.xml:5288
13589#, no-c-format
13590msgid ""
13591", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
13592"\"RT_ST_SetBandNoDataValue\"/>"
13593msgstr ""
13594", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
13595"\"RT_ST_SetBandNoDataValue\"/>"
13596
13597#. Tag: refname
13598#: reference_raster.xml:5237
13599#, no-c-format
13600msgid "ST_CountAgg"
13601msgstr "ST_CountAgg"
13602
13603#. Tag: refpurpose
13604#: reference_raster.xml:5238
13605#, no-c-format
13606msgid ""
13607"Aggregate. Returns the number of pixels in a given band of a set of rasters. "
13608"If no band is specified defaults to band 1. If exclude_nodata_value is set "
13609"to true, will only count pixels that are not equal to the NODATA value."
13610msgstr ""
13611"集約関数です。ラスタ集合の与えられたバンドのピクセル数を返します。バンドが指"
13612"定されていない場合には、1番と仮定します。exclude_nodata_valueをTRUEに設定して"
13613"いる場合には、NODATA値と等しくないピクセルのみを数えます。"
13614
13615#. Tag: funcsynopsis
13616#: reference_raster.xml:5244
13617#, no-c-format
13618msgid ""
13619"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
13620"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13621"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13622"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13623"paramdef> <paramdef><type>double precision </type> "
13624"<parameter>sample_percent</parameter></paramdef> </funcprototype> "
13625"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
13626"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13627"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13628"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13629"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13630"<function>ST_CountAgg</function></funcdef> <paramdef><type>raster </type> "
13631"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
13632"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
13633msgstr ""
13634"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
13635"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13636"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13637"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13638"paramdef> <paramdef><type>double precision </type> "
13639"<parameter>sample_percent</parameter></paramdef> </funcprototype> "
13640"<funcprototype> <funcdef>bigint <function>ST_CountAgg</function></funcdef> "
13641"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
13642"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13643"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13644"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
13645"<function>ST_CountAgg</function></funcdef> <paramdef><type>raster </type> "
13646"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
13647"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
13648
13649#. Tag: para
13650#: reference_raster.xml:5272
13651#, no-c-format
13652msgid ""
13653"Returns the number of pixels in a given band of a set of rasters. If no band "
13654"is specified <varname>nband</varname> defaults to 1."
13655msgstr ""
13656"ラスタ集合の与えられたバンドのピクセル数を返します。<varname>nband</varname>"
13657"でバンドを指定しない場合には、1番と仮定します。"
13658
13659#. Tag: para
13660#: reference_raster.xml:5273
13661#, no-c-format
13662msgid ""
13663"If <varname>exclude_nodata_value</varname> is set to true, will only count "
13664"pixels with value not equal to the <varname>NODATA</varname> value of the "
13665"raster. Set <varname>exclude_nodata_value</varname> to false to get count "
13666"all pixels"
13667msgstr ""
13668"<varname>exclude_nodata_value</varname>をTRUEに設定している場合には、"
13669"<varname>NODATA</varname>値と等しくないピクセルのみを数えます。"
13670"<varname>exclude_nodata_value</varname>をFALSEに設定している場合には、全ての"
13671"ピクセルを数えます。"
13672
13673#. Tag: para
13674#: reference_raster.xml:5276
13675#, no-c-format
13676msgid ""
13677"By default will sample all pixels. To get faster response, set "
13678"<varname>sample_percent</varname> to value between zero (0) and one (1)"
13679msgstr ""
13680"デフォルトでは、全てのピクセルを見ます。より早い応答を得るには、"
13681"<varname>sample_percent</varname>値を0から1の間で設定します。"
13682
13683#. Tag: programlisting
13684#: reference_raster.xml:5283
13685#, no-c-format
13686msgid ""
13687"WITH foo AS (\n"
13688"        SELECT\n"
13689"                rast.rast\n"
13690"        FROM (\n"
13691"                SELECT ST_SetValue(\n"
13692"                        ST_SetValue(\n"
13693"                                ST_SetValue(\n"
13694"                                        ST_AddBand(\n"
13695"                                                ST_MakeEmptyRaster(10, 10, "
13696"10, 10, 2, 2, 0, 0,0)\n"
13697"                                                , 1, '64BF', 0, 0\n"
13698"                                        )\n"
13699"                                        , 1, 1, 1, -10\n"
13700"                                )\n"
13701"                                , 1, 5, 4, 0\n"
13702"                        )\n"
13703"                        , 1, 5, 5, 3.14159\n"
13704"                ) AS rast\n"
13705"        ) AS rast\n"
13706"        FULL JOIN (\n"
13707"                SELECT generate_series(1, 10) AS id\n"
13708"        ) AS id\n"
13709"                ON 1 = 1\n"
13710")\n"
13711"SELECT\n"
13712"        ST_CountAgg(rast, 1, TRUE)\n"
13713"FROM foo;\n"
13714"\n"
13715" st_countagg\n"
13716"-------------\n"
13717"          20\n"
13718"(1 row)"
13719msgstr ""
13720"WITH foo AS (\n"
13721"        SELECT\n"
13722"                rast.rast\n"
13723"        FROM (\n"
13724"                SELECT ST_SetValue(\n"
13725"                        ST_SetValue(\n"
13726"                                ST_SetValue(\n"
13727"                                        ST_AddBand(\n"
13728"                                                ST_MakeEmptyRaster(10, 10, "
13729"10, 10, 2, 2, 0, 0,0)\n"
13730"                                                , 1, '64BF', 0, 0\n"
13731"                                        )\n"
13732"                                        , 1, 1, 1, -10\n"
13733"                                )\n"
13734"                                , 1, 5, 4, 0\n"
13735"                        )\n"
13736"                        , 1, 5, 5, 3.14159\n"
13737"                ) AS rast\n"
13738"        ) AS rast\n"
13739"        FULL JOIN (\n"
13740"                SELECT generate_series(1, 10) AS id\n"
13741"        ) AS id\n"
13742"                ON 1 = 1\n"
13743")\n"
13744"SELECT\n"
13745"        ST_CountAgg(rast, 1, TRUE)\n"
13746"FROM foo;\n"
13747"\n"
13748" st_countagg\n"
13749"-------------\n"
13750"          20\n"
13751"(1 row)"
13752
13753#. Tag: refname
13754#: reference_raster.xml:5298
13755#, no-c-format
13756msgid "ST_Histogram"
13757msgstr "ST_Histogram"
13758
13759#. Tag: refpurpose
13760#: reference_raster.xml:5299
13761#, no-c-format
13762msgid ""
13763"Returns a set of record summarizing a raster or raster coverage data "
13764"distribution separate bin ranges. Number of bins are autocomputed if not "
13765"specified."
13766msgstr ""
13767"ラスタまたはラスタカバレッジのビン範囲で分割したデータ分布をまとめるヒストグ"
13768"ラムの集合を返します。ビン数を指定しない場合には自動計算されます。"
13769
13770#. Tag: funcsynopsis
13771#: reference_raster.xml:5303
13772#, no-c-format
13773msgid ""
13774"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
13775"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
13776"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13777"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13778"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
13779"\"opt\"><type>integer </type> <parameter>bins=autocomputed</parameter></"
13780"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
13781"<parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13782"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13783"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13784"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13785"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13786"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13787"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
13788"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13789"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13790"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13791"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13792"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13793"parameter></paramdef> <paramdef><type>boolean </type> "
13794"<parameter>exclude_nodata_value</parameter></paramdef> "
13795"<paramdef><type>integer </type> <parameter>bins</parameter></paramdef> "
13796"<paramdef><type>boolean </type> <parameter>right</parameter></paramdef> </"
13797"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13798"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13799"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13800"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13801"parameter></paramdef> <paramdef><type>boolean </type> <parameter>right</"
13802"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
13803"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
13804"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13805"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>integer </"
13806"type> <parameter>nband</parameter></paramdef> <paramdef><type>integer </"
13807"type> <parameter>bins</parameter></paramdef> <paramdef><type>boolean </type> "
13808"<parameter>right</parameter></paramdef> </funcprototype> <funcprototype> "
13809"<funcdef>SETOF record <function>ST_Histogram</function></funcdef> "
13810"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
13811"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
13812"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13813"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13814"paramdef> <paramdef><type>integer </type> <parameter>bins</parameter></"
13815"paramdef> <paramdef><type>boolean </type> <parameter>right</parameter></"
13816"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
13817"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
13818"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13819"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
13820"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
13821"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
13822"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
13823"<parameter>bins=autocomputed</parameter></paramdef> <paramdef choice=\"opt"
13824"\"><type>double precision[] </type> <parameter>width=NULL</parameter></"
13825"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13826"<parameter>right=false</parameter></paramdef> </funcprototype> "
13827"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
13828"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
13829"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
13830"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13831"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13832"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
13833"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13834"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13835"funcprototype>"
13836msgstr ""
13837"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
13838"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
13839"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13840"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13841"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
13842"\"opt\"><type>integer </type> <parameter>bins=autocomputed</parameter></"
13843"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
13844"<parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13845"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13846"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13847"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13848"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13849"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13850"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
13851"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13852"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13853"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13854"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13855"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13856"parameter></paramdef> <paramdef><type>boolean </type> "
13857"<parameter>exclude_nodata_value</parameter></paramdef> "
13858"<paramdef><type>integer </type> <parameter>bins</parameter></paramdef> "
13859"<paramdef><type>boolean </type> <parameter>right</parameter></paramdef> </"
13860"funcprototype> <funcprototype> <funcdef>SETOF record <function>ST_Histogram</"
13861"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
13862"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
13863"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13864"parameter></paramdef> <paramdef><type>boolean </type> <parameter>right</"
13865"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
13866"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
13867"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13868"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>integer </"
13869"type> <parameter>nband</parameter></paramdef> <paramdef><type>integer </"
13870"type> <parameter>bins</parameter></paramdef> <paramdef><type>boolean </type> "
13871"<parameter>right</parameter></paramdef> </funcprototype> <funcprototype> "
13872"<funcdef>SETOF record <function>ST_Histogram</function></funcdef> "
13873"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
13874"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
13875"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
13876"<paramdef><type>boolean </type> <parameter>exclude_nodata_value</parameter></"
13877"paramdef> <paramdef><type>integer </type> <parameter>bins</parameter></"
13878"paramdef> <paramdef><type>boolean </type> <parameter>right</parameter></"
13879"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
13880"<function>ST_Histogram</function></funcdef> <paramdef><type>text </type> "
13881"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
13882"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
13883"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
13884"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
13885"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
13886"<parameter>bins=autocomputed</parameter></paramdef> <paramdef choice=\"opt"
13887"\"><type>double precision[] </type> <parameter>width=NULL</parameter></"
13888"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
13889"<parameter>right=false</parameter></paramdef> </funcprototype> "
13890"<funcprototype> <funcdef>SETOF record <function>ST_Histogram</function></"
13891"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
13892"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
13893"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
13894"parameter></paramdef> <paramdef><type>integer </type> <parameter>bins</"
13895"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
13896"type> <parameter>width=NULL</parameter></paramdef> <paramdef choice=\"opt"
13897"\"><type>boolean </type> <parameter>right=false</parameter></paramdef> </"
13898"funcprototype>"
13899
13900#. Tag: para
13901#: reference_raster.xml:5385
13902#, no-c-format
13903msgid ""
13904"Returns set of records consisting of min, max, count, percent for a given "
13905"raster band for each bin. If no band is specified <varname>nband</varname> "
13906"defaults to 1."
13907msgstr ""
13908"最小値、最大値、合計数、全体から見た割合からなるレコードの集合を返します。"
13909"<varname>nband</varname>でバンドを指定しない場合には、1番と仮定します。"
13910
13911#. Tag: para
13912#: reference_raster.xml:5386
13913#, no-c-format
13914msgid ""
13915"By default only considers pixel values not equal to the <varname>nodata</"
13916"varname> value . Set <varname>exclude_nodata_value</varname> to false to get "
13917"count all pixels."
13918msgstr ""
13919"デフォルトでは、<varname>nodata</varname>と同じピクセル値は考慮に入れません。"
13920"<varname>exclude_nodata_value</varname>をFALSEに設定すると全てのピクセルを数"
13921"えます。"
13922
13923#. Tag: term
13924#: reference_raster.xml:5390
13925#, no-c-format
13926msgid "<parameter>width </parameter><type>double precision[]</type>"
13927msgstr "<parameter>width </parameter><type>double precision[]</type>"
13928
13929#. Tag: para
13930#: reference_raster.xml:5391
13931#, no-c-format
13932msgid ""
13933"width: an array indicating the width of each category/bin. If the number of "
13934"bins is greater than the number of widths, the widths are repeated."
13935msgstr ""
13936"カテゴリ/ビン毎の幅を示す配列です。ビン数の指定がwidth要素数を超える場合に"
13937"は、widthを繰り返します。"
13938
13939#. Tag: para
13940#: reference_raster.xml:5392
13941#, no-c-format
13942msgid ""
13943"Example: 9 bins, widths are [a, b, c] will have the output be [a, b, c, a, "
13944"b, c, a, b, c]"
13945msgstr ""
13946"例: ビン9個、widthが[a, b, c]では、[a, b, c, a, b, c, a, b, c]が出力されま"
13947"す。"
13948
13949#. Tag: term
13950#: reference_raster.xml:5395
13951#, no-c-format
13952msgid "<parameter>bins </parameter><type>integer</type>"
13953msgstr "<parameter>bins </parameter><type>integer</type>"
13954
13955#. Tag: para
13956#: reference_raster.xml:5396
13957#, no-c-format
13958msgid ""
13959"Number of breakouts -- this is the number of records you'll get back from "
13960"the function if specified. If not specified then the number of breakouts is "
13961"autocomputed."
13962msgstr ""
13963"取り出し数 -- 関数から戻そうとするレコード数です。指定しない場合には、自動計"
13964"算されます。"
13965
13966#. Tag: term
13967#: reference_raster.xml:5400
13968#, no-c-format
13969msgid "<parameter>right </parameter><type>boolean</type>"
13970msgstr "<parameter>right </parameter><type>boolean</type>"
13971
13972#. Tag: para
13973#: reference_raster.xml:5401
13974#, no-c-format
13975msgid ""
13976"compute the histogram from the right rather than from the left (default). "
13977"This changes the criteria for evaluating a value x from [a, b) to (a, b]"
13978msgstr ""
13979"ヒストグラムを右から計算します (デフォルトは左からです)。値の評価の優先順位"
13980"が、X軸について[a, b)から(a, b]に変わります。"
13981
13982#. Tag: title
13983#: reference_raster.xml:5408
13984#, no-c-format
13985msgid ""
13986"Example: Single raster tile - compute histograms for bands 1, 2, 3 and "
13987"autocompute bins"
13988msgstr ""
13989"例: 単一ラスタタイル - ビン数を自動計算とした、1番、2番、3番バンドのヒストグ"
13990"ラムの計算"
13991
13992#. Tag: programlisting
13993#: reference_raster.xml:5409
13994#, no-c-format
13995msgid ""
13996"SELECT band, (stats).*\n"
13997"FROM (SELECT rid, band, ST_Histogram(rast, band) As stats\n"
13998"    FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
13999"     WHERE rid=2) As foo;\n"
14000"\n"
14001" band |  min  |  max  | count | percent\n"
14002"------+-------+-------+-------+---------\n"
14003"    1 |   249 |   250 |     2 |    0.08\n"
14004"    1 |   250 |   251 |     2 |    0.08\n"
14005"    1 |   251 |   252 |     1 |    0.04\n"
14006"    1 |   252 |   253 |     2 |    0.08\n"
14007"    1 |   253 |   254 |    18 |    0.72\n"
14008"    2 |    78 | 113.2 |    11 |    0.44\n"
14009"    2 | 113.2 | 148.4 |     4 |    0.16\n"
14010"    2 | 148.4 | 183.6 |     4 |    0.16\n"
14011"    2 | 183.6 | 218.8 |     1 |    0.04\n"
14012"    2 | 218.8 |   254 |     5 |     0.2\n"
14013"    3 |    62 | 100.4 |    11 |    0.44\n"
14014"    3 | 100.4 | 138.8 |     5 |     0.2\n"
14015"    3 | 138.8 | 177.2 |     4 |    0.16\n"
14016"    3 | 177.2 | 215.6 |     1 |    0.04\n"
14017"    3 | 215.6 |   254 |     4 |    0.16"
14018msgstr ""
14019"SELECT band, (stats).*\n"
14020"FROM (SELECT rid, band, ST_Histogram(rast, band) As stats\n"
14021"    FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
14022"     WHERE rid=2) As foo;\n"
14023"\n"
14024" band |  min  |  max  | count | percent\n"
14025"------+-------+-------+-------+---------\n"
14026"    1 |   249 |   250 |     2 |    0.08\n"
14027"    1 |   250 |   251 |     2 |    0.08\n"
14028"    1 |   251 |   252 |     1 |    0.04\n"
14029"    1 |   252 |   253 |     2 |    0.08\n"
14030"    1 |   253 |   254 |    18 |    0.72\n"
14031"    2 |    78 | 113.2 |    11 |    0.44\n"
14032"    2 | 113.2 | 148.4 |     4 |    0.16\n"
14033"    2 | 148.4 | 183.6 |     4 |    0.16\n"
14034"    2 | 183.6 | 218.8 |     1 |    0.04\n"
14035"    2 | 218.8 |   254 |     5 |     0.2\n"
14036"    3 |    62 | 100.4 |    11 |    0.44\n"
14037"    3 | 100.4 | 138.8 |     5 |     0.2\n"
14038"    3 | 138.8 | 177.2 |     4 |    0.16\n"
14039"    3 | 177.2 | 215.6 |     1 |    0.04\n"
14040"    3 | 215.6 |   254 |     4 |    0.16"
14041
14042#. Tag: title
14043#: reference_raster.xml:5413
14044#, no-c-format
14045msgid "Example: Just band 2 but for 6 bins"
14046msgstr "例: ビン数を6で固定して2番バンドだけを計算"
14047
14048#. Tag: programlisting
14049#: reference_raster.xml:5414
14050#, no-c-format
14051msgid ""
14052"SELECT (stats).*\n"
14053"FROM (SELECT rid, ST_Histogram(rast, 2,6) As stats\n"
14054"    FROM dummy_rast\n"
14055"     WHERE rid=2) As foo;\n"
14056"\n"
14057"    min     |    max     | count | percent\n"
14058"------------+------------+-------+---------\n"
14059"         78 | 107.333333 |     9 |    0.36\n"
14060" 107.333333 | 136.666667 |     6 |    0.24\n"
14061" 136.666667 |        166 |     0 |       0\n"
14062"        166 | 195.333333 |     4 |    0.16\n"
14063" 195.333333 | 224.666667 |     1 |    0.04\n"
14064" 224.666667 |        254 |     5 |     0.2\n"
14065"(6 rows)\n"
14066"\n"
14067"-- Same as previous but we explicitly control the pixel value range of each "
14068"bin.\n"
14069"SELECT (stats).*\n"
14070"FROM (SELECT rid, ST_Histogram(rast, 2,6,ARRAY[0.5,1,4,100,5]) As stats\n"
14071"    FROM dummy_rast\n"
14072"     WHERE rid=2) As foo;\n"
14073"\n"
14074"  min  |  max  | count | percent\n"
14075"-------+-------+-------+----------\n"
14076"    78 |  78.5 |     1 |     0.08\n"
14077"  78.5 |  79.5 |     1 |     0.04\n"
14078"  79.5 |  83.5 |     0 |        0\n"
14079"  83.5 | 183.5 |    17 |   0.0068\n"
14080" 183.5 | 188.5 |     0 |        0\n"
14081" 188.5 |   254 |     6 | 0.003664\n"
14082"(6 rows)"
14083msgstr ""
14084"SELECT (stats).*\n"
14085"FROM (SELECT rid, ST_Histogram(rast, 2,6) As stats\n"
14086"    FROM dummy_rast\n"
14087"     WHERE rid=2) As foo;\n"
14088"\n"
14089"    min     |    max     | count | percent\n"
14090"------------+------------+-------+---------\n"
14091"         78 | 107.333333 |     9 |    0.36\n"
14092" 107.333333 | 136.666667 |     6 |    0.24\n"
14093" 136.666667 |        166 |     0 |       0\n"
14094"        166 | 195.333333 |     4 |    0.16\n"
14095" 195.333333 | 224.666667 |     1 |    0.04\n"
14096" 224.666667 |        254 |     5 |     0.2\n"
14097"(6 rows)\n"
14098"\n"
14099"-- 前と同じですが、ビン毎のピクセル値の範囲を明示的に制御しています\n"
14100"SELECT (stats).*\n"
14101"FROM (SELECT rid, ST_Histogram(rast, 2,6,ARRAY[0.5,1,4,100,5]) As stats\n"
14102"    FROM dummy_rast\n"
14103"     WHERE rid=2) As foo;\n"
14104"\n"
14105"  min  |  max  | count | percent\n"
14106"-------+-------+-------+----------\n"
14107"    78 |  78.5 |     1 |     0.08\n"
14108"  78.5 |  79.5 |     1 |     0.04\n"
14109"  79.5 |  83.5 |     0 |        0\n"
14110"  83.5 | 183.5 |    17 |   0.0068\n"
14111" 183.5 | 188.5 |     0 |        0\n"
14112" 188.5 |   254 |     6 | 0.003664\n"
14113"(6 rows)"
14114
14115#. Tag: para
14116#: reference_raster.xml:5419
14117#, no-c-format
14118msgid ""
14119", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
14120"\"RT_ST_SummaryStatsAgg\"/>"
14121msgstr ""
14122", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
14123"\"RT_ST_SummaryStatsAgg\"/>"
14124
14125#. Tag: refname
14126#: reference_raster.xml:5429
14127#, no-c-format
14128msgid "ST_Quantile"
14129msgstr "ST_Quantile"
14130
14131#. Tag: refpurpose
14132#: reference_raster.xml:5430
14133#, no-c-format
14134msgid ""
14135"<refpurpose>Compute quantiles for a raster or raster table coverage in the "
14136"context of the sample or population. Thus, a value could be examined to be "
14137"at the raster's 25%, 50%, 75% percentile.</refpurpose>"
14138msgstr ""
14139"<refpurpose>ラスタまたはラスタテーブルカバレッジのサンプルまたは母集団の分位"
14140"数を計算します。値がラスタの25%,50%,75%にあるかを調べることができます。</"
14141"refpurpose>"
14142
14143#. Tag: funcsynopsis
14144#: reference_raster.xml:5434
14145#, no-c-format
14146msgid ""
14147"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14148"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14149"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
14150"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
14151"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
14152"\"opt\"><type>double precision[] </type> <parameter>quantiles=NULL</"
14153"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
14154"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14155"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
14156"type> <parameter>quantiles</parameter></paramdef> </funcprototype> "
14157"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14158"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14159"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14160"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
14161"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
14162"precision <function>ST_Quantile</function></funcdef> <paramdef><type>raster "
14163"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
14164"precision </type> <parameter>quantile</parameter></paramdef> </"
14165"funcprototype> <funcprototype> <funcdef>double precision "
14166"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14167"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
14168"<parameter>exclude_nodata_value</parameter></paramdef> <paramdef choice=\"opt"
14169"\"><type>double precision </type> <parameter>quantile=NULL</parameter></"
14170"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
14171"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14172"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14173"<parameter>nband</parameter></paramdef> <paramdef><type>double precision </"
14174"type> <parameter>quantile</parameter></paramdef> </funcprototype> "
14175"<funcprototype> <funcdef>double precision <function>ST_Quantile</function></"
14176"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14177"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14178"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14179"parameter></paramdef> <paramdef><type>double precision </type> "
14180"<parameter>quantile</parameter></paramdef> </funcprototype> <funcprototype> "
14181"<funcdef>double precision <function>ST_Quantile</function></funcdef> "
14182"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
14183"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
14184"<paramdef><type>double precision </type> <parameter>quantile</parameter></"
14185"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
14186"<function>ST_Quantile</function></funcdef> <paramdef><type>text </type> "
14187"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
14188"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
14189"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
14190"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
14191"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
14192"type> <parameter>quantiles=NULL</parameter></paramdef> </funcprototype> "
14193"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14194"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
14195"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
14196"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14197"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
14198"parameter></paramdef> </funcprototype>"
14199msgstr ""
14200"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14201"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14202"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
14203"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
14204"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
14205"\"opt\"><type>double precision[] </type> <parameter>quantiles=NULL</"
14206"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
14207"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14208"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
14209"type> <parameter>quantiles</parameter></paramdef> </funcprototype> "
14210"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14211"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14212"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14213"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
14214"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
14215"precision <function>ST_Quantile</function></funcdef> <paramdef><type>raster "
14216"</type> <parameter>rast</parameter></paramdef> <paramdef><type>double "
14217"precision </type> <parameter>quantile</parameter></paramdef> </"
14218"funcprototype> <funcprototype> <funcdef>double precision "
14219"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14220"<parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
14221"<parameter>exclude_nodata_value</parameter></paramdef> <paramdef choice=\"opt"
14222"\"><type>double precision </type> <parameter>quantile=NULL</parameter></"
14223"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
14224"<function>ST_Quantile</function></funcdef> <paramdef><type>raster </type> "
14225"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14226"<parameter>nband</parameter></paramdef> <paramdef><type>double precision </"
14227"type> <parameter>quantile</parameter></paramdef> </funcprototype> "
14228"<funcprototype> <funcdef>double precision <function>ST_Quantile</function></"
14229"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14230"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14231"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14232"parameter></paramdef> <paramdef><type>double precision </type> "
14233"<parameter>quantile</parameter></paramdef> </funcprototype> <funcprototype> "
14234"<funcdef>double precision <function>ST_Quantile</function></funcdef> "
14235"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
14236"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
14237"<paramdef><type>double precision </type> <parameter>quantile</parameter></"
14238"paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
14239"<function>ST_Quantile</function></funcdef> <paramdef><type>text </type> "
14240"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
14241"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
14242"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
14243"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
14244"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
14245"type> <parameter>quantiles=NULL</parameter></paramdef> </funcprototype> "
14246"<funcprototype> <funcdef>SETOF record <function>ST_Quantile</function></"
14247"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
14248"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
14249"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
14250"paramdef> <paramdef><type>double precision[] </type> <parameter>quantiles</"
14251"parameter></paramdef> </funcprototype>"
14252
14253#. Tag: para
14254#: reference_raster.xml:5506
14255#, no-c-format
14256msgid ""
14257"<para>Compute quantiles for a raster or raster table coverage in the context "
14258"of the sample or population. Thus, a value could be examined to be at the "
14259"raster's 25%, 50%, 75% percentile.</para>"
14260msgstr ""
14261"<para>ラスタまたはラスタテーブルカバレッジのサンプルまたは母集団の分位数を計"
14262"算します。値がラスタの25%,50%,75%にあるかを調べることができます。</para>"
14263
14264#. Tag: para
14265#: reference_raster.xml:5507 reference_raster.xml:5799
14266#, no-c-format
14267msgid ""
14268"If <varname>exclude_nodata_value</varname> is set to false, will also count "
14269"pixels with no data."
14270msgstr ""
14271"<varname>exclude_nodata_value</varname>をFALSEに設定している場合には、NODATA"
14272"値となるピクセルも数えます。"
14273
14274#. Tag: programlisting
14275#: reference_raster.xml:5514
14276#, no-c-format
14277msgid ""
14278"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
14279"--Example will consider only pixels of band 1 that are not 249 and in named "
14280"quantiles --\n"
14281"\n"
14282"SELECT (pvq).*\n"
14283"FROM (SELECT ST_Quantile(rast, ARRAY[0.25,0.75]) As pvq\n"
14284"    FROM dummy_rast WHERE rid=2) As foo\n"
14285"    ORDER BY (pvq).quantile;\n"
14286"\n"
14287" quantile | value\n"
14288"----------+-------\n"
14289"     0.25 |   253\n"
14290"     0.75 |   254\n"
14291"\n"
14292"SELECT ST_Quantile(rast, 0.75) As value\n"
14293"    FROM dummy_rast WHERE rid=2;\n"
14294"\n"
14295"value\n"
14296"------\n"
14297"  254"
14298msgstr ""
14299"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
14300"-- 1番バンドの値が249でないピクセルのみ考慮に入れた分位数を計算する例です\n"
14301"\n"
14302"SELECT (pvq).*\n"
14303"FROM (SELECT ST_Quantile(rast, ARRAY[0.25,0.75]) As pvq\n"
14304"    FROM dummy_rast WHERE rid=2) As foo\n"
14305"    ORDER BY (pvq).quantile;\n"
14306"\n"
14307" quantile | value\n"
14308"----------+-------\n"
14309"     0.25 |   253\n"
14310"     0.75 |   254\n"
14311"\n"
14312"SELECT ST_Quantile(rast, 0.75) As value\n"
14313"    FROM dummy_rast WHERE rid=2;\n"
14314"\n"
14315"value\n"
14316"------\n"
14317"  254"
14318
14319#. Tag: programlisting
14320#: reference_raster.xml:5515
14321#, no-c-format
14322msgid ""
14323"--real live example.  Quantile of all pixels in band 2 intersecting a "
14324"geometry\n"
14325"SELECT rid, (ST_Quantile(rast,2)).* As pvc\n"
14326"    FROM o_4_boston\n"
14327"        WHERE ST_Intersects(rast,\n"
14328"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
14329"892200,224706 892151,224486 892151))',26986)\n"
14330"            )\n"
14331"ORDER BY value, quantile,rid\n"
14332";\n"
14333"\n"
14334"\n"
14335" rid | quantile | value\n"
14336"-----+----------+-------\n"
14337"   1 |        0 |     0\n"
14338"   2 |        0 |     0\n"
14339"  14 |        0 |     1\n"
14340"  15 |        0 |     2\n"
14341"  14 |     0.25 |    37\n"
14342"   1 |     0.25 |    42\n"
14343"  15 |     0.25 |    47\n"
14344"   2 |     0.25 |    50\n"
14345"  14 |      0.5 |    56\n"
14346"   1 |      0.5 |    64\n"
14347"  15 |      0.5 |    66\n"
14348"   2 |      0.5 |    77\n"
14349"  14 |     0.75 |    81\n"
14350"  15 |     0.75 |    87\n"
14351"   1 |     0.75 |    94\n"
14352"   2 |     0.75 |   106\n"
14353"  14 |        1 |   199\n"
14354"   1 |        1 |   244\n"
14355"   2 |        1 |   255\n"
14356"  15 |        1 |   255"
14357msgstr ""
14358"-- 実際の例です。2番バンドでジオメトリとインタセクトする部分の\n"
14359"-- 全てのピクセルの分位数を計算します。\n"
14360"SELECT rid, (ST_Quantile(rast,2)).* As pvc\n"
14361"    FROM o_4_boston\n"
14362"        WHERE ST_Intersects(rast,\n"
14363"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
14364"892200,224706 892151,224486 892151))',26986)\n"
14365"            )\n"
14366"ORDER BY value, quantile,rid\n"
14367";\n"
14368"\n"
14369"\n"
14370" rid | quantile | value\n"
14371"-----+----------+-------\n"
14372"   1 |        0 |     0\n"
14373"   2 |        0 |     0\n"
14374"  14 |        0 |     1\n"
14375"  15 |        0 |     2\n"
14376"  14 |     0.25 |    37\n"
14377"   1 |     0.25 |    42\n"
14378"  15 |     0.25 |    47\n"
14379"   2 |     0.25 |    50\n"
14380"  14 |      0.5 |    56\n"
14381"   1 |      0.5 |    64\n"
14382"  15 |      0.5 |    66\n"
14383"   2 |      0.5 |    77\n"
14384"  14 |     0.75 |    81\n"
14385"  15 |     0.75 |    87\n"
14386"   1 |     0.75 |    94\n"
14387"   2 |     0.75 |   106\n"
14388"  14 |        1 |   199\n"
14389"   1 |        1 |   244\n"
14390"   2 |        1 |   255\n"
14391"  15 |        1 |   255"
14392
14393#. Tag: para
14394#: reference_raster.xml:5520
14395#, no-c-format
14396msgid ""
14397", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
14398"\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
14399msgstr ""
14400", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend="
14401"\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
14402
14403#. Tag: refname
14404#: reference_raster.xml:5531
14405#, no-c-format
14406msgid "ST_SummaryStats"
14407msgstr "ST_SummaryStats"
14408
14409#. Tag: refpurpose
14410#: reference_raster.xml:5532
14411#, no-c-format
14412msgid ""
14413"Returns summarystats consisting of count, sum, mean, stddev, min, max for a "
14414"given raster band of a raster or raster coverage. Band 1 is assumed is no "
14415"band is specified."
14416msgstr ""
14417"ラスタまたはラスタカバレッジの指定したバンドについて、ピクセル数、合計値、平"
14418"均値、標準偏差、最小値、最大値からなる統計情報の概要を返します。バンドを指定"
14419"しない場合には、1番と仮定します。"
14420
14421#. Tag: funcsynopsis
14422#: reference_raster.xml:5536
14423#, no-c-format
14424msgid ""
14425"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
14426"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14427"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14428"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14429"<function>ST_SummaryStats</function></funcdef> <paramdef><type>raster </"
14430"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14431"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
14432"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype> "
14433"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
14434"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
14435"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
14436"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14437"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14438"<function>ST_SummaryStats</function></funcdef> <paramdef><type>text </type> "
14439"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
14440"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
14441"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
14442"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
14443"parameter></paramdef> </funcprototype>"
14444msgstr ""
14445"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
14446"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14447"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14448"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14449"<function>ST_SummaryStats</function></funcdef> <paramdef><type>raster </"
14450"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14451"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
14452"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype> "
14453"<funcprototype> <funcdef>summarystats <function>ST_SummaryStats</function></"
14454"funcdef> <paramdef><type>text </type> <parameter>rastertable</parameter></"
14455"paramdef> <paramdef><type>text </type> <parameter>rastercolumn</parameter></"
14456"paramdef> <paramdef><type>boolean </type> <parameter>exclude_nodata_value</"
14457"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14458"<function>ST_SummaryStats</function></funcdef> <paramdef><type>text </type> "
14459"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
14460"<parameter>rastercolumn</parameter></paramdef> <paramdef choice=\"opt"
14461"\"><type>integer </type> <parameter>nband=1</parameter></paramdef> <paramdef "
14462"choice=\"opt\"><type>boolean </type> <parameter>exclude_nodata_value=true</"
14463"parameter></paramdef> </funcprototype>"
14464
14465#. Tag: para
14466#: reference_raster.xml:5572 reference_raster.xml:5651
14467#, no-c-format
14468msgid ""
14469"Returns <xref linkend=\"summarystats\"/> consisting of count, sum, mean, "
14470"stddev, min, max for a given raster band of a raster or raster coverage. If "
14471"no band is specified <varname>nband</varname> defaults to 1."
14472msgstr ""
14473"ラスタまたはラスタカバレッジの指定したバンドについて、ピクセル数、合計値、平"
14474"均値、標準偏差、最小値、最大値からなる<xref linkend=\"summarystats\"/>による"
14475"統計情報の概要を返します。<varname>nband</varname>でバンドを指定しない場合に"
14476"は、1番と仮定します。"
14477
14478#. Tag: para
14479#: reference_raster.xml:5574
14480#, no-c-format
14481msgid ""
14482"By default only considers pixel values not equal to the <varname>nodata</"
14483"varname> value. Set <varname>exclude_nodata_value</varname> to false to get "
14484"count of all pixels."
14485msgstr ""
14486"デフォルトでは、<varname>nodata</varname>と同じピクセル値は考慮に入れません。"
14487"<varname>exclude_nodata_value</varname>をFALSEに設定すると全てのピクセルを数"
14488"えます。"
14489
14490#. Tag: para
14491#: reference_raster.xml:5576
14492#, no-c-format
14493msgid ""
14494"By default will sample all pixels. To get faster response, set "
14495"<varname>sample_percent</varname> to lower than 1"
14496msgstr ""
14497"デフォルトでは、全てのピクセルを見ます。より早い応答を得るには、"
14498"<varname>sample_percent</varname>値を1未満で設定します。"
14499
14500#. Tag: para
14501#: reference_raster.xml:5581
14502#, no-c-format
14503msgid ""
14504"The ST_SummaryStats(rastertable, rastercolumn, ...) variants are deprecated "
14505"as of 2.2.0. Use <xref linkend=\"RT_ST_SummaryStatsAgg\"/> instead."
14506msgstr ""
14507"ST_SummaryStats(rastertable, rastercolumn, ...)の形式は2.2.0で非推奨になりま"
14508"した。代わりに<xref linkend=\"RT_ST_SummaryStatsAgg\"/>を使います。"
14509
14510#. Tag: title
14511#: reference_raster.xml:5589
14512#, no-c-format
14513msgid "Example: Single raster tile"
14514msgstr "例: 単一ラスタタイル"
14515
14516#. Tag: programlisting
14517#: reference_raster.xml:5590
14518#, no-c-format
14519msgid ""
14520"SELECT rid, band, (stats).*\n"
14521"FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats\n"
14522"    FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
14523"     WHERE rid=2) As foo;\n"
14524"\n"
14525" rid | band | count | sum  |    mean    |  stddev   | min | max\n"
14526"-----+------+-------+------+------------+-----------+-----+-----\n"
14527"   2 |    1 |    23 | 5821 | 253.086957 |  1.248061 | 250 | 254\n"
14528"   2 |    2 |    25 | 3682 |     147.28 | 59.862188 |  78 | 254\n"
14529"   2 |    3 |    25 | 3290 |      131.6 | 61.647384 |  62 | 254"
14530msgstr ""
14531"SELECT rid, band, (stats).*\n"
14532"FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats\n"
14533"    FROM dummy_rast CROSS JOIN generate_series(1,3) As band\n"
14534"     WHERE rid=2) As foo;\n"
14535"\n"
14536" rid | band | count | sum  |    mean    |  stddev   | min | max\n"
14537"-----+------+-------+------+------------+-----------+-----+-----\n"
14538"   2 |    1 |    23 | 5821 | 253.086957 |  1.248061 | 250 | 254\n"
14539"   2 |    2 |    25 | 3682 |     147.28 | 59.862188 |  78 | 254\n"
14540"   2 |    3 |    25 | 3290 |      131.6 | 61.647384 |  62 | 254"
14541
14542#. Tag: title
14543#: reference_raster.xml:5594
14544#, no-c-format
14545msgid "Example: Summarize pixels that intersect buildings of interest"
14546msgstr "例: 対象とする建物とインタセクトするピクセルの概要"
14547
14548#. Tag: para
14549#: reference_raster.xml:5595
14550#, no-c-format
14551msgid ""
14552"This example took 574ms on PostGIS windows 64-bit with all of Boston "
14553"Buildings and aerial Tiles (tiles each 150x150 pixels ~ 134,000 tiles), "
14554"~102,000 building records"
14555msgstr ""
14556"この例は、ボストンの建物の全て (約102,000件)と空中写真タイル (150x150ピクセル"
14557"で約134,000タイル)とで、Windows 64ビット上のPostGISで計算したところ、574ミリ"
14558"秒かかりました。"
14559
14560#. Tag: programlisting
14561#: reference_raster.xml:5597
14562#, no-c-format
14563msgid ""
14564"WITH\n"
14565"-- our features of interest\n"
14566"   feat AS (SELECT gid As building_id, geom_26986 As geom FROM buildings AS "
14567"b\n"
14568"    WHERE gid IN(100, 103,150)\n"
14569"   ),\n"
14570"-- clip band 2 of raster tiles to boundaries of builds\n"
14571"-- then get stats for these clipped regions\n"
14572"   b_stats AS\n"
14573"        (SELECT  building_id, (stats).*\n"
14574"FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,2,geom)) As stats\n"
14575"    FROM aerials.boston\n"
14576"                INNER JOIN feat\n"
14577"        ON ST_Intersects(feat.geom,rast)\n"
14578" ) As foo\n"
14579" )\n"
14580"-- finally summarize stats\n"
14581"SELECT building_id, SUM(count) As num_pixels\n"
14582"  , MIN(min) As min_pval\n"
14583"  ,  MAX(max) As max_pval\n"
14584"  , SUM(mean*count)/SUM(count) As avg_pval\n"
14585"        FROM b_stats\n"
14586" WHERE count > 0\n"
14587"        GROUP BY building_id\n"
14588"        ORDER BY building_id;\n"
14589" building_id | num_pixels | min_pval | max_pval |     avg_pval\n"
14590"-------------+------------+----------+----------+------------------\n"
14591"         100 |       1090 |        1 |      255 | 61.0697247706422\n"
14592"         103 |        655 |        7 |      182 | 70.5038167938931\n"
14593"         150 |        895 |        2 |      252 | 185.642458100559"
14594msgstr ""
14595"WITH\n"
14596"-- 対象地物\n"
14597"   feat AS (SELECT gid As building_id, geom_26986 As geom FROM buildings AS "
14598"b\n"
14599"    WHERE gid IN(100, 103,150)\n"
14600"   ),\n"
14601"-- ラスタタイルの2番バンドを建物の境界で切り取って\n"
14602"-- その範囲の統計情報を得ます\n"
14603"   b_stats AS\n"
14604"        (SELECT  building_id, (stats).*\n"
14605"FROM (SELECT building_id, ST_SummaryStats(ST_Clip(rast,2,geom)) As stats\n"
14606"    FROM aerials.boston\n"
14607"                INNER JOIN feat\n"
14608"        ON ST_Intersects(feat.geom,rast)\n"
14609" ) As foo\n"
14610" )\n"
14611"-- 最後に統計情報の概要を得ます\n"
14612"SELECT building_id, SUM(count) As num_pixels\n"
14613"  , MIN(min) As min_pval\n"
14614"  ,  MAX(max) As max_pval\n"
14615"  , SUM(mean*count)/SUM(count) As avg_pval\n"
14616"        FROM b_stats\n"
14617" WHERE count > 0\n"
14618"        GROUP BY building_id\n"
14619"        ORDER BY building_id;\n"
14620" building_id | num_pixels | min_pval | max_pval |     avg_pval\n"
14621"-------------+------------+----------+----------+------------------\n"
14622"         100 |       1090 |        1 |      255 | 61.0697247706422\n"
14623"         103 |        655 |        7 |      182 | 70.5038167938931\n"
14624"         150 |        895 |        2 |      252 | 185.642458100559"
14625
14626#. Tag: title
14627#: reference_raster.xml:5601
14628#, no-c-format
14629msgid "Example: Raster coverage"
14630msgstr "例:ラスタカバレッジ"
14631
14632#. Tag: programlisting
14633#: reference_raster.xml:5602
14634#, no-c-format
14635msgid ""
14636"-- stats for each band --\n"
14637"SELECT band, (stats).*\n"
14638"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band) As stats\n"
14639"    FROM generate_series(1,3) As band) As foo;\n"
14640"\n"
14641" band |  count  |  sum   |       mean       |      stddev      | min | max\n"
14642"------+---------+--------+------------------+------------------+-----+-----\n"
14643"    1 | 8450000 | 725799 | 82.7064349112426 | 45.6800222638537 |   0 | 255\n"
14644"    2 | 8450000 | 700487 | 81.4197705325444 | 44.2161184161765 |   0 | 255\n"
14645"    3 | 8450000 | 575943 |  74.682739408284 | 44.2143885481407 |   0 | 255\n"
14646"\n"
14647"-- For a table -- will get better speed if set sampling to less than 100%\n"
14648"-- Here we set to 25% and get a much faster answer\n"
14649"SELECT band, (stats).*\n"
14650"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As "
14651"stats\n"
14652"    FROM generate_series(1,3) As band) As foo;\n"
14653"\n"
14654" band |  count  |  sum   |       mean       |      stddev      | min | max\n"
14655"------+---------+--------+------------------+------------------+-----+-----\n"
14656"    1 | 2112500 | 180686 | 82.6890480473373 | 45.6961043857248 |   0 | 255\n"
14657"    2 | 2112500 | 174571 |  81.448503668639 | 44.2252623171821 |   0 | 255\n"
14658"    3 | 2112500 | 144364 | 74.6765884023669 | 44.2014869384578 |   0 | 255"
14659msgstr ""
14660"-- バンドごとの統計情報 --\n"
14661"SELECT band, (stats).*\n"
14662"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band) As stats\n"
14663"    FROM generate_series(1,3) As band) As foo;\n"
14664"\n"
14665" band |  count  |  sum   |       mean       |      stddev      | min | max\n"
14666"------+---------+--------+------------------+------------------+-----+-----\n"
14667"    1 | 8450000 | 725799 | 82.7064349112426 | 45.6800222638537 |   0 | 255\n"
14668"    2 | 8450000 | 700487 | 81.4197705325444 | 44.2161184161765 |   0 | 255\n"
14669"    3 | 8450000 | 575943 |  74.682739408284 | 44.2143885481407 |   0 | 255\n"
14670"\n"
14671"-- テーブルの場合 -- サンプリング率を100%より低くすると早くなります\n"
14672"-- 25%に設定して、速く答を得ています\n"
14673"SELECT band, (stats).*\n"
14674"FROM (SELECT band, ST_SummaryStats('o_4_boston','rast', band,true,0.25) As "
14675"stats\n"
14676"    FROM generate_series(1,3) As band) As foo;\n"
14677"\n"
14678" band |  count  |  sum   |       mean       |      stddev      | min | max\n"
14679"------+---------+--------+------------------+------------------+-----+-----\n"
14680"    1 | 2112500 | 180686 | 82.6890480473373 | 45.6961043857248 |   0 | 255\n"
14681"    2 | 2112500 | 174571 |  81.448503668639 | 44.2252623171821 |   0 | 255\n"
14682"    3 | 2112500 | 144364 | 74.6765884023669 | 44.2014869384578 |   0 | 255"
14683
14684#. Tag: para
14685#: reference_raster.xml:5607
14686#, no-c-format
14687msgid ""
14688", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_Count\"/"
14689">, <xref linkend=\"RT_ST_Clip\"/>"
14690msgstr ""
14691", <xref linkend=\"RT_ST_SummaryStatsAgg\"/>, <xref linkend=\"RT_ST_Count\"/"
14692">, <xref linkend=\"RT_ST_Clip\"/>"
14693
14694#. Tag: refname
14695#: reference_raster.xml:5618
14696#, no-c-format
14697msgid "ST_SummaryStatsAgg"
14698msgstr "ST_SummaryStatsAgg"
14699
14700#. Tag: refpurpose
14701#: reference_raster.xml:5619
14702#, no-c-format
14703msgid ""
14704"Aggregate. Returns summarystats consisting of count, sum, mean, stddev, min, "
14705"max for a given raster band of a set of raster. Band 1 is assumed is no band "
14706"is specified."
14707msgstr ""
14708"集約関数です。ラスタ集合の指定したバンドについて、ピクセル数、合計値、平均"
14709"値、標準偏差、最小値、最大値からなる統計情報の概要を返します。バンドを指定し"
14710"ない場合には、1番と仮定します。"
14711
14712#. Tag: funcsynopsis
14713#: reference_raster.xml:5623
14714#, no-c-format
14715msgid ""
14716"<funcprototype> <funcdef>summarystats <function>ST_SummaryStatsAgg</"
14717"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
14718"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
14719"parameter></paramdef> <paramdef><type>boolean </type> "
14720"<parameter>exclude_nodata_value</parameter></paramdef> "
14721"<paramdef><type>double precision </type> <parameter>sample_percent</"
14722"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14723"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
14724"type> <parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
14725"<parameter>exclude_nodata_value</parameter></paramdef> "
14726"<paramdef><type>double precision </type> <parameter>sample_percent</"
14727"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14728"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
14729"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14730"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
14731"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
14732msgstr ""
14733"<funcprototype> <funcdef>summarystats <function>ST_SummaryStatsAgg</"
14734"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
14735"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
14736"parameter></paramdef> <paramdef><type>boolean </type> "
14737"<parameter>exclude_nodata_value</parameter></paramdef> "
14738"<paramdef><type>double precision </type> <parameter>sample_percent</"
14739"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14740"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
14741"type> <parameter>rast</parameter></paramdef> <paramdef><type>boolean </type> "
14742"<parameter>exclude_nodata_value</parameter></paramdef> "
14743"<paramdef><type>double precision </type> <parameter>sample_percent</"
14744"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>summarystats "
14745"<function>ST_SummaryStatsAgg</function></funcdef> <paramdef><type>raster </"
14746"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14747"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
14748"<parameter>exclude_nodata_value</parameter></paramdef> </funcprototype>"
14749
14750#. Tag: para
14751#: reference_raster.xml:5653
14752#, no-c-format
14753msgid ""
14754"By default only considers pixel values not equal to the <varname>NODATA</"
14755"varname> value. Set <varname>exclude_nodata_value</varname> to False to get "
14756"count of all pixels."
14757msgstr ""
14758"デフォルトでは、<varname>NODATA</varname>と同じピクセル値は考慮に入れません。"
14759"<varname>exclude_nodata_value</varname>をFALSEに設定すると全てのピクセルを数"
14760"えます。"
14761
14762#. Tag: para
14763#: reference_raster.xml:5655
14764#, no-c-format
14765msgid ""
14766"By default will sample all pixels. To get faster response, set "
14767"<varname>sample_percent</varname> to value between 0 and 1"
14768msgstr ""
14769"デフォルトでは全てのピクセルを見ます。よりい早い応答を得るには、"
14770"<varname>sample_percent</varname>を0から1の間で設定します。"
14771
14772#. Tag: programlisting
14773#: reference_raster.xml:5662
14774#, no-c-format
14775msgid ""
14776"WITH foo AS (\n"
14777"        SELECT\n"
14778"                rast.rast\n"
14779"        FROM (\n"
14780"                SELECT ST_SetValue(\n"
14781"                        ST_SetValue(\n"
14782"                                ST_SetValue(\n"
14783"                                        ST_AddBand(\n"
14784"                                                ST_MakeEmptyRaster(10, 10, "
14785"10, 10, 2, 2, 0, 0,0)\n"
14786"                                                , 1, '64BF', 0, 0\n"
14787"                                        )\n"
14788"                                        , 1, 1, 1, -10\n"
14789"                                )\n"
14790"                                , 1, 5, 4, 0\n"
14791"                        )\n"
14792"                        , 1, 5, 5, 3.14159\n"
14793"                ) AS rast\n"
14794"        ) AS rast\n"
14795"        FULL JOIN (\n"
14796"                SELECT generate_series(1, 10) AS id\n"
14797"        ) AS id\n"
14798"                ON 1 = 1\n"
14799")\n"
14800"SELECT\n"
14801"        (stats).count,\n"
14802"        round((stats).sum::numeric, 3),\n"
14803"        round((stats).mean::numeric, 3),\n"
14804"        round((stats).stddev::numeric, 3),\n"
14805"        round((stats).min::numeric, 3),\n"
14806"        round((stats).max::numeric, 3)\n"
14807"FROM (\n"
14808"        SELECT\n"
14809"                ST_SummaryStatsAgg(rast, 1, TRUE, 1) AS stats\n"
14810"        FROM foo\n"
14811") bar;\n"
14812"\n"
14813" count |  round  | round  | round |  round  | round\n"
14814"-------+---------+--------+-------+---------+-------\n"
14815"    20 | -68.584 | -3.429 | 6.571 | -10.000 | 3.142\n"
14816"(1 row)"
14817msgstr ""
14818"WITH foo AS (\n"
14819"        SELECT\n"
14820"                rast.rast\n"
14821"        FROM (\n"
14822"                SELECT ST_SetValue(\n"
14823"                        ST_SetValue(\n"
14824"                                ST_SetValue(\n"
14825"                                        ST_AddBand(\n"
14826"                                                ST_MakeEmptyRaster(10, 10, "
14827"10, 10, 2, 2, 0, 0,0)\n"
14828"                                                , 1, '64BF', 0, 0\n"
14829"                                        )\n"
14830"                                        , 1, 1, 1, -10\n"
14831"                                )\n"
14832"                                , 1, 5, 4, 0\n"
14833"                        )\n"
14834"                        , 1, 5, 5, 3.14159\n"
14835"                ) AS rast\n"
14836"        ) AS rast\n"
14837"        FULL JOIN (\n"
14838"                SELECT generate_series(1, 10) AS id\n"
14839"        ) AS id\n"
14840"                ON 1 = 1\n"
14841")\n"
14842"SELECT\n"
14843"        (stats).count,\n"
14844"        round((stats).sum::numeric, 3),\n"
14845"        round((stats).mean::numeric, 3),\n"
14846"        round((stats).stddev::numeric, 3),\n"
14847"        round((stats).min::numeric, 3),\n"
14848"        round((stats).max::numeric, 3)\n"
14849"FROM (\n"
14850"        SELECT\n"
14851"                ST_SummaryStatsAgg(rast, 1, TRUE, 1) AS stats\n"
14852"        FROM foo\n"
14853") bar;\n"
14854"\n"
14855" count |  round  | round  | round |  round  | round\n"
14856"-------+---------+--------+-------+---------+-------\n"
14857"    20 | -68.584 | -3.429 | 6.571 | -10.000 | 3.142\n"
14858"(1 row)"
14859
14860#. Tag: para
14861#: reference_raster.xml:5667
14862#, no-c-format
14863msgid ""
14864", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=\"RT_ST_Count\"/>, "
14865"<xref linkend=\"RT_ST_Clip\"/>"
14866msgstr ""
14867", <xref linkend=\"RT_ST_SummaryStats\"/>, <xref linkend=\"RT_ST_Count\"/>, "
14868"<xref linkend=\"RT_ST_Clip\"/>"
14869
14870#. Tag: refname
14871#: reference_raster.xml:5678
14872#, no-c-format
14873msgid "ST_ValueCount"
14874msgstr "ST_ValueCount"
14875
14876#. Tag: refpurpose
14877#: reference_raster.xml:5679
14878#, no-c-format
14879msgid ""
14880"Returns a set of records containing a pixel band value and count of the "
14881"number of pixels in a given band of a raster (or a raster coverage) that "
14882"have a given set of values. If no band is specified defaults to band 1. By "
14883"default nodata value pixels are not counted. and all other values in the "
14884"pixel are output and pixel band values are rounded to the nearest integer."
14885msgstr ""
14886"ラスタ (またはラスタカバレッジ)の指定されたバンドで、指定した値を持つピクセ"
14887"ルを対象として、ピクセルバンド値とピクセル数からなるレコードの集合を返しま"
14888"す。バンドを指定しない場合には、1番と仮定します。デフォルトではNODATA値のピク"
14889"セルは数えられず、ピクセルの他の値は出力され、ピクセルバンド値は最も近い整数"
14890"に丸められます。"
14891
14892#. Tag: funcsynopsis
14893#: reference_raster.xml:5684
14894#, no-c-format
14895msgid ""
14896"<funcprototype> <funcdef>SETOF record <function>ST_ValueCount</function></"
14897"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14898"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
14899"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
14900"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
14901"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
14902"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
14903"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
14904"precision </type> <parameter>OUT value</parameter></paramdef> "
14905"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
14906"</funcprototype> <funcprototype> <funcdef>SETOF record "
14907"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
14908"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14909"<parameter>nband</parameter></paramdef> <paramdef><type>double precision[] </"
14910"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
14911"\"><type>double precision </type> <parameter>roundto=0</parameter></"
14912"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
14913"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
14914"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
14915"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
14916"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
14917"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
14918"\"><type>double precision </type> <parameter>roundto=0</parameter></"
14919"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
14920"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
14921"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
14922"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
14923"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
14924"type> <parameter>searchvalue</parameter></paramdef> <paramdef choice=\"opt"
14925"\"><type>double precision </type> <parameter>roundto=0</parameter></"
14926"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
14927"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
14928"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
14929"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
14930"<parameter>exclude_nodata_value</parameter></paramdef> "
14931"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
14932"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
14933"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
14934"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
14935"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
14936"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
14937"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
14938"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
14939"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
14940"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
14941"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
14942"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
14943"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
14944"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
14945"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
14946"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
14947"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
14948"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
14949"precision </type> <parameter>OUT value</parameter></paramdef> "
14950"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
14951"</funcprototype> <funcprototype> <funcdef>SETOF record "
14952"<function>ST_ValueCount</function></funcdef> <paramdef><type>text </type> "
14953"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
14954"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>double "
14955"precision[] </type> <parameter>searchvalues</parameter></paramdef> <paramdef "
14956"choice=\"opt\"><type>double precision </type> <parameter>roundto=0</"
14957"parameter></paramdef> <paramdef><type>double precision </type> "
14958"<parameter>OUT value</parameter></paramdef> <paramdef><type>integer </type> "
14959"<parameter>OUT count</parameter></paramdef> </funcprototype> <funcprototype> "
14960"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
14961"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
14962"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
14963"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
14964"<paramdef><type>double precision[] </type> <parameter>searchvalues</"
14965"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
14966"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
14967"precision </type> <parameter>OUT value</parameter></paramdef> "
14968"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
14969"</funcprototype> <funcprototype> <funcdef>bigint<function>ST_ValueCount</"
14970"function></funcdef> <paramdef><type>text </type> <parameter>rastertable</"
14971"parameter></paramdef> <paramdef><type>text </type> <parameter>rastercolumn</"
14972"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
14973"parameter></paramdef> <paramdef><type>boolean </type> "
14974"<parameter>exclude_nodata_value</parameter></paramdef> "
14975"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
14976"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
14977"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
14978"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
14979"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
14980"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
14981"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
14982"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
14983"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
14984"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
14985"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
14986"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
14987"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
14988"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
14989"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
14990"<parameter>roundto=0</parameter></paramdef> </funcprototype>"
14991msgstr ""
14992"<funcprototype> <funcdef>SETOF record <function>ST_ValueCount</function></"
14993"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
14994"paramdef> <paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
14995"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
14996"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
14997"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
14998"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
14999"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
15000"precision </type> <parameter>OUT value</parameter></paramdef> "
15001"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
15002"</funcprototype> <funcprototype> <funcdef>SETOF record "
15003"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
15004"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
15005"<parameter>nband</parameter></paramdef> <paramdef><type>double precision[] </"
15006"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
15007"\"><type>double precision </type> <parameter>roundto=0</parameter></"
15008"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
15009"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
15010"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>SETOF record "
15011"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
15012"<parameter>rast</parameter></paramdef> <paramdef><type>double precision[] </"
15013"type> <parameter>searchvalues</parameter></paramdef> <paramdef choice=\"opt"
15014"\"><type>double precision </type> <parameter>roundto=0</parameter></"
15015"paramdef> <paramdef><type>double precision </type> <parameter>OUT value</"
15016"parameter></paramdef> <paramdef><type>integer </type> <parameter>OUT count</"
15017"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
15018"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
15019"<parameter>rast</parameter></paramdef> <paramdef><type>double precision </"
15020"type> <parameter>searchvalue</parameter></paramdef> <paramdef choice=\"opt"
15021"\"><type>double precision </type> <parameter>roundto=0</parameter></"
15022"paramdef> </funcprototype> <funcprototype> <funcdef>bigint "
15023"<function>ST_ValueCount</function></funcdef> <paramdef><type>raster </type> "
15024"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
15025"<parameter>nband</parameter></paramdef> <paramdef><type>boolean </type> "
15026"<parameter>exclude_nodata_value</parameter></paramdef> "
15027"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
15028"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
15029"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
15030"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
15031"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15032"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
15033"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
15034"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
15035"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
15036"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
15037"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
15038"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
15039"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
15040"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
15041"<parameter>exclude_nodata_value=true</parameter></paramdef> <paramdef choice="
15042"\"opt\"><type>double precision[] </type> <parameter>searchvalues=NULL</"
15043"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
15044"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
15045"precision </type> <parameter>OUT value</parameter></paramdef> "
15046"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
15047"</funcprototype> <funcprototype> <funcdef>SETOF record "
15048"<function>ST_ValueCount</function></funcdef> <paramdef><type>text </type> "
15049"<parameter>rastertable</parameter></paramdef> <paramdef><type>text </type> "
15050"<parameter>rastercolumn</parameter></paramdef> <paramdef><type>double "
15051"precision[] </type> <parameter>searchvalues</parameter></paramdef> <paramdef "
15052"choice=\"opt\"><type>double precision </type> <parameter>roundto=0</"
15053"parameter></paramdef> <paramdef><type>double precision </type> "
15054"<parameter>OUT value</parameter></paramdef> <paramdef><type>integer </type> "
15055"<parameter>OUT count</parameter></paramdef> </funcprototype> <funcprototype> "
15056"<funcdef>SETOF record <function>ST_ValueCount</function></funcdef> "
15057"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
15058"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
15059"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
15060"<paramdef><type>double precision[] </type> <parameter>searchvalues</"
15061"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
15062"type> <parameter>roundto=0</parameter></paramdef> <paramdef><type>double "
15063"precision </type> <parameter>OUT value</parameter></paramdef> "
15064"<paramdef><type>integer </type> <parameter>OUT count</parameter></paramdef> "
15065"</funcprototype> <funcprototype> <funcdef>bigint<function>ST_ValueCount</"
15066"function></funcdef> <paramdef><type>text </type> <parameter>rastertable</"
15067"parameter></paramdef> <paramdef><type>text </type> <parameter>rastercolumn</"
15068"parameter></paramdef> <paramdef><type>integer </type> <parameter>nband</"
15069"parameter></paramdef> <paramdef><type>boolean </type> "
15070"<parameter>exclude_nodata_value</parameter></paramdef> "
15071"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
15072"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
15073"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
15074"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
15075"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
15076"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
15077"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
15078"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
15079"<parameter>roundto=0</parameter></paramdef> </funcprototype> <funcprototype> "
15080"<funcdef>bigint <function>ST_ValueCount</function></funcdef> "
15081"<paramdef><type>text </type> <parameter>rastertable</parameter></paramdef> "
15082"<paramdef><type>text </type> <parameter>rastercolumn</parameter></paramdef> "
15083"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
15084"<paramdef><type>double precision </type> <parameter>searchvalue</parameter></"
15085"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
15086"<parameter>roundto=0</parameter></paramdef> </funcprototype>"
15087
15088#. Tag: para
15089#: reference_raster.xml:5797
15090#, no-c-format
15091msgid ""
15092"Returns a set of records with columns <varname>value</varname> "
15093"<varname>count</varname> which contain the pixel band value and count of "
15094"pixels in the raster tile or raster coverage of selected band."
15095msgstr ""
15096"ラスタタイルまたはラスタカバレッジの指定したバンドにおけるピクセルバンド値と"
15097"ピクセル数にあたる、<varname>value</varname>と<varname>count</varname>からな"
15098"るレコードの集合を返します。"
15099
15100#. Tag: para
15101#: reference_raster.xml:5798
15102#, no-c-format
15103msgid ""
15104"If no band is specified <varname>nband</varname> defaults to 1. If no "
15105"<varname>searchvalues</varname> are specified, will return all pixel values "
15106"found in the raster or raster coverage. If one searchvalue is given, will "
15107"return an integer instead of records denoting the count of pixels having "
15108"that pixel band value"
15109msgstr ""
15110"<varname>nband</varname>でバンドを指定しない場合には、1番と仮定します。"
15111"<varname>searchvalues</varname>が指定されていない場合には、ラスタまたはラスタ"
15112"カバレッジで発見した全てのピクセル値が返ります。searchvalueを一つ指定した場合"
15113"には、指定したピクセルバンド値を持つピクセルの数を示すレコードでなく、整数を"
15114"返します。"
15115
15116#. Tag: programlisting
15117#: reference_raster.xml:5806
15118#, no-c-format
15119msgid ""
15120"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
15121"--Example will count only pixels of band 1 that are not 249. --\n"
15122"\n"
15123"SELECT (pvc).*\n"
15124"FROM (SELECT ST_ValueCount(rast) As pvc\n"
15125"    FROM dummy_rast WHERE rid=2) As foo\n"
15126"    ORDER BY (pvc).value;\n"
15127"\n"
15128" value | count\n"
15129"-------+-------\n"
15130"   250 |     2\n"
15131"   251 |     1\n"
15132"   252 |     2\n"
15133"   253 |     6\n"
15134"   254 |    12\n"
15135"\n"
15136"-- Example will coount all pixels of band 1 including 249 --\n"
15137"SELECT (pvc).*\n"
15138"FROM (SELECT ST_ValueCount(rast,1,false) As pvc\n"
15139"    FROM dummy_rast WHERE rid=2) As foo\n"
15140"    ORDER BY (pvc).value;\n"
15141"\n"
15142" value | count\n"
15143"-------+-------\n"
15144"   249 |     2\n"
15145"   250 |     2\n"
15146"   251 |     1\n"
15147"   252 |     2\n"
15148"   253 |     6\n"
15149"   254 |    12\n"
15150"\n"
15151"-- Example will count only non-nodata value pixels of band 2\n"
15152"SELECT (pvc).*\n"
15153"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
15154"    FROM dummy_rast WHERE rid=2) As foo\n"
15155"    ORDER BY (pvc).value;\n"
15156" value | count\n"
15157"-------+-------\n"
15158"    78 |     1\n"
15159"    79 |     1\n"
15160"    88 |     1\n"
15161"    89 |     1\n"
15162"    96 |     1\n"
15163"    97 |     1\n"
15164"    98 |     1\n"
15165"    99 |     2\n"
15166"   112 |     2\n"
15167":"
15168msgstr ""
15169"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,249) WHERE rid=2;\n"
15170"-- この例では、1番バンドの、値が249でないピクセルに限って数えます\n"
15171"\n"
15172"SELECT (pvc).*\n"
15173"FROM (SELECT ST_ValueCount(rast) As pvc\n"
15174"    FROM dummy_rast WHERE rid=2) As foo\n"
15175"    ORDER BY (pvc).value;\n"
15176"\n"
15177" value | count\n"
15178"-------+-------\n"
15179"   250 |     2\n"
15180"   251 |     1\n"
15181"   252 |     2\n"
15182"   253 |     6\n"
15183"   254 |    12\n"
15184"\n"
15185"-- この例では、1番バンドの、249を含む全てのピクセルを数えます\n"
15186"SELECT (pvc).*\n"
15187"FROM (SELECT ST_ValueCount(rast,1,false) As pvc\n"
15188"    FROM dummy_rast WHERE rid=2) As foo\n"
15189"    ORDER BY (pvc).value;\n"
15190"\n"
15191" value | count\n"
15192"-------+-------\n"
15193"   249 |     2\n"
15194"   250 |     2\n"
15195"   251 |     1\n"
15196"   252 |     2\n"
15197"   253 |     6\n"
15198"   254 |    12\n"
15199"\n"
15200"-- この例では、2番バンドの、NODATA値でない値を持つピクセルに限って数えます\n"
15201"SELECT (pvc).*\n"
15202"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
15203"    FROM dummy_rast WHERE rid=2) As foo\n"
15204"    ORDER BY (pvc).value;\n"
15205" value | count\n"
15206"-------+-------\n"
15207"    78 |     1\n"
15208"    79 |     1\n"
15209"    88 |     1\n"
15210"    89 |     1\n"
15211"    96 |     1\n"
15212"    97 |     1\n"
15213"    98 |     1\n"
15214"    99 |     2\n"
15215"   112 |     2\n"
15216":"
15217
15218#. Tag: programlisting
15219#: reference_raster.xml:5807
15220#, no-c-format
15221msgid ""
15222"--real live example.  Count all the pixels in an aerial raster tile band 2 "
15223"intersecting a geometry\n"
15224"-- and return only the pixel band values that have a count > 500\n"
15225"SELECT (pvc).value, SUM((pvc).count) As total\n"
15226"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
15227"    FROM o_4_boston\n"
15228"        WHERE ST_Intersects(rast,\n"
15229"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
15230"892200,224706 892151,224486 892151))',26986)\n"
15231"             )\n"
15232"        ) As foo\n"
15233"    GROUP BY (pvc).value\n"
15234"    HAVING SUM((pvc).count) > 500\n"
15235"    ORDER BY (pvc).value;\n"
15236"\n"
15237" value | total\n"
15238"-------+-----\n"
15239"    51 | 502\n"
15240"    54 | 521"
15241msgstr ""
15242"-- 現実の例です。空中写真ラスタタイルの2番バンドで、\n"
15243"-- ジオメトリとインタセクトするピクセル数を数え、\n"
15244"-- 500を超えるピクセル数があるピクセルバンド値のみ返します。\n"
15245"SELECT (pvc).value, SUM((pvc).count) As total\n"
15246"FROM (SELECT ST_ValueCount(rast,2) As pvc\n"
15247"    FROM o_4_boston\n"
15248"        WHERE ST_Intersects(rast,\n"
15249"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
15250"892200,224706 892151,224486 892151))',26986)\n"
15251"             )\n"
15252"        ) As foo\n"
15253"    GROUP BY (pvc).value\n"
15254"    HAVING SUM((pvc).count) > 500\n"
15255"    ORDER BY (pvc).value;\n"
15256"\n"
15257" value | total\n"
15258"-------+-----\n"
15259"    51 | 502\n"
15260"    54 | 521"
15261
15262#. Tag: programlisting
15263#: reference_raster.xml:5809
15264#, no-c-format
15265msgid ""
15266"-- Just return count of pixels in each raster tile that have value of 100 of "
15267"tiles that intersect  a specific geometry --\n"
15268"SELECT rid, ST_ValueCount(rast,2,100) As count\n"
15269"    FROM o_4_boston\n"
15270"        WHERE ST_Intersects(rast,\n"
15271"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
15272"892200,224706 892151,224486 892151))',26986)\n"
15273"             ) ;\n"
15274"\n"
15275" rid | count\n"
15276"-----+-------\n"
15277"   1 |    56\n"
15278"   2 |    95\n"
15279"  14 |    37\n"
15280"  15 |    64"
15281msgstr ""
15282"-- 指定したジオメトリとインタセクトするタイルの\n"
15283"-- 値が100のピクセルをラスタタイルごとに数えて返します\n"
15284"SELECT rid, ST_ValueCount(rast,2,100) As count\n"
15285"    FROM o_4_boston\n"
15286"        WHERE ST_Intersects(rast,\n"
15287"            ST_GeomFromText('POLYGON((224486 892151,224486 892200,224706 "
15288"892200,224706 892151,224486 892151))',26986)\n"
15289"             ) ;\n"
15290"\n"
15291" rid | count\n"
15292"-----+-------\n"
15293"   1 |    56\n"
15294"   2 |    95\n"
15295"  14 |    37\n"
15296"  15 |    64"
15297
15298#. Tag: para
15299#: reference_raster.xml:5814
15300#, no-c-format
15301msgid ", <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
15302msgstr ", <xref linkend=\"RT_ST_SetBandNoDataValue\"/>"
15303
15304#. Tag: title
15305#: reference_raster.xml:5820
15306#, no-c-format
15307msgid "Raster Inputs"
15308msgstr "ラスタ入力"
15309
15310#. Tag: refname
15311#: reference_raster.xml:5823
15312#, no-c-format
15313msgid "ST_RastFromWKB"
15314msgstr "ST_RastFromWKB"
15315
15316#. Tag: refpurpose
15317#: reference_raster.xml:5824
15318#, no-c-format
15319msgid "Return a raster value from a Well-Known Binary (WKB) raster."
15320msgstr "Well-Known Binary (WKB)ラスタからラスタ値を返します。"
15321
15322#. Tag: funcprototype
15323#: reference_raster.xml:5829
15324#, no-c-format
15325msgid ""
15326"<funcdef>raster <function>ST_RastFromWKB</function></funcdef> "
15327"<paramdef><type>bytea </type> <parameter>wkb</parameter></paramdef>"
15328msgstr ""
15329"<funcdef>raster <function>ST_RastFromWKB</function></funcdef> "
15330"<paramdef><type>bytea </type> <parameter>wkb</parameter></paramdef>"
15331
15332#. Tag: para
15333#: reference_raster.xml:5839
15334#, no-c-format
15335msgid "Given a Well-Known Binary (WKB) raster, return a raster."
15336msgstr "Well-Known Binary (WKB)ラスタが与えられると、ラスタを返します。"
15337
15338#. Tag: programlisting
15339#: reference_raster.xml:5849
15340#, no-c-format
15341msgid ""
15342"SELECT (ST_Metadata(\n"
15343"        ST_RastFromWKB(\n"
15344"                '\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
15345"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
15346"\\000\\000\\000\\000\\000\\000\\340?"
15347"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000'::"
15348"bytea\n"
15349"        )\n"
15350")).* AS metadata;\n"
15351"\n"
15352" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
15353"| srid | numbands\n"
15354"------------+------------+-------+--------+--------+--------+-------+-------"
15355"+------+----------\n"
15356"        0.5 |        0.5 |    10 |     20 |      2 |      3 |     0 |     0 "
15357"|   10 |        0"
15358msgstr ""
15359"SELECT (ST_Metadata(\n"
15360"        ST_RastFromWKB(\n"
15361"                '\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
15362"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
15363"\\000\\000\\000\\000\\000\\000\\340?"
15364"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000'::"
15365"bytea\n"
15366"        )\n"
15367")).* AS metadata;\n"
15368"\n"
15369" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
15370"| srid | numbands\n"
15371"------------+------------+-------+--------+--------+--------+-------+-------"
15372"+------+----------\n"
15373"        0.5 |        0.5 |    10 |     20 |      2 |      3 |     0 |     0 "
15374"|   10 |        0"
15375
15376#. Tag: para
15377#: reference_raster.xml:5855
15378#, no-c-format
15379msgid ""
15380", <xref linkend=\"RT_ST_RastFromHexWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/"
15381">, <xref linkend=\"RT_ST_AsHexWKB\"/>"
15382msgstr ""
15383", <xref linkend=\"RT_ST_RastFromHexWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/"
15384">, <xref linkend=\"RT_ST_AsHexWKB\"/>"
15385
15386#. Tag: refname
15387#: reference_raster.xml:5866
15388#, no-c-format
15389msgid "ST_RastFromHexWKB"
15390msgstr "ST_RastFromHexWKB"
15391
15392#. Tag: refpurpose
15393#: reference_raster.xml:5867
15394#, no-c-format
15395msgid ""
15396"Return a raster value from a Hex representation of Well-Known Binary (WKB) "
15397"raster."
15398msgstr "Well-Knownバイナリ (WKB)ラスタの16進数表現からラスタを返します。"
15399
15400#. Tag: funcprototype
15401#: reference_raster.xml:5872
15402#, no-c-format
15403msgid ""
15404"<funcdef>raster <function>ST_RastFromHexWKB</function></funcdef> "
15405"<paramdef><type>text </type> <parameter>wkb</parameter></paramdef>"
15406msgstr ""
15407"<funcdef>raster <function>ST_RastFromHexWKB</function></funcdef> "
15408"<paramdef><type>text </type> <parameter>wkb</parameter></paramdef>"
15409
15410#. Tag: para
15411#: reference_raster.xml:5882
15412#, no-c-format
15413msgid ""
15414"Given a Well-Known Binary (WKB) raster in Hex representation, return a "
15415"raster."
15416msgstr ""
15417"Well-Known Binary (WKB)ラスタが16進数表現で与えられると、ラスタを返します。"
15418
15419#. Tag: programlisting
15420#: reference_raster.xml:5892
15421#, no-c-format
15422msgid ""
15423"SELECT (ST_Metadata(\n"
15424"        ST_RastFromHexWKB(\n"
15425"                '010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400'\n"
15426"        )\n"
15427")).* AS metadata;\n"
15428"\n"
15429" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
15430"| srid | numbands\n"
15431"------------+------------+-------+--------+--------+--------+-------+-------"
15432"+------+----------\n"
15433"        0.5 |        0.5 |    10 |     20 |      2 |      3 |     0 |     0 "
15434"|   10 |        0"
15435msgstr ""
15436"SELECT (ST_Metadata(\n"
15437"        ST_RastFromHexWKB(\n"
15438"                '010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400'\n"
15439"        )\n"
15440")).* AS metadata;\n"
15441"\n"
15442" upperleftx | upperlefty | width | height | scalex | scaley | skewx | skewy "
15443"| srid | numbands\n"
15444"------------+------------+-------+--------+--------+--------+-------+-------"
15445"+------+----------\n"
15446"        0.5 |        0.5 |    10 |     20 |      2 |      3 |     0 |     0 "
15447"|   10 |        0"
15448
15449#. Tag: para
15450#: reference_raster.xml:5898
15451#, no-c-format
15452msgid ""
15453", <xref linkend=\"RT_ST_RastFromWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/>, "
15454"<xref linkend=\"RT_ST_AsHexWKB\"/>"
15455msgstr ""
15456", <xref linkend=\"RT_ST_RastFromWKB\"/>, <xref linkend=\"RT_ST_AsBinary\"/>, "
15457"<xref linkend=\"RT_ST_AsHexWKB\"/>"
15458
15459#. Tag: title
15460#: reference_raster.xml:5910
15461#, no-c-format
15462msgid "Raster Outputs"
15463msgstr "出力"
15464
15465#. Tag: refname
15466#: reference_raster.xml:5914
15467#, no-c-format
15468msgid "ST_AsBinary/ST_AsWKB"
15469msgstr "ST_AsBinary/ST_AsWKB"
15470
15471#. Tag: refpurpose
15472#: reference_raster.xml:5915
15473#, no-c-format
15474msgid "Return the Well-Known Binary (WKB) representation of the raster."
15475msgstr "ラスタのWell-Known Binary (WKB)表現を返します。"
15476
15477#. Tag: funcsynopsis
15478#: reference_raster.xml:5919
15479#, no-c-format
15480msgid ""
15481"<funcprototype> <funcdef>bytea <function>ST_AsBinary</function></funcdef> "
15482"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15483"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
15484"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15485"<function>ST_AsWKB</function></funcdef> <paramdef><type>raster </type> "
15486"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
15487"\"><type>boolean </type> <parameter>outasin=FALSE</parameter></paramdef> </"
15488"funcprototype>"
15489msgstr ""
15490"<funcprototype> <funcdef>bytea <function>ST_AsBinary</function></funcdef> "
15491"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15492"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
15493"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15494"<function>ST_AsWKB</function></funcdef> <paramdef><type>raster </type> "
15495"<parameter>rast</parameter></paramdef> <paramdef choice=\"opt"
15496"\"><type>boolean </type> <parameter>outasin=FALSE</parameter></paramdef> </"
15497"funcprototype>"
15498
15499#. Tag: para
15500#: reference_raster.xml:5936
15501#, no-c-format
15502msgid ""
15503"Returns the Binary representation of the raster. If <varname>outasin</"
15504"varname> is TRUE, out-db bands are treated as in-db. Refer to raster/doc/"
15505"RFC2-WellKnownBinaryFormat located in the PostGIS source folder for details "
15506"of the representation."
15507msgstr ""
15508"ラスタのバイナリ表現を返します。<varname>outasin</varname>がTRUEの場合には、"
15509"データベース外のバンドがデータベース内のバンドとして扱われます。表現の詳細に"
15510"ついては、PostGISソースフォルダにあるraster/doc/RFC2-WellKnownBinaryFormatを"
15511"ご覧下さい。"
15512
15513#. Tag: para
15514#: reference_raster.xml:5941
15515#, no-c-format
15516msgid ""
15517"This is useful in binary cursors to pull data out of the database without "
15518"converting it to a string representation."
15519msgstr ""
15520"データを文字列表現に変換せずにデータベース外に引き出すためのバイナリカーソル"
15521"に使えます。"
15522
15523#. Tag: para
15524#: reference_raster.xml:5946
15525#, no-c-format
15526msgid ""
15527"By default, WKB output contains the external file path for out-db bands. If "
15528"the client does not have access to the raster file underlying an out-db "
15529"band, set <varname>outasin</varname> to TRUE."
15530msgstr ""
15531"デフォルトでは、WKB出力には、データベース外のバンドの外部ファイルパスを含みま"
15532"す。クライアントがデータベース外にあるラスタファイルにアクセスできない場合に"
15533"は、<varname>outasin</varname>をTRUEに設定します。"
15534
15535#. Tag: para
15536#: reference_raster.xml:5950
15537#, no-c-format
15538msgid "Enhanced: 2.1.0 Addition of <varname>outasin</varname>"
15539msgstr "Enhanced: 2.1.0 <varname>outasin</varname>の追加"
15540
15541#. Tag: para
15542#: reference_raster.xml:5951
15543#, no-c-format
15544msgid "Enhanced: 2.5.0 Addition of <varname>ST_AsWKB</varname>"
15545msgstr "Enhanced: 2.5.0 <varname>ST_AsWKB</varname>の追加"
15546
15547#. Tag: programlisting
15548#: reference_raster.xml:5957
15549#, no-c-format
15550msgid ""
15551"SELECT ST_AsBinary(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
15552"\n"
15553"                                         rastbin\n"
15554"---------------------------------------------------------------------------------\n"
15555"\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
15556"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
15557"\\000\\000\\000\\000\\000\\000\\340?"
15558"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000"
15559msgstr ""
15560"SELECT ST_AsBinary(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
15561"\n"
15562"                                         rastbin\n"
15563"---------------------------------------------------------------------------------\n"
15564"\\001\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000@"
15565"\\000\\000\\000\\000\\000\\000\\010@\\000\\000\\000\\000\\000\\000\\340?"
15566"\\000\\000\\000\\000\\000\\000\\340?"
15567"\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\000\\012\\000\\000\\000\\012\\000\\024\\000"
15568
15569#. Tag: para
15570#: reference_raster.xml:5963
15571#, no-c-format
15572msgid ", <xref linkend=\"RT_ST_AsHexWKB\"/>"
15573msgstr ", <xref linkend=\"RT_ST_AsHexWKB\"/>"
15574
15575#. Tag: refname
15576#: reference_raster.xml:5972
15577#, no-c-format
15578msgid "ST_AsHexWKB"
15579msgstr "ST_AsHexWKB"
15580
15581#. Tag: refpurpose
15582#: reference_raster.xml:5973
15583#, no-c-format
15584msgid "Return the Well-Known Binary (WKB) in Hex representation of the raster."
15585msgstr "Well-Known Binary (WKB)ラスタを16進数表現で返します。"
15586
15587#. Tag: funcprototype
15588#: reference_raster.xml:5978
15589#, no-c-format
15590msgid ""
15591"<funcdef>bytea <function>ST_AsHexWKB</function></funcdef> "
15592"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15593"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
15594"parameter></paramdef>"
15595msgstr ""
15596"<funcdef>bytea <function>ST_AsHexWKB</function></funcdef> "
15597"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15598"<paramdef choice=\"opt\"><type>boolean </type> <parameter>outasin=FALSE</"
15599"parameter></paramdef>"
15600
15601#. Tag: para
15602#: reference_raster.xml:5989
15603#, no-c-format
15604msgid ""
15605"Returns the Binary representation in Hex representation of the raster. If "
15606"<varname>outasin</varname> is TRUE, out-db bands are treated as in-db. Refer "
15607"to raster/doc/RFC2-WellKnownBinaryFormat located in the PostGIS source "
15608"folder for details of the representation."
15609msgstr ""
15610"ラスタのバイナリの16進数表現を返します。<varname>outasin</varname>がTRUEの場"
15611"合には、データベース外のバンドがデータベース内のバンドとして扱われます。表現"
15612"の詳細については、PostGISソースフォルダにあるraster/doc/RFC2-"
15613"WellKnownBinaryFormatをご覧下さい。"
15614
15615#. Tag: para
15616#: reference_raster.xml:5995
15617#, no-c-format
15618msgid ""
15619"By default, Hex WKB output contains the external file path for out-db bands. "
15620"If the client does not have access to the raster file underlying an out-db "
15621"band, set <varname>outasin</varname> to TRUE."
15622msgstr ""
15623"デフォルトでは、WKB出力には、データベース外のバンドの外部ファイルパスを含みま"
15624"す。クライアントがデータベース外バンドを持っているラスタファイルにアクセスで"
15625"きない場合には、<varname>outasin</varname>をTRUEに設定します。"
15626
15627#. Tag: programlisting
15628#: reference_raster.xml:6005
15629#, no-c-format
15630msgid ""
15631"SELECT ST_AsHexWKB(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
15632"\n"
15633"                                                        st_ashexwkb\n"
15634"----------------------------------------------------------------------------------------------------------------------------\n"
15635" 010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400"
15636msgstr ""
15637"SELECT ST_AsHexWKB(rast) As rastbin FROM dummy_rast WHERE rid=1;\n"
15638"\n"
15639"                                                        st_ashexwkb\n"
15640"----------------------------------------------------------------------------------------------------------------------------\n"
15641" 010000000000000000000000400000000000000840000000000000E03F000000000000E03F000000000000000000000000000000000A0000000A001400"
15642
15643#. Tag: para
15644#: reference_raster.xml:6011
15645#, no-c-format
15646msgid ", <xref linkend=\"RT_ST_AsBinary\"/>"
15647msgstr ", <xref linkend=\"RT_ST_AsBinary\"/>"
15648
15649#. Tag: refname
15650#: reference_raster.xml:6021
15651#, no-c-format
15652msgid "ST_AsGDALRaster"
15653msgstr "ST_AsGDALRaster"
15654
15655#. Tag: refpurpose
15656#: reference_raster.xml:6022
15657#, no-c-format
15658msgid ""
15659"Return the raster tile in the designated GDAL Raster format. Raster formats "
15660"are one of those supported by your compiled library. Use ST_GDALDrivers() to "
15661"get a list of formats supported by your library."
15662msgstr ""
15663"指定されたGDALラスタ書式でラスタタイルを返します。ラスタ書式はコンパイルした"
15664"ライブラリが対応するものです。ライブラリが対応する書式の一覧を得るには"
15665"ST_GDALRasters()を使います。"
15666
15667#. Tag: funcprototype
15668#: reference_raster.xml:6027
15669#, no-c-format
15670msgid ""
15671"<funcdef>bytea <function>ST_AsGDALRaster</function></funcdef> "
15672"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15673"<paramdef><type>text </type> <parameter>format</parameter></paramdef> "
15674"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15675"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
15676"<parameter>srid=sameassource</parameter></paramdef>"
15677msgstr ""
15678"<funcdef>bytea <function>ST_AsGDALRaster</function></funcdef> "
15679"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15680"<paramdef><type>text </type> <parameter>format</parameter></paramdef> "
15681"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15682"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
15683"<parameter>srid=sameassource</parameter></paramdef>"
15684
15685#. Tag: para
15686#: reference_raster.xml:6041
15687#, no-c-format
15688msgid ""
15689"Returns the raster tile in the designated format. Arguments are itemized "
15690"below:"
15691msgstr "指定された書式でラスタタイルを返します。引数は次の通りです。"
15692
15693#. Tag: para
15694#: reference_raster.xml:6044
15695#, no-c-format
15696msgid ""
15697"<varname>format</varname> format to output. This is dependent on the drivers "
15698"compiled in your libgdal library. Generally available are 'JPEG', 'GTIff', "
15699"'PNG'. Use <xref linkend=\"RT_ST_GDALDrivers\"/> to get a list of formats "
15700"supported by your library."
15701msgstr ""
15702"<varname>format</varname> 出力書式です。libgdalライブラリでコンパイルしたドラ"
15703"イバに依存します。一般的には'JPEG', 'GTIff', 'PNG'が有効になっています。ライ"
15704"ブラリが対応する形式の一覧を得るには<xref linkend=\"RT_ST_GDALDrivers\"/>を使"
15705"います。"
15706
15707#. Tag: para
15708#: reference_raster.xml:6049
15709#, no-c-format
15710msgid ""
15711"<varname>options</varname> text array of GDAL options. Valid options are "
15712"dependent on the format. Refer to <ulink url=\"http://www.gdal.org/"
15713"frmt_various.html\">GDAL Raster format options</ulink> for more details."
15714msgstr ""
15715"<varname>options</varname> GDALオプションの文字列配列です。妥当なオプションは"
15716"書式に依存します。詳細については<ulink url=\"http://www.gdal.org/"
15717"frmt_various.html\">GDAL Raster format options</ulink>をご覧下さい。"
15718
15719#. Tag: para
15720#: reference_raster.xml:6054
15721#, no-c-format
15722msgid ""
15723"<varname>srs</varname> The proj4text or srtext (from spatial_ref_sys) to "
15724"embed in the image"
15725msgstr ""
15726"<varname>srs</varname> 画像に埋め込むproj4textまたはsrtext (spatial_ref_sysか"
15727"ら)です。"
15728
15729#. Tag: title
15730#: reference_raster.xml:6064
15731#, no-c-format
15732msgid "JPEG Output Example, multiple tiles as single raster"
15733msgstr "複数タイルを単一ラスタとするJPEG出力例"
15734
15735#. Tag: programlisting
15736#: reference_raster.xml:6066
15737#, no-c-format
15738msgid ""
15739"<![CDATA[SELECT ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50']) "
15740"As rastjpg\n"
15741"FROM dummy_rast\n"
15742"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);]]>"
15743msgstr ""
15744"<![CDATA[SELECT ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50']) "
15745"As rastjpg\n"
15746"FROM dummy_rast\n"
15747"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);]]>"
15748
15749#. Tag: title
15750#: reference_raster.xml:6071
15751#, no-c-format
15752msgid "Using PostgreSQL Large Object Support to export raster"
15753msgstr "PostgreSQLラージオブジェクト対応を使ったラスタの出力"
15754
15755#. Tag: para
15756#: reference_raster.xml:6072
15757#, no-c-format
15758msgid ""
15759"One way to export raster into another format is using <ulink url=\"https://"
15760"www.postgresql.org/docs/current/static/lo-funcs.html\">PostgreSQL large "
15761"object export functions</ulink>. We'lll repeat the prior example but also "
15762"exporting. Note for this you'll need to have super user access to db since "
15763"it uses server side lo functions. It will also export to path on server "
15764"network. If you need export locally, use the psql equivalent lo_ functions "
15765"which export to the local file system instead of the server file system."
15766msgstr ""
15767"ラスタを他の書式に出力する方法の一つとして、<ulink url=\"https://www."
15768"postgresql.org/docs/current/static/lo-funcs.html\">PostgreSQL large object "
15769"export functions</ulink>の使用があります。前の例の繰り返しですが、出力も行い"
15770"ます。サーバ側のlo関数を使うため、データベースへのスーパーユーザ権限が必要と"
15771"なることに注意して下さい。また、サーバネットワーク上のパスに出力します。ロー"
15772"カルに出力するには、psqlで、サーバのファイルシステムでなくローカルのファイル"
15773"システムに出力する等価のlo_関数を使います。"
15774
15775#. Tag: programlisting
15776#: reference_raster.xml:6076
15777#, no-c-format
15778msgid ""
15779"<![CDATA[DROP TABLE IF EXISTS tmp_out ;\n"
15780"\n"
15781"CREATE TABLE tmp_out AS\n"
15782"SELECT lo_from_bytea(0,\n"
15783"       ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50'])\n"
15784"        ) AS loid\n"
15785"  FROM dummy_rast\n"
15786"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);\n"
15787"\n"
15788"SELECT lo_export(loid, '/tmp/dummy.jpg')\n"
15789"   FROM tmp_out;\n"
15790"\n"
15791"SELECT lo_unlink(loid)\n"
15792"  FROM tmp_out;]]>"
15793msgstr ""
15794"<![CDATA[DROP TABLE IF EXISTS tmp_out ;\n"
15795"\n"
15796"CREATE TABLE tmp_out AS\n"
15797"SELECT lo_from_bytea(0,\n"
15798"       ST_AsGDALRaster(ST_Union(rast), 'JPEG', ARRAY['QUALITY=50'])\n"
15799"        ) AS loid\n"
15800"  FROM dummy_rast\n"
15801"WHERE rast && ST_MakeEnvelope(10, 10, 11, 11);\n"
15802"\n"
15803"SELECT lo_export(loid, '/tmp/dummy.jpg')\n"
15804"   FROM tmp_out;\n"
15805"\n"
15806"SELECT lo_unlink(loid)\n"
15807"  FROM tmp_out;]]>"
15808
15809#. Tag: title
15810#: reference_raster.xml:6080
15811#, no-c-format
15812msgid "GTIFF Output Examples"
15813msgstr "GTIFF出力の例"
15814
15815#. Tag: programlisting
15816#: reference_raster.xml:6082
15817#, no-c-format
15818msgid ""
15819"SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg\n"
15820"FROM dummy_rast WHERE rid=2;\n"
15821"\n"
15822"-- Out GeoTiff with jpeg compression, 90% quality\n"
15823"SELECT ST_AsGDALRaster(rast, 'GTiff',\n"
15824"  ARRAY['COMPRESS=JPEG', 'JPEG_QUALITY=90'],\n"
15825"  4269) As rasttiff\n"
15826"FROM dummy_rast WHERE rid=2;"
15827msgstr ""
15828"SELECT ST_AsGDALRaster(rast, 'GTiff') As rastjpg\n"
15829"FROM dummy_rast WHERE rid=2;\n"
15830"\n"
15831"-- GeoTIFFをJPEG、90%品質で圧縮して出力します\n"
15832"SELECT ST_AsGDALRaster(rast, 'GTiff',\n"
15833"  ARRAY['COMPRESS=JPEG', 'JPEG_QUALITY=90'],\n"
15834"  4269) As rasttiff\n"
15835"FROM dummy_rast WHERE rid=2;"
15836
15837#. Tag: para
15838#: reference_raster.xml:6089
15839#, no-c-format
15840msgid ", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_SRID\"/>"
15841msgstr ""
15842", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_SRID\"/>"
15843
15844#. Tag: refname
15845#: reference_raster.xml:6095
15846#, no-c-format
15847msgid "ST_AsJPEG"
15848msgstr "ST_AsJPEG"
15849
15850#. Tag: refpurpose
15851#: reference_raster.xml:6096
15852#, no-c-format
15853msgid ""
15854"Return the raster tile selected bands as a single Joint Photographic Exports "
15855"Group (JPEG) image (byte array). If no band is specified and 1 or more than "
15856"3 bands, then only the first band is used. If only 3 bands then all 3 bands "
15857"are used and mapped to RGB."
15858msgstr ""
15859"ラスタの選択されたバンドを、単一のJoint Photographic Exports Group (JPEG)画像"
15860"としてバイト配列で返します。バンドを指定せず、1バンドか3より多いバンドがある"
15861"場合には、1番バンドを使用します。3バンドのみ指定した場合には、3バンドを使用"
15862"し、RGBに対応付けます。"
15863
15864#. Tag: funcsynopsis
15865#: reference_raster.xml:6100
15866#, no-c-format
15867msgid ""
15868"<funcprototype> <funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
15869"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15870"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15871"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15872"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
15873"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
15874"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
15875"<parameter>quality</parameter></paramdef> </funcprototype> <funcprototype> "
15876"<funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
15877"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15878"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
15879"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15880"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15881"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
15882"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
15883"<parameter>nbands</parameter></paramdef> <paramdef choice=\"opt"
15884"\"><type>text[] </type> <parameter>options=NULL</parameter></paramdef> </"
15885"funcprototype> <funcprototype> <funcdef>bytea <function>ST_AsJPEG</"
15886"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
15887"parameter></paramdef> <paramdef><type>integer[] </type> <parameter>nbands</"
15888"parameter></paramdef> <paramdef><type>integer </type> <parameter>quality</"
15889"parameter></paramdef> </funcprototype>"
15890msgstr ""
15891"<funcprototype> <funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
15892"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15893"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15894"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15895"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
15896"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
15897"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
15898"<parameter>quality</parameter></paramdef> </funcprototype> <funcprototype> "
15899"<funcdef>bytea <function>ST_AsJPEG</function></funcdef> "
15900"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
15901"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
15902"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
15903"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
15904"<function>ST_AsJPEG</function></funcdef> <paramdef><type>raster </type> "
15905"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
15906"<parameter>nbands</parameter></paramdef> <paramdef choice=\"opt"
15907"\"><type>text[] </type> <parameter>options=NULL</parameter></paramdef> </"
15908"funcprototype> <funcprototype> <funcdef>bytea <function>ST_AsJPEG</"
15909"function></funcdef> <paramdef><type>raster </type> <parameter>rast</"
15910"parameter></paramdef> <paramdef><type>integer[] </type> <parameter>nbands</"
15911"parameter></paramdef> <paramdef><type>integer </type> <parameter>quality</"
15912"parameter></paramdef> </funcprototype>"
15913
15914#. Tag: para
15915#: reference_raster.xml:6136
15916#, no-c-format
15917msgid ""
15918"Returns the selected bands of the raster as a single Joint Photographic "
15919"Exports Group Image (JPEG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if "
15920"you need to export as less common raster types. If no band is specified and "
15921"1 or more than 3 bands, then only the first band is used. If 3 bands then "
15922"all 3 bands are used. There are many variants of the function with many "
15923"options. These are itemized below:"
15924msgstr ""
15925"ラスタの選択されたバンドを、単一のJoint Photographic Exports Group (JPEG)画像"
15926"として返します。 より一般でないラスタタイプで出力する必要がある場合には、"
15927"<xref linkend=\"RT_ST_AsGDALRaster\"/>を使います。バンドを指定せず、1バンドか"
15928"3より多いバンドがある場合には、1番バンドを使用します。3バンドのみ指定した場合"
15929"には、3バンドを使用します。この関数には多数の任意引数が付くさまざまな形式があ"
15930"ります。引数については次の通りです。"
15931
15932#. Tag: para
15933#: reference_raster.xml:6139 reference_raster.xml:6230
15934#, no-c-format
15935msgid "<varname>nband</varname> is for single band exports."
15936msgstr "<varname>nband</varname> 単一バンド出力のためのものです。"
15937
15938#. Tag: para
15939#: reference_raster.xml:6144
15940#, no-c-format
15941msgid ""
15942"<varname>nbands</varname> is an array of bands to export (note that max is 3 "
15943"for JPEG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band "
15944"3 to Red, band 2 to green and band 1 to blue"
15945msgstr ""
15946"<varname>nbands</varname> 出力バンドの配列 (JPEGでは3要素が最大です)で、バン"
15947"ドの並び順はRGBです。たとえばARRAY[3,2,1]は、3番バンドを赤、2番バンドを緑、1"
15948"番バンドを青にそれぞれ対応させます。"
15949
15950#. Tag: para
15951#: reference_raster.xml:6149
15952#, no-c-format
15953msgid ""
15954"<varname>quality</varname> number from 0 to 100. The higher the number the "
15955"crisper the image."
15956msgstr ""
15957"<varname>quality</varname> 0から100の数値です。高いほどしっかりした画像になり"
15958"ます。"
15959
15960#. Tag: para
15961#: reference_raster.xml:6154
15962#, no-c-format
15963msgid ""
15964"<varname>options</varname> text Array of GDAL options as defined for JPEG "
15965"(look at create_options for JPEG <xref linkend=\"RT_ST_GDALDrivers\"/>). For "
15966"JPEG valid ones are <varname>PROGRESSIVE</varname> ON or OFF and "
15967"<varname>QUALITY</varname> a range from 0 to 100 and default to 75. Refer to "
15968"<ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format "
15969"options</ulink> for more details."
15970msgstr ""
15971"<varname>options</varname> JPEGのために定義するGDALオプションの文字列配列で"
15972"す (<xref linkend=\"RT_ST_GDALDrivers\"/>のcreate_optionsを見てください)。"
15973"JPEGの妥当なパラメタは <varname>PROGRESSIVE</varname>の'ON'または'OFF'と、"
15974"<varname>QUALITY</varname>の0から100までの数 (デフォルトは75)です。詳細につい"
15975"ては <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL Raster format "
15976"options</ulink>をご覧下さい。"
15977
15978#. Tag: title
15979#: reference_raster.xml:6171
15980#, no-c-format
15981msgid "Examples: Output"
15982msgstr "例: 出力"
15983
15984#. Tag: programlisting
15985#: reference_raster.xml:6173
15986#, no-c-format
15987msgid ""
15988"-- output first 3 bands 75% quality\n"
15989"SELECT ST_AsJPEG(rast) As rastjpg\n"
15990"    FROM dummy_rast WHERE rid=2;\n"
15991"\n"
15992"-- output only first band as 90% quality\n"
15993"SELECT ST_AsJPEG(rast,1,90) As rastjpg\n"
15994"    FROM dummy_rast WHERE rid=2;\n"
15995"\n"
15996"-- output first 3 bands (but make band 2 Red, band 1 green, and band 3 blue, "
15997"progressive and 90% quality\n"
15998"SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As "
15999"rastjpg\n"
16000"    FROM dummy_rast WHERE rid=2;"
16001msgstr ""
16002"-- 前から3バンドを75%品質で出力\n"
16003"SELECT ST_AsJPEG(rast) As rastjpg\n"
16004"    FROM dummy_rast WHERE rid=2;\n"
16005"\n"
16006"-- 1番バンドのみ90%品質で出力\n"
16007"SELECT ST_AsJPEG(rast,1,90) As rastjpg\n"
16008"    FROM dummy_rast WHERE rid=2;\n"
16009"\n"
16010"-- 前から3バンドを、2番を赤、1番を緑、3番を青とし、プログレッシブ、90%品質で"
16011"出力します\n"
16012"SELECT ST_AsJPEG(rast,ARRAY[2,1,3],ARRAY['QUALITY=90','PROGRESSIVE=ON']) As "
16013"rastjpg\n"
16014"    FROM dummy_rast WHERE rid=2;"
16015
16016#. Tag: para
16017#: reference_raster.xml:6180
16018#, no-c-format
16019msgid ""
16020", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_AsGDALRaster"
16021"\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref linkend=\"RT_ST_AsTIFF\"/>"
16022msgstr ""
16023", <xref linkend=\"RT_ST_GDALDrivers\"/>, <xref linkend=\"RT_ST_AsGDALRaster"
16024"\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref linkend=\"RT_ST_AsTIFF\"/>"
16025
16026#. Tag: refname
16027#: reference_raster.xml:6186
16028#, no-c-format
16029msgid "ST_AsPNG"
16030msgstr "ST_AsPNG"
16031
16032#. Tag: refpurpose
16033#: reference_raster.xml:6187
16034#, no-c-format
16035msgid ""
16036"Return the raster tile selected bands as a single portable network graphics "
16037"(PNG) image (byte array). If 1, 3, or 4 bands in raster and no bands are "
16038"specified, then all bands are used. If more 2 or more than 4 bands and no "
16039"bands specified, then only band 1 is used. Bands are mapped to RGB or RGBA "
16040"space."
16041msgstr ""
16042"ラスタの選択されたバンドを、単一のportable network graphics (PNG)画像としてバ"
16043"イト配列で返します。バンドを指定せず、1バンドか3バンドか4バンドある場合には、"
16044"全てのバンドを使用します。バンドを指定せず、2バンドか4より多いバンドがある場"
16045"合には、1番バンドを使用します。対象バンドはRGBまたはRGBAに対応付けられます。"
16046
16047#. Tag: funcsynopsis
16048#: reference_raster.xml:6191
16049#, no-c-format
16050msgid ""
16051"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16052"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16053"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16054"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
16055"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
16056"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
16057"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
16058"<parameter>compression</parameter></paramdef> </funcprototype> "
16059"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16060"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16061"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
16062"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16063"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
16064"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
16065"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
16066"<parameter>nbands</parameter></paramdef> <paramdef><type>integer </type> "
16067"<parameter>compression</parameter></paramdef> </funcprototype> "
16068"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16069"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16070"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16071"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16072"parameter></paramdef> </funcprototype>"
16073msgstr ""
16074"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16075"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16076"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16077"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
16078"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
16079"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
16080"<parameter>nband</parameter></paramdef> <paramdef><type>integer </type> "
16081"<parameter>compression</parameter></paramdef> </funcprototype> "
16082"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16083"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16084"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
16085"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16086"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>bytea "
16087"<function>ST_AsPNG</function></funcdef> <paramdef><type>raster </type> "
16088"<parameter>rast</parameter></paramdef> <paramdef><type>integer[] </type> "
16089"<parameter>nbands</parameter></paramdef> <paramdef><type>integer </type> "
16090"<parameter>compression</parameter></paramdef> </funcprototype> "
16091"<funcprototype> <funcdef>bytea <function>ST_AsPNG</function></funcdef> "
16092"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16093"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16094"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=NULL</"
16095"parameter></paramdef> </funcprototype>"
16096
16097#. Tag: para
16098#: reference_raster.xml:6227
16099#, no-c-format
16100msgid ""
16101"Returns the selected bands of the raster as a single Portable Network "
16102"Graphics Image (PNG). Use <xref linkend=\"RT_ST_AsGDALRaster\"/> if you need "
16103"to export as less common raster types. If no band is specified, then the "
16104"first 3 bands are exported. There are many variants of the function with "
16105"many options. If no <varname>srid</varname> is specified then then srid of "
16106"the raster is used. These are itemized below:"
16107msgstr ""
16108"ラスタの選択されたバンドを、単一のportable network graphics (PNG)画像として返"
16109"します。より一般でないラスタタイプで出力する必要がある場合には、<xref "
16110"linkend=\"RT_ST_AsGDALRaster\"/>を使います。バンドを指定しない場合には、前か"
16111"ら3バンドを出力します。この関数には多数の任意引数が付くさまざまな形式がありま"
16112"す。<varname>srid</varname>が指定されない場合には、sridはラスタが使用している"
16113"SRIDを指定します。引数の一覧は次の通りです。"
16114
16115#. Tag: para
16116#: reference_raster.xml:6235
16117#, no-c-format
16118msgid ""
16119"<varname>nbands</varname> is an array of bands to export (note that max is 4 "
16120"for PNG) and the order of the bands is RGBA. e.g ARRAY[3,2,1] means map band "
16121"3 to Red, band 2 to green and band 1 to blue"
16122msgstr ""
16123"<varname>nbands</varname> 出力バンドの配列 (PNGでは4要素が最大です)で、バンド"
16124"の並び順はRGBAです。たとえばARRAY[3,2,1]は、3番バンドを赤、2番バンドを緑、1番"
16125"バンドを青にそれぞれ対応させます。"
16126
16127#. Tag: para
16128#: reference_raster.xml:6240
16129#, no-c-format
16130msgid ""
16131"<varname>compression</varname> number from 1 to 9. The higher the number the "
16132"greater the compression."
16133msgstr ""
16134"<varname>compression</varname> 1から9の数を指定します。大きいほど圧縮効率が上"
16135"がります。"
16136
16137#. Tag: para
16138#: reference_raster.xml:6245
16139#, no-c-format
16140msgid ""
16141"<varname>options</varname> text Array of GDAL options as defined for PNG "
16142"(look at create_options for PNG of <xref linkend=\"RT_ST_GDALDrivers\"/>). "
16143"For PNG valid one is only ZLEVEL (amount of time to spend on compression -- "
16144"default 6) e.g. ARRAY['ZLEVEL=9']. WORLDFILE is not allowed since the "
16145"function would have to output two outputs. Refer to <ulink url=\"http://www."
16146"gdal.org/frmt_various.html\">GDAL Raster format options</ulink> for more "
16147"details."
16148msgstr ""
16149"<varname>options</varname> PNGのために定義するGDALオプションの文字列配列です "
16150"(<xref linkend=\"RT_ST_GDALDrivers\"/>のcreate_optionsを見てください)。PNGの"
16151"妥当なパラメタはZLEVEL (圧縮に費やす時間の合計で、デフォルトは6)です。"
16152"ARRAY['ZLEVEL=9']というようにします。この関数が二つの出力を行う必要があるた"
16153"め、ワールドファイルはPNGでは許されません。詳細については<ulink url=\"http://"
16154"www.gdal.org/frmt_various.html\">GDAL Raster format options</ulink>をご覧下さ"
16155"い。"
16156
16157#. Tag: programlisting
16158#: reference_raster.xml:6264
16159#, no-c-format
16160msgid ""
16161"SELECT ST_AsPNG(rast) As rastpng\n"
16162"FROM dummy_rast WHERE rid=2;\n"
16163"\n"
16164"-- export the first 3 bands and map band 3 to Red, band 1 to Green, band 2 "
16165"to blue\n"
16166"SELECT ST_AsPNG(rast, ARRAY[3,1,2]) As rastpng\n"
16167"FROM dummy_rast WHERE rid=2;"
16168msgstr ""
16169"SELECT ST_AsPNG(rast) As rastpng\n"
16170"FROM dummy_rast WHERE rid=2;\n"
16171"\n"
16172"-- 前から3バンドを出力し、3番を赤、1番を緑、2番を青に対応付けます\n"
16173"SELECT ST_AsPNG(rast, ARRAY[3,1,2]) As rastpng\n"
16174"FROM dummy_rast WHERE rid=2;"
16175
16176#. Tag: para
16177#: reference_raster.xml:6271
16178#, no-c-format
16179msgid ""
16180", <xref linkend=\"RT_ST_ColorMap\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
16181"<xref linkend=\"RT_Raster_Applications\"/>"
16182msgstr ""
16183", <xref linkend=\"RT_ST_ColorMap\"/>, <xref linkend=\"RT_ST_GDALDrivers\"/>, "
16184"<xref linkend=\"RT_Raster_Applications\"/>"
16185
16186#. Tag: refname
16187#: reference_raster.xml:6277
16188#, no-c-format
16189msgid "ST_AsTIFF"
16190msgstr "ST_AsTIFF"
16191
16192#. Tag: refpurpose
16193#: reference_raster.xml:6278
16194#, no-c-format
16195msgid ""
16196"Return the raster selected bands as a single TIFF image (byte array). If no "
16197"band is specified or any of specified bands does not exist in the raster, "
16198"then will try to use all bands."
16199msgstr ""
16200"ラスタの選択されたバンドを、単一のTIFF画像 (バイト配列)として返します。バンド"
16201"を指定しないか指定したバンドがラスタ内に無い場合には、全てのバンドの使用を試"
16202"みます。"
16203
16204#. Tag: funcsynopsis
16205#: reference_raster.xml:6282
16206#, no-c-format
16207msgid ""
16208"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16209"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16210"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=''</"
16211"parameter></paramdef> <paramdef><type>integer </type> "
16212"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16213"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16214"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16215"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
16216"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
16217"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16218"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16219"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16220"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16221"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
16222"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
16223"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16224"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16225"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16226"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16227"<paramdef><type>text[] </type> <parameter>options</parameter></paramdef> "
16228"<paramdef><type>integer </type> <parameter>srid=sameassource</parameter></"
16229"paramdef> </funcprototype>"
16230msgstr ""
16231"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16232"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16233"<paramdef choice=\"opt\"><type>text[] </type> <parameter>options=''</"
16234"parameter></paramdef> <paramdef><type>integer </type> "
16235"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16236"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16237"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16238"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
16239"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
16240"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16241"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16242"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16243"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16244"<paramdef choice=\"opt\"><type>text </type> <parameter>compression=''</"
16245"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
16246"<parameter>srid=sameassource</parameter></paramdef> </funcprototype> "
16247"<funcprototype> <funcdef>bytea <function>ST_AsTIFF</function></funcdef> "
16248"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16249"<paramdef><type>integer[] </type> <parameter>nbands</parameter></paramdef> "
16250"<paramdef><type>text[] </type> <parameter>options</parameter></paramdef> "
16251"<paramdef><type>integer </type> <parameter>srid=sameassource</parameter></"
16252"paramdef> </funcprototype>"
16253
16254#. Tag: para
16255#: reference_raster.xml:6315
16256#, no-c-format
16257msgid ""
16258"Returns the selected bands of the raster as a single Tagged Image File "
16259"Format (TIFF). If no band is specified, will try to use all bands. This is a "
16260"wrapper around <xref linkend=\"RT_ST_AsGDALRaster\"/>. Use <xref linkend="
16261"\"RT_ST_AsGDALRaster\"/> if you need to export as less common raster types. "
16262"There are many variants of the function with many options. If no spatial "
16263"reference SRS text is present, the spatial reference of the raster is used. "
16264"These are itemized below:"
16265msgstr ""
16266"ラスタの選択されたバンドを、単一のTagged Image File Format (TIFF)画像として返"
16267"します。バンドを指定しない場合には、全てのバンドの使用を試みます。この関数は"
16268"<xref linkend=\"RT_ST_AsGDALRaster\"/>のラッパです。より一般でないラスタタイ"
16269"プで出力する必要がある場合には、<xref linkend=\"RT_ST_AsGDALRaster\"/>を使い"
16270"ます。この関数には多数の任意引数が付くさまざまな形式があります。空間参照系 "
16271"(SRS)の文字列表現が指定されていない場合には、ラスタの空間参照系を使います。引"
16272"数については次の通りです。"
16273
16274#. Tag: para
16275#: reference_raster.xml:6318
16276#, no-c-format
16277msgid ""
16278"<varname>nbands</varname> is an array of bands to export (note that max is 3 "
16279"for PNG) and the order of the bands is RGB. e.g ARRAY[3,2,1] means map band "
16280"3 to Red, band 2 to green and band 1 to blue"
16281msgstr ""
16282"<varname>nbands</varname> 出力バンドの配列 (PNGでは3要素が最大です)で、バンド"
16283"の並び順はRGBです。たとえばARRAY[3,2,1]は、3番バンドを赤、2番バンドを緑、1番"
16284"バンドを青にそれぞれ対応させます。"
16285
16286#. Tag: para
16287#: reference_raster.xml:6323
16288#, no-c-format
16289msgid ""
16290"<varname>compression</varname> Compression expression -- JPEG90 (or some "
16291"other percent), LZW, JPEG, DEFLATE9."
16292msgstr ""
16293"<varname>compression</varname> 圧縮式 -- JPEG90 (または他のパーセント値), "
16294"LZW, JPEG, DEFLATE9のいずれかです。"
16295
16296#. Tag: para
16297#: reference_raster.xml:6328
16298#, no-c-format
16299msgid ""
16300"<varname>options</varname> text Array of GDAL create options as defined for "
16301"GTiff (look at create_options for GTiff of <xref linkend=\"RT_ST_GDALDrivers"
16302"\"/>). or refer to <ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL "
16303"Raster format options</ulink> for more details."
16304msgstr ""
16305"<varname>options</varname> GTiffを定義するGDALオプションの文字列配列です "
16306"(<xref linkend=\"RT_ST_GDALDrivers\"/>のGTiff用のcreate_optionsを見てくださ"
16307"い)。詳細については<ulink url=\"http://www.gdal.org/frmt_various.html\">GDAL "
16308"Raster format options</ulink>をご覧下さい。"
16309
16310#. Tag: para
16311#: reference_raster.xml:6333
16312#, no-c-format
16313msgid ""
16314"<varname>srid</varname> srid of spatial_ref_sys of the raster. This is used "
16315"to populate the georeference information"
16316msgstr ""
16317"<varname>srid</varname> ラスタのspatial_ref_sysのSRIDです。地理参照情報を登録"
16318"するために使われます。"
16319
16320#. Tag: title
16321#: reference_raster.xml:6342
16322#, no-c-format
16323msgid "Examples: Use jpeg compression 90%"
16324msgstr "例: JPEG90%品質圧縮の使用"
16325
16326#. Tag: programlisting
16327#: reference_raster.xml:6344
16328#, no-c-format
16329msgid ""
16330"SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff\n"
16331"FROM dummy_rast WHERE rid=2;"
16332msgstr ""
16333"SELECT ST_AsTIFF(rast, 'JPEG90') As rasttiff\n"
16334"FROM dummy_rast WHERE rid=2;"
16335
16336#. Tag: para
16337#: reference_raster.xml:6351
16338#, no-c-format
16339msgid ""
16340", <xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_SRID\"/>"
16341msgstr ""
16342", <xref linkend=\"RT_ST_AsGDALRaster\"/>, <xref linkend=\"RT_ST_SRID\"/>"
16343
16344#. Tag: title
16345#: reference_raster.xml:6357
16346#, no-c-format
16347msgid "Raster Processing"
16348msgstr "ラスタ処理"
16349
16350#. Tag: title
16351#: reference_raster.xml:6360
16352#, no-c-format
16353msgid "Map Algebra"
16354msgstr "地図代数"
16355
16356#. Tag: refname
16357#: reference_raster.xml:6364
16358#, no-c-format
16359msgid "ST_Clip"
16360msgstr "ST_Clip"
16361
16362#. Tag: refpurpose
16363#: reference_raster.xml:6365
16364#, no-c-format
16365msgid ""
16366"Returns the raster clipped by the input geometry. If band number not is "
16367"specified, all bands are processed. If <varname>crop</varname> is not "
16368"specified or TRUE, the output raster is cropped."
16369msgstr ""
16370"入力ジオメトリで切り取ったラスタを返します。バンドが指定されていない場合に"
16371"は、全てのバンドが返されます。<varname>crop</varname>が指定されていない場合に"
16372"は、TRUEと仮定され、出力ラスタをクロップします。"
16373
16374#. Tag: funcsynopsis
16375#: reference_raster.xml:6369
16376#, no-c-format
16377msgid ""
16378"<funcprototype> <funcdef>raster <function>ST_Clip</function></funcdef> "
16379"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16380"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
16381"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16382"<paramdef choice=\"opt\"><type>double precision[] </type> "
16383"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
16384"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
16385"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16386"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16387"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
16388"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16389"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
16390"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
16391"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
16392"<funcdef>raster <function>ST_Clip</function></funcdef> "
16393"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16394"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
16395"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16396"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
16397"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16398"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16399"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16400"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
16401"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
16402"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
16403"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16404"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16405"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16406"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
16407"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
16408"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
16409"<funcdef>raster <function>ST_Clip</function></funcdef> "
16410"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16411"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16412"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
16413"funcprototype>"
16414msgstr ""
16415"<funcprototype> <funcdef>raster <function>ST_Clip</function></funcdef> "
16416"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16417"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
16418"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16419"<paramdef choice=\"opt\"><type>double precision[] </type> "
16420"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
16421"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
16422"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16423"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16424"paramdef> <paramdef><type>integer </type> <parameter>nband</parameter></"
16425"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16426"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
16427"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
16428"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
16429"<funcdef>raster <function>ST_Clip</function></funcdef> "
16430"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16431"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
16432"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16433"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
16434"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16435"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16436"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16437"paramdef> <paramdef choice=\"opt\"><type>double precision[] </type> "
16438"<parameter>nodataval=NULL</parameter></paramdef> <paramdef choice=\"opt"
16439"\"><type>boolean </type> <parameter>crop=TRUE</parameter></paramdef> </"
16440"funcprototype> <funcprototype> <funcdef>raster <function>ST_Clip</function></"
16441"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
16442"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
16443"paramdef> <paramdef><type>double precision </type> <parameter>nodataval</"
16444"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
16445"<parameter>crop=TRUE</parameter></paramdef> </funcprototype> <funcprototype> "
16446"<funcdef>raster <function>ST_Clip</function></funcdef> "
16447"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16448"<paramdef><type>geometry </type> <parameter>geom</parameter></paramdef> "
16449"<paramdef><type>boolean </type> <parameter>crop</parameter></paramdef> </"
16450"funcprototype>"
16451
16452#. Tag: para
16453#: reference_raster.xml:6426
16454#, no-c-format
16455msgid ""
16456"Returns a raster that is clipped by the input geometry <varname>geom</"
16457"varname>. If band index is not specified, all bands are processed."
16458msgstr ""
16459"入力ジオメトリ<varname>geom</varname>で切り取ったラスタを返します。バンドが指"
16460"定されていない場合には、全てのバンドが処理されます。"
16461
16462#. Tag: para
16463#: reference_raster.xml:6430
16464#, no-c-format
16465msgid ""
16466"Rasters resulting from ST_Clip must have a nodata value assigned for areas "
16467"clipped, one for each band. If none are provided and the input raster do not "
16468"have a nodata value defined, nodata values of the resulting raster are set "
16469"to ST_MinPossibleValue(ST_BandPixelType(rast, band)). When the number of "
16470"nodata value in the array is smaller than the number of band, the last one "
16471"in the array is used for the remaining bands. If the number of nodata value "
16472"is greater than the number of band, the extra nodata values are ignored. All "
16473"variants accepting an array of nodata values also accept a single value "
16474"which will be assigned to each band."
16475msgstr ""
16476"ST_Clipが返すラスタは、バンド毎に一つずつ必ず切り取った領域に適用するNODATA値"
16477"を持ちます。NODATA値が渡されず、入力ラスタがNODATA値を持たない場合には、結果"
16478"ラスタのNODATA値はST_MinPossibleValue(ST_BandPixelType(rast, band))に設定され"
16479"ます。配列におけるNODATA値の要素数がバンド数より小さい場合には、配列の最後の"
16480"要素が残りのバンドに適用されます。NODATA値の要素数がバンド数より多い場合に"
16481"は、超過分は無視されます。全てのNODATA値配列を受け付ける形式では、バンド毎に"
16482"適用される単一値も受け付けます。"
16483
16484#. Tag: para
16485#: reference_raster.xml:6434
16486#, no-c-format
16487msgid ""
16488"If <varname>crop</varname> is not specified, true is assumed meaning the "
16489"output raster is cropped to the intersection of the <varname>geom</"
16490"varname>and <varname>rast</varname> extents. If <varname>crop</varname> is "
16491"set to false, the new raster gets the same extent as <varname>rast</varname>."
16492msgstr ""
16493"<varname>crop</varname>が指定されていない場合には、TRUEと仮定され、出力ラスタ"
16494"を <varname>geom</varname>範囲と<varname>rast</varname>範囲とのインタセクトし"
16495"た範囲にクロップします。cropがFALSEに設定されている場合には、新しいラスタは"
16496"<varname>rast</varname>と同じ範囲になります。"
16497
16498#. Tag: para
16499#: reference_raster.xml:6440
16500#, no-c-format
16501msgid "Enhanced: 2.1.0 Rewritten in C"
16502msgstr "Enhanced: 2.1.0 C言語で記述されました"
16503
16504#. Tag: para
16505#: reference_raster.xml:6442
16506#, no-c-format
16507msgid ""
16508"Examples here use Massachusetts aerial data available on MassGIS site <ulink "
16509"url=\"http://www.mass.gov/mgis/colororthos2008.htm\">MassGIS Aerial Orthos</"
16510"ulink>. Coordinates are in Massachusetts State Plane Meters."
16511msgstr ""
16512"MassGISサイト<ulink url=\"http://www.mass.gov/mgis/colororthos2008.htm"
16513"\">MassGIS Aerial Orthos</ulink>にあるマサチューセッツ空中写真データを使った"
16514"例です。座標はメートル単位のマサチューセッツ州平面です。"
16515
16516#. Tag: title
16517#: reference_raster.xml:6448
16518#, no-c-format
16519msgid "Examples: 1 band clipping"
16520msgstr "例: 1バンドの切り取り"
16521
16522#. Tag: programlisting
16523#: reference_raster.xml:6450
16524#, no-c-format
16525msgid ""
16526"-- Clip the first band of an aerial tile by a 20 meter buffer.\n"
16527"SELECT ST_Clip(rast, 1,\n"
16528"                ST_Buffer(ST_Centroid(ST_Envelope(rast)),20)\n"
16529"        ) from aerials.boston\n"
16530"WHERE rid = 4;"
16531msgstr ""
16532"-- 空中写真タイルの1番バンドを中心から20メートルのバッファで切り取ります\n"
16533"SELECT ST_Clip(rast, 1,\n"
16534"                ST_Buffer(ST_Centroid(ST_Envelope(rast)),20)\n"
16535"        ) from aerials.boston\n"
16536"WHERE rid = 4;"
16537
16538#. Tag: programlisting
16539#: reference_raster.xml:6452
16540#, no-c-format
16541msgid ""
16542"-- Demonstrate effect of crop on final dimensions of raster\n"
16543"-- Note how final extent is clipped to that of the geometry\n"
16544"-- if crop = true\n"
16545"SELECT ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, true))) As "
16546"xmax_w_trim,\n"
16547"        ST_XMax(clipper) As xmax_clipper,\n"
16548"        ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, false))) As "
16549"xmax_wo_trim,\n"
16550"        ST_XMax(ST_Envelope(rast)) As xmax_rast_orig\n"
16551"FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),6) As clipper\n"
16552"        FROM aerials.boston\n"
16553"WHERE rid = 6) As foo;\n"
16554"\n"
16555"   xmax_w_trim    |   xmax_clipper   |   xmax_wo_trim   |  xmax_rast_orig\n"
16556"------------------+------------------+------------------+------------------\n"
16557" 230657.436173996 | 230657.436173996 | 230666.436173996 | 230666.436173996"
16558msgstr ""
16559"--ラスタの最終的なピクセル範囲についてのクロップの効果のデモンストレーショ"
16560"ン\n"
16561"-- crop=trueでは、どのように最終的な範囲がジオメトリに切り取られるかをみま"
16562"す\n"
16563"SELECT ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, true))) As "
16564"xmax_w_trim,\n"
16565"        ST_XMax(clipper) As xmax_clipper,\n"
16566"        ST_XMax(ST_Envelope(ST_Clip(rast, 1, clipper, false))) As "
16567"xmax_wo_trim,\n"
16568"        ST_XMax(ST_Envelope(rast)) As xmax_rast_orig\n"
16569"FROM (SELECT rast, ST_Buffer(ST_Centroid(ST_Envelope(rast)),6) As clipper\n"
16570"        FROM aerials.boston\n"
16571"WHERE rid = 6) As foo;\n"
16572"\n"
16573"   xmax_w_trim    |   xmax_clipper   |   xmax_wo_trim   |  xmax_rast_orig\n"
16574"------------------+------------------+------------------+------------------\n"
16575" 230657.436173996 | 230657.436173996 | 230666.436173996 | 230666.436173996"
16576
16577#. Tag: para
16578#: reference_raster.xml:6466 reference_raster.xml:6509
16579#: reference_raster.xml:6552
16580#, no-c-format
16581msgid "Full raster tile before clipping"
16582msgstr "切り取り前の完全なラスタタイル"
16583
16584#. Tag: para
16585#: reference_raster.xml:6480 reference_raster.xml:6566
16586#, no-c-format
16587msgid "After Clipping"
16588msgstr "切り取り後"
16589
16590#. Tag: title
16591#: reference_raster.xml:6493
16592#, no-c-format
16593msgid ""
16594"Examples: 1 band clipping with no crop and add back other bands unchanged"
16595msgstr "例: クロップがなく他のバンドは切り取らず1バンドを切り取る"
16596
16597#. Tag: programlisting
16598#: reference_raster.xml:6495
16599#, no-c-format
16600msgid ""
16601"-- Same example as before, but we need to set crop to false to be able to "
16602"use ST_AddBand\n"
16603"-- because ST_AddBand requires all bands be the same Width and height\n"
16604"SELECT ST_AddBand(ST_Clip(rast, 1,\n"
16605"                ST_Buffer(ST_Centroid(ST_Envelope(rast)),20),false\n"
16606"        ), ARRAY[ST_Band(rast,2),ST_Band(rast,3)] ) from aerials.boston\n"
16607"WHERE rid = 6;"
16608msgstr ""
16609"-- 前の例と同じですが、\n"
16610"-- ST_AddBandは全てのバンドが同じピクセル範囲を持っている必要があるので\n"
16611"-- ST_AddBandを使えるようにするためcropをFALSEに設定しなければなりません\n"
16612"SELECT ST_AddBand(ST_Clip(rast, 1,\n"
16613"                ST_Buffer(ST_Centroid(ST_Envelope(rast)),20),false\n"
16614"        ), ARRAY[ST_Band(rast,2),ST_Band(rast,3)] ) from aerials.boston\n"
16615"WHERE rid = 6;"
16616
16617#. Tag: para
16618#: reference_raster.xml:6523
16619#, no-c-format
16620msgid "After Clipping - surreal"
16621msgstr "切り取り後 - シュールですね"
16622
16623#. Tag: title
16624#: reference_raster.xml:6536
16625#, no-c-format
16626msgid "Examples: Clip all bands"
16627msgstr "例: 全バンドの切り取り"
16628
16629#. Tag: programlisting
16630#: reference_raster.xml:6538
16631#, no-c-format
16632msgid ""
16633"-- Clip all bands of an aerial tile by a 20 meter buffer.\n"
16634"-- Only difference is we don't specify a specific band to clip\n"
16635"-- so all bands are clipped\n"
16636"SELECT ST_Clip(rast,\n"
16637"          ST_Buffer(ST_Centroid(ST_Envelope(rast)), 20),\n"
16638"          false\n"
16639"        ) from aerials.boston\n"
16640"WHERE rid = 4;"
16641msgstr ""
16642"-- 空中写真タイルの全バンドを20メートルバッファで切り取ります\n"
16643"-- 違いは、全バンドの切り取りのため\n"
16644"-- 切り取り対象のバンドを指定しないことだけです\n"
16645"SELECT ST_Clip(rast,\n"
16646"          ST_Buffer(ST_Centroid(ST_Envelope(rast)), 20),\n"
16647"          false\n"
16648"        ) from aerials.boston\n"
16649"WHERE rid = 4;"
16650
16651#. Tag: para
16652#: reference_raster.xml:6581
16653#, no-c-format
16654msgid ""
16655", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Intersection\"/"
16656">"
16657msgstr ""
16658", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Intersection\"/"
16659">"
16660
16661#. Tag: refname
16662#: reference_raster.xml:6591
16663#, no-c-format
16664msgid "ST_ColorMap"
16665msgstr "ST_ColorMap"
16666
16667#. Tag: refpurpose
16668#: reference_raster.xml:6592
16669#, no-c-format
16670msgid ""
16671"Creates a new raster of up to four 8BUI bands (grayscale, RGB, RGBA) from "
16672"the source raster and a specified band. Band 1 is assumed if not specified."
16673msgstr ""
16674"元のラスタと指定したバンドから4個までの8BUIバンド (grayscale, RGB, RGBA)から"
16675"なる新しいラスタを生成します。"
16676
16677#. Tag: funcprototype
16678#: reference_raster.xml:6597
16679#, no-c-format
16680msgid ""
16681"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
16682"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16683"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
16684"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
16685"<parameter>colormap=grayscale</parameter></paramdef> <paramdef choice=\"opt"
16686"\"><type>text </type> <parameter>method=INTERPOLATE</parameter></paramdef>"
16687msgstr ""
16688"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
16689"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16690"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
16691"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
16692"<parameter>colormap=grayscale</parameter></paramdef> <paramdef choice=\"opt"
16693"\"><type>text </type> <parameter>method=INTERPOLATE</parameter></paramdef>"
16694
16695#. Tag: funcprototype
16696#: reference_raster.xml:6607
16697#, no-c-format
16698msgid ""
16699"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
16700"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16701"<paramdef><type>text </type> <parameter>colormap</parameter></paramdef> "
16702"<paramdef choice=\"opt\"><type>text </type> <parameter>method=INTERPOLATE</"
16703"parameter></paramdef>"
16704msgstr ""
16705"<funcdef>raster <function>ST_ColorMap</function></funcdef> "
16706"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
16707"<paramdef><type>text </type> <parameter>colormap</parameter></paramdef> "
16708"<paramdef choice=\"opt\"><type>text </type> <parameter>method=INTERPOLATE</"
16709"parameter></paramdef>"
16710
16711#. Tag: para
16712#: reference_raster.xml:6619
16713#, no-c-format
16714msgid ""
16715"Apply a <varname>colormap</varname> to the band at <varname>nband</varname> "
16716"of <varname>rast</varname> resulting a new raster comprised of up to four "
16717"8BUI bands. The number of 8BUI bands in the new raster is determined by the "
16718"number of color components defined in <varname>colormap</varname>."
16719msgstr ""
16720"<varname>rast</varname>の<varname>nband</varname>で示されるバンドに"
16721"<varname>colormap</varname>を適用し、4個までの8BUIバンドからなる新しいラスタ"
16722"を返します。新しいラスタの8BUIバンドの数は<varname>colormap</varname>で定義さ"
16723"れた色要素の数で決まります。"
16724
16725#. Tag: para
16726#: reference_raster.xml:6623
16727#, no-c-format
16728msgid "If <varname>nband</varname> is not specified, then band 1 is assumed."
16729msgstr "<varname>nband</varname>が指定されていない場合には、1番と仮定します。"
16730
16731#. Tag: para
16732#: reference_raster.xml:6625
16733#, no-c-format
16734msgid ""
16735"<varname>colormap</varname> can be a keyword of a pre-defined colormap or a "
16736"set of lines defining the value and the color components."
16737msgstr ""
16738"<varname>colormap</varname>は事前定義された色マップまたは値を定義する行の集合"
16739"と色要素のキーワードです。"
16740
16741#. Tag: para
16742#: reference_raster.xml:6629
16743#, no-c-format
16744msgid "Valid pre-defined <varname>colormap</varname> keyword:"
16745msgstr ""
16746"妥当な事前定義された<varname>colormap</varname>キーワードは次の通りです。"
16747
16748#. Tag: para
16749#: reference_raster.xml:6635
16750#, no-c-format
16751msgid ""
16752"<varname>grayscale</varname> or <varname>greyscale</varname> for a one 8BUI "
16753"band raster of shades of gray."
16754msgstr ""
16755"<varname>grayscale</varname>または<varname>greyscale</varname> 1個の8BUIバン"
16756"ドからなるラスタで、グレーの陰影です。"
16757
16758#. Tag: para
16759#: reference_raster.xml:6640
16760#, no-c-format
16761msgid ""
16762"<varname>pseudocolor</varname> for a four 8BUI (RGBA) band raster with "
16763"colors going from blue to green to red."
16764msgstr ""
16765"<varname>pseudocolor</varname> 4個の8BUIバンド (RGBA)からなるラスタで、青から"
16766"緑、赤に移るものです。"
16767
16768#. Tag: para
16769#: reference_raster.xml:6645
16770#, no-c-format
16771msgid ""
16772"<varname>fire</varname> for a four 8BUI (RGBA) band raster with colors going "
16773"from black to red to pale yellow."
16774msgstr ""
16775"<varname>fire</varname> 4個の8BUIバンド (RGBA)からなるラスタで、黒から赤、淡"
16776"黄色に移るものです。"
16777
16778#. Tag: para
16779#: reference_raster.xml:6650
16780#, no-c-format
16781msgid ""
16782"<varname>bluered</varname> for a four 8BUI (RGBA) band raster with colors "
16783"going from blue to pale white to red."
16784msgstr ""
16785"<varname>bluered</varname>  4個の8BUIバンド (RGBA)からなるラスタで、青から"
16786"ペールホワイト、赤に移るものです。"
16787
16788#. Tag: para
16789#: reference_raster.xml:6656
16790#, no-c-format
16791msgid ""
16792"Users can pass a set of entries (one per line) to <varname>colormap</"
16793"varname> to specify custom colormaps. Each entry generally consists of five "
16794"values: the pixel value and corresponding Red, Green, Blue, Alpha components "
16795"(color components between 0 and 255). Percent values can be used instead of "
16796"pixel values where 0% and 100% are the minimum and maximum values found in "
16797"the raster band. Values can be separated with commas (','), tabs, colons "
16798"(':') and/or spaces. The pixel value can be set to <emphasis>nv</emphasis>, "
16799"<emphasis>null</emphasis> or <emphasis>nodata</emphasis> for the NODATA "
16800"value. An example is provided below."
16801msgstr ""
16802"カスタムカラーマップを指定するためにエントリ (1行1エントリ)の集合を"
16803"<varname>colormap</varname>に渡すことができます。それぞれのエントリは一般的"
16804"に、ピクセル値、ピクセル値と対応する赤、緑、青、アルファ要素(0から255の間の色"
16805"要素)からなる5個の値を持ちます。ピクセル値の替わりに百分率値を使うことがで"
16806"き、0%がラスタバンドでの最小値、100%が最大値になります。値はコンマ('.')、タ"
16807"ブ、コロン(':')、空白で区切られます。NODATA値に対しては、ピクセル値を"
16808"<emphasis>nv</emphasis>, <emphasis>null</emphasis>, <emphasis>nodata</"
16809"emphasis>のいずれかに設定できます。例を次に示します。"
16810
16811#. Tag: programlisting
16812#: reference_raster.xml:6660
16813#, no-c-format
16814msgid ""
16815"5 0 0 0 255\n"
16816"4 100:50 55 255\n"
16817"1 150,100 150 255\n"
16818"0% 255 255 255 255\n"
16819"nv 0 0 0 0"
16820msgstr ""
16821"5 0 0 0 255\n"
16822"4 100:50 55 255\n"
16823"1 150,100 150 255\n"
16824"0% 255 255 255 255\n"
16825"nv 0 0 0 0"
16826
16827#. Tag: para
16828#: reference_raster.xml:6662
16829#, no-c-format
16830msgid ""
16831"The syntax of <varname>colormap</varname> is similar to that of the color-"
16832"relief mode of GDAL <ulink url=\"http://www.gdal.org/gdaldem."
16833"html#gdaldem_color_relief\">gdaldem</ulink>."
16834msgstr ""
16835"<varname>colormap</varname>の構文は、GDALツールの<ulink url=\"http://www."
16836"gdal.org/gdaldem.html#gdaldem_color_relief\">gdaldem</ulink>の起伏モードに似"
16837"ています。"
16838
16839#. Tag: para
16840#: reference_raster.xml:6666
16841#, no-c-format
16842msgid "Valid keywords for <varname>method</varname>:"
16843msgstr "<varname>method</varname>の妥当なキーワードは次の通りです。"
16844
16845#. Tag: para
16846#: reference_raster.xml:6672
16847#, no-c-format
16848msgid ""
16849"<varname>INTERPOLATE</varname> to use linear interpolation to smoothly blend "
16850"the colors between the given pixel values"
16851msgstr ""
16852"<varname>INTERPOLATE</varname> 与えられたピクセル値の間での滑らかな色合成のた"
16853"めの線形補間に使います。"
16854
16855#. Tag: para
16856#: reference_raster.xml:6677
16857#, no-c-format
16858msgid ""
16859"<varname>EXACT</varname> to strictly match only those pixels values found in "
16860"the colormap. Pixels whose value does not match a colormap entry will be set "
16861"to 0 0 0 0 (RGBA)"
16862msgstr ""
16863"<varname>EXACT</varname> カラーマップで見つかったピクセル値だけを厳格に一致さ"
16864"せます。カラーマップエントリに一致しないピクセルに対しては0 0 0 0 (RGBA)が設"
16865"定されます。"
16866
16867#. Tag: para
16868#: reference_raster.xml:6682
16869#, no-c-format
16870msgid ""
16871"<varname>NEAREST</varname> to use the colormap entry whose value is closest "
16872"to the pixel value"
16873msgstr ""
16874"<varname>NEAREST</varname> ピクセル値に最も近い値にあうカラーマップエントリを"
16875"使います。"
16876
16877#. Tag: para
16878#: reference_raster.xml:6689
16879#, no-c-format
16880msgid ""
16881"A great reference for colormaps is <ulink url=\"http://www.colorbrewer2.org"
16882"\">ColorBrewer</ulink>."
16883msgstr ""
16884"カラーマップの偉大な参考情報は<ulink url=\"http://www.colorbrewer2.org"
16885"\">ColorBrewer</ulink>にあります。"
16886
16887#. Tag: para
16888#: reference_raster.xml:6694
16889#, no-c-format
16890msgid ""
16891"The resulting bands of new raster will have no NODATA value set. Use <xref "
16892"linkend=\"RT_ST_SetBandNoDataValue\"/> to set a NODATA value if one is "
16893"needed."
16894msgstr ""
16895"新しいラスタの結果バンドにはNODATA値が入りません。NODATA値が必要な場合には、 "
16896"<xref linkend=\"RT_ST_SetBandNoDataValue\"/>を使ってNODATA値をセットします。"
16897
16898#. Tag: para
16899#: reference_raster.xml:6704
16900#, no-c-format
16901msgid "This is a junk table to play with"
16902msgstr "これは試行のためのがらくたテーブルです。"
16903
16904#. Tag: programlisting
16905#: reference_raster.xml:6706
16906#, no-c-format
16907msgid ""
16908"-- setup test raster table --\n"
16909"DROP TABLE IF EXISTS funky_shapes;\n"
16910"CREATE TABLE funky_shapes(rast raster);\n"
16911"\n"
16912"INSERT INTO funky_shapes(rast)\n"
16913"WITH ref AS (\n"
16914"        SELECT ST_MakeEmptyRaster( 200, 200, 0, 200, 1, -1, 0, 0) AS rast\n"
16915")\n"
16916"SELECT\n"
16917"        ST_Union(rast)\n"
16918"FROM (\n"
16919"        SELECT\n"
16920"                ST_AsRaster(\n"
16921"                        ST_Rotate(\n"
16922"                                ST_Buffer(\n"
16923"                                        ST_GeomFromText('LINESTRING(0 2,50 "
16924"50,150 150,125 50)'),\n"
16925"                                        i*2\n"
16926"                                ),\n"
16927"                                pi() * i * 0.125, ST_Point(50,50)\n"
16928"                        ),\n"
16929"                        ref.rast, '8BUI'::text, i * 5\n"
16930"                ) AS rast\n"
16931"        FROM ref\n"
16932"        CROSS JOIN generate_series(1, 10, 3) AS i\n"
16933") AS shapes;"
16934msgstr ""
16935"-- 試験ラスタテーブルの作成 --\n"
16936"DROP TABLE IF EXISTS funky_shapes;\n"
16937"CREATE TABLE funky_shapes(rast raster);\n"
16938"\n"
16939"INSERT INTO funky_shapes(rast)\n"
16940"WITH ref AS (\n"
16941"        SELECT ST_MakeEmptyRaster( 200, 200, 0, 200, 1, -1, 0, 0) AS rast\n"
16942")\n"
16943"SELECT\n"
16944"        ST_Union(rast)\n"
16945"FROM (\n"
16946"        SELECT\n"
16947"                ST_AsRaster(\n"
16948"                        ST_Rotate(\n"
16949"                                ST_Buffer(\n"
16950"                                        ST_GeomFromText('LINESTRING(0 2,50 "
16951"50,150 150,125 50)'),\n"
16952"                                        i*2\n"
16953"                                ),\n"
16954"                                pi() * i * 0.125, ST_Point(50,50)\n"
16955"                        ),\n"
16956"                        ref.rast, '8BUI'::text, i * 5\n"
16957"                ) AS rast\n"
16958"        FROM ref\n"
16959"        CROSS JOIN generate_series(1, 10, 3) AS i\n"
16960") AS shapes;"
16961
16962#. Tag: programlisting
16963#: reference_raster.xml:6708
16964#, no-c-format
16965msgid ""
16966"SELECT\n"
16967"        ST_NumBands(rast) As n_orig,\n"
16968"        ST_NumBands(ST_ColorMap(rast,1, 'greyscale')) As ngrey,\n"
16969"        ST_NumBands(ST_ColorMap(rast,1, 'pseudocolor')) As npseudo,\n"
16970"        ST_NumBands(ST_ColorMap(rast,1, 'fire')) As nfire,\n"
16971"        ST_NumBands(ST_ColorMap(rast,1, 'bluered')) As nbluered,\n"
16972"        ST_NumBands(ST_ColorMap(rast,1, '\n"
16973"100% 255   0   0\n"
16974" 80% 160   0   0\n"
16975" 50% 130   0   0\n"
16976" 30%  30   0   0\n"
16977" 20%  60   0   0\n"
16978"  0%   0   0   0\n"
16979"  nv 255 255 255\n"
16980"        ')) As nred\n"
16981"FROM funky_shapes;"
16982msgstr ""
16983"SELECT\n"
16984"        ST_NumBands(rast) As n_orig,\n"
16985"        ST_NumBands(ST_ColorMap(rast,1, 'greyscale')) As ngrey,\n"
16986"        ST_NumBands(ST_ColorMap(rast,1, 'pseudocolor')) As npseudo,\n"
16987"        ST_NumBands(ST_ColorMap(rast,1, 'fire')) As nfire,\n"
16988"        ST_NumBands(ST_ColorMap(rast,1, 'bluered')) As nbluered,\n"
16989"        ST_NumBands(ST_ColorMap(rast,1, '\n"
16990"100% 255   0   0\n"
16991" 80% 160   0   0\n"
16992" 50% 130   0   0\n"
16993" 30%  30   0   0\n"
16994" 20%  60   0   0\n"
16995"  0%   0   0   0\n"
16996"  nv 255 255 255\n"
16997"        ')) As nred\n"
16998"FROM funky_shapes;"
16999
17000#. Tag: screen
17001#: reference_raster.xml:6710
17002#, no-c-format
17003msgid ""
17004"n_orig | ngrey | npseudo | nfire | nbluered | nred\n"
17005"--------+-------+---------+-------+----------+------\n"
17006"      1 |     1 |       4 |     4 |        4 |    3"
17007msgstr ""
17008"n_orig | ngrey | npseudo | nfire | nbluered | nred\n"
17009"--------+-------+---------+-------+----------+------\n"
17010"      1 |     1 |       4 |     4 |        4 |    3"
17011
17012#. Tag: title
17013#: reference_raster.xml:6714
17014#, no-c-format
17015msgid "Examples: Compare different color map looks using ST_AsPNG"
17016msgstr "例: ST_AsPNGを使用して異なるカラーマップを比較する"
17017
17018#. Tag: programlisting
17019#: reference_raster.xml:6715
17020#, no-c-format
17021msgid ""
17022"SELECT\n"
17023"        ST_AsPNG(rast) As orig_png,\n"
17024"        ST_AsPNG(ST_ColorMap(rast,1,'greyscale')) As grey_png,\n"
17025"        ST_AsPNG(ST_ColorMap(rast,1, 'pseudocolor')) As pseudo_png,\n"
17026"        ST_AsPNG(ST_ColorMap(rast,1, 'nfire')) As fire_png,\n"
17027"        ST_AsPNG(ST_ColorMap(rast,1, 'bluered')) As bluered_png,\n"
17028"        ST_AsPNG(ST_ColorMap(rast,1, '\n"
17029"100% 255   0   0\n"
17030" 80% 160   0   0\n"
17031" 50% 130   0   0\n"
17032" 30%  30   0   0\n"
17033" 20%  60   0   0\n"
17034"  0%   0   0   0\n"
17035"  nv 255 255 255\n"
17036"        ')) As red_png\n"
17037"FROM funky_shapes;"
17038msgstr ""
17039"SELECT\n"
17040"        ST_AsPNG(rast) As orig_png,\n"
17041"        ST_AsPNG(ST_ColorMap(rast,1,'greyscale')) As grey_png,\n"
17042"        ST_AsPNG(ST_ColorMap(rast,1, 'pseudocolor')) As pseudo_png,\n"
17043"        ST_AsPNG(ST_ColorMap(rast,1, 'nfire')) As fire_png,\n"
17044"        ST_AsPNG(ST_ColorMap(rast,1, 'bluered')) As bluered_png,\n"
17045"        ST_AsPNG(ST_ColorMap(rast,1, '\n"
17046"100% 255   0   0\n"
17047" 80% 160   0   0\n"
17048" 50% 130   0   0\n"
17049" 30%  30   0   0\n"
17050" 20%  60   0   0\n"
17051"  0%   0   0   0\n"
17052"  nv 255 255 255\n"
17053"        ')) As red_png\n"
17054"FROM funky_shapes;"
17055
17056#. Tag: para
17057#: reference_raster.xml:6729
17058#, no-c-format
17059msgid "orig_png"
17060msgstr "orig_png"
17061
17062#. Tag: para
17063#: reference_raster.xml:6743
17064#, no-c-format
17065msgid "grey_png"
17066msgstr "grey_png"
17067
17068#. Tag: para
17069#: reference_raster.xml:6757
17070#, no-c-format
17071msgid "pseudo_png"
17072msgstr "pseudo_png"
17073
17074#. Tag: para
17075#: reference_raster.xml:6773
17076#, no-c-format
17077msgid "fire_png"
17078msgstr "fire_png"
17079
17080#. Tag: para
17081#: reference_raster.xml:6787
17082#, no-c-format
17083msgid "bluered_png"
17084msgstr "bluered_png"
17085
17086#. Tag: para
17087#: reference_raster.xml:6801
17088#, no-c-format
17089msgid "red_png"
17090msgstr "red_png"
17091
17092#. Tag: para
17093#: reference_raster.xml:6815
17094#, no-c-format
17095msgid ""
17096", <xref linkend=\"RT_ST_AsRaster\"/> <xref linkend=\"RT_ST_MapAlgebra\"/>, "
17097"<xref linkend=\"RT_ST_Grayscale\"/> <xref linkend=\"RT_ST_NumBands\"/>, "
17098"<xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue"
17099"\"/>, <xref linkend=\"RT_ST_Union\"/>"
17100msgstr ""
17101", <xref linkend=\"RT_ST_AsRaster\"/> <xref linkend=\"RT_ST_MapAlgebra\"/>, "
17102"<xref linkend=\"RT_ST_Grayscale\"/> <xref linkend=\"RT_ST_NumBands\"/>, "
17103"<xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_SetBandNoDataValue"
17104"\"/>, <xref linkend=\"RT_ST_Union\"/>"
17105
17106#. Tag: refname
17107#: reference_raster.xml:6830
17108#, no-c-format
17109msgid "ST_Grayscale"
17110msgstr "ST_Grayscale"
17111
17112#. Tag: refpurpose
17113#: reference_raster.xml:6831
17114#, no-c-format
17115msgid ""
17116"Creates a new one-8BUI band raster from the source raster and specified "
17117"bands representing Red, Green and Blue"
17118msgstr ""
17119"元のラスタと指定したバンドを赤、緑、青バンドとして一つの8BUIバンドを持つラス"
17120"タを生成します。"
17121
17122#. Tag: funcprototype
17123#: reference_raster.xml:6836
17124#, no-c-format
17125msgid ""
17126"<funcdef>(1) raster <function>ST_Grayscale</function></funcdef> "
17127"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17128"<paramdef choice=\"opt\"><type>integer </type> <parameter>redband=1</"
17129"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17130"<parameter>greenband=2</parameter></paramdef> <paramdef choice=\"opt"
17131"\"><type>integer </type> <parameter>blueband=3</parameter></paramdef> "
17132"<paramdef choice=\"opt\"><type>text </type> "
17133"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
17134msgstr ""
17135"<funcdef>(1) raster <function>ST_Grayscale</function></funcdef> "
17136"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17137"<paramdef choice=\"opt\"><type>integer </type> <parameter>redband=1</"
17138"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17139"<parameter>greenband=2</parameter></paramdef> <paramdef choice=\"opt"
17140"\"><type>integer </type> <parameter>blueband=3</parameter></paramdef> "
17141"<paramdef choice=\"opt\"><type>text </type> "
17142"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
17143
17144#. Tag: funcprototype
17145#: reference_raster.xml:6847
17146#, no-c-format
17147msgid ""
17148"<funcdef>(2) raster <function>ST_Grayscale</function></funcdef> "
17149"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
17150"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17151"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
17152msgstr ""
17153"<funcdef>(2) raster <function>ST_Grayscale</function></funcdef> "
17154"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
17155"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17156"<parameter>extenttype=INTERSECTION</parameter></paramdef>"
17157
17158#. Tag: para
17159#: reference_raster.xml:6858
17160#, no-c-format
17161msgid ""
17162"Create a raster with one 8BUI band given three input bands (from one or more "
17163"rasters). Any input band whose pixel type is not 8BUI will be reclassified "
17164"using <xref linkend=\"RT_ST_Reclass\"/>."
17165msgstr ""
17166"三つの入力バンド (一つ以上のラスタ)を与えられ、一つの8BUIバンドを持つラスタを"
17167"生成します。タイプが8BUIでない入力バンドは全て<xref linkend=\"RT_ST_Reclass"
17168"\"/>で再分類されます。"
17169
17170#. Tag: para
17171#: reference_raster.xml:6863
17172#, no-c-format
17173msgid ""
17174"This function is not like <xref linkend=\"RT_ST_ColorMap\"/> with the "
17175"<varname>grayscale</varname> keyword as ST_ColorMap operates on only one "
17176"band while this function expects three bands for RGB. This function applies "
17177"the following equation for converting RGB to Grayscale: 0.2989 * RED + "
17178"0.5870 * GREEN + 0.1140 * BLUE"
17179msgstr ""
17180"この関数は<varname>grayscale</varname>キーワードを与えた場合の<xref linkend="
17181"\"RT_ST_ColorMap\"/>とは違います。ST_ColorMapでは一つのバンドを扱いますが、こ"
17182"の関数ではRGBの3バンドを期待します。この関数は 0.2989 * 赤 + 0.5870 * 緑 + "
17183"0.1140 * 青 という式を適用してRGBをグレースケールにしています。"
17184
17185#. Tag: programlisting
17186#: reference_raster.xml:6875
17187#, no-c-format
17188msgid ""
17189"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
17190"SET postgis.enable_outdb_rasters = True;\n"
17191"\n"
17192"WITH apple AS (\n"
17193"        SELECT ST_AddBand(\n"
17194"                ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
17195"                '/tmp/apple.png'::text,\n"
17196"                NULL::int[]\n"
17197"        ) AS rast\n"
17198")\n"
17199"SELECT\n"
17200"        ST_AsPNG(rast) AS original_png,\n"
17201"        ST_AsPNG(ST_Grayscale(rast)) AS grayscale_png\n"
17202"FROM apple;"
17203msgstr ""
17204"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
17205"SET postgis.enable_outdb_rasters = True;\n"
17206"\n"
17207"WITH apple AS (\n"
17208"        SELECT ST_AddBand(\n"
17209"                ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
17210"                '/tmp/apple.png'::text,\n"
17211"                NULL::int[]\n"
17212"        ) AS rast\n"
17213")\n"
17214"SELECT\n"
17215"        ST_AsPNG(rast) AS original_png,\n"
17216"        ST_AsPNG(ST_Grayscale(rast)) AS grayscale_png\n"
17217"FROM apple;"
17218
17219#. Tag: para
17220#: reference_raster.xml:6889
17221#, no-c-format
17222msgid "original_png"
17223msgstr "original_png"
17224
17225#. Tag: para
17226#: reference_raster.xml:6903
17227#, no-c-format
17228msgid "grayscale_png"
17229msgstr "grayscale_png"
17230
17231#. Tag: programlisting
17232#: reference_raster.xml:6919
17233#, no-c-format
17234msgid ""
17235"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
17236"SET postgis.enable_outdb_rasters = True;\n"
17237"\n"
17238"WITH apple AS (\n"
17239"        SELECT ST_AddBand(\n"
17240"                ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
17241"                '/tmp/apple.png'::text,\n"
17242"                NULL::int[]\n"
17243"        ) AS rast\n"
17244")\n"
17245"SELECT\n"
17246"        ST_AsPNG(rast) AS original_png,\n"
17247"        ST_AsPNG(ST_Grayscale(\n"
17248"                ARRAY[\n"
17249"                        ROW(rast, 1)::rastbandarg, -- red\n"
17250"                        ROW(rast, 2)::rastbandarg, -- green\n"
17251"                        ROW(rast, 3)::rastbandarg, -- blue\n"
17252"                ]::rastbandarg[]\n"
17253"        )) AS grayscale_png\n"
17254"FROM apple;"
17255msgstr ""
17256"SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';\n"
17257"SET postgis.enable_outdb_rasters = True;\n"
17258"\n"
17259"WITH apple AS (\n"
17260"        SELECT ST_AddBand(\n"
17261"                ST_MakeEmptyRaster(350, 246, 0, 0, 1, -1, 0, 0, 0),\n"
17262"                '/tmp/apple.png'::text,\n"
17263"                NULL::int[]\n"
17264"        ) AS rast\n"
17265")\n"
17266"SELECT\n"
17267"        ST_AsPNG(rast) AS original_png,\n"
17268"        ST_AsPNG(ST_Grayscale(\n"
17269"                ARRAY[\n"
17270"                        ROW(rast, 1)::rastbandarg, -- red\n"
17271"                        ROW(rast, 2)::rastbandarg, -- green\n"
17272"                        ROW(rast, 3)::rastbandarg, -- blue\n"
17273"                ]::rastbandarg[]\n"
17274"        )) AS grayscale_png\n"
17275"FROM apple;"
17276
17277#. Tag: para
17278#: reference_raster.xml:6924
17279#, no-c-format
17280msgid ", <xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_ColorMap\"/>"
17281msgstr ""
17282", <xref linkend=\"RT_ST_Reclass\"/>, <xref linkend=\"RT_ST_ColorMap\"/>"
17283
17284#. Tag: refname
17285#: reference_raster.xml:6935
17286#, no-c-format
17287msgid "ST_Intersection"
17288msgstr "ST_Intersection"
17289
17290#. Tag: refpurpose
17291#: reference_raster.xml:6936
17292#, no-c-format
17293msgid ""
17294"<refpurpose>Returns a raster or a set of geometry-pixelvalue pairs "
17295"representing the shared portion of two rasters or the geometrical "
17296"intersection of a vectorization of the raster and a geometry.</refpurpose>"
17297msgstr ""
17298"<refpurpose>二つのラスタの共有部分またはベクタ化したラスタとジオメトリとのイ"
17299"ンタセクトした部分を表現する、ラスタまたはジオメトリとピクセル値の組の集合を"
17300"返します。</refpurpose>"
17301
17302#. Tag: funcsynopsis
17303#: reference_raster.xml:6940
17304#, no-c-format
17305msgid ""
17306"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
17307"funcdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
17308"paramdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
17309"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17310"<parameter>band_num=1</parameter></paramdef> </funcprototype> "
17311"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
17312"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
17313"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
17314"paramdef> </funcprototype> <funcprototype> <funcdef>setof geomval "
17315"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17316"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
17317"<parameter>band</parameter></paramdef> <paramdef><type>geometry </type> "
17318"<parameter>geomin</parameter></paramdef> </funcprototype> <funcprototype> "
17319"<funcdef>raster <function>ST_Intersection</function></funcdef> "
17320"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
17321"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
17322"<paramdef><type>double precision[] </type> <parameter>nodataval</parameter></"
17323"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
17324"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17325"type> <parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
17326"<parameter>rast2</parameter></paramdef> <paramdef choice=\"opt\"><type>text "
17327"</type> <parameter>returnband</parameter></paramdef> <paramdef choice=\"opt"
17328"\"><type>double precision[] </type> <parameter>nodataval</parameter></"
17329"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
17330"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17331"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer </"
17332"type> <parameter>band1</parameter></paramdef> <paramdef><type>raster </type> "
17333"<parameter>rast2</parameter></paramdef> <paramdef><type>integer </type> "
17334"<parameter>band2</parameter></paramdef> <paramdef><type>double precision[] </"
17335"type> <parameter>nodataval</parameter></paramdef> </funcprototype> "
17336"<funcprototype> <funcdef>raster <function>ST_Intersection</function></"
17337"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
17338"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
17339"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
17340"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
17341"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>returnband</"
17342"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
17343"type> <parameter>nodataval</parameter></paramdef> </funcprototype>"
17344msgstr ""
17345"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
17346"funcdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
17347"paramdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
17348"paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17349"<parameter>band_num=1</parameter></paramdef> </funcprototype> "
17350"<funcprototype> <funcdef>setof geomval <function>ST_Intersection</function></"
17351"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
17352"paramdef> <paramdef><type>geometry </type> <parameter>geom</parameter></"
17353"paramdef> </funcprototype> <funcprototype> <funcdef>setof geomval "
17354"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17355"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
17356"<parameter>band</parameter></paramdef> <paramdef><type>geometry </type> "
17357"<parameter>geomin</parameter></paramdef> </funcprototype> <funcprototype> "
17358"<funcdef>raster <function>ST_Intersection</function></funcdef> "
17359"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
17360"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
17361"<paramdef><type>double precision[] </type> <parameter>nodataval</parameter></"
17362"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
17363"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17364"type> <parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
17365"<parameter>rast2</parameter></paramdef> <paramdef choice=\"opt\"><type>text "
17366"</type> <parameter>returnband</parameter></paramdef> <paramdef choice=\"opt"
17367"\"><type>double precision[] </type> <parameter>nodataval</parameter></"
17368"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
17369"<function>ST_Intersection</function></funcdef> <paramdef><type>raster </"
17370"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer </"
17371"type> <parameter>band1</parameter></paramdef> <paramdef><type>raster </type> "
17372"<parameter>rast2</parameter></paramdef> <paramdef><type>integer </type> "
17373"<parameter>band2</parameter></paramdef> <paramdef><type>double precision[] </"
17374"type> <parameter>nodataval</parameter></paramdef> </funcprototype> "
17375"<funcprototype> <funcdef>raster <function>ST_Intersection</function></"
17376"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
17377"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
17378"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
17379"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
17380"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>returnband</"
17381"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision[] </"
17382"type> <parameter>nodataval</parameter></paramdef> </funcprototype>"
17383
17384#. Tag: para
17385#: reference_raster.xml:7000
17386#, no-c-format
17387msgid ""
17388"<para>Returns a raster or a set of geometry-pixelvalue pairs representing "
17389"the shared portion of two rasters or the geometrical intersection of a "
17390"vectorization of the raster and a geometry.</para>"
17391msgstr ""
17392"<para>二つのラスタの共有部分またはベクタ化したラスタとジオメトリとのインタセ"
17393"クトした部分を表現する、ラスタまたはジオメトリとピクセル値の組の集合を返しま"
17394"す。</para>"
17395
17396#. Tag: para
17397#: reference_raster.xml:7004
17398#, fuzzy, no-c-format
17399msgid ""
17400"The first three variants, returning a setof geomval, works in vector space. "
17401"The raster is first vectorized (using <xref linkend=\"RT_ST_DumpAsPolygons\"/"
17402">) into a set of geomval rows and those rows are then intersected with the "
17403"geometry using the <xref linkend=\"ST_Intersection\"/> (geometry, geometry) "
17404"PostGIS function. Geometries intersecting only with a nodata value area of a "
17405"raster returns an empty geometry. They are normally excluded from the "
17406"results by the proper usage of <xref linkend=\"RT_ST_Intersects\"/> in the "
17407"WHERE clause."
17408msgstr ""
17409"前半の三つの形式は、geomvalの集合を返すもので、ベクタ形状を引数に取ります。ラ"
17410"スタは初めにgeomval行の集合にベクトル化されます (ST_DumpAsPolygonを使用)。こ"
17411"れらの行はPostGIS関数のST_Intersection(geometry, geometry)を使ってジオメトリ"
17412"とインタセクトさせます。NODATA値の領域とだけインタセクトするジオメトリについ"
17413"ては空ジオメトリを返します。通常はWHERE節でST_Intersectsを使って結果から確実"
17414"に排除します。"
17415
17416#. Tag: para
17417#: reference_raster.xml:7008
17418#, no-c-format
17419msgid ""
17420"You can access the geometry and the value parts of the resulting set of "
17421"geomval by surrounding them with parenthesis and adding '.geom' or '.val' at "
17422"the end of the expression. e.g. (ST_Intersection(rast, geom)).geom"
17423msgstr ""
17424"丸括弧でくくって式の末尾に'.geom'や'.val'をつけることにより、geomvalの結果集"
17425"合のジオメトリや値の部分にアクセスすることができます。たとえば"
17426"(ST_Intersection(rast, geom)).geom等とします。"
17427
17428#. Tag: para
17429#: reference_raster.xml:7012
17430#, no-c-format
17431msgid ""
17432"The other variants, returning a raster, works in raster space. They are "
17433"using the two rasters version of ST_MapAlgebraExpr to perform the "
17434"intersection."
17435msgstr ""
17436"他の形式は、ラスタを引数に取り、ラスタを返します。ST_MapAlgebraExprの二つのラ"
17437"スタを取る形式を使って、インタセクトしている部分を取得します。"
17438
17439#. Tag: para
17440#: reference_raster.xml:7016
17441#, no-c-format
17442msgid ""
17443"The extent of the resulting raster corresponds to the geometrical "
17444"intersection of the two raster extents. The resulting raster includes "
17445"'BAND1', 'BAND2' or 'BOTH' bands, following what is passed as the "
17446"<varname>returnband</varname> parameter. Nodata value areas present in any "
17447"band results in nodata value areas in every bands of the result. In other "
17448"words, any pixel intersecting with a nodata value pixel becomes a nodata "
17449"value pixel in the result."
17450msgstr ""
17451"結果ラスタの範囲は、二つのラスタの範囲についてインタセクトしている部分です。"
17452"結果ラスタは、<varname>returnband</varname>引数として渡されたものにあわせられ"
17453"た'BAND1','BAND2','BOTH'バンドを含みます。どのバンドでもNODATA値の領域は、結"
17454"果ラスタの全てのバンドのNODATA値領域に現れます。言い換えると、あらゆるNODATA"
17455"値ピクセルとインタセクトしているピクセルは、結果ラスタではNODATA値ピクセルに"
17456"なります。"
17457
17458#. Tag: para
17459#: reference_raster.xml:7020
17460#, no-c-format
17461msgid ""
17462"Rasters resulting from ST_Intersection must have a nodata value assigned for "
17463"areas not intersecting. You can define or replace the nodata value for any "
17464"resulting band by providing a <varname>nodataval[]</varname> array of one or "
17465"two nodata values depending if you request 'BAND1', 'BAND2' or 'BOTH' bands. "
17466"The first value in the array replace the nodata value in the first band and "
17467"the second value replace the nodata value in the second band. If one input "
17468"band do not have a nodata value defined and none are provided as an array, "
17469"one is chosen using the ST_MinPossibleValue function. All variant accepting "
17470"an array of nodata value can also accept a single value which will be "
17471"assigned to each requested band."
17472msgstr ""
17473"インタセクトしなかった領域にNODATA値を入れるために、ST_Intersectionからの結果"
17474"ラスタは、NODATA値を持たなければなりません。結果ラスタのどのバンドにも、一つ"
17475"か二つのNODATA値を持つ<varname>nodataval[]</varname>配列を与えることでNODATA"
17476"値を定義したり置き換えたりできます。この配列は、引数で与え"
17477"た'BAND1','BAND2','BOTH'バンドに依存します。 配列の一つ目の値は、一つ目のバン"
17478"ドのNODATA値を入れ替えるものです。二つ目の値は二つ目のバンドのNODATA値を入れ"
17479"替えるものです。入力バンドの一つがNODATA値を持っておらず、かつ配列を渡さな"
17480"かった場合には、ST_MinPossibleValue関数を使ってNODATA値が選ばれます。NODATA値"
17481"の配列を受け付ける形式の全てが、単一値を受け付けます。単一値は結果ラスタのそ"
17482"れぞれのバンドに適用されます。"
17483
17484#. Tag: para
17485#: reference_raster.xml:7024
17486#, no-c-format
17487msgid ""
17488"In all variants, if no band number is specified band 1 is assumed. If you "
17489"need an intersection between a raster and geometry that returns a raster, "
17490"refer to <xref linkend=\"RT_ST_Clip\"/>."
17491msgstr ""
17492"全ての形式で、バンド番号を指定していない場合には、1番と仮定します。ラスタとジ"
17493"オメトリを引数にとり、ラスタを得たい場合には、<xref linkend=\"RT_ST_Clip\"/>"
17494"を参照して下さい。"
17495
17496#. Tag: para
17497#: reference_raster.xml:7029
17498#, no-c-format
17499msgid ""
17500"To get more control on the resulting extent or on what to return when "
17501"encountering a nodata value, use the two rasters version of <xref linkend="
17502"\"RT_ST_MapAlgebraExpr2\"/>."
17503msgstr ""
17504"NODATA値に遭遇した時の、結果範囲や返された物に関して、より多くの制御を行いた"
17505"い場合には、<xref linkend=\"RT_ST_MapAlgebraExpr2\"/>の二つのラスタを取る形式"
17506"を使います。"
17507
17508#. Tag: para
17509#: reference_raster.xml:7035
17510#, no-c-format
17511msgid ""
17512"To compute the intersection of a raster band with a geometry in raster "
17513"space, use <xref linkend=\"RT_ST_Clip\"/>. ST_Clip works on multiple bands "
17514"rasters and does not return a band corresponding to the rasterized geometry."
17515msgstr ""
17516"ラスタバンドとジオメトリとがインタセクトする部分を計算するには、<xref "
17517"linkend=\"RT_ST_Clip\"/>を使います。ST_Clipは複数のバンドで動作し、ラスタ化さ"
17518"れたジオメトリに従ったバンドを返すことはしません。"
17519
17520#. Tag: para
17521#: reference_raster.xml:7041
17522#, fuzzy, no-c-format
17523msgid ""
17524"ST_Intersection should be used in conjunction with <xref linkend="
17525"\"RT_ST_Intersects\"/> and an index on the raster column and/or the geometry "
17526"column."
17527msgstr ""
17528"ST_IntersectionはST_Intersectsと併用して、ラスタカラムとジオメトリカラムのイ"
17529"ンデクスを使うべきです。"
17530
17531#. Tag: para
17532#: reference_raster.xml:7046
17533#, no-c-format
17534msgid ""
17535"Enhanced: 2.0.0 - Intersection in the raster space was introduced. In "
17536"earlier pre-2.0.0 versions, only intersection performed in vector space were "
17537"supported."
17538msgstr ""
17539"Enhanced: 2.0.0 - ラスタ空間のインタセクションが導入されました。2.0.0より前の"
17540"版では、ベクタ空間でのインタセクションの計算のみに対応していました。"
17541
17542#. Tag: title
17543#: reference_raster.xml:7052
17544#, no-c-format
17545msgid "Examples: Geometry, Raster -- resulting in geometry vals"
17546msgstr "例: ジオメトリとラスタ -- ジオメトリと値を得る"
17547
17548#. Tag: programlisting
17549#: reference_raster.xml:7054
17550#, no-c-format
17551msgid ""
17552"SELECT\n"
17553"        foo.rid,\n"
17554"        foo.gid,\n"
17555"        ST_AsText((foo.geomval).geom) As geomwkt,\n"
17556"        (foo.geomval).val\n"
17557"FROM (\n"
17558"        SELECT\n"
17559"                A.rid,\n"
17560"                g.gid,\n"
17561"                ST_Intersection(A.rast, g.geom) As geomval\n"
17562"        FROM dummy_rast AS A\n"
17563"        CROSS JOIN (\n"
17564"                VALUES\n"
17565"                        (1, ST_Point(3427928, 5793243.85) ),\n"
17566"                        (2, ST_GeomFromText('LINESTRING(3427927.85 "
17567"5793243.75,3427927.8 5793243.75,3427927.8 5793243.8)')),\n"
17568"                        (3, ST_GeomFromText('LINESTRING(1 2, 3 4)'))\n"
17569"        ) As g(gid,geom)\n"
17570"        WHERE A.rid = 2\n"
17571") As foo;\n"
17572"\n"
17573" rid | gid |      "
17574"geomwkt                                                                                                "
17575"| val\n"
17576"-----+-----"
17577"+---------------------------------------------------------------------------------------------\n"
17578"   2 |   1 | POINT(3427928 "
17579"5793243.85)                                                                        "
17580"| 249\n"
17581"   2 |   1 | POINT(3427928 "
17582"5793243.85)                                                                        "
17583"| 253\n"
17584"   2 |   2 | POINT(3427927.85 "
17585"5793243.75)                                                                | "
17586"254\n"
17587"   2 |   2 | POINT(3427927.8 "
17588"5793243.8)                                                                        "
17589"| 251\n"
17590"   2 |   2 | POINT(3427927.8 "
17591"5793243.8)                                                                        "
17592"| 253\n"
17593"   2 |   2 | LINESTRING(3427927.8 5793243.75,3427927.8 5793243.8)        | "
17594"252\n"
17595"   2 |   2 | MULTILINESTRING((3427927.8 5793243.8,3427927.8 5793243.75),...) "
17596"| 250\n"
17597"   2 |   3 | GEOMETRYCOLLECTION EMPTY"
17598msgstr ""
17599"SELECT\n"
17600"        foo.rid,\n"
17601"        foo.gid,\n"
17602"        ST_AsText((foo.geomval).geom) As geomwkt,\n"
17603"        (foo.geomval).val\n"
17604"FROM (\n"
17605"        SELECT\n"
17606"                A.rid,\n"
17607"                g.gid,\n"
17608"                ST_Intersection(A.rast, g.geom) As geomval\n"
17609"        FROM dummy_rast AS A\n"
17610"        CROSS JOIN (\n"
17611"                VALUES\n"
17612"                        (1, ST_Point(3427928, 5793243.85) ),\n"
17613"                        (2, ST_GeomFromText('LINESTRING(3427927.85 "
17614"5793243.75,3427927.8 5793243.75,3427927.8 5793243.8)')),\n"
17615"                        (3, ST_GeomFromText('LINESTRING(1 2, 3 4)'))\n"
17616"        ) As g(gid,geom)\n"
17617"        WHERE A.rid = 2\n"
17618") As foo;\n"
17619"\n"
17620" rid | gid |      "
17621"geomwkt                                                                                                "
17622"| val\n"
17623"-----+-----"
17624"+---------------------------------------------------------------------------------------------\n"
17625"   2 |   1 | POINT(3427928 "
17626"5793243.85)                                                                        "
17627"| 249\n"
17628"   2 |   1 | POINT(3427928 "
17629"5793243.85)                                                                        "
17630"| 253\n"
17631"   2 |   2 | POINT(3427927.85 "
17632"5793243.75)                                                                | "
17633"254\n"
17634"   2 |   2 | POINT(3427927.8 "
17635"5793243.8)                                                                        "
17636"| 251\n"
17637"   2 |   2 | POINT(3427927.8 "
17638"5793243.8)                                                                        "
17639"| 253\n"
17640"   2 |   2 | LINESTRING(3427927.8 5793243.75,3427927.8 5793243.8)        | "
17641"252\n"
17642"   2 |   2 | MULTILINESTRING((3427927.8 5793243.8,3427927.8 5793243.75),...) "
17643"| 250\n"
17644"   2 |   3 | GEOMETRYCOLLECTION EMPTY"
17645
17646#. Tag: para
17647#: reference_raster.xml:7059
17648#, no-c-format
17649msgid ""
17650", <xref linkend=\"RT_ST_Intersects\"/>, <xref linkend="
17651"\"RT_ST_MapAlgebraExpr2\"/>, <xref linkend=\"RT_ST_Clip\"/>, <xref linkend="
17652"\"ST_AsText\"/>"
17653msgstr ""
17654", <xref linkend=\"RT_ST_Intersects\"/>, <xref linkend="
17655"\"RT_ST_MapAlgebraExpr2\"/>, <xref linkend=\"RT_ST_Clip\"/>, <xref linkend="
17656"\"ST_AsText\"/>"
17657
17658#. Tag: refname
17659#: reference_raster.xml:7071
17660#, fuzzy, no-c-format
17661msgid "ST_MapAlgebra (callback function version)"
17662msgstr "組み込み地図代数コールバック関数"
17663
17664#. Tag: refpurpose
17665#: reference_raster.xml:7072
17666#, no-c-format
17667msgid ""
17668"Callback function version - Returns a one-band raster given one or more "
17669"input rasters, band indexes and one user-specified callback function."
17670msgstr ""
17671"コールバック関数版 - 一つ以上の入力ラスタ、バンドインデクスと一つのユーザ定義"
17672"コールバック関数から、一つのバンドからなるラスタを返します。"
17673
17674#. Tag: funcsynopsis
17675#: reference_raster.xml:7078
17676#, no-c-format
17677msgid ""
17678"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17679"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
17680"paramdef> <paramdef><type>regprocedure </type> <parameter>callbackfunc</"
17681"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
17682"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17683"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17684"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17685"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17686"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
17687"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
17688"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
17689"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
17690"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17691"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17692"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
17693"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17694"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17695"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17696"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
17697"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
17698"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17699"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
17700"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
17701"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
17702"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
17703"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17704"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17705"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
17706"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17707"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17708"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17709"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
17710"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
17711"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17712"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
17713"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
17714"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
17715"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
17716"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17717"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
17718"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
17719"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
17720"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
17721"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17722"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17723"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17724"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17725"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17726"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17727"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
17728"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
17729"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
17730"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
17731"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17732"<paramdef><type>nband</type> <parameter>integer</parameter></paramdef> "
17733"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17734"paramdef> <paramdef><type>float8[] </type> <parameter>mask</parameter></"
17735"paramdef> <paramdef><type>boolean </type> <parameter>weighted</parameter></"
17736"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17737"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17738"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17739"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17740"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17741"\"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></"
17742"paramdef> </funcprototype>"
17743msgstr ""
17744"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17745"<paramdef><type>rastbandarg[] </type> <parameter>rastbandargset</parameter></"
17746"paramdef> <paramdef><type>regprocedure </type> <parameter>callbackfunc</"
17747"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
17748"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17749"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17750"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17751"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17752"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
17753"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
17754"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
17755"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
17756"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17757"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17758"<paramdef><type>integer[] </type> <parameter>nband</parameter></paramdef> "
17759"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17760"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17761"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17762"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
17763"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
17764"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17765"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
17766"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
17767"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
17768"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
17769"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17770"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
17771"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
17772"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17773"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17774"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17775"\"><type>text </type> <parameter>extenttype=FIRST</parameter></paramdef> "
17776"<paramdef choice=\"opt\"><type>raster </type> <parameter>customextent=NULL</"
17777"parameter></paramdef> <paramdef choice=\"opt\"><type>integer </type> "
17778"<parameter>distancex=0</parameter></paramdef> <paramdef choice=\"opt"
17779"\"><type>integer </type> <parameter>distancey=0</parameter></paramdef> "
17780"<paramdef choice=\"opt\"><type>text[] </type> <parameter>VARIADIC "
17781"userargs=NULL</parameter></paramdef> </funcprototype> <funcprototype> "
17782"<funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17783"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
17784"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
17785"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
17786"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
17787"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17788"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17789"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17790"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17791"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17792"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17793"\"><type>integer </type> <parameter>distancex=0</parameter></paramdef> "
17794"<paramdef choice=\"opt\"><type>integer </type> <parameter>distancey=0</"
17795"parameter></paramdef> <paramdef choice=\"opt\"><type>text[] </type> "
17796"<parameter>VARIADIC userargs=NULL</parameter></paramdef> </funcprototype> "
17797"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
17798"<paramdef><type>nband</type> <parameter>integer</parameter></paramdef> "
17799"<paramdef><type>regprocedure </type> <parameter>callbackfunc</parameter></"
17800"paramdef> <paramdef><type>float8[] </type> <parameter>mask</parameter></"
17801"paramdef> <paramdef><type>boolean </type> <parameter>weighted</parameter></"
17802"paramdef> <paramdef choice=\"opt\"><type>text </type> "
17803"<parameter>pixeltype=NULL</parameter></paramdef> <paramdef choice=\"opt"
17804"\"><type>text </type> <parameter>extenttype=INTERSECTION</parameter></"
17805"paramdef> <paramdef choice=\"opt\"><type>raster </type> "
17806"<parameter>customextent=NULL</parameter></paramdef> <paramdef choice=\"opt"
17807"\"><type>text[] </type> <parameter>VARIADIC userargs=NULL</parameter></"
17808"paramdef> </funcprototype>"
17809
17810#. Tag: para
17811#: reference_raster.xml:7150
17812#, no-c-format
17813msgid ""
17814"Returns a one-band raster given one or more input rasters, band indexes and "
17815"one user-specified callback function."
17816msgstr ""
17817"一つ以上の入力ラスタ、バンドインデクスと一つのユーザ定義コールバック関数か"
17818"ら、一つのバンドからなるラスタを返します。"
17819
17820#. Tag: term
17821#: reference_raster.xml:7156
17822#, no-c-format
17823msgid "rast,rast1,rast2, rastbandargset"
17824msgstr "rast,rast1,rast2, rastbandargset"
17825
17826#. Tag: para
17827#: reference_raster.xml:7158
17828#, no-c-format
17829msgid "Rasters on which the map algebra process is evaluated."
17830msgstr "地図代数処理が行われるラスタです。"
17831
17832#. Tag: para
17833#: reference_raster.xml:7159
17834#, no-c-format
17835msgid ""
17836"<varname>rastbandargset</varname> allows the use of a map algebra operation "
17837"on many rasters and/or many bands. See example Variant 1."
17838msgstr ""
17839"<varname>rastbandargset</varname>によって、多数のラスタと多数のバンドにおいて"
17840"地図代数処理が使用できます。一つ目の形式の例を見て下さい。"
17841
17842#. Tag: term
17843#: reference_raster.xml:7164
17844#, no-c-format
17845msgid "nband, nband1, nband2"
17846msgstr "nband, nband1, nband2"
17847
17848#. Tag: para
17849#: reference_raster.xml:7166
17850#, no-c-format
17851msgid ""
17852"Band numbers of the raster to be evaluated. nband can be an integer or "
17853"integer[] denoting the bands. nband1 is band on rast1 and nband2 is band on "
17854"rast2 for hte 2 raster/2band case."
17855msgstr ""
17856"処理を行うラスタのバンド番号です。nbandはバンドを示す整数スカラまたは整数配列"
17857"です。2ラスタ/2バンドの場合では、nband1はrast1のバンド、nband2はrast2のバンド"
17858"です。"
17859
17860#. Tag: term
17861#: reference_raster.xml:7172
17862#, no-c-format
17863msgid "callbackfunc"
17864msgstr "callbackfunc"
17865
17866#. Tag: para
17867#: reference_raster.xml:7174
17868#, no-c-format
17869msgid ""
17870"The <varname>callbackfunc</varname> parameter must be the name and signature "
17871"of an SQL or PL/pgSQL function, cast to a regprocedure. An example PL/pgSQL "
17872"function example is: <programlisting>\n"
17873"CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], "
17874"position integer[][], VARIADIC userargs text[])\n"
17875"        RETURNS double precision\n"
17876"        AS $$\n"
17877"        BEGIN\n"
17878"                RETURN 0;\n"
17879"        END;\n"
17880"        $$ LANGUAGE 'plpgsql' IMMUTABLE;\n"
17881"                                                                        </"
17882"programlisting> The <varname>callbackfunc</varname> must have three "
17883"arguments: a 3-dimension double precision array, a 2-dimension integer array "
17884"and a variadic 1-dimension text array. The first argument <varname>value</"
17885"varname> is the set of values (as double precision) from all input rasters. "
17886"The three dimensions (where indexes are 1-based) are: raster #, row y, "
17887"column x. The second argument <varname>position</varname> is the set of "
17888"pixel positions from the output raster and input rasters. The outer "
17889"dimension (where indexes are 0-based) is the raster #. The position at outer "
17890"dimension index 0 is the output raster's pixel position. For each outer "
17891"dimension, there are two elements in the inner dimension for X and Y. The "
17892"third argument <varname>userargs</varname> is for passing through any user-"
17893"specified arguments."
17894msgstr ""
17895"<varname>callbackfunc</varname>引数は、SQLまたはPL/pgSQL関数の名前とシグニ"
17896"チャでなければならず、regprocedureにキャストしなければなりません。PL/pgSQL関"
17897"数の例は次の通りです。<programlisting>\n"
17898"CREATE OR REPLACE FUNCTION sample_callbackfunc(value double precision[][][], "
17899"position integer[][], VARIADIC userargs text[])\n"
17900"        RETURNS double precision\n"
17901"        AS $$\n"
17902"        BEGIN\n"
17903"                RETURN 0;\n"
17904"        END;\n"
17905"        $$ LANGUAGE 'plpgsql' IMMUTABLE;\n"
17906"                                                                        </"
17907"programlisting> <varname>callbackfunc</varname>は、三つの引数を持たなければな"
17908"りません。すなわち、3次元倍精度浮動小数点数配列、2次元整数配列、VARIADICの1次"
17909"元文字列配列です。一つ目の引数<varname>value</varname>は、全ての入力ラスタか"
17910"らの値 (倍精度浮動小数点数)の配列です。3次元 (1始まり)は、ラスタ番号、行、列"
17911"です。二つ目の引数<varname>position</varname>は、出力ラスタと入力ラスタからの"
17912"ピクセル位置の集合です。一つ目の次元の添え字 (0はじまりです)はラスタ番号で"
17913"す。一つ目の次元の添え字が0の場合に指される位置は、出力ラスタのピクセル位置で"
17914"す。二つ目の次元はXとYからなる二つの要素を持ちます。三つ目の引数"
17915"<varname>userargs</varname>はユーザ定義関数特有の引数としてそのまま渡されま"
17916"す。"
17917
17918#. Tag: para
17919#: reference_raster.xml:7181
17920#, no-c-format
17921msgid ""
17922"Passing a <type>regprocedure</type> argument to a SQL function requires the "
17923"full function signature to be passed, then cast to a <type>regprocedure</"
17924"type> type. To pass the above example PL/pgSQL function as an argument, the "
17925"SQL for the argument is: <programlisting>\n"
17926"'sample_callbackfunc(double precision[], integer[], text[])'::regprocedure\n"
17927"                                                                        </"
17928"programlisting> Note that the argument contains the name of the function, "
17929"the types of the function arguments, quotes around the name and argument "
17930"types, and a cast to a <type>regprocedure</type>."
17931msgstr ""
17932"<type>regprocedure</type>引数をSQL関数に渡すには、完全な関数シグネチャが求め"
17933"られます。<type>regprocedure</type>へのキャストが必要です。上のPL/pgSQL関数を"
17934"引数として渡すには、引数のSQLは次のようにします。<programlisting>\n"
17935"'sample_callbackfunc(double precision[], integer[], text[])'::regprocedure\n"
17936"                                                                        </"
17937"programlisting> 引数は関数名と引数の型を含み、関数名と引数を引用符で括り、か"
17938"つ<type>regprocedure</type>にキャストする点に注意が必要です。"
17939
17940#. Tag: term
17941#: reference_raster.xml:7193
17942#, no-c-format
17943msgid "mask"
17944msgstr "mask"
17945
17946#. Tag: para
17947#: reference_raster.xml:7195
17948#, no-c-format
17949msgid ""
17950"An n-dimensional array (matrix) of numbers used to filter what cells get "
17951"passed to map algebra call-back function. 0 means a neighbor cell value "
17952"should be treated as no-data and 1 means value should be treated as data. If "
17953"weight is set to true, then the values, are used as multipliers to multiple "
17954"the pixel value of that value in the neighborhood position."
17955msgstr ""
17956"N次元の数値配列 (行列)で、地図代数コールバック関数に渡すセルを決めるための"
17957"フィルタに使われます。0は近隣セル値をNODATAとして扱うべきであることを示し、1"
17958"はデータとして扱うべきであることをそれぞれ意味します。weightがTRUEに指定され"
17959"いる場合には、この配列の値は、近隣セルのピクセル値に対して掛け算を行うための"
17960"数になります。"
17961
17962#. Tag: term
17963#: reference_raster.xml:7202
17964#, no-c-format
17965msgid "weighted"
17966msgstr "weighted"
17967
17968#. Tag: para
17969#: reference_raster.xml:7204
17970#, no-c-format
17971msgid ""
17972"boolean (true/false) to denote if a mask value should be weighted "
17973"(multiplied by original value) or not (only applies to proto that takes a "
17974"mask)."
17975msgstr ""
17976"マスク値に重みづけを施す (元の値に対して乗算を行う)か、施さない (マスク処理だ"
17977"けを行う)かを示す真偽値です。"
17978
17979#. Tag: term
17980#: reference_raster.xml:7211 reference_raster.xml:7536
17981#: reference_raster.xml:7831 reference_raster.xml:8385
17982#, no-c-format
17983msgid "pixeltype"
17984msgstr "pixeltype"
17985
17986#. Tag: para
17987#: reference_raster.xml:7213
17988#, no-c-format
17989msgid ""
17990"If <varname>pixeltype</varname> is passed in, the one band of the new raster "
17991"will be of that pixeltype. If pixeltype is passed NULL or left out, the new "
17992"raster band will have the same pixeltype as the specified band of the first "
17993"raster (for extent types: INTERSECTION, UNION, FIRST, CUSTOM) or the "
17994"specified band of the appropriate raster (for extent types: SECOND, LAST). "
17995"If in doubt, always specify <varname>pixeltype</varname>."
17996msgstr ""
17997"<varname>pixeltype</varname>を渡した場合には、新しいラスタの一つのバンドが、"
17998"そのピクセルタイプになります。pixeltypeにNULLを渡したり指定しなかった場合に"
17999"は、新しいラスタのピクセルタイプは、一つ目のラスタ (extenttypeが"
18000"INTERSECTION, UNION, FIRST, CUSTOMの場合)か、適切なラスタ (extenttypeが"
18001"SECOND, LASTの場合)の指定したバンドと同じピクセルタイプになります。疑問を感じ"
18002"たら常に<varname>pixeltype</varname>を渡します。"
18003
18004#. Tag: para
18005#: reference_raster.xml:7216
18006#, no-c-format
18007msgid ""
18008"The resulting pixel type of the output raster must be one listed in <xref "
18009"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL."
18010msgstr ""
18011"出力ラスタのピクセルタイプは、必ず<xref linkend=\"RT_ST_BandPixelType\"/>に挙"
18012"げられたものの一つになるか、省略されるか、NULLに設定されます。"
18013
18014#. Tag: term
18015#: reference_raster.xml:7223 reference_raster.xml:7544
18016#: reference_raster.xml:7840
18017#, no-c-format
18018msgid "extenttype"
18019msgstr "extenttype"
18020
18021#. Tag: para
18022#: reference_raster.xml:7225
18023#, no-c-format
18024msgid ""
18025"Possible values are INTERSECTION (default), UNION, FIRST (default for one "
18026"raster variants), SECOND, LAST, CUSTOM."
18027msgstr ""
18028"INTERSECTION (デフォルト), UNION, FIRST (一つのラスタを取る形式でのデフォル"
18029"ト), SECOND, LAST, CUSTOMのいずれかになります。"
18030
18031#. Tag: term
18032#: reference_raster.xml:7232
18033#, no-c-format
18034msgid "customextent"
18035msgstr "customextent"
18036
18037#. Tag: para
18038#: reference_raster.xml:7234
18039#, no-c-format
18040msgid ""
18041"If <varname>extentype</varname> is CUSTOM, a raster must be provided for "
18042"<varname>customextent</varname>. See example 4 of Variant 1."
18043msgstr ""
18044"<varname>extentype</varname>がCUSTOMである場合には、ラスタは"
18045"<varname>customextent</varname>で提供されます。一つ目の形式の例4をご覧下さ"
18046"い。"
18047
18048#. Tag: term
18049#: reference_raster.xml:7241
18050#, no-c-format
18051msgid "distancex"
18052msgstr "distancex"
18053
18054#. Tag: para
18055#: reference_raster.xml:7243
18056#, no-c-format
18057msgid ""
18058"The distance in pixels from the reference cell in x direction. So width of "
18059"resulting matrix would be <code>2*distancex + 1</code>.If not specified only "
18060"the reference cell is considered (neighborhood of 0)."
18061msgstr ""
18062"参照セルからのピクセル単位の距離です。結果として得られる行列の幅は"
18063"<code>2*distancex + 1</code>となります。指定しない場合には、参照セルだけが対"
18064"象となります (0の距離の近隣ピクセル)。"
18065
18066#. Tag: term
18067#: reference_raster.xml:7250
18068#, no-c-format
18069msgid "distancey"
18070msgstr "distancey"
18071
18072#. Tag: para
18073#: reference_raster.xml:7252
18074#, no-c-format
18075msgid ""
18076"The distance in pixels from reference cell in y direction. Height of "
18077"resulting matrix would be <code>2*distancey + 1</code> .If not specified "
18078"only the reference cell is considered (neighborhood of 0)."
18079msgstr ""
18080"参照セルからのピクセル単位の距離です。結果として得られる行列の高さは"
18081"<code>2*distancey + 1</code>となります。指定しない場合には、参照セルが対象と"
18082"なります (0の距離の近隣ピクセル)。"
18083
18084#. Tag: term
18085#: reference_raster.xml:7259
18086#, no-c-format
18087msgid "userargs"
18088msgstr "userargs"
18089
18090#. Tag: para
18091#: reference_raster.xml:7261
18092#, no-c-format
18093msgid ""
18094"The third argument to the <varname>callbackfunc</varname> is a "
18095"<type>variadic text</type> array. All trailing text arguments are passed "
18096"through to the specified <varname>callbackfunc</varname>, and are contained "
18097"in the <varname>userargs</varname> argument."
18098msgstr ""
18099"<varname>callbackfunc</varname>の三つ目の引数は<type>variadic text</type>配列"
18100"です。全ての文字列引数は指定された<varname>callbackfunc</varname>にそのまま渡"
18101"され、<varname>userargs</varname>引数に含まれます。"
18102
18103#. Tag: para
18104#: reference_raster.xml:7269 reference_raster.xml:8160
18105#: reference_raster.xml:8279
18106#, no-c-format
18107msgid ""
18108"For more information about the VARIADIC keyword, please refer to the "
18109"PostgreSQL documentation and the \"SQL Functions with Variable Numbers of "
18110"Arguments\" section of <ulink url=\"http://www.postgresql.org/docs/current/"
18111"static/xfunc-sql.html\">Query Language (SQL) Functions</ulink>."
18112msgstr ""
18113"VARIADICキーワードに関する詳細情報については、PostgreSQL文書と<ulink url="
18114"\"http://www.postgresql.org/docs/current/static/xfunc-sql.html\">Query "
18115"Language (SQL) Functions</ulink> (訳注: 日本語版は「<ulink url=\"http://www."
18116"postgresql.jp/document/current/html/xfunc-sql.html\">問い合わせ言語 (SQL)関"
18117"数</ulink>」です)の\"SQL Functions with Variable Numbers of Arguments\" (訳"
18118"注: 日本語版は「可変長引数を取るSQL関数」)節を参照して下さい。"
18119
18120#. Tag: para
18121#: reference_raster.xml:7275
18122#, no-c-format
18123msgid ""
18124"The <type>text[]</type> argument to the <varname>callbackfunc</varname> is "
18125"required, regardless of whether you choose to pass any arguments to the "
18126"callback function for processing or not."
18127msgstr ""
18128"<varname>callbackfunc</varname>への<type>text[]</type>引数は、あらゆる引数を"
18129"処理のためにユーザ関数に渡すかどうかの選択にかかわらず求められます。"
18130
18131#. Tag: para
18132#: reference_raster.xml:7280
18133#, no-c-format
18134msgid ""
18135"Variant 1 accepts an array of <varname>rastbandarg</varname> allowing the "
18136"use of a map algebra operation on many rasters and/or many bands. See "
18137"example Variant 1."
18138msgstr ""
18139"一つ目の形式では、多数のラスタやバンドで地図代数演算が使えるようになるための"
18140"<varname>rastbandarg</varname>配列を受け付けます。一つ目の形式の例をご覧下さ"
18141"い。"
18142
18143#. Tag: para
18144#: reference_raster.xml:7284
18145#, no-c-format
18146msgid ""
18147"Variants 2 and 3 operate upon one or more bands of one raster. See example "
18148"Variant 2 and 3."
18149msgstr ""
18150"二つ目と三つ目の形式では、一つのラスタにおける一つ以上のバンドについて演算を"
18151"行います。二つ目の形式と三つ目の形式の例をご覧下さい。"
18152
18153#. Tag: para
18154#: reference_raster.xml:7288
18155#, no-c-format
18156msgid ""
18157"Variant 4 operate upon two rasters with one band per raster. See example "
18158"Variant 4."
18159msgstr ""
18160"四つ目の形式では、二つのラスタにおいて、それぞれ一つずつのバンドについて演算"
18161"を行います。四つ目の形式の例をご覧下さい。"
18162
18163#. Tag: para
18164#: reference_raster.xml:7292
18165#, no-c-format
18166msgid "Availability: 2.2.0: Ability to add a mask"
18167msgstr "Availability: 2.2.0: マスクが追加されました。"
18168
18169#. Tag: para
18170#: reference_raster.xml:7300 reference_raster.xml:7322
18171#, no-c-format
18172msgid "One raster, one band"
18173msgstr "一つのラスタ、一つのバンド"
18174
18175#. Tag: programlisting
18176#: reference_raster.xml:7301
18177#, no-c-format
18178msgid ""
18179"WITH foo AS (\n"
18180"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18181"0, 0), 1, '16BUI', 1, 0) AS rast\n"
18182")\n"
18183"SELECT\n"
18184"        ST_MapAlgebra(\n"
18185"                ARRAY[ROW(rast, 1)]::rastbandarg[],\n"
18186"                'sample_callbackfunc(double precision[], int[], text[])'::"
18187"regprocedure\n"
18188"        ) AS rast\n"
18189"FROM foo"
18190msgstr ""
18191"WITH foo AS (\n"
18192"        SELECT 1 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18193"0, 0), 1, '16BUI', 1, 0) AS rast\n"
18194")\n"
18195"SELECT\n"
18196"        ST_MapAlgebra(\n"
18197"                ARRAY[ROW(rast, 1)]::rastbandarg[],\n"
18198"                'sample_callbackfunc(double precision[], int[], text[])'::"
18199"regprocedure\n"
18200"        ) AS rast\n"
18201"FROM foo"
18202
18203#. Tag: para
18204#: reference_raster.xml:7303 reference_raster.xml:7319
18205#, no-c-format
18206msgid "One raster, several bands"
18207msgstr "一つのラスタ、複数のバンド"
18208
18209#. Tag: programlisting
18210#: reference_raster.xml:7304
18211#, no-c-format
18212msgid ""
18213"WITH foo AS (\n"
18214"        SELECT 1 AS rid, "
18215"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18216"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18217")\n"
18218"SELECT\n"
18219"        ST_MapAlgebra(\n"
18220"                ARRAY[ROW(rast, 3), ROW(rast, 1), ROW(rast, 3), ROW(rast, "
18221"2)]::rastbandarg[],\n"
18222"                'sample_callbackfunc(double precision[], int[], text[])'::"
18223"regprocedure\n"
18224"        ) AS rast\n"
18225"FROM foo"
18226msgstr ""
18227"WITH foo AS (\n"
18228"        SELECT 1 AS rid, "
18229"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18230"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18231")\n"
18232"SELECT\n"
18233"        ST_MapAlgebra(\n"
18234"                ARRAY[ROW(rast, 3), ROW(rast, 1), ROW(rast, 3), ROW(rast, "
18235"2)]::rastbandarg[],\n"
18236"                'sample_callbackfunc(double precision[], int[], text[])'::"
18237"regprocedure\n"
18238"        ) AS rast\n"
18239"FROM foo"
18240
18241#. Tag: para
18242#: reference_raster.xml:7306
18243#, no-c-format
18244msgid "Several rasters, several bands"
18245msgstr "複数のラスタ、複数のバンド"
18246
18247#. Tag: programlisting
18248#: reference_raster.xml:7307
18249#, no-c-format
18250msgid ""
18251"WITH foo AS (\n"
18252"        SELECT 1 AS rid, "
18253"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18254"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
18255"ALL\n"
18256"        SELECT 2 AS rid, "
18257"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
18258"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
18259")\n"
18260"SELECT\n"
18261"        ST_MapAlgebra(\n"
18262"                ARRAY[ROW(t1.rast, 3), ROW(t2.rast, 1), ROW(t2.rast, 3), "
18263"ROW(t1.rast, 2)]::rastbandarg[],\n"
18264"                'sample_callbackfunc(double precision[], int[], text[])'::"
18265"regprocedure\n"
18266"        ) AS rast\n"
18267"FROM foo t1\n"
18268"CROSS JOIN foo t2\n"
18269"WHERE t1.rid = 1\n"
18270"        AND t2.rid = 2"
18271msgstr ""
18272"WITH foo AS (\n"
18273"        SELECT 1 AS rid, "
18274"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18275"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
18276"ALL\n"
18277"        SELECT 2 AS rid, "
18278"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
18279"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
18280")\n"
18281"SELECT\n"
18282"        ST_MapAlgebra(\n"
18283"                ARRAY[ROW(t1.rast, 3), ROW(t2.rast, 1), ROW(t2.rast, 3), "
18284"ROW(t1.rast, 2)]::rastbandarg[],\n"
18285"                'sample_callbackfunc(double precision[], int[], text[])'::"
18286"regprocedure\n"
18287"        ) AS rast\n"
18288"FROM foo t1\n"
18289"CROSS JOIN foo t2\n"
18290"WHERE t1.rid = 1\n"
18291"        AND t2.rid = 2"
18292
18293#. Tag: para
18294#: reference_raster.xml:7309
18295#, no-c-format
18296msgid ""
18297"Complete example of tiles of a coverage with neighborhood. This query only "
18298"works with PostgreSQL 9.1 or higher."
18299msgstr ""
18300"近隣ピクセルを併用したカバレッジのタイルの完全な例です。クエリはPostgreSQL "
18301"9.1以上でのみ動作します。"
18302
18303#. Tag: programlisting
18304#: reference_raster.xml:7310
18305#, no-c-format
18306msgid ""
18307"WITH foo AS (\n"
18308"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18309"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
18310"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
18311"1, '16BUI', 2, 0) AS rast UNION ALL\n"
18312"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
18313"1, '16BUI', 3, 0) AS rast UNION ALL\n"
18314"\n"
18315"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
18316"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
18317"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
18318"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
18319"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
18320"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
18321"\n"
18322"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
18323"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
18324"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
18325"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
18326"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
18327"0), 1, '16BUI', 300, 0) AS rast\n"
18328")\n"
18329"SELECT\n"
18330"        t1.rid,\n"
18331"        ST_MapAlgebra(\n"
18332"                ARRAY[ROW(ST_Union(t2.rast), 1)]::rastbandarg[],\n"
18333"                'sample_callbackfunc(double precision[], int[], text[])'::"
18334"regprocedure,\n"
18335"                '32BUI',\n"
18336"                'CUSTOM', t1.rast,\n"
18337"                1, 1\n"
18338"        ) AS rast\n"
18339"FROM foo t1\n"
18340"CROSS JOIN foo t2\n"
18341"WHERE t1.rid = 4\n"
18342"        AND t2.rid BETWEEN 0 AND 8\n"
18343"        AND ST_Intersects(t1.rast, t2.rast)\n"
18344"GROUP BY t1.rid, t1.rast"
18345msgstr ""
18346"WITH foo AS (\n"
18347"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18348"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
18349"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
18350"1, '16BUI', 2, 0) AS rast UNION ALL\n"
18351"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
18352"1, '16BUI', 3, 0) AS rast UNION ALL\n"
18353"\n"
18354"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
18355"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
18356"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
18357"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
18358"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
18359"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
18360"\n"
18361"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
18362"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
18363"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
18364"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
18365"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
18366"0), 1, '16BUI', 300, 0) AS rast\n"
18367")\n"
18368"SELECT\n"
18369"        t1.rid,\n"
18370"        ST_MapAlgebra(\n"
18371"                ARRAY[ROW(ST_Union(t2.rast), 1)]::rastbandarg[],\n"
18372"                'sample_callbackfunc(double precision[], int[], text[])'::"
18373"regprocedure,\n"
18374"                '32BUI',\n"
18375"                'CUSTOM', t1.rast,\n"
18376"                1, 1\n"
18377"        ) AS rast\n"
18378"FROM foo t1\n"
18379"CROSS JOIN foo t2\n"
18380"WHERE t1.rid = 4\n"
18381"        AND t2.rid BETWEEN 0 AND 8\n"
18382"        AND ST_Intersects(t1.rast, t2.rast)\n"
18383"GROUP BY t1.rid, t1.rast"
18384
18385#. Tag: para
18386#: reference_raster.xml:7312
18387#, no-c-format
18388msgid ""
18389"Example like the prior one for tiles of a coverage with neighborhood but "
18390"works with PostgreSQL 9.0."
18391msgstr ""
18392"前の例である近隣ピクセルを併用したカバレッジのタイルに似ていますがPostgreSQL "
18393"9.0で動作します。"
18394
18395#. Tag: programlisting
18396#: reference_raster.xml:7313
18397#, no-c-format
18398msgid ""
18399"WITH src AS (\n"
18400"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18401"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
18402"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
18403"1, '16BUI', 2, 0) AS rast UNION ALL\n"
18404"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
18405"1, '16BUI', 3, 0) AS rast UNION ALL\n"
18406"\n"
18407"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
18408"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
18409"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
18410"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
18411"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
18412"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
18413"\n"
18414"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
18415"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
18416"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
18417"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
18418"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
18419"0), 1, '16BUI', 300, 0) AS rast\n"
18420")\n"
18421"WITH foo AS (\n"
18422"        SELECT\n"
18423"                t1.rid,\n"
18424"                ST_Union(t2.rast) AS rast\n"
18425"        FROM src t1\n"
18426"        JOIN src t2\n"
18427"                ON ST_Intersects(t1.rast, t2.rast)\n"
18428"                AND t2.rid BETWEEN 0 AND 8\n"
18429"        WHERE t1.rid = 4\n"
18430"        GROUP BY t1.rid\n"
18431"), bar AS (\n"
18432"        SELECT\n"
18433"                t1.rid,\n"
18434"                ST_MapAlgebra(\n"
18435"                        ARRAY[ROW(t2.rast, 1)]::rastbandarg[],\n"
18436"                        'raster_nmapalgebra_test(double precision[], int[], "
18437"text[])'::regprocedure,\n"
18438"                        '32BUI',\n"
18439"                        'CUSTOM', t1.rast,\n"
18440"                        1, 1\n"
18441"                ) AS rast\n"
18442"        FROM src t1\n"
18443"        JOIN foo t2\n"
18444"                ON t1.rid = t2.rid\n"
18445")\n"
18446"SELECT\n"
18447"        rid,\n"
18448"        (ST_Metadata(rast)),\n"
18449"        (ST_BandMetadata(rast, 1)),\n"
18450"        ST_Value(rast, 1, 1, 1)\n"
18451"FROM bar;"
18452msgstr ""
18453"WITH src AS (\n"
18454"        SELECT 0 AS rid, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, "
18455"0, 0), 1, '16BUI', 1, 0) AS rast UNION ALL\n"
18456"        SELECT 1, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, 0, 1, -1, 0, 0, 0), "
18457"1, '16BUI', 2, 0) AS rast UNION ALL\n"
18458"        SELECT 2, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, 0, 1, -1, 0, 0, 0), "
18459"1, '16BUI', 3, 0) AS rast UNION ALL\n"
18460"\n"
18461"        SELECT 3, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -2, 1, -1, 0, 0, "
18462"0), 1, '16BUI', 10, 0) AS rast UNION ALL\n"
18463"        SELECT 4, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -2, 1, -1, 0, 0, "
18464"0), 1, '16BUI', 20, 0) AS rast UNION ALL\n"
18465"        SELECT 5, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -2, 1, -1, 0, 0, "
18466"0), 1, '16BUI', 30, 0) AS rast UNION ALL\n"
18467"\n"
18468"        SELECT 6, ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, -4, 1, -1, 0, 0, "
18469"0), 1, '16BUI', 100, 0) AS rast UNION ALL\n"
18470"        SELECT 7, ST_AddBand(ST_MakeEmptyRaster(2, 2, 2, -4, 1, -1, 0, 0, "
18471"0), 1, '16BUI', 200, 0) AS rast UNION ALL\n"
18472"        SELECT 8, ST_AddBand(ST_MakeEmptyRaster(2, 2, 4, -4, 1, -1, 0, 0, "
18473"0), 1, '16BUI', 300, 0) AS rast\n"
18474")\n"
18475"WITH foo AS (\n"
18476"        SELECT\n"
18477"                t1.rid,\n"
18478"                ST_Union(t2.rast) AS rast\n"
18479"        FROM src t1\n"
18480"        JOIN src t2\n"
18481"                ON ST_Intersects(t1.rast, t2.rast)\n"
18482"                AND t2.rid BETWEEN 0 AND 8\n"
18483"        WHERE t1.rid = 4\n"
18484"        GROUP BY t1.rid\n"
18485"), bar AS (\n"
18486"        SELECT\n"
18487"                t1.rid,\n"
18488"                ST_MapAlgebra(\n"
18489"                        ARRAY[ROW(t2.rast, 1)]::rastbandarg[],\n"
18490"                        'raster_nmapalgebra_test(double precision[], int[], "
18491"text[])'::regprocedure,\n"
18492"                        '32BUI',\n"
18493"                        'CUSTOM', t1.rast,\n"
18494"                        1, 1\n"
18495"                ) AS rast\n"
18496"        FROM src t1\n"
18497"        JOIN foo t2\n"
18498"                ON t1.rid = t2.rid\n"
18499")\n"
18500"SELECT\n"
18501"        rid,\n"
18502"        (ST_Metadata(rast)),\n"
18503"        (ST_BandMetadata(rast, 1)),\n"
18504"        ST_Value(rast, 1, 1, 1)\n"
18505"FROM bar;"
18506
18507#. Tag: title
18508#: reference_raster.xml:7317
18509#, no-c-format
18510msgid "Examples: Variants 2 and 3"
18511msgstr "例: 二つ目の形式と三つ目の形式"
18512
18513#. Tag: programlisting
18514#: reference_raster.xml:7320
18515#, no-c-format
18516msgid ""
18517"WITH foo AS (\n"
18518"        SELECT 1 AS rid, "
18519"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18520"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18521")\n"
18522"SELECT\n"
18523"        ST_MapAlgebra(\n"
18524"                rast, ARRAY[3, 1, 3, 2]::integer[],\n"
18525"                'sample_callbackfunc(double precision[], int[], text[])'::"
18526"regprocedure\n"
18527"        ) AS rast\n"
18528"FROM foo"
18529msgstr ""
18530"WITH foo AS (\n"
18531"        SELECT 1 AS rid, "
18532"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18533"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18534")\n"
18535"SELECT\n"
18536"        ST_MapAlgebra(\n"
18537"                rast, ARRAY[3, 1, 3, 2]::integer[],\n"
18538"                'sample_callbackfunc(double precision[], int[], text[])'::"
18539"regprocedure\n"
18540"        ) AS rast\n"
18541"FROM foo"
18542
18543#. Tag: programlisting
18544#: reference_raster.xml:7323
18545#, no-c-format
18546msgid ""
18547"WITH foo AS (\n"
18548"        SELECT 1 AS rid, "
18549"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18550"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18551")\n"
18552"SELECT\n"
18553"        ST_MapAlgebra(\n"
18554"                rast, 2,\n"
18555"                'sample_callbackfunc(double precision[], int[], text[])'::"
18556"regprocedure\n"
18557"        ) AS rast\n"
18558"FROM foo"
18559msgstr ""
18560"WITH foo AS (\n"
18561"        SELECT 1 AS rid, "
18562"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18563"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast\n"
18564")\n"
18565"SELECT\n"
18566"        ST_MapAlgebra(\n"
18567"                rast, 2,\n"
18568"                'sample_callbackfunc(double precision[], int[], text[])'::"
18569"regprocedure\n"
18570"        ) AS rast\n"
18571"FROM foo"
18572
18573#. Tag: title
18574#: reference_raster.xml:7327
18575#, no-c-format
18576msgid "Examples: Variant 4"
18577msgstr "例: 四つ目の形式"
18578
18579#. Tag: para
18580#: reference_raster.xml:7329
18581#, no-c-format
18582msgid "Two rasters, two bands"
18583msgstr "二つのラスタ、二つのバンド"
18584
18585#. Tag: programlisting
18586#: reference_raster.xml:7330
18587#, no-c-format
18588msgid ""
18589"WITH foo AS (\n"
18590"        SELECT 1 AS rid, "
18591"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18592"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
18593"ALL\n"
18594"        SELECT 2 AS rid, "
18595"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
18596"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
18597")\n"
18598"SELECT\n"
18599"        ST_MapAlgebra(\n"
18600"                t1.rast, 2,\n"
18601"                t2.rast, 1,\n"
18602"                'sample_callbackfunc(double precision[], int[], text[])'::"
18603"regprocedure\n"
18604"        ) AS rast\n"
18605"FROM foo t1\n"
18606"CROSS JOIN foo t2\n"
18607"WHERE t1.rid = 1\n"
18608"        AND t2.rid = 2"
18609msgstr ""
18610"WITH foo AS (\n"
18611"        SELECT 1 AS rid, "
18612"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
18613"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI', 100, 0) AS rast UNION "
18614"ALL\n"
18615"        SELECT 2 AS rid, "
18616"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
18617"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI', 300, 0) AS rast\n"
18618")\n"
18619"SELECT\n"
18620"        ST_MapAlgebra(\n"
18621"                t1.rast, 2,\n"
18622"                t2.rast, 1,\n"
18623"                'sample_callbackfunc(double precision[], int[], text[])'::"
18624"regprocedure\n"
18625"        ) AS rast\n"
18626"FROM foo t1\n"
18627"CROSS JOIN foo t2\n"
18628"WHERE t1.rid = 1\n"
18629"        AND t2.rid = 2"
18630
18631#. Tag: title
18632#: reference_raster.xml:7335
18633#, no-c-format
18634msgid "Examples: Using Masks"
18635msgstr "例: マスクの使用"
18636
18637#. Tag: programlisting
18638#: reference_raster.xml:7336
18639#, no-c-format
18640msgid ""
18641"WITH foo AS (SELECT\n"
18642"   ST_SetBandNoDataValue(\n"
18643"ST_SetValue(ST_SetValue(ST_AsRaster(\n"
18644"                ST_Buffer(\n"
18645"                        ST_GeomFromText('LINESTRING(50 50,100 90,100 50)'), "
18646"5,'join=bevel'),\n"
18647"                        200,200,ARRAY['8BUI'], ARRAY[100], ARRAY[0]), "
18648"ST_Buffer('POINT(70 70)'::geometry,10,'quad_segs=1') ,50),\n"
18649"  'LINESTRING(20 20, 100 100, 150 98)'::geometry,1),0)  AS rast )\n"
18650"SELECT 'original' AS title, rast\n"
18651"FROM foo\n"
18652"UNION ALL\n"
18653"SELECT 'no mask mean value' AS title, "
18654"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
18655"regprocedure) AS rast\n"
18656"FROM foo\n"
18657"UNION ALL\n"
18658"SELECT 'mask only consider neighbors, exclude center' AS title, "
18659"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
18660"regprocedure,\n"
18661"    '{{1,1,1}, {1,0,1}, {1,1,1}}'::double precision[], false) As rast\n"
18662"FROM foo\n"
18663"\n"
18664"UNION ALL\n"
18665"SELECT 'mask weighted only consider neighbors, exclude center multi otehr "
18666"pixel values by 2' AS title, ST_MapAlgebra(rast,1,'ST_mean4ma(double "
18667"precision[], int[], text[])'::regprocedure,\n"
18668"    '{{2,2,2}, {2,0,2}, {2,2,2}}'::double precision[], true) As rast\n"
18669"FROM foo;"
18670msgstr ""
18671"WITH foo AS (SELECT\n"
18672"   ST_SetBandNoDataValue(\n"
18673"ST_SetValue(ST_SetValue(ST_AsRaster(\n"
18674"                ST_Buffer(\n"
18675"                        ST_GeomFromText('LINESTRING(50 50,100 90,100 50)'), "
18676"5,'join=bevel'),\n"
18677"                        200,200,ARRAY['8BUI'], ARRAY[100], ARRAY[0]), "
18678"ST_Buffer('POINT(70 70)'::geometry,10,'quad_segs=1') ,50),\n"
18679"  'LINESTRING(20 20, 100 100, 150 98)'::geometry,1),0)  AS rast )\n"
18680"SELECT 'original' AS title, rast\n"
18681"FROM foo\n"
18682"UNION ALL\n"
18683"SELECT 'no mask mean value' AS title, "
18684"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
18685"regprocedure) AS rast\n"
18686"FROM foo\n"
18687"UNION ALL\n"
18688"SELECT 'mask only consider neighbors, exclude center' AS title, "
18689"ST_MapAlgebra(rast,1,'ST_mean4ma(double precision[], int[], text[])'::"
18690"regprocedure,\n"
18691"    '{{1,1,1}, {1,0,1}, {1,1,1}}'::double precision[], false) As rast\n"
18692"FROM foo\n"
18693"\n"
18694"UNION ALL\n"
18695"SELECT 'mask weighted only consider neighbors, exclude center multi otehr "
18696"pixel values by 2' AS title, ST_MapAlgebra(rast,1,'ST_mean4ma(double "
18697"precision[], int[], text[])'::regprocedure,\n"
18698"    '{{2,2,2}, {2,0,2}, {2,2,2}}'::double precision[], true) As rast\n"
18699"FROM foo;"
18700
18701#. Tag: para
18702#: reference_raster.xml:7350
18703#, no-c-format
18704msgid "original"
18705msgstr "original"
18706
18707#. Tag: para
18708#: reference_raster.xml:7364
18709#, no-c-format
18710msgid "no mask mean value (same as having all 1s in mask matrix)"
18711msgstr ""
18712"no mask mean value (マスクなし平均値) (マスク配列に全て1があるのと同じ)"
18713
18714#. Tag: para
18715#: reference_raster.xml:7380
18716#, no-c-format
18717msgid "mask only consider neighbors, exclude center"
18718msgstr ""
18719"mask only consider neighbors, exclude center (近隣セルのみ注目し、中心セルを"
18720"除くマスク)"
18721
18722#. Tag: para
18723#: reference_raster.xml:7394
18724#, no-c-format
18725msgid ""
18726"mask weighted only consider neighbors, exclude center multi other pixel "
18727"values by 2"
18728msgstr ""
18729"mask weighted only consider neighbors, exclude center multi other pixel "
18730"values by 2 (近隣のみ考慮に入れて中心を除き、2を掛けるウェイトマスク)"
18731
18732#. Tag: para
18733#: reference_raster.xml:7411
18734#, no-c-format
18735msgid ""
18736", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra_expr\"/>"
18737msgstr ""
18738", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra_expr\"/>"
18739
18740#. Tag: refname
18741#: reference_raster.xml:7422
18742#, fuzzy, no-c-format
18743msgid "ST_MapAlgebra (expression version)"
18744msgstr "ST_MapAlgebraExpr"
18745
18746#. Tag: refpurpose
18747#: reference_raster.xml:7423
18748#, no-c-format
18749msgid ""
18750"<refpurpose>Expression version - Returns a one-band raster given one or two "
18751"input rasters, band indexes and one or more user-specified SQL expressions.</"
18752"refpurpose>"
18753msgstr ""
18754"<refpurpose>数式版 - 一つか二つの入力ラスタ、バンド番号、一つ以上のユーザ定義"
18755"SQL式から一つのバンドを持つラスタを返します。</refpurpose>"
18756
18757#. Tag: funcsynopsis
18758#: reference_raster.xml:7429
18759#, no-c-format
18760msgid ""
18761"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18762"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
18763"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
18764"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
18765"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18766"<paramdef choice=\"opt\"><type>double precision </type> "
18767"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
18768"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18769"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
18770"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
18771"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18772"<paramdef choice=\"opt\"><type>double precision </type> "
18773"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
18774"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18775"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
18776"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
18777"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
18778"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
18779"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18780"<paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=NULL</"
18781"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
18782"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
18783"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
18784"paramdef> <paramdef choice=\"opt\"><type>text </type> "
18785"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
18786"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
18787"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
18788"<function>ST_MapAlgebra</function></funcdef> <paramdef><type>raster </type> "
18789"<parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
18790"<parameter>rast2</parameter></paramdef> <paramdef><type>text </type> "
18791"<parameter>expression</parameter></paramdef> <paramdef choice=\"opt"
18792"\"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef> "
18793"<paramdef choice=\"opt\"><type>text </type> "
18794"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
18795"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
18796"paramdef> <paramdef choice=\"opt\"><type>text </type> "
18797"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
18798"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
18799"parameter></paramdef> </funcprototype>"
18800msgstr ""
18801"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18802"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
18803"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
18804"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
18805"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18806"<paramdef choice=\"opt\"><type>double precision </type> "
18807"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
18808"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18809"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
18810"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
18811"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18812"<paramdef choice=\"opt\"><type>double precision </type> "
18813"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
18814"<funcprototype> <funcdef>raster <function>ST_MapAlgebra</function></funcdef> "
18815"<paramdef><type>raster </type> <parameter>rast1</parameter></paramdef> "
18816"<paramdef><type>integer </type> <parameter>nband1</parameter></paramdef> "
18817"<paramdef><type>raster </type> <parameter>rast2</parameter></paramdef> "
18818"<paramdef><type>integer </type> <parameter>nband2</parameter></paramdef> "
18819"<paramdef><type>text </type> <parameter>expression</parameter></paramdef> "
18820"<paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype=NULL</"
18821"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
18822"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
18823"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
18824"paramdef> <paramdef choice=\"opt\"><type>text </type> "
18825"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
18826"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
18827"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
18828"<function>ST_MapAlgebra</function></funcdef> <paramdef><type>raster </type> "
18829"<parameter>rast1</parameter></paramdef> <paramdef><type>raster </type> "
18830"<parameter>rast2</parameter></paramdef> <paramdef><type>text </type> "
18831"<parameter>expression</parameter></paramdef> <paramdef choice=\"opt"
18832"\"><type>text </type> <parameter>pixeltype=NULL</parameter></paramdef> "
18833"<paramdef choice=\"opt\"><type>text </type> "
18834"<parameter>extenttype=INTERSECTION</parameter></paramdef> <paramdef choice="
18835"\"opt\"><type>text </type> <parameter>nodata1expr=NULL</parameter></"
18836"paramdef> <paramdef choice=\"opt\"><type>text </type> "
18837"<parameter>nodata2expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
18838"\"><type>double precision </type> <parameter>nodatanodataval=NULL</"
18839"parameter></paramdef> </funcprototype>"
18840
18841#. Tag: para
18842#: reference_raster.xml:7480
18843#, no-c-format
18844msgid ""
18845"<para>Expression version - Returns a one-band raster given one or two input "
18846"rasters, band indexes and one or more user-specified SQL expressions.</para>"
18847msgstr ""
18848"<para>数式版 - 一つか二つの入力ラスタ、バンド番号、一つ以上のユーザ定義SQL式"
18849"から一つのバンドを持つラスタを返します。</para>"
18850
18851#. Tag: title
18852#: reference_raster.xml:7488
18853#, no-c-format
18854msgid "Description: Variants 1 and 2 (one raster)"
18855msgstr "説明: 一つ目の形式と二つ目の形式 (一つのラスタ)"
18856
18857#. Tag: para
18858#: reference_raster.xml:7490
18859#, no-c-format
18860msgid ""
18861"Creates a new one band raster formed by applying a valid PostgreSQL "
18862"algebraic operation defined by the <varname>expression</varname> on the "
18863"input raster (<varname>rast</varname>). If <varname>nband</varname> is not "
18864"provided, band 1 is assumed. The new raster will have the same georeference, "
18865"width, and height as the original raster but will only have one band."
18866msgstr ""
18867"<varname>expression</varname>で定義された妥当なPostgreSQL代数演算を入力ラス"
18868"タ (<varname>rast</varname>)に適用して、一つのバンドを持つラスタを生成しま"
18869"す。<varname>nband</varname>が指定されない場合には、1番バンドと仮定します。新"
18870"しいラスタは、元のラスタと同じ地理参照、幅、高さになりますが、バンドは一つだ"
18871"けとなります。"
18872
18873#. Tag: para
18874#: reference_raster.xml:7494 reference_raster.xml:7696
18875#: reference_raster.xml:8144
18876#, no-c-format
18877msgid ""
18878"If <varname>pixeltype</varname> is passed in, then the new raster will have "
18879"a band of that pixeltype. If pixeltype is passed NULL, then the new raster "
18880"band will have the same pixeltype as the input <varname>rast</varname> band."
18881msgstr ""
18882"<varname>pixeltype</varname>が渡された場合には、新しいラスタのバンドは、その"
18883"ピクセルタイプになります。pixeltypeにNULLが渡された場合には、新しいラスタは入"
18884"力<varname>rast</varname>のバンドのピクセルタイプと同じになります。"
18885
18886#. Tag: para
18887#: reference_raster.xml:7499
18888#, no-c-format
18889msgid "Keywords permitted for <varname>expression</varname>"
18890msgstr "<varname>expression</varname>のキーワードは次の通りです。"
18891
18892#. Tag: para
18893#: reference_raster.xml:7502
18894#, no-c-format
18895msgid "<varname>[rast]</varname> - Pixel value of the pixel of interest"
18896msgstr "<varname>[rast]</varname> - 演算対象ピクセルの値"
18897
18898#. Tag: para
18899#: reference_raster.xml:7505
18900#, no-c-format
18901msgid "<varname>[rast.val]</varname> - Pixel value of the pixel of interest"
18902msgstr "<varname>[rast.val]</varname> - 演算対象ピクセルの値"
18903
18904#. Tag: para
18905#: reference_raster.xml:7508
18906#, no-c-format
18907msgid ""
18908"<varname>[rast.x]</varname> - 1-based pixel column of the pixel of interest"
18909msgstr "<varname>[rast.x]</varname> - 演算対象ピクセルの列 (1始まり)"
18910
18911#. Tag: para
18912#: reference_raster.xml:7511
18913#, no-c-format
18914msgid ""
18915"<varname>[rast.y]</varname> - 1-based pixel row of the pixel of interest"
18916msgstr "<varname>[rast.y]</varname> - 演算対象ピクセルの行 (1始まり)"
18917
18918#. Tag: title
18919#: reference_raster.xml:7520
18920#, no-c-format
18921msgid "Description: Variants 3 and 4 (two raster)"
18922msgstr "説明: 三つ目と四つ目の形式 (二つのラスタ)"
18923
18924#. Tag: para
18925#: reference_raster.xml:7522 reference_raster.xml:7816
18926#, no-c-format
18927msgid ""
18928"Creates a new one band raster formed by applying a valid PostgreSQL "
18929"algebraic operation to the two bands defined by the <varname>expression</"
18930"varname> on the two input raster bands <varname>rast1</varname>, "
18931"(<varname>rast2</varname>). If no <varname>band1</varname>, <varname>band2</"
18932"varname> is specified band 1 is assumed. The resulting raster will be "
18933"aligned (scale, skew and pixel corners) on the grid defined by the first "
18934"raster. The resulting raster will have the extent defined by the "
18935"<varname>extenttype</varname> parameter."
18936msgstr ""
18937"<varname>expression</varname>で定義された妥当な二つのバンドへのPostgreSQL代数"
18938"演算を入力ラスタ (rast1, rast2)に適用して、一つのバンドを持つラスタを生成しま"
18939"す。nband1, nband2が指定されない場合には、1番バンドと仮定します。新しいラスタ"
18940"は、一つ目のラスタと同じアラインメント (スケール、スキュー、ピクセル隅)を持ち"
18941"ます。新しいラスタは、<varname>extenttype</varname>引数で定義される範囲になり"
18942"ます。"
18943
18944#. Tag: term
18945#: reference_raster.xml:7528 reference_raster.xml:7822
18946#, no-c-format
18947msgid "expression"
18948msgstr "expression"
18949
18950#. Tag: para
18951#: reference_raster.xml:7530 reference_raster.xml:7824
18952#, no-c-format
18953msgid ""
18954"A PostgreSQL algebraic expression involving the two rasters and PostgreSQL "
18955"defined functions/operators that will define the pixel value when pixels "
18956"intersect. e.g. (([rast1] + [rast2])/2.0)::integer"
18957msgstr ""
18958"二つのラスタとPostgreSQL定義済み関数/演算子を含むPostgreSQL代数式です。関数と"
18959"演算子は、二つのピクセルがインタセクトするピクセルの値を定めます。たとえば"
18960"(([rast1] + [rast2])/2.0)::integerといったふうになります。"
18961
18962#. Tag: para
18963#: reference_raster.xml:7538 reference_raster.xml:7833
18964#, no-c-format
18965msgid ""
18966"The resulting pixel type of the output raster. Must be one listed in <xref "
18967"linkend=\"RT_ST_BandPixelType\"/>, left out or set to NULL. If not passed in "
18968"or set to NULL, will default to the pixeltype of the first raster."
18969msgstr ""
18970"出力ラスタのピクセルタイプです。必ず<xref linkend=\"RT_ST_BandPixelType\"/>に"
18971"挙げられたものの一つになるか、省略されるか、NULLに設定されます。引数として渡"
18972"されないかNULLが渡された場合には、一つ目のラスタのピクセルタイプになります。"
18973
18974#. Tag: para
18975#: reference_raster.xml:7546 reference_raster.xml:7842
18976#, no-c-format
18977msgid "Controls the extent of resulting raster"
18978msgstr "新しいラスタの範囲を制御します。"
18979
18980#. Tag: para
18981#: reference_raster.xml:7552 reference_raster.xml:7845
18982#, no-c-format
18983msgid ""
18984"<varname>INTERSECTION</varname> - The extent of the new raster is the "
18985"intersection of the two rasters. This is the default."
18986msgstr ""
18987"<varname>INTERSECTION</varname> - 新しいラスタの範囲は二つのラスタのインタセ"
18988"クトした領域です。これがデフォルトです。"
18989
18990#. Tag: para
18991#: reference_raster.xml:7557 reference_raster.xml:7850
18992#, no-c-format
18993msgid ""
18994"<varname>UNION</varname> - The extent of the new raster is the union of the "
18995"two rasters."
18996msgstr ""
18997"<varname>UNION</varname> - 新しいラスタの範囲は二つのラスタの結合です。"
18998
18999#. Tag: para
19000#: reference_raster.xml:7562 reference_raster.xml:7855
19001#, no-c-format
19002msgid ""
19003"<varname>FIRST</varname> - The extent of the new raster is the same as the "
19004"one of the first raster."
19005msgstr ""
19006"<varname>FIRST</varname> - 新しいラスタの範囲は一つ目のラスタと同じです。"
19007
19008#. Tag: para
19009#: reference_raster.xml:7567 reference_raster.xml:7860
19010#, no-c-format
19011msgid ""
19012"<varname>SECOND</varname> - The extent of the new raster is the same as the "
19013"one of the second raster."
19014msgstr ""
19015"<varname>SECOND</varname> - 新しいラスタの範囲は二つ目のラスタと同じです。"
19016
19017#. Tag: term
19018#: reference_raster.xml:7575 reference_raster.xml:7869
19019#, no-c-format
19020msgid "nodata1expr"
19021msgstr "nodata1expr"
19022
19023#. Tag: para
19024#: reference_raster.xml:7577 reference_raster.xml:7871
19025#, no-c-format
19026msgid ""
19027"An algebraic expression involving only <varname>rast2</varname> or a "
19028"constant that defines what to return when pixels of <varname>rast1</varname> "
19029"are nodata values and spatially corresponding rast2 pixels have values."
19030msgstr ""
19031"<varname>rast1</varname>がNODATA値で、特にrast2ピクセルに値がある時に、"
19032"<varname>rast2</varname>だけを返すか返すべき値を定義する定数を含む代数式で"
19033"す。"
19034
19035#. Tag: term
19036#: reference_raster.xml:7583 reference_raster.xml:7878
19037#, no-c-format
19038msgid "nodata2expr"
19039msgstr "nodata2expr"
19040
19041#. Tag: para
19042#: reference_raster.xml:7585 reference_raster.xml:7880
19043#, no-c-format
19044msgid ""
19045"An algebraic expression involving only <varname>rast1</varname> or a "
19046"constant that defines what to return when pixels of <varname>rast2</varname> "
19047"are nodata values and spatially corresponding rast1 pixels have values."
19048msgstr ""
19049"<varname>rast2</varname>がNODATA値で、特にrast2ピクセルに値がある時に、"
19050"<varname>rast1</varname>だけを返すか返すべき値を定義する定数を含む代数式で"
19051"す。"
19052
19053#. Tag: term
19054#: reference_raster.xml:7591 reference_raster.xml:7887
19055#, no-c-format
19056msgid "nodatanodataval"
19057msgstr "nodatanodataval"
19058
19059#. Tag: para
19060#: reference_raster.xml:7593 reference_raster.xml:7889
19061#, no-c-format
19062msgid ""
19063"A numeric constant to return when spatially corresponding rast1 and rast2 "
19064"pixels are both nodata values."
19065msgstr "rast1とrast2のピクセルの両方がNOADTA値になる場合に返すべき定数です。"
19066
19067#. Tag: para
19068#: reference_raster.xml:7601
19069#, no-c-format
19070msgid ""
19071"Keywords permitted in <varname>expression</varname>, <varname>nodata1expr</"
19072"varname> and <varname>nodata2expr</varname>"
19073msgstr ""
19074"有効な<varname>expression</varname>, <varname>nodata1expr</varname>, "
19075"<varname>nodata2expr</varname>のキーワードは次の通りです。"
19076
19077#. Tag: para
19078#: reference_raster.xml:7604
19079#, no-c-format
19080msgid ""
19081"<varname>[rast1]</varname> - Pixel value of the pixel of interest from "
19082"<varname>rast1</varname>"
19083msgstr ""
19084"<varname>[rast1]</varname> - <varname>rast1</varname>の演算対象ピクセルの値"
19085
19086#. Tag: para
19087#: reference_raster.xml:7607
19088#, no-c-format
19089msgid ""
19090"<varname>[rast1.val]</varname> - Pixel value of the pixel of interest from "
19091"<varname>rast1</varname>"
19092msgstr ""
19093"<varname>[rast1.val]</varname> - <varname>rast1</varname>の演算対象ピクセルの"
19094"値"
19095
19096#. Tag: para
19097#: reference_raster.xml:7610
19098#, no-c-format
19099msgid ""
19100"<varname>[rast1.x]</varname> - 1-based pixel column of the pixel of interest "
19101"from <varname>rast1</varname>"
19102msgstr ""
19103"<varname>[rast1.x]</varname> - <varname>rast1</varname>の演算対象ピクセルの"
19104"列 (1始まり)"
19105
19106#. Tag: para
19107#: reference_raster.xml:7613
19108#, no-c-format
19109msgid ""
19110"<varname>[rast1.y]</varname> - 1-based pixel row of the pixel of interest "
19111"from <varname>rast1</varname>"
19112msgstr ""
19113"<varname>[rast1.y]</varname> - <varname>rast1</varname>の演算対象ピクセルの"
19114"行 (1始まり)"
19115
19116#. Tag: para
19117#: reference_raster.xml:7616
19118#, no-c-format
19119msgid ""
19120"<varname>[rast2]</varname> - Pixel value of the pixel of interest from "
19121"<varname>rast2</varname>"
19122msgstr ""
19123"<varname>[rast2]</varname> - <varname>rast2</varname>の演算対象ピクセルの値"
19124
19125#. Tag: para
19126#: reference_raster.xml:7619
19127#, no-c-format
19128msgid ""
19129"<varname>[rast2.val]</varname> - Pixel value of the pixel of interest from "
19130"<varname>rast2</varname>"
19131msgstr ""
19132"<varname>[rast2.val]</varname> - <varname>rast2</varname>の演算対象ピクセルの"
19133"値"
19134
19135#. Tag: para
19136#: reference_raster.xml:7622
19137#, no-c-format
19138msgid ""
19139"<varname>[rast2.x]</varname> - 1-based pixel column of the pixel of interest "
19140"from <varname>rast2</varname>"
19141msgstr ""
19142"<varname>[rast2.x]</varname> - <varname>rast2</varname>の演算対象ピクセルの"
19143"列 (1始まり)"
19144
19145#. Tag: para
19146#: reference_raster.xml:7625
19147#, no-c-format
19148msgid ""
19149"<varname>[rast2.y]</varname> - 1-based pixel row of the pixel of interest "
19150"from <varname>rast2</varname>"
19151msgstr ""
19152"<varname>[rast2.y]</varname> - <varname>rast2</varname>の演算対象ピクセルの"
19153"行 (1始まり)"
19154
19155#. Tag: title
19156#: reference_raster.xml:7633
19157#, no-c-format
19158msgid "Examples: Variants 1 and 2"
19159msgstr "例: 一つ目の形式と二つ目の形式"
19160
19161#. Tag: programlisting
19162#: reference_raster.xml:7635
19163#, no-c-format
19164msgid ""
19165"WITH foo AS (\n"
19166"        SELECT ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 0, 0, 0), "
19167"'32BF'::text, 1, -1) AS rast\n"
19168")\n"
19169"SELECT\n"
19170"        ST_MapAlgebra(rast, 1, NULL, 'ceil([rast]*[rast.x]/[rast.y]+[rast."
19171"val])')\n"
19172"FROM foo;"
19173msgstr ""
19174"WITH foo AS (\n"
19175"        SELECT ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 1, 1, 0, 0, 0), "
19176"'32BF'::text, 1, -1) AS rast\n"
19177")\n"
19178"SELECT\n"
19179"        ST_MapAlgebra(rast, 1, NULL, 'ceil([rast]*[rast.x]/[rast.y]+[rast."
19180"val])')\n"
19181"FROM foo;"
19182
19183#. Tag: title
19184#: reference_raster.xml:7639
19185#, no-c-format
19186msgid "Examples: Variant 3 and 4"
19187msgstr "例: 三つ目の形式と四つ目の形式"
19188
19189#. Tag: programlisting
19190#: reference_raster.xml:7641
19191#, no-c-format
19192msgid ""
19193"WITH foo AS (\n"
19194"        SELECT 1 AS rid, "
19195"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
19196"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI'::text, 100, 0) AS rast "
19197"UNION ALL\n"
19198"        SELECT 2 AS rid, "
19199"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
19200"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI'::text, 300, 0) AS rast\n"
19201")\n"
19202"SELECT\n"
19203"        ST_MapAlgebra(\n"
19204"                t1.rast, 2,\n"
19205"                t2.rast, 1,\n"
19206"                '([rast2] + [rast1.val]) / 2'\n"
19207"        ) AS rast\n"
19208"FROM foo t1\n"
19209"CROSS JOIN foo t2\n"
19210"WHERE t1.rid = 1\n"
19211"        AND t2.rid = 2;"
19212msgstr ""
19213"WITH foo AS (\n"
19214"        SELECT 1 AS rid, "
19215"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 0, 1, -1, 0, 0, "
19216"0), 1, '16BUI', 1, 0), 2, '8BUI', 10, 0), 3, '32BUI'::text, 100, 0) AS rast "
19217"UNION ALL\n"
19218"        SELECT 2 AS rid, "
19219"ST_AddBand(ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(2, 2, 0, 1, 1, -1, 0, 0, "
19220"0), 1, '16BUI', 2, 0), 2, '8BUI', 20, 0), 3, '32BUI'::text, 300, 0) AS rast\n"
19221")\n"
19222"SELECT\n"
19223"        ST_MapAlgebra(\n"
19224"                t1.rast, 2,\n"
19225"                t2.rast, 1,\n"
19226"                '([rast2] + [rast1.val]) / 2'\n"
19227"        ) AS rast\n"
19228"FROM foo t1\n"
19229"CROSS JOIN foo t2\n"
19230"WHERE t1.rid = 1\n"
19231"        AND t2.rid = 2;"
19232
19233#. Tag: para
19234#: reference_raster.xml:7647
19235#, no-c-format
19236msgid ", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra\"/>"
19237msgstr ""
19238", <xref linkend=\"RT_ST_Union\"/>, <xref linkend=\"RT_ST_MapAlgebra\"/>"
19239
19240#. Tag: refname
19241#: reference_raster.xml:7657 reference_raster.xml:7771
19242#, no-c-format
19243msgid "ST_MapAlgebraExpr"
19244msgstr "ST_MapAlgebraExpr"
19245
19246#. Tag: refpurpose
19247#: reference_raster.xml:7658
19248#, no-c-format
19249msgid ""
19250"1 raster band version: Creates a new one band raster formed by applying a "
19251"valid PostgreSQL algebraic operation on the input raster band and of "
19252"pixeltype provided. Band 1 is assumed if no band is specified."
19253msgstr ""
19254"1バンド版: 入力バンドに対する妥当なPostgreSQL代数演算で形成された、指定したピ"
19255"クセルタイプとなる1バンドラスタを生成します。バンドを指定しない場合には、1番"
19256"を仮定します。"
19257
19258#. Tag: funcsynopsis
19259#: reference_raster.xml:7662
19260#, no-c-format
19261msgid ""
19262"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19263"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
19264"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
19265"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
19266"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19267"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
19268"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
19269"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19270"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
19271"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
19272"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19273"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
19274"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
19275msgstr ""
19276"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19277"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
19278"paramdef> <paramdef><type>integer </type> <parameter>band</parameter></"
19279"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
19280"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19281"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
19282"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
19283"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19284"funcdef> <paramdef><type>raster </type> <parameter>rast</parameter></"
19285"paramdef> <paramdef><type>text </type> <parameter>pixeltype</parameter></"
19286"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19287"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
19288"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype>"
19289
19290#. Tag: para
19291#: reference_raster.xml:7687 reference_raster.xml:7811
19292#, no-c-format
19293msgid ""
19294"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra_expr\"/> "
19295"instead."
19296msgstr ""
19297"は2.1.0で非推奨になりました。代わりに<xref linkend=\"RT_ST_MapAlgebra_expr\"/"
19298"> を使います。"
19299
19300#. Tag: para
19301#: reference_raster.xml:7692
19302#, no-c-format
19303msgid ""
19304"Creates a new one band raster formed by applying a valid PostgreSQL "
19305"algebraic operation defined by the <varname>expression</varname> on the "
19306"input raster (<varname>rast</varname>). If no <varname>band</varname> is "
19307"specified band 1 is assumed. The new raster will have the same georeference, "
19308"width, and height as the original raster but will only have one band."
19309msgstr ""
19310"入力ラスタ (<varname>rast</varname>)に対して<varname>expression</varname>で定"
19311"義される妥当なPostgreSQL代数演算で形成されるラスタを返します。生成されるラス"
19312"タは指定したピクセルタイプとなる1バンドラスタです。<varname>band</varname>を"
19313"指定しない場合には、1番と仮定します。新しいラスタは、元のラスタと同じ地理参"
19314"照、幅、高さを持ちますが、一つのバンドしか持ちません。"
19315
19316#. Tag: para
19317#: reference_raster.xml:7700
19318#, no-c-format
19319msgid ""
19320"In the expression you can use the term <varname>[rast]</varname> to refer to "
19321"the pixel value of the original band, <varname>[rast.x]</varname> to refer "
19322"to the 1-based pixel column index, <varname>[rast.y]</varname> to refer to "
19323"the 1-based pixel row index."
19324msgstr ""
19325"数式の中では、<varname>[rast]</varname>で元のバンドのピクセル値を、"
19326"<varname>[rast.x]</varname>で1始まりの列番号、<varname>[rast.y]</varname>で1"
19327"始まりの行番号を、それぞれ参照することができます。"
19328
19329#. Tag: para
19330#: reference_raster.xml:7710 reference_raster.xml:7909
19331#: reference_raster.xml:8173
19332#, no-c-format
19333msgid ""
19334"Create a new 1 band raster from our original that is a function of modulo 2 "
19335"of the original raster band."
19336msgstr ""
19337"元のラスタから1バンドラスタを生成します。元のラスタバンドの値について2で割っ"
19338"た余りが入ります。"
19339
19340#. Tag: programlisting
19341#: reference_raster.xml:7711
19342#, no-c-format
19343msgid ""
19344"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
19345"UPDATE dummy_rast SET map_rast = ST_MapAlgebraExpr(rast,NULL,'mod([rast]::"
19346"numeric,2)') WHERE rid = 2;\n"
19347"\n"
19348"SELECT\n"
19349"        ST_Value(rast,1,i,j) As origval,\n"
19350"        ST_Value(map_rast, 1, i, j) As mapval\n"
19351"FROM dummy_rast\n"
19352"CROSS JOIN generate_series(1, 3) AS i\n"
19353"CROSS JOIN generate_series(1,3) AS j\n"
19354"WHERE rid = 2;\n"
19355"\n"
19356" origval | mapval\n"
19357"---------+--------\n"
19358"     253 |      1\n"
19359"     254 |      0\n"
19360"     253 |      1\n"
19361"     253 |      1\n"
19362"     254 |      0\n"
19363"     254 |      0\n"
19364"     250 |      0\n"
19365"     254 |      0\n"
19366"     254 |      0"
19367msgstr ""
19368"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
19369"UPDATE dummy_rast SET map_rast = ST_MapAlgebraExpr(rast,NULL,'mod([rast]::"
19370"numeric,2)') WHERE rid = 2;\n"
19371"\n"
19372"SELECT\n"
19373"        ST_Value(rast,1,i,j) As origval,\n"
19374"        ST_Value(map_rast, 1, i, j) As mapval\n"
19375"FROM dummy_rast\n"
19376"CROSS JOIN generate_series(1, 3) AS i\n"
19377"CROSS JOIN generate_series(1,3) AS j\n"
19378"WHERE rid = 2;\n"
19379"\n"
19380" origval | mapval\n"
19381"---------+--------\n"
19382"     253 |      1\n"
19383"     254 |      0\n"
19384"     253 |      1\n"
19385"     253 |      1\n"
19386"     254 |      0\n"
19387"     254 |      0\n"
19388"     250 |      0\n"
19389"     254 |      0\n"
19390"     254 |      0"
19391
19392#. Tag: para
19393#: reference_raster.xml:7713
19394#, no-c-format
19395msgid ""
19396"Create a new 1 band raster of pixel-type 2BUI from our original that is "
19397"reclassified and set the nodata value to be 0."
19398msgstr ""
19399"ピクセルタイプが2BUIの1バンドラスタを生成します。元のラスタに対して再分類を"
19400"行った値が入り、NODATA値を0に設定します。"
19401
19402#. Tag: programlisting
19403#: reference_raster.xml:7714
19404#, no-c-format
19405msgid ""
19406"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
19407"UPDATE dummy_rast SET\n"
19408"        map_rast2 = ST_MapAlgebraExpr(rast,'2BUI'::text,'CASE WHEN [rast] "
19409"BETWEEN 100 and 250 THEN 1 WHEN [rast] = 252 THEN 2 WHEN [rast] BETWEEN 253 "
19410"and 254 THEN 3 ELSE 0 END'::text, '0')\n"
19411"WHERE rid = 2;\n"
19412"\n"
19413"SELECT DISTINCT\n"
19414"        ST_Value(rast,1,i,j) As origval,\n"
19415"        ST_Value(map_rast2, 1, i, j) As mapval\n"
19416"FROM dummy_rast\n"
19417"CROSS JOIN generate_series(1, 5) AS i\n"
19418"CROSS JOIN generate_series(1,5) AS j\n"
19419"WHERE rid = 2;\n"
19420"\n"
19421" origval | mapval\n"
19422"---------+--------\n"
19423"     249 |      1\n"
19424"     250 |      1\n"
19425"     251 |\n"
19426"     252 |      2\n"
19427"     253 |      3\n"
19428"     254 |      3\n"
19429"\n"
19430"SELECT\n"
19431"        ST_BandPixelType(map_rast2) As b1pixtyp\n"
19432"FROM dummy_rast\n"
19433"WHERE rid = 2;\n"
19434"\n"
19435" b1pixtyp\n"
19436"----------\n"
19437" 2BUI"
19438msgstr ""
19439"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
19440"UPDATE dummy_rast SET\n"
19441"        map_rast2 = ST_MapAlgebraExpr(rast,'2BUI'::text,'CASE WHEN [rast] "
19442"BETWEEN 100 and 250 THEN 1 WHEN [rast] = 252 THEN 2 WHEN [rast] BETWEEN 253 "
19443"and 254 THEN 3 ELSE 0 END'::text, '0')\n"
19444"WHERE rid = 2;\n"
19445"\n"
19446"SELECT DISTINCT\n"
19447"        ST_Value(rast,1,i,j) As origval,\n"
19448"        ST_Value(map_rast2, 1, i, j) As mapval\n"
19449"FROM dummy_rast\n"
19450"CROSS JOIN generate_series(1, 5) AS i\n"
19451"CROSS JOIN generate_series(1,5) AS j\n"
19452"WHERE rid = 2;\n"
19453"\n"
19454" origval | mapval\n"
19455"---------+--------\n"
19456"     249 |      1\n"
19457"     250 |      1\n"
19458"     251 |\n"
19459"     252 |      2\n"
19460"     253 |      3\n"
19461"     254 |      3\n"
19462"\n"
19463"SELECT\n"
19464"        ST_BandPixelType(map_rast2) As b1pixtyp\n"
19465"FROM dummy_rast\n"
19466"WHERE rid = 2;\n"
19467"\n"
19468" b1pixtyp\n"
19469"----------\n"
19470" 2BUI"
19471
19472#. Tag: para
19473#: reference_raster.xml:7728
19474#, no-c-format
19475msgid "original (column rast_view)"
19476msgstr "元のラスタ (rast_viewカラム)"
19477
19478#. Tag: para
19479#: reference_raster.xml:7742 reference_raster.xml:8196
19480#, no-c-format
19481msgid "rast_view_ma"
19482msgstr "rast_view_ma"
19483
19484#. Tag: para
19485#: reference_raster.xml:7753 reference_raster.xml:8204
19486#, no-c-format
19487msgid ""
19488"Create a new 3 band raster same pixel type from our original 3 band raster "
19489"with first band altered by map algebra and remaining 2 bands unaltered."
19490msgstr ""
19491"新しいバンドを三つ持つラスタを生成します。元のバンドを三つ持つラスタと同じピ"
19492"クセルタイプです。1番バンドは地図代数関数によって変更され、残りの二つのバンド"
19493"は値が代わりません。"
19494
19495#. Tag: programlisting
19496#: reference_raster.xml:7754
19497#, no-c-format
19498msgid ""
19499"SELECT\n"
19500"        ST_AddBand(\n"
19501"                ST_AddBand(\n"
19502"                        ST_AddBand(\n"
19503"                                ST_MakeEmptyRaster(rast_view),\n"
19504"                                ST_MapAlgebraExpr(rast_view,1,"
19505"NULL,'tan([rast])*[rast]')\n"
19506"                        ),\n"
19507"                        ST_Band(rast_view,2)\n"
19508"                ),\n"
19509"                ST_Band(rast_view, 3)\n"
19510"        )  As rast_view_ma\n"
19511"FROM wind\n"
19512"WHERE rid=167;"
19513msgstr ""
19514"SELECT\n"
19515"        ST_AddBand(\n"
19516"                ST_AddBand(\n"
19517"                        ST_AddBand(\n"
19518"                                ST_MakeEmptyRaster(rast_view),\n"
19519"                                ST_MapAlgebraExpr(rast_view,1,"
19520"NULL,'tan([rast])*[rast]')\n"
19521"                        ),\n"
19522"                        ST_Band(rast_view,2)\n"
19523"                ),\n"
19524"                ST_Band(rast_view, 3)\n"
19525"        )  As rast_view_ma\n"
19526"FROM wind\n"
19527"WHERE rid=167;"
19528
19529#. Tag: para
19530#: reference_raster.xml:7759
19531#, no-c-format
19532msgid ""
19533", <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref linkend="
19534"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, <xref "
19535"linkend=\"RT_ST_Value\"/>"
19536msgstr ""
19537", <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref linkend="
19538"\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, <xref "
19539"linkend=\"RT_ST_Value\"/>"
19540
19541#. Tag: refpurpose
19542#: reference_raster.xml:7772
19543#, no-c-format
19544msgid ""
19545"2 raster band version: Creates a new one band raster formed by applying a "
19546"valid PostgreSQL algebraic operation on the two input raster bands and of "
19547"pixeltype provided. band 1 of each raster is assumed if no band numbers are "
19548"specified. The resulting raster will be aligned (scale, skew and pixel "
19549"corners) on the grid defined by the first raster and have its extent defined "
19550"by the \"extenttype\" parameter. Values for \"extenttype\" can be: "
19551"INTERSECTION, UNION, FIRST, SECOND."
19552msgstr ""
19553"2バンド版: 二つの入力バンドに対する妥当なPostgreSQL代数演算で形成された、指定"
19554"したピクセルタイプとなる1バンドラスタを生成します。バンドを指定しない場合に"
19555"は、どちらも1番と仮定します。結果ラスタは、一つ目のラスタのアラインメント (ス"
19556"ケール、スキュー、ピクセル角位置)にあわされます。範囲は\"extenttype\"引数で定"
19557"義されます。取りうる\"extenttype\"の値はINTERSECTION, UNION, FIRST, SECONDで"
19558"す。"
19559
19560#. Tag: funcsynopsis
19561#: reference_raster.xml:7778
19562#, no-c-format
19563msgid ""
19564"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19565"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
19566"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
19567"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19568"paramdef> <paramdef choice=\"opt\"><type>text </type> "
19569"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
19570"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
19571"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
19572"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
19573"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
19574"<paramdef choice=\"opt\"><type>double precision </type> "
19575"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype> "
19576"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19577"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
19578"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
19579"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
19580"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
19581"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19582"paramdef> <paramdef choice=\"opt\"><type>text </type> "
19583"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
19584"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
19585"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
19586"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
19587"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
19588"<paramdef choice=\"opt\"><type>double precision </type> "
19589"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype>"
19590msgstr ""
19591"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19592"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
19593"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
19594"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19595"paramdef> <paramdef choice=\"opt\"><type>text </type> "
19596"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
19597"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
19598"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
19599"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
19600"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
19601"<paramdef choice=\"opt\"><type>double precision </type> "
19602"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype> "
19603"<funcprototype> <funcdef>raster <function>ST_MapAlgebraExpr</function></"
19604"funcdef> <paramdef><type>raster </type> <parameter>rast1</parameter></"
19605"paramdef> <paramdef><type>integer </type> <parameter>band1</parameter></"
19606"paramdef> <paramdef><type>raster </type> <parameter>rast2</parameter></"
19607"paramdef> <paramdef><type>integer </type> <parameter>band2</parameter></"
19608"paramdef> <paramdef><type>text </type> <parameter>expression</parameter></"
19609"paramdef> <paramdef choice=\"opt\"><type>text </type> "
19610"<parameter>pixeltype=same_as_rast1_band</parameter></paramdef> <paramdef "
19611"choice=\"opt\"><type>text </type> <parameter>extenttype=INTERSECTION</"
19612"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
19613"<parameter>nodata1expr=NULL</parameter></paramdef> <paramdef choice=\"opt"
19614"\"><type>text </type> <parameter>nodata2expr=NULL</parameter></paramdef> "
19615"<paramdef choice=\"opt\"><type>double precision </type> "
19616"<parameter>nodatanodataval=NULL</parameter></paramdef> </funcprototype>"
19617
19618#. Tag: para
19619#: reference_raster.xml:7896
19620#, no-c-format
19621msgid ""
19622"If <varname>pixeltype</varname> is passed in, then the new raster will have "
19623"a band of that pixeltype. If pixeltype is passed NULL or no pixel type "
19624"specified, then the new raster band will have the same pixeltype as the "
19625"input <varname>rast1</varname> band."
19626msgstr ""
19627"<varname>pixeltype</varname>が渡された場合には、新しいラスタは、指定されたピ"
19628"クセルタイプのバンドを持ちます。pixeltypeとしてNULLが渡されたりピクセルタイプ"
19629"を指定しない場合には、新しいラスタは<varname>rast1</varname>と同じピクセルタ"
19630"イプになります。"
19631
19632#. Tag: para
19633#: reference_raster.xml:7899
19634#, no-c-format
19635msgid ""
19636"Use the term <varname>[rast1.val]</varname> <varname>[rast2.val]</varname> "
19637"to refer to the pixel value of the original raster bands and <varname>[rast1."
19638"x]</varname>, <varname>[rast1.y]</varname> etc. to refer to the column / row "
19639"positions of the pixels."
19640msgstr ""
19641"数式の中で使える語は、元バンドのピクセル値を参照する <varname>[rast1.val]</"
19642"varname>, <varname>[rast2.val]</varname>、1始まりの列/行インデクスを参照する"
19643"<varname>[rast1.x]</varname>, <varname>[rast1.y]</varname>などです。"
19644
19645#. Tag: title
19646#: reference_raster.xml:7907
19647#, no-c-format
19648msgid "Example: 2 Band Intersection and Union"
19649msgstr "例: 2バンドの共有と結合"
19650
19651#. Tag: programlisting
19652#: reference_raster.xml:7910
19653#, no-c-format
19654msgid ""
19655"--Create a cool set of rasters --\n"
19656"DROP TABLE IF EXISTS fun_shapes;\n"
19657"CREATE TABLE fun_shapes(rid serial PRIMARY KEY, fun_name text, rast "
19658"raster);\n"
19659"\n"
19660"-- Insert some cool shapes around Boston in Massachusetts state plane meters "
19661"--\n"
19662"INSERT INTO fun_shapes(fun_name, rast)\n"
19663"VALUES ('ref', ST_AsRaster(ST_MakeEnvelope(235229, 899970, 237229, "
19664"901930,26986),200,200,'8BUI',0,0));\n"
19665"\n"
19666"INSERT INTO fun_shapes(fun_name,rast)\n"
19667"WITH ref(rast) AS (SELECT rast FROM fun_shapes WHERE fun_name = 'ref' )\n"
19668"SELECT 'area' AS fun_name, ST_AsRaster(ST_Buffer(ST_SetSRID(ST_Point(236229, "
19669"900930),26986), 1000),\n"
19670"                        ref.rast,'8BUI', 10, 0) As rast\n"
19671"FROM ref\n"
19672"UNION ALL\n"
19673"SELECT 'rand bubbles',\n"
19674"                        ST_AsRaster(\n"
19675"                        (SELECT ST_Collect(geom)\n"
19676"        FROM (SELECT ST_Buffer(ST_SetSRID(ST_Point(236229 + i*random()*100, "
19677"900930 + j*random()*100),26986), random()*20) As geom\n"
19678"                        FROM generate_series(1,10) As i, "
19679"generate_series(1,10) As j\n"
19680"                        ) As foo ), ref.rast,'8BUI', 200, 0)\n"
19681"FROM ref;\n"
19682"\n"
19683"--map them -\n"
19684"SELECT  ST_MapAlgebraExpr(\n"
19685"                area.rast, bub.rast, '[rast2.val]', '8BUI', 'INTERSECTION', "
19686"'[rast2.val]', '[rast1.val]') As interrast,\n"
19687"                ST_MapAlgebraExpr(\n"
19688"                        area.rast, bub.rast, '[rast2.val]', '8BUI', 'UNION', "
19689"'[rast2.val]', '[rast1.val]') As unionrast\n"
19690"FROM\n"
19691"  (SELECT rast FROM fun_shapes WHERE\n"
19692" fun_name = 'area') As area\n"
19693"CROSS JOIN  (SELECT rast\n"
19694"FROM fun_shapes WHERE\n"
19695" fun_name = 'rand bubbles') As bub"
19696msgstr ""
19697"-- ラスタの集合の生成 --\n"
19698"DROP TABLE IF EXISTS fun_shapes;\n"
19699"CREATE TABLE fun_shapes(rid serial PRIMARY KEY, fun_name text, rast "
19700"raster);\n"
19701"\n"
19702"-- 空間参照系をメートル単位のマサチューセッツ平面として、ボストンのまわりの形"
19703"状を挿入 --\n"
19704"INSERT INTO fun_shapes(fun_name, rast)\n"
19705"VALUES ('ref', ST_AsRaster(ST_MakeEnvelope(235229, 899970, 237229, "
19706"901930,26986),200,200,'8BUI',0,0));\n"
19707"\n"
19708"INSERT INTO fun_shapes(fun_name,rast)\n"
19709"WITH ref(rast) AS (SELECT rast FROM fun_shapes WHERE fun_name = 'ref' )\n"
19710"SELECT 'area' AS fun_name, ST_AsRaster(ST_Buffer(ST_SetSRID(ST_Point(236229, "
19711"900930),26986), 1000),\n"
19712"                        ref.rast,'8BUI', 10, 0) As rast\n"
19713"FROM ref\n"
19714"UNION ALL\n"
19715"SELECT 'rand bubbles',\n"
19716"                        ST_AsRaster(\n"
19717"                        (SELECT ST_Collect(geom)\n"
19718"        FROM (SELECT ST_Buffer(ST_SetSRID(ST_Point(236229 + i*random()*100, "
19719"900930 + j*random()*100),26986), random()*20) As geom\n"
19720"                        FROM generate_series(1,10) As i, "
19721"generate_series(1,10) As j\n"
19722"                        ) As foo ), ref.rast,'8BUI', 200, 0)\n"
19723"FROM ref;\n"
19724"\n"
19725"-- 共有と結合の生成 --\n"
19726"SELECT  ST_MapAlgebraExpr(\n"
19727"                area.rast, bub.rast, '[rast2.val]', '8BUI', 'INTERSECTION', "
19728"'[rast2.val]', '[rast1.val]') As interrast,\n"
19729"                ST_MapAlgebraExpr(\n"
19730"                        area.rast, bub.rast, '[rast2.val]', '8BUI', 'UNION', "
19731"'[rast2.val]', '[rast1.val]') As unionrast\n"
19732"FROM\n"
19733"  (SELECT rast FROM fun_shapes WHERE\n"
19734" fun_name = 'area') As area\n"
19735"CROSS JOIN  (SELECT rast\n"
19736"FROM fun_shapes WHERE\n"
19737" fun_name = 'rand bubbles') As bub"
19738
19739#. Tag: para
19740#: reference_raster.xml:7924
19741#, no-c-format
19742msgid "mapalgebra intersection"
19743msgstr "インタセクションの場合"
19744
19745#. Tag: para
19746#: reference_raster.xml:7938
19747#, no-c-format
19748msgid "map algebra union"
19749msgstr "結合の場合"
19750
19751#. Tag: title
19752#: reference_raster.xml:7951 reference_raster.xml:8290
19753#, no-c-format
19754msgid "Example: Overlaying rasters on a canvas as separate bands"
19755msgstr "例: 別個のバンドとしてキャンバス上にラスタをオーバレイする"
19756
19757#. Tag: programlisting
19758#: reference_raster.xml:7952
19759#, no-c-format
19760msgid ""
19761"-- we use ST_AsPNG to render the image so all single band ones look grey --\n"
19762"WITH mygeoms\n"
19763"    AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(1,5),10) As geom\n"
19764"            UNION ALL\n"
19765"            SELECT 3 AS bnum,\n"
19766"                ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
19767"50)'), 10,'join=bevel') As geom\n"
19768"            UNION ALL\n"
19769"            SELECT 1 As bnum,\n"
19770"                ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 150,150 "
19771"50)'), 5,'join=bevel') As geom\n"
19772"            ),\n"
19773"   -- define our canvas to be 1 to 1 pixel to geometry\n"
19774"   canvas\n"
19775"    AS (SELECT ST_AddBand(ST_MakeEmptyRaster(200,\n"
19776"        200,\n"
19777"        ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0) , '8BUI'::"
19778"text,0) As rast\n"
19779"        FROM (SELECT ST_Extent(geom) As e,\n"
19780"                    Max(ST_SRID(geom)) As srid\n"
19781"                    from mygeoms\n"
19782"                    ) As foo\n"
19783"            ),\n"
19784"   rbands AS (SELECT ARRAY(SELECT ST_MapAlgebraExpr(canvas.rast, "
19785"ST_AsRaster(m.geom, canvas.rast, '8BUI', 100),\n"
19786"                 '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1."
19787"val]') As rast\n"
19788"                FROM mygeoms AS m CROSS JOIN canvas\n"
19789"                ORDER BY m.bnum) As rasts\n"
19790"                )\n"
19791"          SELECT rasts[1] As rast1 , rasts[2] As rast2, rasts[3] As rast3, "
19792"ST_AddBand(\n"
19793"                    ST_AddBand(rasts[1],rasts[2]), rasts[3]) As final_rast\n"
19794"            FROM rbands;"
19795msgstr ""
19796"-- ST_AsPNGを使って1バンドで灰色に見える画像を作成します --\n"
19797"WITH mygeoms \n"
19798"    AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(1,5),10) As geom\n"
19799"            UNION ALL\n"
19800"            SELECT 3 AS bnum, \n"
19801"                ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
19802"50)'), 10,'join=bevel') As geom\n"
19803"            UNION ALL\n"
19804"            SELECT 1 As bnum, \n"
19805"                ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 150,150 "
19806"50)'), 5,'join=bevel') As geom\n"
19807"            ),\n"
19808"   -- ジオメトリと1対1に対応するキャンバスを定義\n"
19809"   canvas\n"
19810"    AS (SELECT ST_AddBand(ST_MakeEmptyRaster(200, \n"
19811"        200, \n"
19812"        ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0) , '8BUI'::"
19813"text,0) As rast\n"
19814"        FROM (SELECT ST_Extent(geom) As e,\n"
19815"                    Max(ST_SRID(geom)) As srid \n"
19816"                    from mygeoms \n"
19817"                    ) As foo\n"
19818"            ),\n"
19819"   rbands AS (SELECT ARRAY(SELECT ST_MapAlgebraExpr(canvas.rast, "
19820"ST_AsRaster(m.geom, canvas.rast, '8BUI', 100),\n"
19821"                 '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1."
19822"val]') As rast\n"
19823"                FROM mygeoms AS m CROSS JOIN canvas\n"
19824"                ORDER BY m.bnum) As rasts\n"
19825"                )\n"
19826"          SELECT rasts[1] As rast1 , rasts[2] As rast2, rasts[3] As rast3, "
19827"ST_AddBand(\n"
19828"                    ST_AddBand(rasts[1],rasts[2]), rasts[3]) As final_rast\n"
19829"            FROM rbands;"
19830
19831#. Tag: para
19832#: reference_raster.xml:7965
19833#, no-c-format
19834msgid "rast1"
19835msgstr "rast1"
19836
19837#. Tag: para
19838#: reference_raster.xml:7978
19839#, no-c-format
19840msgid "rast2"
19841msgstr "rast2"
19842
19843#. Tag: para
19844#: reference_raster.xml:7994
19845#, no-c-format
19846msgid "rast3"
19847msgstr "rast3"
19848
19849#. Tag: para
19850#: reference_raster.xml:8008
19851#, no-c-format
19852msgid "final_rast"
19853msgstr "final_rast"
19854
19855#. Tag: title
19856#: reference_raster.xml:8021
19857#, no-c-format
19858msgid ""
19859"Example: Overlay 2 meter boundary of select parcels over an aerial imagery"
19860msgstr "例: 選択した区画の2メートル幅境界線を空中写真にオーバレイする"
19861
19862#. Tag: programlisting
19863#: reference_raster.xml:8023
19864#, no-c-format
19865msgid ""
19866"-- Create new 3 band raster composed of first 2 clipped bands, and overlay "
19867"of 3rd band with our geometry\n"
19868"-- This query took 3.6 seconds on PostGIS windows 64-bit install\n"
19869"WITH pr AS\n"
19870"-- Note the order of operation: we clip all the rasters to dimensions of our "
19871"region\n"
19872"(SELECT ST_Clip(rast,ST_Expand(geom,50) ) As rast, g.geom\n"
19873"        FROM aerials.o_2_boston AS r INNER JOIN\n"
19874"-- union our parcels of interest so they form a single geometry we can later "
19875"intersect with\n"
19876"                (SELECT ST_Union(ST_Transform(the_geom,26986)) AS geom\n"
19877"                  FROM landparcels WHERE pid IN('0303890000', '0303900000')) "
19878"As g\n"
19879"                ON ST_Intersects(rast::geometry, ST_Expand(g.geom,50))\n"
19880"),\n"
19881"-- we then union the raster shards together\n"
19882"-- ST_Union on raster is kinda of slow but much faster the smaller you can "
19883"get the rasters\n"
19884"-- therefore we want to clip first and then union\n"
19885"prunion AS\n"
19886"(SELECT ST_AddBand(NULL, ARRAY[ST_Union(rast,1),ST_Union(rast,2),"
19887"ST_Union(rast,3)] ) As clipped,geom\n"
19888"FROM pr\n"
19889"GROUP BY geom)\n"
19890"-- return our final raster which is the unioned shard with\n"
19891"-- with the overlay of our parcel boundaries\n"
19892"-- add first 2 bands, then mapalgebra of 3rd band + geometry\n"
19893"SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2])\n"
19894"        , ST_MapAlgebraExpr(ST_Band(clipped,3), "
19895"ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250),\n"
19896"         '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As "
19897"rast\n"
19898"FROM prunion;"
19899msgstr ""
19900"-- 前二つの切り取ったバンドと\n"
19901"-- 3番バンドにジオメトリをオーバレイしたバンドからなる\n"
19902"-- 3バンドのラスタを生成します\n"
19903"-- このクエリはWindows 64ビット版のPostGISで3.6秒かかりました\n"
19904"WITH pr AS\n"
19905"-- 演算の順序の注意: 全てのラスタを必要なピクセル範囲に切り抜いています\n"
19906"(SELECT ST_Clip(rast,ST_Expand(geom,50) ) As rast, g.geom\n"
19907"        FROM aerials.o_2_boston AS r INNER JOIN\n"
19908"-- union our parcels of interest so they form a single geometry we can later "
19909"intersect with\n"
19910"                (SELECT ST_Union(ST_Transform(the_geom,26986)) AS geom\n"
19911"                  FROM landparcels WHERE pid IN('0303890000', '0303900000')) "
19912"As g\n"
19913"                ON ST_Intersects(rast::geometry, ST_Expand(g.geom,50))\n"
19914"),\n"
19915"-- ラスタの破片を結合します\n"
19916"-- ラスタのST_Unionは非常に遅いですがラスタを小さくすれば速度が上がります\n"
19917"-- 先に切り出しておいてから結合しているのはこのためです\n"
19918"prunion AS\n"
19919"(SELECT ST_AddBand(NULL, ARRAY[ST_Union(rast,1),ST_Union(rast,2),"
19920"ST_Union(rast,3)] ) As clipped,geom\n"
19921"FROM pr\n"
19922"GROUP BY geom)\n"
19923"-- ラスタの破片を結合し、区画境界線のオーバレイも持った\n"
19924"-- 最終のラスタを返します\n"
19925"-- 最初の二つのバンドと3番バンド+ジオメトリの地図代数関数とを追加します\n"
19926"\n"
19927"SELECT ST_AddBand(ST_Band(clipped,ARRAY[1,2])\n"
19928"        , ST_MapAlgebraExpr(ST_Band(clipped,3), "
19929"ST_AsRaster(ST_Buffer(ST_Boundary(geom),2),clipped, '8BUI',250),\n"
19930"         '[rast2.val]', '8BUI', 'FIRST', '[rast2.val]', '[rast1.val]') ) As "
19931"rast\n"
19932"FROM prunion;"
19933
19934#. Tag: para
19935#: reference_raster.xml:8037
19936#, no-c-format
19937msgid "The blue lines are the boundaries of select parcels"
19938msgstr "青線が対象区画の境界です"
19939
19940#. Tag: para
19941#: reference_raster.xml:8051
19942#, no-c-format
19943msgid ""
19944", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref "
19945"linkend=\"RT_ST_AsRaster\"/>, <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref "
19946"linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, "
19947"<xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Union\"/>, <xref "
19948"linkend=\"ST_Union\"/>"
19949msgstr ""
19950", <xref linkend=\"RT_ST_AddBand\"/>, <xref linkend=\"RT_ST_AsPNG\"/>, <xref "
19951"linkend=\"RT_ST_AsRaster\"/>, <xref linkend=\"RT_ST_MapAlgebraFct\"/>, <xref "
19952"linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference\"/>, "
19953"<xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Union\"/>, <xref "
19954"linkend=\"ST_Union\"/>"
19955
19956#. Tag: refname
19957#: reference_raster.xml:8068 reference_raster.xml:8221
19958#, no-c-format
19959msgid "ST_MapAlgebraFct"
19960msgstr "ST_MapAlgebraFct"
19961
19962#. Tag: refpurpose
19963#: reference_raster.xml:8069
19964#, no-c-format
19965msgid ""
19966"1 band version - Creates a new one band raster formed by applying a valid "
19967"PostgreSQL function on the input raster band and of pixeltype prodived. Band "
19968"1 is assumed if no band is specified."
19969msgstr ""
19970"1バンド版 - 入力バンドに対する妥当なPostgreSQL関数で形成された、指定したピク"
19971"セルタイプとなる1バンドラスタを生成します。バンドを指定しない場合には、1番と"
19972"仮定します。"
19973
19974#. Tag: funcsynopsis
19975#: reference_raster.xml:8073
19976#, no-c-format
19977msgid ""
19978"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
19979"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
19980"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
19981"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
19982"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
19983"type> <parameter>rast</parameter></paramdef> <paramdef><type>regprocedure</"
19984"type> <parameter>onerasteruserfunc</parameter></paramdef> "
19985"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
19986"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
19987"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
19988"type> <parameter>rast</parameter></paramdef> <paramdef><type>text</type> "
19989"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
19990"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
19991"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
19992"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
19993"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
19994"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
19995"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
19996"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
19997"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
19998"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
19999"<parameter>band</parameter></paramdef> <paramdef><type>regprocedure</type> "
20000"<parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
20001"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20002"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20003"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
20004"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20005"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
20006"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20007"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20008"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
20009"<parameter>band</parameter></paramdef> <paramdef><type>text</type> "
20010"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
20011"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
20012"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20013"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20014"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
20015"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
20016"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20017"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
20018"args</parameter></paramdef> </funcprototype>"
20019msgstr ""
20020"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20021"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20022"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20023"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20024"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20025"type> <parameter>rast</parameter></paramdef> <paramdef><type>regprocedure</"
20026"type> <parameter>onerasteruserfunc</parameter></paramdef> "
20027"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
20028"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20029"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20030"type> <parameter>rast</parameter></paramdef> <paramdef><type>text</type> "
20031"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
20032"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
20033"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20034"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20035"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
20036"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20037"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
20038"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20039"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20040"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
20041"<parameter>band</parameter></paramdef> <paramdef><type>regprocedure</type> "
20042"<parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
20043"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20044"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20045"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
20046"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20047"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
20048"args</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20049"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20050"type> <parameter>rast</parameter></paramdef> <paramdef><type>integer</type> "
20051"<parameter>band</parameter></paramdef> <paramdef><type>text</type> "
20052"<parameter>pixeltype</parameter></paramdef> <paramdef><type>regprocedure</"
20053"type> <parameter>onerasteruserfunc</parameter></paramdef> </funcprototype> "
20054"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20055"funcdef> <paramdef><type>raster</type> <parameter>rast</parameter></"
20056"paramdef> <paramdef><type>integer</type> <parameter>band</parameter></"
20057"paramdef> <paramdef><type>text</type> <parameter>pixeltype</parameter></"
20058"paramdef> <paramdef><type>regprocedure</type> <parameter>onerasteruserfunc</"
20059"parameter></paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC "
20060"args</parameter></paramdef> </funcprototype>"
20061
20062#. Tag: para
20063#: reference_raster.xml:8137 reference_raster.xml:8255
20064#: reference_raster.xml:8368
20065#, no-c-format
20066msgid ""
20067"is deprecated as of 2.1.0. Use <xref linkend=\"RT_ST_MapAlgebra\"/> instead."
20068msgstr ""
20069"は2.1.0で非推奨になりました。代わりに<xref linkend=\"RT_ST_MapAlgebra\"/>を使"
20070"います。"
20071
20072#. Tag: para
20073#: reference_raster.xml:8142
20074#, no-c-format
20075msgid ""
20076"Creates a new one band raster formed by applying a valid PostgreSQL function "
20077"specified by the <varname>onerasteruserfunc</varname> on the input raster "
20078"(<varname>rast</varname>). If no <varname>band</varname> is specified, band "
20079"1 is assumed. The new raster will have the same georeference, width, and "
20080"height as the original raster but will only have one band."
20081msgstr ""
20082"入力ラスタ (<varname>rast</varname>)に対して<varname>onerasteruserfunc</"
20083"varname>で指定される妥当なPostgreSQL関数で形成されたラスタを返します。生成さ"
20084"れるラスタは指定したピクセルタイプとなる1バンドラスタです。<varname>band</"
20085"varname>を指定しない場合には、1番と仮定します。新しいラスタは、元のラスタと同"
20086"じ地理参照、幅、高さを持ちますが、一つのバンドしか持ちません。"
20087
20088#. Tag: para
20089#: reference_raster.xml:8146
20090#, no-c-format
20091msgid ""
20092"The <varname>onerasteruserfunc</varname> parameter must be the name and "
20093"signature of a SQL or PL/pgSQL function, cast to a regprocedure. A very "
20094"simple and quite useless PL/pgSQL function example is: "
20095"<programlisting>CREATE OR REPLACE FUNCTION simple_function(pixel FLOAT, pos "
20096"INTEGER[], VARIADIC args TEXT[])\n"
20097"    RETURNS FLOAT\n"
20098"    AS $$ BEGIN\n"
20099"        RETURN 0.0;\n"
20100"    END; $$\n"
20101"    LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The "
20102"<varname>userfunction</varname> may accept two or three arguments: a float "
20103"value, an optional integer array, and a variadic text array. The first "
20104"argument is the value of an individual raster cell (regardless of the raster "
20105"datatype). The second argument is the position of the current processing "
20106"cell in the form '{x,y}'. The third argument indicates that all remaining "
20107"parameters to <xref linkend=\"RT_ST_MapAlgebraFct\"/> shall be passed "
20108"through to the <varname>userfunction</varname>."
20109msgstr ""
20110"<varname>onerasteruserfunc</varname>引数は SQL関数またはPL/pgSQL関数のシグネ"
20111"チャで、regprocedureにキャストします。大変単純で本当に使えないPL/pgSQL関数の"
20112"例を挙げます。<programlisting>CREATE OR REPLACE FUNCTION "
20113"simple_function(pixel FLOAT, pos INTEGER[], VARIADIC args TEXT[])\n"
20114"    RETURNS FLOAT\n"
20115"    AS $$ BEGIN\n"
20116"        RETURN 0.0;\n"
20117"    END; $$\n"
20118"    LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> <varname>userfunction</"
20119"varname>は、2または3の引数を受け付けます。すなわち、float8値、任意の整数配"
20120"列、VARIADIC文字列配列です。第1引数はラスタセルごとの値です (ラスタのデータ型"
20121"に関係なく)。第2引数は現在の処理セルの位置で、'{x,y}'であらわされます。第3引"
20122"数は、<xref linkend=\"RT_ST_MapAlgebraFct\"/>へのパラメータの残っているもの全"
20123"てが<varname>userfunction</varname>に渡されることを示します"
20124
20125#. Tag: para
20126#: reference_raster.xml:8151
20127#, no-c-format
20128msgid ""
20129"Passing a <type>regprodedure</type> argument to a SQL function requires the "
20130"full function signature to be passed, then cast to a <type>regprocedure</"
20131"type> type. To pass the above example PL/pgSQL function as an argument, the "
20132"SQL for the argument is:<programlisting>'simple_function(float,integer[],"
20133"text[])'::regprocedure</programlisting>Note that the argument contains the "
20134"name of the function, the types of the function arguments, quotes around the "
20135"name and argument types, and a cast to a <type>regprocedure</type>."
20136msgstr ""
20137"<type>regprodedure</type>引数をSQL関数に渡す際は完全な関数シグネチャと"
20138"<type>regprocedure</type>型へのキャストが求められます。 上のPL/pgSQL関数を引"
20139"数に取るには、引数のSQLは次のようにします。"
20140"<programlisting>'simple_function(float,integer[],text[])'::regprocedure</"
20141"programlisting> 引数は関数名と引数の型を含み、関数名と引数を引用符で括り、か"
20142"つ<type>regprocedure</type>にキャストする点に注意が必要です。"
20143
20144#. Tag: para
20145#: reference_raster.xml:8155
20146#, no-c-format
20147msgid ""
20148"The third argument to the <varname>userfunction</varname> is a "
20149"<type>variadic text</type> array. All trailing text arguments to any <xref "
20150"linkend=\"RT_ST_MapAlgebraFct\"/> call are passed through to the specified "
20151"<varname>userfunction</varname>, and are contained in the <varname>args</"
20152"varname> argument."
20153msgstr ""
20154"<varname>userfunction</varname>の第3引数は<type>variadic text</type>配列で"
20155"す。どの<xref linkend=\"RT_ST_MapAlgebraFct\"/>にもついてくる全ての文字列引数"
20156"は、指定された<varname>userfunction</varname>に、そのまま渡されて、"
20157"<varname>args</varname>引数内に入ります。"
20158
20159#. Tag: para
20160#: reference_raster.xml:8164
20161#, no-c-format
20162msgid ""
20163"The <type>text[]</type> argument to the <varname>userfunction</varname> is "
20164"required, regardless of whether you choose to pass any arguments to your "
20165"user function for processing or not."
20166msgstr ""
20167"<varname>userfunction</varname>への<type>text[]</type>引数は、あらゆる引数を"
20168"処理のためにユーザ関数に渡すかどうかの選択にかかわらず求められます。"
20169
20170#. Tag: programlisting
20171#: reference_raster.xml:8174
20172#, no-c-format
20173msgid ""
20174"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
20175"CREATE FUNCTION mod_fct(pixel float, pos integer[], variadic args text[])\n"
20176"RETURNS float\n"
20177"AS $$\n"
20178"BEGIN\n"
20179"    RETURN pixel::integer % 2;\n"
20180"END;\n"
20181"$$\n"
20182"LANGUAGE 'plpgsql' IMMUTABLE;\n"
20183"\n"
20184"UPDATE dummy_rast SET map_rast = ST_MapAlgebraFct(rast,NULL,'mod_fct(float,"
20185"integer[],text[])'::regprocedure) WHERE rid = 2;\n"
20186"\n"
20187"SELECT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast, 1, i, j) As "
20188"mapval\n"
20189"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
20190"generate_series(1,3) AS j\n"
20191"WHERE rid = 2;\n"
20192"\n"
20193" origval | mapval\n"
20194"---------+--------\n"
20195"     253 |      1\n"
20196"     254 |      0\n"
20197"     253 |      1\n"
20198"     253 |      1\n"
20199"     254 |      0\n"
20200"     254 |      0\n"
20201"     250 |      0\n"
20202"     254 |      0\n"
20203"     254 |      0"
20204msgstr ""
20205"ALTER TABLE dummy_rast ADD COLUMN map_rast raster;\n"
20206"CREATE FUNCTION mod_fct(pixel float, pos integer[], variadic args text[])\n"
20207"RETURNS float\n"
20208"AS $$\n"
20209"BEGIN\n"
20210"    RETURN pixel::integer % 2;\n"
20211"END;\n"
20212"$$\n"
20213"LANGUAGE 'plpgsql' IMMUTABLE;\n"
20214"\n"
20215"UPDATE dummy_rast SET map_rast = ST_MapAlgebraFct(rast,NULL,'mod_fct(float,"
20216"integer[],text[])'::regprocedure) WHERE rid = 2;\n"
20217"\n"
20218"SELECT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast, 1, i, j) As "
20219"mapval\n"
20220"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
20221"generate_series(1,3) AS j\n"
20222"WHERE rid = 2;\n"
20223"\n"
20224" origval | mapval\n"
20225"---------+--------\n"
20226"     253 |      1\n"
20227"     254 |      0\n"
20228"     253 |      1\n"
20229"     253 |      1\n"
20230"     254 |      0\n"
20231"     254 |      0\n"
20232"     250 |      0\n"
20233"     254 |      0\n"
20234"     254 |      0"
20235
20236#. Tag: para
20237#: reference_raster.xml:8176
20238#, no-c-format
20239msgid ""
20240"Create a new 1 band raster of pixel-type 2BUI from our original that is "
20241"reclassified and set the nodata value to a passed parameter to the user "
20242"function (0)."
20243msgstr ""
20244"ピクセルタイプが2BUIの1バンドラスタを生成します。元のラスタに対して再分類を"
20245"行った値が入り、NODATA値をユーザ関数に渡される引数の値 (0)に設定します。"
20246
20247#. Tag: programlisting
20248#: reference_raster.xml:8177
20249#, no-c-format
20250msgid ""
20251"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
20252"CREATE FUNCTION classify_fct(pixel float, pos integer[], variadic args "
20253"text[])\n"
20254"RETURNS float\n"
20255"AS\n"
20256"$$\n"
20257"DECLARE\n"
20258"    nodata float := 0;\n"
20259"BEGIN\n"
20260"    IF NOT args[1] IS NULL THEN\n"
20261"        nodata := args[1];\n"
20262"    END IF;\n"
20263"    IF pixel &lt; 251 THEN\n"
20264"        RETURN 1;\n"
20265"    ELSIF pixel = 252 THEN\n"
20266"        RETURN 2;\n"
20267"    ELSIF pixel &gt; 252 THEN\n"
20268"        RETURN 3;\n"
20269"    ELSE\n"
20270"        RETURN nodata;\n"
20271"    END IF;\n"
20272"END;\n"
20273"$$\n"
20274"LANGUAGE 'plpgsql';\n"
20275"UPDATE dummy_rast SET map_rast2 = "
20276"ST_MapAlgebraFct(rast,'2BUI','classify_fct(float,integer[],text[])'::"
20277"regprocedure, '0') WHERE rid = 2;\n"
20278"\n"
20279"SELECT DISTINCT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast2, 1, i, "
20280"j) As mapval\n"
20281"FROM dummy_rast CROSS JOIN generate_series(1, 5) AS i CROSS JOIN "
20282"generate_series(1,5) AS j\n"
20283"WHERE rid = 2;\n"
20284"\n"
20285" origval | mapval\n"
20286"---------+--------\n"
20287"     249 |      1\n"
20288"     250 |      1\n"
20289"     251 |\n"
20290"     252 |      2\n"
20291"     253 |      3\n"
20292"     254 |      3\n"
20293"\n"
20294"SELECT ST_BandPixelType(map_rast2) As b1pixtyp\n"
20295"FROM dummy_rast WHERE rid = 2;\n"
20296"\n"
20297" b1pixtyp\n"
20298"----------\n"
20299" 2BUI"
20300msgstr ""
20301"ALTER TABLE dummy_rast ADD COLUMN map_rast2 raster;\n"
20302"CREATE FUNCTION classify_fct(pixel float, pos integer[], variadic args "
20303"text[])\n"
20304"RETURNS float\n"
20305"AS\n"
20306"$$\n"
20307"DECLARE\n"
20308"    nodata float := 0;\n"
20309"BEGIN\n"
20310"    IF NOT args[1] IS NULL THEN\n"
20311"        nodata := args[1];\n"
20312"    END IF;\n"
20313"    IF pixel &lt; 251 THEN\n"
20314"        RETURN 1;\n"
20315"    ELSIF pixel = 252 THEN\n"
20316"        RETURN 2;\n"
20317"    ELSIF pixel &gt; 252 THEN\n"
20318"        RETURN 3;\n"
20319"    ELSE\n"
20320"        RETURN nodata;\n"
20321"    END IF;\n"
20322"END;\n"
20323"$$\n"
20324"LANGUAGE 'plpgsql';\n"
20325"UPDATE dummy_rast SET map_rast2 = "
20326"ST_MapAlgebraFct(rast,'2BUI','classify_fct(float,integer[],text[])'::"
20327"regprocedure, '0') WHERE rid = 2;\n"
20328"\n"
20329"SELECT DISTINCT ST_Value(rast,1,i,j) As origval, ST_Value(map_rast2, 1, i, "
20330"j) As mapval\n"
20331"FROM dummy_rast CROSS JOIN generate_series(1, 5) AS i CROSS JOIN "
20332"generate_series(1,5) AS j\n"
20333"WHERE rid = 2;\n"
20334"\n"
20335" origval | mapval\n"
20336"---------+--------\n"
20337"     249 |      1\n"
20338"     250 |      1\n"
20339"     251 |\n"
20340"     252 |      2\n"
20341"     253 |      3\n"
20342"     254 |      3\n"
20343"\n"
20344"SELECT ST_BandPixelType(map_rast2) As b1pixtyp\n"
20345"FROM dummy_rast WHERE rid = 2;\n"
20346"\n"
20347" b1pixtyp\n"
20348"----------\n"
20349" 2BUI"
20350
20351#. Tag: para
20352#: reference_raster.xml:8188
20353#, no-c-format
20354msgid "original (column rast-view)"
20355msgstr "元のラスタ (rast_viewカラム)"
20356
20357#. Tag: programlisting
20358#: reference_raster.xml:8205
20359#, no-c-format
20360msgid ""
20361"CREATE FUNCTION rast_plus_tan(pixel float, pos integer[], variadic args "
20362"text[])\n"
20363"RETURNS float\n"
20364"AS\n"
20365"$$\n"
20366"BEGIN\n"
20367"        RETURN tan(pixel) * pixel;\n"
20368"END;\n"
20369"$$\n"
20370"LANGUAGE 'plpgsql';\n"
20371"\n"
20372"SELECT ST_AddBand(\n"
20373"        ST_AddBand(\n"
20374"                ST_AddBand(\n"
20375"                        ST_MakeEmptyRaster(rast_view),\n"
20376"                        ST_MapAlgebraFct(rast_view,1,"
20377"NULL,'rast_plus_tan(float,integer[],text[])'::regprocedure)\n"
20378"                ),\n"
20379"                ST_Band(rast_view,2)\n"
20380"        ),\n"
20381"        ST_Band(rast_view, 3) As rast_view_ma\n"
20382")\n"
20383"FROM wind\n"
20384"WHERE rid=167;"
20385msgstr ""
20386"CREATE FUNCTION rast_plus_tan(pixel float, pos integer[], variadic args "
20387"text[])\n"
20388"RETURNS float\n"
20389"AS\n"
20390"$$\n"
20391"BEGIN\n"
20392"        RETURN tan(pixel) * pixel;\n"
20393"END;\n"
20394"$$\n"
20395"LANGUAGE 'plpgsql';\n"
20396"\n"
20397"SELECT ST_AddBand(\n"
20398"        ST_AddBand(\n"
20399"                ST_AddBand(\n"
20400"                        ST_MakeEmptyRaster(rast_view),\n"
20401"                        ST_MapAlgebraFct(rast_view,1,"
20402"NULL,'rast_plus_tan(float,integer[],text[])'::regprocedure)\n"
20403"                ),\n"
20404"                ST_Band(rast_view,2)\n"
20405"        ),\n"
20406"        ST_Band(rast_view, 3) As rast_view_ma\n"
20407")\n"
20408"FROM wind\n"
20409"WHERE rid=167;"
20410
20411#. Tag: para
20412#: reference_raster.xml:8210 reference_raster.xml:8333
20413#, no-c-format
20414msgid ""
20415", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference"
20416"\"/>, <xref linkend=\"RT_ST_SetValue\"/>"
20417msgstr ""
20418", <xref linkend=\"RT_ST_BandPixelType\"/>, <xref linkend=\"RT_ST_GeoReference"
20419"\"/>, <xref linkend=\"RT_ST_SetValue\"/>"
20420
20421#. Tag: refpurpose
20422#: reference_raster.xml:8222
20423#, no-c-format
20424msgid ""
20425"2 band version - Creates a new one band raster formed by applying a valid "
20426"PostgreSQL function on the 2 input raster bands and of pixeltype prodived. "
20427"Band 1 is assumed if no band is specified. Extent type defaults to "
20428"INTERSECTION if not specified."
20429msgstr ""
20430"2バンド版 - 二つの入力バンドに対する妥当なPostgreSQL関数で形成された、指定し"
20431"たピクセルタイプとなる1バンドラスタを生成します。バンドを指定しない場合には、"
20432"1番と仮定します。\"extenttype\"のデフォルトはINTERSECTIONです。"
20433
20434#. Tag: funcsynopsis
20435#: reference_raster.xml:8226
20436#, no-c-format
20437msgid ""
20438"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20439"funcdef> <paramdef><type>raster</type> <parameter>rast1</parameter></"
20440"paramdef> <paramdef><type>raster</type> <parameter>rast2</parameter></"
20441"paramdef> <paramdef><type>regprocedure</type> <parameter>tworastuserfunc</"
20442"parameter></paramdef> <paramdef choice=\"opt\"><type>text</type> "
20443"<parameter>pixeltype=same_as_rast1</parameter></paramdef> <paramdef choice="
20444"\"opt\"><type>text</type> <parameter>extenttype=INTERSECTION</parameter></"
20445"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
20446"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20447"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20448"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer</type> "
20449"<parameter>band1</parameter></paramdef> <paramdef><type>raster</type> "
20450"<parameter>rast2</parameter></paramdef> <paramdef><type>integer</type> "
20451"<parameter>band2</parameter></paramdef> <paramdef><type>regprocedure</type> "
20452"<parameter>tworastuserfunc</parameter></paramdef> <paramdef choice=\"opt"
20453"\"><type>text</type> <parameter>pixeltype=same_as_rast1</parameter></"
20454"paramdef> <paramdef choice=\"opt\"><type>text</type> "
20455"<parameter>extenttype=INTERSECTION</parameter></paramdef> "
20456"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
20457"paramdef> </funcprototype>"
20458msgstr ""
20459"<funcprototype> <funcdef>raster <function>ST_MapAlgebraFct</function></"
20460"funcdef> <paramdef><type>raster</type> <parameter>rast1</parameter></"
20461"paramdef> <paramdef><type>raster</type> <parameter>rast2</parameter></"
20462"paramdef> <paramdef><type>regprocedure</type> <parameter>tworastuserfunc</"
20463"parameter></paramdef> <paramdef choice=\"opt\"><type>text</type> "
20464"<parameter>pixeltype=same_as_rast1</parameter></paramdef> <paramdef choice="
20465"\"opt\"><type>text</type> <parameter>extenttype=INTERSECTION</parameter></"
20466"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
20467"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
20468"<function>ST_MapAlgebraFct</function></funcdef> <paramdef><type>raster</"
20469"type> <parameter>rast1</parameter></paramdef> <paramdef><type>integer</type> "
20470"<parameter>band1</parameter></paramdef> <paramdef><type>raster</type> "
20471"<parameter>rast2</parameter></paramdef> <paramdef><type>integer</type> "
20472"<parameter>band2</parameter></paramdef> <paramdef><type>regprocedure</type> "
20473"<parameter>tworastuserfunc</parameter></paramdef> <paramdef choice=\"opt"
20474"\"><type>text</type> <parameter>pixeltype=same_as_rast1</parameter></"
20475"paramdef> <paramdef choice=\"opt\"><type>text</type> "
20476"<parameter>extenttype=INTERSECTION</parameter></paramdef> "
20477"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
20478"paramdef> </funcprototype>"
20479
20480#. Tag: para
20481#: reference_raster.xml:8260
20482#, no-c-format
20483msgid ""
20484"Creates a new one band raster formed by applying a valid PostgreSQL function "
20485"specified by the <varname>tworastuserfunc</varname> on the input raster "
20486"<varname>rast1</varname>, <varname>rast2</varname>. If no <varname>band1</"
20487"varname> or <varname>band2</varname> is specified, band 1 is assumed. The "
20488"new raster will have the same georeference, width, and height as the "
20489"original rasters but will only have one band."
20490msgstr ""
20491"二つの入力ラスタ (<varname>rast1</varname>, <varname>rast2</varname>)に対して"
20492"<varname>tworastuserfunc</varname>で指定される妥当なPostgreSQL関数で形成され"
20493"るラスタを返します。<varname>band1</varname>または<varname>band2</varname>が"
20494"指定されていない場合には、1番と仮定します。新しいラスタは、元のラスタと同じ地"
20495"理参照、幅、高さを持ちますが、一つのバンドしか持ちません。"
20496
20497#. Tag: para
20498#: reference_raster.xml:8263
20499#, no-c-format
20500msgid ""
20501"If <varname>pixeltype</varname> is passed in, then the new raster will have "
20502"a band of that pixeltype. If pixeltype is passed NULL or left out, then the "
20503"new raster band will have the same pixeltype as the input <varname>rast1</"
20504"varname> band."
20505msgstr ""
20506"<varname>pixeltype</varname>が渡された場合には、新しいラスタはそのピクセルタ"
20507"イプのバンドを持ちます。pixelteypeとしてNULLが渡されたりピクセルタイプを指定"
20508"しない場合には、新しいラスタは<varname>rast1</varname>の入力バンドと同じピク"
20509"セルタイプになります。"
20510
20511#. Tag: para
20512#: reference_raster.xml:8266
20513#, no-c-format
20514msgid ""
20515"The <varname>tworastuserfunc</varname> parameter must be the name and "
20516"signature of an SQL or PL/pgSQL function, cast to a regprocedure. An example "
20517"PL/pgSQL function example is: <programlisting>CREATE OR REPLACE FUNCTION "
20518"simple_function_for_two_rasters(pixel1 FLOAT, pixel2 FLOAT, pos INTEGER[], "
20519"VARIADIC args TEXT[])\n"
20520"    RETURNS FLOAT\n"
20521"    AS $$ BEGIN\n"
20522"        RETURN 0.0;\n"
20523"    END; $$\n"
20524"    LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> The "
20525"<varname>tworastuserfunc</varname> may accept three or four arguments: a "
20526"double precision value, a double precision value, an optional integer array, "
20527"and a variadic text array. The first argument is the value of an individual "
20528"raster cell in <varname>rast1</varname> (regardless of the raster datatype). "
20529"The second argument is an individual raster cell value in <varname>rast2</"
20530"varname>. The third argument is the position of the current processing cell "
20531"in the form '{x,y}'. The fourth argument indicates that all remaining "
20532"parameters to <xref linkend=\"RT_ST_MapAlgebraFct2\"/> shall be passed "
20533"through to the <varname>tworastuserfunc</varname>."
20534msgstr ""
20535"<varname>tworastuserfunc</varname>引数はSQL関数またはPL/pgSQL関数のシグネチャ"
20536"で、regprocedureにキャストします。大変単純で本当に使えないPL/pgSQL関数の例を"
20537"挙げます。<programlisting>CREATE OR REPLACE FUNCTION "
20538"simple_function_for_two_rasters(pixel1 FLOAT, pixel2 FLOAT, pos INTEGER[], "
20539"VARIADIC args TEXT[])\n"
20540"    RETURNS FLOAT\n"
20541"    AS $$ BEGIN\n"
20542"        RETURN 0.0;\n"
20543"    END; $$\n"
20544"    LANGUAGE 'plpgsql' IMMUTABLE;</programlisting> <varname>tworastuserfunc</"
20545"varname>は、3または4の引数を受け付けます。すなわち、倍精度浮動小数点数、倍精"
20546"度浮動小数点数、任意の整数配列、VARIADIC文字列配列です。第1引数は"
20547"<varname>rast1</varname>のラスタセルごとの値です (ラスタのデータ型に関係な"
20548"く)。第2引数は<varname>rast2</varname>のラスタセルごとの値です。第3引数は現在"
20549"の処理セルの位置で、'{x,y}'であらわされます。第4引数は、<xref linkend="
20550"\"RT_ST_MapAlgebraFct2\"/>へのパラメータの残っているもの全てが"
20551"<varname>tworastuserfunc</varname>に渡されることを示します。"
20552
20553#. Tag: para
20554#: reference_raster.xml:8272
20555#, no-c-format
20556msgid ""
20557"Passing a <type>regprodedure</type> argument to a SQL function requires the "
20558"full function signature to be passed, then cast to a <type>regprocedure</"
20559"type> type. To pass the above example PL/pgSQL function as an argument, the "
20560"SQL for the argument is:<programlisting>'simple_function(double precision, "
20561"double precision, integer[], text[])'::regprocedure</programlisting>Note "
20562"that the argument contains the name of the function, the types of the "
20563"function arguments, quotes around the name and argument types, and a cast to "
20564"a <type>regprocedure</type>."
20565msgstr ""
20566"<type>regprodedure</type>引数をSQL関数に渡す際は完全な関数シグネチャと"
20567"<type>regprocedure</type>型へのキャストが求められます。上のPL/pgSQL関数を引数"
20568"に取るには、引数のSQLは次のようにします。"
20569"<programlisting>'simple_function(double precision, double precision, "
20570"integer[], text[])'::regprocedure</programlisting> 引数は関数名と引数の型を含"
20571"み、関数名と引数を引用符で括り、かつ<type>regprocedure</type>にキャストする点"
20572"に注意が必要です。"
20573
20574#. Tag: para
20575#: reference_raster.xml:8275
20576#, no-c-format
20577msgid ""
20578"The fourth argument to the <varname>tworastuserfunc</varname> is a "
20579"<type>variadic text</type> array. All trailing text arguments to any <xref "
20580"linkend=\"RT_ST_MapAlgebraFct2\"/> call are passed through to the specified "
20581"<varname>tworastuserfunc</varname>, and are contained in the "
20582"<varname>userargs</varname> argument."
20583msgstr ""
20584"<varname>tworastuserfunc</varname>引数は <type>variadic text</type>配列です。"
20585"どの<xref linkend=\"RT_ST_MapAlgebraFct2\"/>にもついてくる全ての文字列引数"
20586"は、指定された<varname>tworastuserfunc</varname>に、そのまま渡されて、"
20587"<varname>userargs</varname>引数内に入ります。"
20588
20589#. Tag: para
20590#: reference_raster.xml:8283
20591#, no-c-format
20592msgid ""
20593"The <type>text[]</type> argument to the <varname>tworastuserfunc</varname> "
20594"is required, regardless of whether you choose to pass any arguments to your "
20595"user function for processing or not."
20596msgstr ""
20597"<varname>tworastuserfunc</varname>への<type>text[]</type>引数は、あらゆる引数"
20598"を処理のためにユーザ関数に渡すかどうかの選択にかかわらず求められます。"
20599
20600#. Tag: programlisting
20601#: reference_raster.xml:8291
20602#, no-c-format
20603msgid ""
20604"-- define our user defined function --\n"
20605"CREATE OR REPLACE FUNCTION raster_mapalgebra_union(\n"
20606"        rast1 double precision,\n"
20607"        rast2 double precision,\n"
20608"    pos integer[],\n"
20609"        VARIADIC userargs text[]\n"
20610")\n"
20611"        RETURNS double precision\n"
20612"        AS $$\n"
20613"        DECLARE\n"
20614"        BEGIN\n"
20615"                CASE\n"
20616"                        WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
20617"                                RETURN ((rast1 + rast2)/2.);\n"
20618"                        WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
20619"                                RETURN NULL;\n"
20620"                        WHEN rast1 IS NULL THEN\n"
20621"                                RETURN rast2;\n"
20622"                        ELSE\n"
20623"                                RETURN rast1;\n"
20624"                END CASE;\n"
20625"\n"
20626"                RETURN NULL;\n"
20627"        END;\n"
20628"        $$ LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
20629"\n"
20630"-- prep our test table of rasters\n"
20631"DROP TABLE IF EXISTS map_shapes;\n"
20632"CREATE TABLE map_shapes(rid serial PRIMARY KEY, rast raster, bnum integer, "
20633"descrip text);\n"
20634"INSERT INTO map_shapes(rast,bnum, descrip)\n"
20635"WITH mygeoms\n"
20636"    AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(90,90),30) As geom, 'circle' "
20637"As descrip\n"
20638"            UNION ALL\n"
20639"            SELECT 3 AS bnum,\n"
20640"                ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
20641"50)'), 15) As geom, 'big road' As descrip\n"
20642"            UNION ALL\n"
20643"            SELECT 1 As bnum,\n"
20644"                ST_Translate(ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 "
20645"150,150 50)'), 8,'join=bevel'), 10,-6) As geom, 'small road' As descrip\n"
20646"            ),\n"
20647"   -- define our canvas to be 1 to 1 pixel to geometry\n"
20648"   canvas\n"
20649"    AS ( SELECT ST_AddBand(ST_MakeEmptyRaster(250,\n"
20650"        250,\n"
20651"        ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0 ) , '8BUI'::"
20652"text,0) As rast\n"
20653"        FROM (SELECT ST_Extent(geom) As e,\n"
20654"                    Max(ST_SRID(geom)) As srid\n"
20655"                    from mygeoms\n"
20656"                    ) As foo\n"
20657"            )\n"
20658"-- return our rasters aligned with our canvas\n"
20659"SELECT ST_AsRaster(m.geom, canvas.rast, '8BUI', 240) As rast, bnum, descrip\n"
20660"                FROM mygeoms AS m CROSS JOIN canvas\n"
20661"UNION ALL\n"
20662"SELECT canvas.rast, 4, 'canvas'\n"
20663"FROM canvas;\n"
20664"\n"
20665"-- Map algebra on single band rasters and then collect with ST_AddBand\n"
20666"INSERT INTO map_shapes(rast,bnum,descrip)\n"
20667"SELECT ST_AddBand(ST_AddBand(rasts[1], rasts[2]),rasts[3]), 4, 'map bands "
20668"overlay fct union (canvas)'\n"
20669"        FROM (SELECT ARRAY(SELECT ST_MapAlgebraFct(m1.rast, m2.rast,\n"
20670"                        'raster_mapalgebra_union(double precision, double "
20671"precision, integer[], text[])'::regprocedure, '8BUI', 'FIRST')\n"
20672"                FROM map_shapes As m1 CROSS JOIN map_shapes As m2\n"
20673"        WHERE m1.descrip = 'canvas' AND m2.descrip &lt;&gt; 'canvas' ORDER "
20674"BY m2.bnum) As rasts) As foo;"
20675msgstr ""
20676"-- ユーザ関数の定義 --\n"
20677"CREATE OR REPLACE FUNCTION raster_mapalgebra_union(\n"
20678"        rast1 double precision,\n"
20679"        rast2 double precision,\n"
20680"    pos integer[],\n"
20681"        VARIADIC userargs text[]\n"
20682")\n"
20683"        RETURNS double precision\n"
20684"        AS $$\n"
20685"        DECLARE\n"
20686"        BEGIN\n"
20687"                CASE\n"
20688"                        WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
20689"                                RETURN ((rast1 + rast2)/2.);\n"
20690"                        WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
20691"                                RETURN NULL;\n"
20692"                        WHEN rast1 IS NULL THEN\n"
20693"                                RETURN rast2;\n"
20694"                        ELSE\n"
20695"                                RETURN rast1;\n"
20696"                END CASE;\n"
20697"\n"
20698"                RETURN NULL;\n"
20699"        END;\n"
20700"        $$ LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
20701"\n"
20702"-- ラスタの試験テーブルの用意\n"
20703"DROP TABLE IF EXISTS map_shapes;\n"
20704"CREATE TABLE map_shapes(rid serial PRIMARY KEY, rast raster, bnum integer, "
20705"descrip text);\n"
20706"INSERT INTO map_shapes(rast,bnum, descrip)\n"
20707"WITH mygeoms\n"
20708"    AS ( SELECT 2 As bnum, ST_Buffer(ST_Point(90,90),30) As geom, 'circle' "
20709"As descrip\n"
20710"            UNION ALL\n"
20711"            SELECT 3 AS bnum,\n"
20712"                ST_Buffer(ST_GeomFromText('LINESTRING(50 50,150 150,150 "
20713"50)'), 15) As geom, 'big road' As descrip\n"
20714"            UNION ALL\n"
20715"            SELECT 1 As bnum,\n"
20716"                ST_Translate(ST_Buffer(ST_GeomFromText('LINESTRING(60 50,150 "
20717"150,150 50)'), 8,'join=bevel'), 10,-6) As geom, 'small road' As descrip\n"
20718"            ),\n"
20719"   -- ジオメトリと1対1に対応するキャンバスを定義\n"
20720"   canvas\n"
20721"    AS ( SELECT ST_AddBand(ST_MakeEmptyRaster(250,\n"
20722"        250,\n"
20723"        ST_XMin(e)::integer, ST_YMax(e)::integer, 1, -1, 0, 0 ) , '8BUI'::"
20724"text,0) As rast\n"
20725"        FROM (SELECT ST_Extent(geom) As e,\n"
20726"                    Max(ST_SRID(geom)) As srid\n"
20727"                    from mygeoms\n"
20728"                    ) As foo\n"
20729"            )\n"
20730"-- キャンバスとアラインメントの合ったラスタを返します\n"
20731"SELECT ST_AsRaster(m.geom, canvas.rast, '8BUI', 240) As rast, bnum, descrip\n"
20732"                FROM mygeoms AS m CROSS JOIN canvas\n"
20733"UNION ALL\n"
20734"SELECT canvas.rast, 4, 'canvas'\n"
20735"FROM canvas;\n"
20736"\n"
20737"-- 1バンド版の地図代数関数を実行し、あとでST_AddBandで集めます\n"
20738"INSERT INTO map_shapes(rast,bnum,descrip)\n"
20739"SELECT ST_AddBand(ST_AddBand(rasts[1], rasts[2]),rasts[3]), 4, 'map bands "
20740"overlay fct union (canvas)'\n"
20741"        FROM (SELECT ARRAY(SELECT ST_MapAlgebraFct(m1.rast, m2.rast,\n"
20742"                        'raster_mapalgebra_union(double precision, double "
20743"precision, integer[], text[])'::regprocedure, '8BUI', 'FIRST')\n"
20744"                FROM map_shapes As m1 CROSS JOIN map_shapes As m2\n"
20745"        WHERE m1.descrip = 'canvas' AND m2.descrip &lt;&gt; 'canvas' ORDER "
20746"BY m2.bnum) As rasts) As foo;"
20747
20748#. Tag: para
20749#: reference_raster.xml:8304
20750#, no-c-format
20751msgid "map bands overlay (canvas) (R: small road, G: circle, B: big road)"
20752msgstr "バンドオーバレイ (キャンバス)の図 (赤:小さい道 緑:円、青:大きな道)"
20753
20754#. Tag: title
20755#: reference_raster.xml:8316
20756#, no-c-format
20757msgid "User Defined function that takes extra args"
20758msgstr "追加引数を取るユーザ定義関数"
20759
20760#. Tag: programlisting
20761#: reference_raster.xml:8317
20762#, no-c-format
20763msgid ""
20764"CREATE OR REPLACE FUNCTION raster_mapalgebra_userargs(\n"
20765"        rast1 double precision,\n"
20766"        rast2 double precision,\n"
20767"    pos integer[],\n"
20768"        VARIADIC userargs text[]\n"
20769")\n"
20770"        RETURNS double precision\n"
20771"        AS $$\n"
20772"        DECLARE\n"
20773"        BEGIN\n"
20774"                CASE\n"
20775"                        WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
20776"                                RETURN least(userargs[1]::integer,(rast1 + "
20777"rast2)/2.);\n"
20778"                        WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
20779"                                RETURN userargs[2]::integer;\n"
20780"                        WHEN rast1 IS NULL THEN\n"
20781"                                RETURN greatest(rast2,random()*userargs[3]::"
20782"integer)::integer;\n"
20783"                        ELSE\n"
20784"                                RETURN greatest(rast1, random()*userargs[4]::"
20785"integer)::integer;\n"
20786"                END CASE;\n"
20787"\n"
20788"                RETURN NULL;\n"
20789"        END;\n"
20790"        $$ LANGUAGE 'plpgsql' VOLATILE COST 1000;\n"
20791"\n"
20792"SELECT ST_MapAlgebraFct(m1.rast, 1, m1.rast, 3,\n"
20793"                        'raster_mapalgebra_userargs(double precision, double "
20794"precision, integer[], text[])'::regprocedure,\n"
20795"                                '8BUI', 'INTERSECT', '100','200','200','0')\n"
20796"                FROM map_shapes As m1\n"
20797"        WHERE m1.descrip = 'map bands overlay fct union (canvas)';"
20798msgstr ""
20799"CREATE OR REPLACE FUNCTION raster_mapalgebra_userargs(\n"
20800"        rast1 double precision,\n"
20801"        rast2 double precision,\n"
20802"    pos integer[],\n"
20803"        VARIADIC userargs text[]\n"
20804")\n"
20805"        RETURNS double precision\n"
20806"        AS $$\n"
20807"        DECLARE\n"
20808"        BEGIN\n"
20809"                CASE\n"
20810"                        WHEN rast1 IS NOT NULL AND rast2 IS NOT NULL THEN\n"
20811"                                RETURN least(userargs[1]::integer,(rast1 + "
20812"rast2)/2.);\n"
20813"                        WHEN rast1 IS NULL AND rast2 IS NULL THEN\n"
20814"                                RETURN userargs[2]::integer;\n"
20815"                        WHEN rast1 IS NULL THEN\n"
20816"                                RETURN greatest(rast2,random()*userargs[3]::"
20817"integer)::integer;\n"
20818"                        ELSE\n"
20819"                                RETURN greatest(rast1, random()*userargs[4]::"
20820"integer)::integer;\n"
20821"                END CASE;\n"
20822"\n"
20823"                RETURN NULL;\n"
20824"        END;\n"
20825"        $$ LANGUAGE 'plpgsql' VOLATILE COST 1000;\n"
20826"\n"
20827"SELECT ST_MapAlgebraFct(m1.rast, 1, m1.rast, 3,\n"
20828"                        'raster_mapalgebra_userargs(double precision, double "
20829"precision, integer[], text[])'::regprocedure,\n"
20830"                                '8BUI', 'INTERSECT', '100','200','200','0')\n"
20831"                FROM map_shapes As m1\n"
20832"        WHERE m1.descrip = 'map bands overlay fct union (canvas)';"
20833
20834#. Tag: para
20835#: reference_raster.xml:8325
20836#, no-c-format
20837msgid "user defined with extra args and different bands from same raster"
20838msgstr "追加引数を持つユーザ定義関数と同じラスタからの異なるバンド"
20839
20840#. Tag: refname
20841#: reference_raster.xml:8344
20842#, no-c-format
20843msgid "ST_MapAlgebraFctNgb"
20844msgstr "ST_MapAlgebraFctNgb"
20845
20846#. Tag: refpurpose
20847#: reference_raster.xml:8345
20848#, no-c-format
20849msgid ""
20850"1-band version: Map Algebra Nearest Neighbor using user-defined PostgreSQL "
20851"function. Return a raster which values are the result of a PLPGSQL user "
20852"function involving a neighborhood of values from the input raster band."
20853msgstr ""
20854"1バンド版: ユーザ定義PostgreSQL関数を使用する最近傍地図代数関数です。入力ラス"
20855"タバンドの近傍の値を与えたPL/pgSQLユーザ定義関数の結果からなるラスタを返しま"
20856"す。"
20857
20858#. Tag: funcprototype
20859#: reference_raster.xml:8350
20860#, no-c-format
20861msgid ""
20862"<funcdef>raster <function>ST_MapAlgebraFctNgb</function></funcdef> "
20863"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
20864"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
20865"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
20866"<paramdef><type>integer </type> <parameter>ngbwidth</parameter></paramdef> "
20867"<paramdef><type>integer </type> <parameter>ngbheight</parameter></paramdef> "
20868"<paramdef><type>regprocedure </type> <parameter>onerastngbuserfunc</"
20869"parameter></paramdef> <paramdef><type>text </type> <parameter>nodatamode</"
20870"parameter></paramdef> <paramdef><type>text[] </type> <parameter>VARIADIC "
20871"args</parameter></paramdef>"
20872msgstr ""
20873"<funcdef>raster <function>ST_MapAlgebraFctNgb</function></funcdef> "
20874"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
20875"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
20876"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
20877"<paramdef><type>integer </type> <parameter>ngbwidth</parameter></paramdef> "
20878"<paramdef><type>integer </type> <parameter>ngbheight</parameter></paramdef> "
20879"<paramdef><type>regprocedure </type> <parameter>onerastngbuserfunc</"
20880"parameter></paramdef> <paramdef><type>text </type> <parameter>nodatamode</"
20881"parameter></paramdef> <paramdef><type>text[] </type> <parameter>VARIADIC "
20882"args</parameter></paramdef>"
20883
20884#. Tag: para
20885#: reference_raster.xml:8373
20886#, no-c-format
20887msgid ""
20888"(one raster version) Return a raster which values are the result of a "
20889"PLPGSQL user function involving a neighborhood of values from the input "
20890"raster band. The user function takes the neighborhood of pixel values as an "
20891"array of numbers, for each pixel, returns the result from the user function, "
20892"replacing pixel value of currently inspected pixel with the function result."
20893msgstr ""
20894"(1バンド版) 入力ラスタバンドの近傍の値を与えたPL/pgSQLユーザ定義関数の結果か"
20895"らなるラスタを返します。ユーザ定義関数は近傍のピクセル値を数の配列として取"
20896"り、ピクセル毎に、ユーザ定義関数からの結果を返し、現在の対象ピクセルのピクセ"
20897"ル値を関数の返り値に置き換えます。"
20898
20899#. Tag: term
20900#: reference_raster.xml:8377
20901#, no-c-format
20902msgid "rast"
20903msgstr "rast"
20904
20905#. Tag: para
20906#: reference_raster.xml:8378
20907#, no-c-format
20908msgid "Raster on which the user function is evaluated."
20909msgstr "ユーザ定義関数が評価されるラスタです。"
20910
20911#. Tag: term
20912#: reference_raster.xml:8381
20913#, no-c-format
20914msgid "band"
20915msgstr "band"
20916
20917#. Tag: para
20918#: reference_raster.xml:8382
20919#, no-c-format
20920msgid "Band number of the raster to be evaluated. Default to 1."
20921msgstr "評価されるラスタのバンド番号です。デフォルトは1です。"
20922
20923#. Tag: para
20924#: reference_raster.xml:8386
20925#, no-c-format
20926msgid ""
20927"The resulting pixel type of the output raster. Must be one listed in <xref "
20928"linkend=\"RT_ST_BandPixelType\"/> or left out or set to NULL. If not passed "
20929"in or set to NULL, will default to the pixeltype of the <varname>rast</"
20930"varname>. Results are truncated if they are larger than what is allowed for "
20931"the pixeltype."
20932msgstr ""
20933"出力ラスタのピクセルタイプです。<xref linkend=\"RT_ST_BandPixelType\"/>の一覧"
20934"にあるものか、指定しないか、NULLを指定します。指定しないかNULLを指定した場合"
20935"には、<varname>rast</varname>のピクセルタイプがデフォルトになります。結果ピク"
20936"セル値がピクセルタイプが許容する範囲を超える場合には、切り詰められます。"
20937
20938#. Tag: term
20939#: reference_raster.xml:8389
20940#, no-c-format
20941msgid "ngbwidth"
20942msgstr "ngbwidth"
20943
20944#. Tag: para
20945#: reference_raster.xml:8390
20946#, no-c-format
20947msgid "The width of the neighborhood, in cells."
20948msgstr "セル単位の近傍の幅です。"
20949
20950#. Tag: term
20951#: reference_raster.xml:8393
20952#, no-c-format
20953msgid "ngbheight"
20954msgstr "ngbheight"
20955
20956#. Tag: para
20957#: reference_raster.xml:8394
20958#, no-c-format
20959msgid "The height of the neighborhood, in cells."
20960msgstr "セル単位の近傍の高さです。"
20961
20962#. Tag: term
20963#: reference_raster.xml:8397
20964#, no-c-format
20965msgid "onerastngbuserfunc"
20966msgstr "onerastngbuserfunc"
20967
20968#. Tag: para
20969#: reference_raster.xml:8398
20970#, no-c-format
20971msgid ""
20972"PLPGSQL/psql user function to apply to neighborhood pixels of a single band "
20973"of a raster. The first element is a 2-dimensional array of numbers "
20974"representing the rectangular pixel neighborhood"
20975msgstr ""
20976"ラスタの単一バンドの近傍ピクセルに適用されるPL/pgSQLユーザ定義関数です。一つ"
20977"目の要素は、近傍ピクセルの四角形を表現する数値の2次元配列です。"
20978
20979#. Tag: term
20980#: reference_raster.xml:8401
20981#, no-c-format
20982msgid "nodatamode"
20983msgstr "nodatamode"
20984
20985#. Tag: para
20986#: reference_raster.xml:8403
20987#, no-c-format
20988msgid ""
20989"Defines what value to pass to the function for a neighborhood pixel that is "
20990"nodata or NULL"
20991msgstr "NODATAまたはNULLとなる近傍ピクセルにおける関数に渡す値を定義します。"
20992
20993#. Tag: para
20994#: reference_raster.xml:8404
20995#, no-c-format
20996msgid ""
20997"'ignore': any NODATA values encountered in the neighborhood are ignored by "
20998"the computation -- this flag must be sent to the user callback function, and "
20999"the user function decides how to ignore it."
21000msgstr ""
21001"'ignore': 近傍で遭遇したNODATA値全てが計算から除外されます。ユーザ定義関数に"
21002"必ず送られ、ユーザ定義関数が対処方法を決定します。"
21003
21004#. Tag: para
21005#: reference_raster.xml:8405
21006#, no-c-format
21007msgid ""
21008"'NULL': any NODATA values encountered in the neighborhood will cause the "
21009"resulting pixel to be NULL -- the user callback function is skipped in this "
21010"case."
21011msgstr ""
21012"'NULL': 近傍で遭遇したNODATA値全てが結果をNULLとします。この場合はユーザ定義"
21013"関数が呼び出されません。"
21014
21015#. Tag: para
21016#: reference_raster.xml:8406
21017#, no-c-format
21018msgid ""
21019"'value': any NODATA values encountered in the neighborhood are replaced by "
21020"the reference pixel (the one in the center of the neighborhood). Note that "
21021"if this value is NODATA, the behavior is the same as 'NULL' (for the "
21022"affected neighborhood)"
21023msgstr ""
21024"'value': 近傍で遭遇したNODATA値全てが参照ピクセル (近傍の中心にあるピクセル)"
21025"の値に置き換えられます。この値がNODATAになった場合には、'NULL'と同じ挙動を取"
21026"ります (影響のある近傍について)。"
21027
21028#. Tag: term
21029#: reference_raster.xml:8410
21030#, no-c-format
21031msgid "args"
21032msgstr "args"
21033
21034#. Tag: para
21035#: reference_raster.xml:8411
21036#, no-c-format
21037msgid "Arguments to pass into the user function."
21038msgstr "ユーザ定義関数に渡される引数です。"
21039
21040#. Tag: para
21041#: reference_raster.xml:8421
21042#, no-c-format
21043msgid ""
21044"Examples utilize the katrina raster loaded as a single tile described in "
21045"<ulink url=\"http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html\">http://"
21046"trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</ulink> and then prepared in "
21047"the <xref linkend=\"RT_ST_Rescale\"/> examples"
21048msgstr ""
21049"単一タイルとしてロードされたカトリーナのラスタを使った例です。<ulink url="
21050"\"http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html\">http://trac.osgeo."
21051"org/gdal/wiki/frmts_wtkraster.html</ulink>に説明があります。また、<xref "
21052"linkend=\"RT_ST_Rescale\"/>の例で準備を行っています。"
21053
21054#. Tag: programlisting
21055#: reference_raster.xml:8423
21056#, no-c-format
21057msgid ""
21058"--\n"
21059"-- A simple 'callback' user function that averages up all the values in a "
21060"neighborhood.\n"
21061"--\n"
21062"CREATE OR REPLACE FUNCTION rast_avg(matrix float[][], nodatamode text, "
21063"variadic args text[])\n"
21064"    RETURNS float AS\n"
21065"    $$\n"
21066"    DECLARE\n"
21067"                _matrix float[][];\n"
21068"        x1 integer;\n"
21069"        x2 integer;\n"
21070"        y1 integer;\n"
21071"        y2 integer;\n"
21072"        sum float;\n"
21073"    BEGIN\n"
21074"                _matrix := matrix;\n"
21075"        sum := 0;\n"
21076"        FOR x in array_lower(matrix, 1)..array_upper(matrix, 1) LOOP\n"
21077"            FOR y in array_lower(matrix, 2)..array_upper(matrix, 2) LOOP\n"
21078"                sum := sum + _matrix[x][y];\n"
21079"            END LOOP;\n"
21080"        END LOOP;\n"
21081"        RETURN (sum*1.0/(array_upper(matrix,1)*array_upper(matrix,2) ))::"
21082"integer ;\n"
21083"    END;\n"
21084"    $$\n"
21085"LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
21086"\n"
21087"-- now we apply to our raster averaging pixels within 2 pixels of each other "
21088"in X and Y direction --\n"
21089"SELECT ST_MapAlgebraFctNgb(rast, 1,  '8BUI', 4,4,\n"
21090"                'rast_avg(float[][], text, text[])'::regprocedure, 'NULL', "
21091"NULL) As nn_with_border\n"
21092"        FROM katrinas_rescaled\n"
21093"        limit 1;"
21094msgstr ""
21095"--\n"
21096"-- 近傍の値の全てに関する平均を計算する、単純なユーザ定義の「コールバック」関"
21097"数\n"
21098"--\n"
21099"CREATE OR REPLACE FUNCTION rast_avg(matrix float[][], nodatamode text, "
21100"variadic args text[])\n"
21101"    RETURNS float AS\n"
21102"    $$\n"
21103"    DECLARE\n"
21104"                _matrix float[][];\n"
21105"        x1 integer;\n"
21106"        x2 integer;\n"
21107"        y1 integer;\n"
21108"        y2 integer;\n"
21109"        sum float;\n"
21110"    BEGIN\n"
21111"                _matrix := matrix;\n"
21112"        sum := 0;\n"
21113"        FOR x in array_lower(matrix, 1)..array_upper(matrix, 1) LOOP\n"
21114"            FOR y in array_lower(matrix, 2)..array_upper(matrix, 2) LOOP\n"
21115"                sum := sum + _matrix[x][y];\n"
21116"            END LOOP;\n"
21117"        END LOOP;\n"
21118"        RETURN (sum*1.0/(array_upper(matrix,1)*array_upper(matrix,2) ))::"
21119"integer ;\n"
21120"    END;\n"
21121"    $$\n"
21122"LANGUAGE 'plpgsql' IMMUTABLE COST 1000;\n"
21123"\n"
21124"-- ラスタに対してX,Y軸でそれぞれ2ピクセル内の平均を計算するようにしています "
21125"--\n"
21126"SELECT ST_MapAlgebraFctNgb(rast, 1,  '8BUI', 4,4,\n"
21127"                'rast_avg(float[][], text, text[])'::regprocedure, 'NULL', "
21128"NULL) As nn_with_border\n"
21129"        FROM katrinas_rescaled\n"
21130"        limit 1;"
21131
21132#. Tag: para
21133#: reference_raster.xml:8437
21134#, no-c-format
21135msgid "First band of our raster"
21136msgstr "ラスタの1番バンド"
21137
21138#. Tag: para
21139#: reference_raster.xml:8451
21140#, no-c-format
21141msgid "new raster after averaging pixels withing 4x4 pixels of each other"
21142msgstr "ピクセル毎に4x4ピクセル内のピクセル平均を計算したラスタ"
21143
21144#. Tag: para
21145#: reference_raster.xml:8466
21146#, no-c-format
21147msgid ""
21148", <xref linkend=\"RT_ST_MapAlgebraExpr\"/>, <xref linkend=\"RT_ST_Rescale\"/>"
21149msgstr ""
21150", <xref linkend=\"RT_ST_MapAlgebraExpr\"/>, <xref linkend=\"RT_ST_Rescale\"/>"
21151
21152#. Tag: refname
21153#: reference_raster.xml:8476
21154#, no-c-format
21155msgid "ST_Reclass"
21156msgstr "ST_Reclass"
21157
21158#. Tag: refpurpose
21159#: reference_raster.xml:8477
21160#, no-c-format
21161msgid ""
21162"Creates a new raster composed of band types reclassified from original. The "
21163"nband is the band to be changed. If nband is not specified assumed to be 1. "
21164"All other bands are returned unchanged. Use case: convert a 16BUI band to a "
21165"8BUI and so forth for simpler rendering as viewable formats."
21166msgstr ""
21167"元のラスタから再分類したバンドタイプからなるラスタを生成します。nbandは変更す"
21168"るバンドです。nbandが指定されていない場合には、1と仮定します。他の全てのバン"
21169"ドは変更せずに返します。可視画像の書式としてより単純な描画を行うために、16BUI"
21170"バンドを8BUIバンドに変換する、等のために使います。"
21171
21172#. Tag: funcsynopsis
21173#: reference_raster.xml:8481
21174#, no-c-format
21175msgid ""
21176"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
21177"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
21178"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
21179"<paramdef><type>text </type> <parameter>reclassexpr</parameter></paramdef> "
21180"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
21181"<paramdef choice=\"opt\"><type>double precision </type> "
21182"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
21183"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
21184"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
21185"<paramdef><type>reclassarg[] </type> <parameter>VARIADIC reclassargset</"
21186"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
21187"<function>ST_Reclass</function></funcdef> <paramdef><type>raster </type> "
21188"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
21189"<parameter>reclassexpr</parameter></paramdef> <paramdef><type>text </type> "
21190"<parameter>pixeltype</parameter></paramdef> </funcprototype>"
21191msgstr ""
21192"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
21193"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
21194"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
21195"<paramdef><type>text </type> <parameter>reclassexpr</parameter></paramdef> "
21196"<paramdef><type>text </type> <parameter>pixeltype</parameter></paramdef> "
21197"<paramdef choice=\"opt\"><type>double precision </type> "
21198"<parameter>nodataval=NULL</parameter></paramdef> </funcprototype> "
21199"<funcprototype> <funcdef>raster <function>ST_Reclass</function></funcdef> "
21200"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
21201"<paramdef><type>reclassarg[] </type> <parameter>VARIADIC reclassargset</"
21202"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>raster "
21203"<function>ST_Reclass</function></funcdef> <paramdef><type>raster </type> "
21204"<parameter>rast</parameter></paramdef> <paramdef><type>text </type> "
21205"<parameter>reclassexpr</parameter></paramdef> <paramdef><type>text </type> "
21206"<parameter>pixeltype</parameter></paramdef> </funcprototype>"
21207
21208#. Tag: para
21209#: reference_raster.xml:8509
21210#, no-c-format
21211msgid ""
21212"Creates a new raster formed by applying a valid PostgreSQL algebraic "
21213"operation defined by the <varname>reclassexpr</varname> on the input raster "
21214"(<varname>rast</varname>). If no <varname>band</varname> is specified band 1 "
21215"is assumed. The new raster will have the same georeference, width, and "
21216"height as the original raster. Bands not designated will come back "
21217"unchanged. Refer to <xref linkend=\"reclassarg\"/> for description of valid "
21218"reclassification expressions."
21219msgstr ""
21220"入力ラスタ (<varname>rast</varname>)に<varname>reclassexpr</varname>で定義す"
21221"る妥当なPostgreSQL代数演算子を適用して新しいラスタを生成します。"
21222"<varname>band</varname>が指定されていない場合には、1番と仮定します。新しいラ"
21223"スタは、元のラスタと同じ地理参照、幅、高さを持ちます。指示されていないバンド"
21224"は変更せずに返ります。妥当な再分類の数式の説明については<xref linkend="
21225"\"reclassarg\"/>を参照して下さい。"
21226
21227#. Tag: para
21228#: reference_raster.xml:8511
21229#, no-c-format
21230msgid ""
21231"The bands of the new raster will have pixel type of <varname>pixeltype</"
21232"varname>. If <varname>reclassargset</varname> is passed in then each "
21233"reclassarg defines behavior of each band generated."
21234msgstr ""
21235"新しいラスタのバンドは<varname>pixeltype</varname>で指定するピクセルタイプに"
21236"なります。<varname>reclassargset</varname>を渡した場合は、個々のreclassargが"
21237"生成されるバンド毎の挙動を定義します。"
21238
21239#. Tag: para
21240#: reference_raster.xml:8518
21241#, no-c-format
21242msgid ""
21243"Create a new raster from the original where band 2 is converted from 8BUI to "
21244"4BUI and all values from 101-254 are set to nodata value."
21245msgstr ""
21246"元ラスタから新しいラスタを生成しますが、2番バンドを8BUIから4BUIに変換して、"
21247"101-254をNODATA値にします。"
21248
21249#. Tag: programlisting
21250#: reference_raster.xml:8519
21251#, no-c-format
21252msgid ""
21253"ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster;\n"
21254"UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, "
21255"88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;\n"
21256"\n"
21257"SELECT i as col, j as row, ST_Value(rast,2,i,j) As origval,\n"
21258"    ST_Value(reclass_rast, 2, i, j) As reclassval,\n"
21259"    ST_Value(reclass_rast, 2, i, j, false) As reclassval_include_nodata\n"
21260"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
21261"generate_series(1,3) AS j\n"
21262"WHERE rid = 2;\n"
21263"\n"
21264" col | row | origval | reclassval | reclassval_include_nodata\n"
21265"-----+-----+---------+------------+---------------------------\n"
21266"   1 |   1 |      78 |          9 |                         9\n"
21267"   2 |   1 |      98 |         14 |                        14\n"
21268"   3 |   1 |     122 |            |                         0\n"
21269"   1 |   2 |      96 |         14 |                        14\n"
21270"   2 |   2 |     118 |            |                         0\n"
21271"   3 |   2 |     180 |            |                         0\n"
21272"   1 |   3 |      99 |         15 |                        15\n"
21273"   2 |   3 |     112 |            |                         0\n"
21274"   3 |   3 |     169 |            |                         0"
21275msgstr ""
21276"ALTER TABLE dummy_rast ADD COLUMN reclass_rast raster;\n"
21277"UPDATE dummy_rast SET reclass_rast = ST_Reclass(rast,2,'0-87:1-10, "
21278"88-100:11-15, 101-254:0-0', '4BUI',0) WHERE rid = 2;\n"
21279"\n"
21280"SELECT i as col, j as row, ST_Value(rast,2,i,j) As origval,\n"
21281"    ST_Value(reclass_rast, 2, i, j) As reclassval,\n"
21282"    ST_Value(reclass_rast, 2, i, j, false) As reclassval_include_nodata\n"
21283"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
21284"generate_series(1,3) AS j\n"
21285"WHERE rid = 2;\n"
21286"\n"
21287" col | row | origval | reclassval | reclassval_include_nodata\n"
21288"-----+-----+---------+------------+---------------------------\n"
21289"   1 |   1 |      78 |          9 |                         9\n"
21290"   2 |   1 |      98 |         14 |                        14\n"
21291"   3 |   1 |     122 |            |                         0\n"
21292"   1 |   2 |      96 |         14 |                        14\n"
21293"   2 |   2 |     118 |            |                         0\n"
21294"   3 |   2 |     180 |            |                         0\n"
21295"   1 |   3 |      99 |         15 |                        15\n"
21296"   2 |   3 |     112 |            |                         0\n"
21297"   3 |   3 |     169 |            |                         0"
21298
21299#. Tag: title
21300#: reference_raster.xml:8523
21301#, no-c-format
21302msgid "Example: Advanced using multiple reclassargs"
21303msgstr "例: 複数の再分類を使った高度な例"
21304
21305#. Tag: para
21306#: reference_raster.xml:8525
21307#, no-c-format
21308msgid ""
21309"Create a new raster from the original where band 1,2,3 is converted to "
21310"1BB,4BUI, 4BUI respectively and reclassified. Note this uses the variadic "
21311"<varname>reclassarg</varname> argument which can take as input an indefinite "
21312"number of reclassargs (theoretically as many bands as you have)"
21313msgstr ""
21314"元ラスタから新しいラスタを生成しますが、1番、2番、3番バンドを1BB, 4BUI, 4BUI"
21315"にそれぞれ変換して再分類します。再分類の識別番号 (理論的には元ラスタと同数の"
21316"バンド)を入力するために取るVARIADIC reclassarg引数を使っています。"
21317
21318#. Tag: programlisting
21319#: reference_raster.xml:8526
21320#, no-c-format
21321msgid ""
21322"UPDATE dummy_rast SET reclass_rast =\n"
21323"    ST_Reclass(rast,\n"
21324"        ROW(2,'0-87]:1-10, (87-100]:11-15, (101-254]:0-0', '4BUI',NULL)::"
21325"reclassarg,\n"
21326"        ROW(1,'0-253]:1, 254:0', '1BB', NULL)::reclassarg,\n"
21327"        ROW(3,'0-70]:1, (70-86:2, [86-150):3, [150-255:4', '4BUI', NULL)::"
21328"reclassarg\n"
21329"        ) WHERE rid = 2;\n"
21330"\n"
21331"SELECT i as col, j as row,ST_Value(rast,1,i,j) As ov1,  "
21332"ST_Value(reclass_rast, 1, i, j) As rv1,\n"
21333"    ST_Value(rast,2,i,j) As ov2, ST_Value(reclass_rast, 2, i, j) As rv2,\n"
21334"    ST_Value(rast,3,i,j) As ov3, ST_Value(reclass_rast, 3, i, j) As rv3\n"
21335"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
21336"generate_series(1,3) AS j\n"
21337"WHERE rid = 2;\n"
21338"\n"
21339"col | row | ov1 | rv1 | ov2 | rv2 | ov3 | rv3\n"
21340"----+-----+-----+-----+-----+-----+-----+-----\n"
21341"  1 |   1 | 253 |   1 |  78 |   9 |  70 |   1\n"
21342"  2 |   1 | 254 |   0 |  98 |  14 |  86 |   3\n"
21343"  3 |   1 | 253 |   1 | 122 |   0 | 100 |   3\n"
21344"  1 |   2 | 253 |   1 |  96 |  14 |  80 |   2\n"
21345"  2 |   2 | 254 |   0 | 118 |   0 | 108 |   3\n"
21346"  3 |   2 | 254 |   0 | 180 |   0 | 162 |   4\n"
21347"  1 |   3 | 250 |   1 |  99 |  15 |  90 |   3\n"
21348"  2 |   3 | 254 |   0 | 112 |   0 | 108 |   3\n"
21349"  3 |   3 | 254 |   0 | 169 |   0 | 175 |   4"
21350msgstr ""
21351"UPDATE dummy_rast SET reclass_rast =\n"
21352"    ST_Reclass(rast,\n"
21353"        ROW(2,'0-87]:1-10, (87-100]:11-15, (101-254]:0-0', '4BUI',NULL)::"
21354"reclassarg,\n"
21355"        ROW(1,'0-253]:1, 254:0', '1BB', NULL)::reclassarg,\n"
21356"        ROW(3,'0-70]:1, (70-86:2, [86-150):3, [150-255:4', '4BUI', NULL)::"
21357"reclassarg\n"
21358"        ) WHERE rid = 2;\n"
21359"\n"
21360"SELECT i as col, j as row,ST_Value(rast,1,i,j) As ov1,  "
21361"ST_Value(reclass_rast, 1, i, j) As rv1,\n"
21362"    ST_Value(rast,2,i,j) As ov2, ST_Value(reclass_rast, 2, i, j) As rv2,\n"
21363"    ST_Value(rast,3,i,j) As ov3, ST_Value(reclass_rast, 3, i, j) As rv3\n"
21364"FROM dummy_rast CROSS JOIN generate_series(1, 3) AS i CROSS JOIN "
21365"generate_series(1,3) AS j\n"
21366"WHERE rid = 2;\n"
21367"\n"
21368"col | row | ov1 | rv1 | ov2 | rv2 | ov3 | rv3\n"
21369"----+-----+-----+-----+-----+-----+-----+-----\n"
21370"  1 |   1 | 253 |   1 |  78 |   9 |  70 |   1\n"
21371"  2 |   1 | 254 |   0 |  98 |  14 |  86 |   3\n"
21372"  3 |   1 | 253 |   1 | 122 |   0 | 100 |   3\n"
21373"  1 |   2 | 253 |   1 |  96 |  14 |  80 |   2\n"
21374"  2 |   2 | 254 |   0 | 118 |   0 | 108 |   3\n"
21375"  3 |   2 | 254 |   0 | 180 |   0 | 162 |   4\n"
21376"  1 |   3 | 250 |   1 |  99 |  15 |  90 |   3\n"
21377"  2 |   3 | 254 |   0 | 112 |   0 | 108 |   3\n"
21378"  3 |   3 | 254 |   0 | 169 |   0 | 175 |   4"
21379
21380#. Tag: title
21381#: reference_raster.xml:8530
21382#, no-c-format
21383msgid ""
21384"Example: Advanced Map a single band 32BF raster to multiple viewable bands"
21385msgstr "例: 単一バンドで32BFのラスタをの可視ラスタへの高度な対応付け"
21386
21387#. Tag: para
21388#: reference_raster.xml:8531
21389#, no-c-format
21390msgid ""
21391"Create a new 3 band (8BUI,8BUI,8BUI viewable raster) from a raster that has "
21392"only one 32bf band"
21393msgstr ""
21394"32BFバンドを一つ持つだけのラスタから三つのバンド (8BUI, 8BUI, 8BUI可視ラスタ)"
21395"を生成します。"
21396
21397#. Tag: programlisting
21398#: reference_raster.xml:8532
21399#, no-c-format
21400msgid ""
21401"ALTER TABLE wind ADD COLUMN rast_view raster;\n"
21402"UPDATE wind\n"
21403"        set rast_view = ST_AddBand( NULL,\n"
21404"        ARRAY[\n"
21405"        ST_Reclass(rast, 1,'0.1-10]:1-10,9-10]:11,(11-33:0'::text, '8BUI'::"
21406"text,0),\n"
21407"        ST_Reclass(rast,1, '11-33):0-255,[0-32:0,(34-1000:0'::text, '8BUI'::"
21408"text,0),\n"
21409"        ST_Reclass(rast,1,'0-32]:0,(32-100:100-255'::text, '8BUI'::text,0)\n"
21410"        ]\n"
21411"        );"
21412msgstr ""
21413"ALTER TABLE wind ADD COLUMN rast_view raster;\n"
21414"UPDATE wind\n"
21415"        set rast_view = ST_AddBand( NULL,\n"
21416"        ARRAY[\n"
21417"        ST_Reclass(rast, 1,'0.1-10]:1-10,9-10]:11,(11-33:0'::text, '8BUI'::"
21418"text,0),\n"
21419"        ST_Reclass(rast,1, '11-33):0-255,[0-32:0,(34-1000:0'::text, '8BUI'::"
21420"text,0),\n"
21421"        ST_Reclass(rast,1,'0-32]:0,(32-100:100-255'::text, '8BUI'::text,0)\n"
21422"        ]\n"
21423"        );"
21424
21425#. Tag: para
21426#: reference_raster.xml:8537
21427#, no-c-format
21428msgid ""
21429", <xref linkend=\"RT_ST_Band\"/>, <xref linkend=\"RT_ST_BandPixelType\"/>, "
21430"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"reclassarg\"/>, "
21431"<xref linkend=\"RT_ST_Value\"/>"
21432msgstr ""
21433", <xref linkend=\"RT_ST_Band\"/>, <xref linkend=\"RT_ST_BandPixelType\"/>, "
21434"<xref linkend=\"RT_ST_MakeEmptyRaster\"/>, <xref linkend=\"reclassarg\"/>, "
21435"<xref linkend=\"RT_ST_Value\"/>"
21436
21437#. Tag: refname
21438#: reference_raster.xml:8550
21439#, no-c-format
21440msgid "ST_Union"
21441msgstr "ST_Union"
21442
21443#. Tag: refpurpose
21444#: reference_raster.xml:8551
21445#, no-c-format
21446msgid ""
21447"Returns the union of a set of raster tiles into a single raster composed of "
21448"1 or more bands."
21449msgstr ""
21450"ラスタタイルの集合を結合して1以上のバンドからなる単一ラスタを返します。"
21451
21452#. Tag: funcprototype
21453#: reference_raster.xml:8556
21454#, no-c-format
21455msgid ""
21456"<funcdef>raster <function>ST_Union</function></funcdef> "
21457"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef>"
21458msgstr ""
21459"<funcdef>raster <function>ST_Union</function></funcdef> "
21460"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef>"
21461
21462#. Tag: funcprototype
21463#: reference_raster.xml:8562
21464#, no-c-format
21465msgid ""
21466"<funcdef>raster <function>ST_Union</function></funcdef> "
21467"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef> "
21468"<paramdef><type>unionarg[] </type> <parameter>unionargset</parameter></"
21469"paramdef>"
21470msgstr ""
21471"<funcdef>raster <function>ST_Union</function></funcdef> "
21472"<paramdef><type>setof raster </type> <parameter>rast</parameter></paramdef> "
21473"<paramdef><type>unionarg[] </type> <parameter>unionargset</parameter></"
21474"paramdef>"
21475
21476#. Tag: funcprototype
21477#: reference_raster.xml:8569
21478#, no-c-format
21479msgid ""
21480"<funcdef>raster <function>ST_Union</function></funcdef> "
21481"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21482"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef>"
21483msgstr ""
21484"<funcdef>raster <function>ST_Union</function></funcdef> "
21485"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21486"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef>"
21487
21488#. Tag: funcprototype
21489#: reference_raster.xml:8576
21490#, no-c-format
21491msgid ""
21492"<funcdef>raster <function>ST_Union</function></funcdef> "
21493"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21494"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
21495msgstr ""
21496"<funcdef>raster <function>ST_Union</function></funcdef> "
21497"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21498"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
21499
21500#. Tag: funcprototype
21501#: reference_raster.xml:8583
21502#, no-c-format
21503msgid ""
21504"<funcdef>raster <function>ST_Union</function></funcdef> "
21505"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21506"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef> "
21507"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
21508msgstr ""
21509"<funcdef>raster <function>ST_Union</function></funcdef> "
21510"<paramdef><type>setof raster</type> <parameter>rast</parameter></paramdef> "
21511"<paramdef><type>integer</type> <parameter>nband</parameter></paramdef> "
21512"<paramdef><type>text</type> <parameter>uniontype</parameter></paramdef>"
21513
21514#. Tag: para
21515#: reference_raster.xml:8595
21516#, no-c-format
21517msgid ""
21518"Returns the union of a set of raster tiles into a single raster composed of "
21519"at least one band. The resulting raster's extent is the extent of the whole "
21520"set. In the case of intersection, the resulting value is defined by "
21521"<varname>uniontype</varname> which is one of the following: LAST (default), "
21522"FIRST, MIN, MAX, COUNT, SUM, MEAN, RANGE."
21523msgstr ""
21524"ラスタタイルの集合を結合して少なくとも一つのバンドからなる単一ラスタを返しま"
21525"す。結果ラスタの範囲は集合全体の範囲です。インタセクトする場合には、結果値"
21526"は、LAST (デフォルト), FIRST, MIN, MAX, COUNT, SUM, MEAN, RANGEのいずれかとな"
21527"る<varname>uniontype</varname>で定義されます。"
21528
21529#. Tag: para
21530#: reference_raster.xml:8598
21531#, no-c-format
21532msgid ""
21533"In order for rasters to be unioned, they must all have the same alignment. "
21534"Use <xref linkend=\"RT_ST_SameAlignment\"/> and <xref linkend="
21535"\"RT_ST_NotSameAlignmentReason\"/> for more details and help. One way to fix "
21536"alignment issues is to use <xref linkend=\"RT_ST_Resample\"/> and use the "
21537"same reference raster for alignment."
21538msgstr ""
21539"ラスタを結合するには、全てが同じアラインメントを持たなくてはなりません。"
21540"<xref linkend=\"RT_ST_SameAlignment\"/>と<xref linkend="
21541"\"RT_ST_NotSameAlignmentReason\"/>で詳細情報や助けとなる情報が得られます。ア"
21542"ラインメント問題を修正する一つの方法として、<xref linkend=\"RT_ST_Resample\"/"
21543">を使い、アラインメントの同じ参照ラスタを使います。"
21544
21545#. Tag: para
21546#: reference_raster.xml:8602
21547#, no-c-format
21548msgid "Enhanced: 2.1.0 Improved Speed (fully C-Based)."
21549msgstr "Enhanced: 2.1.0 速度が改善されました (完全にC言語で記述しました)"
21550
21551#. Tag: para
21552#: reference_raster.xml:8603
21553#, no-c-format
21554msgid "Availability: 2.1.0 ST_Union(rast, unionarg) variant was introduced."
21555msgstr "Availability: 2.1.0 ST_Union(rast, unionarg)の形式が導入されました。"
21556
21557#. Tag: para
21558#: reference_raster.xml:8604
21559#, no-c-format
21560msgid ""
21561"Enhanced: 2.1.0 ST_Union(rast) (variant 1) unions all bands of all input "
21562"rasters. Prior versions of PostGIS assumed the first band."
21563msgstr ""
21564"Enhanced: 2.1.0 ST_Union(rast) (一つ目の形式)で、全ての入力ラスタの全てのバン"
21565"ドを結合するようになりました。以前の版のPostGISでは、一つ目のバンドと仮定して"
21566"いました。"
21567
21568#. Tag: para
21569#: reference_raster.xml:8605
21570#, no-c-format
21571msgid ""
21572"Enhanced: 2.1.0 ST_Union(rast, uniontype) (variant 4) unions all bands of "
21573"all input rasters."
21574msgstr ""
21575"Enhanced: 2.1.0 ST_Union(rast, uniontype) (四つ目の形式)で、全ての入力ラスタ"
21576"の全てのバンドを結合するようになりました。"
21577
21578#. Tag: title
21579#: reference_raster.xml:8608
21580#, no-c-format
21581msgid "Examples: Reconstitute a single band chunked raster tile"
21582msgstr "例: 塊になっているラスタタイルの単一バンドへの再構成"
21583
21584#. Tag: programlisting
21585#: reference_raster.xml:8609
21586#, no-c-format
21587msgid ""
21588"-- this creates a single band from first band of raster tiles\n"
21589"-- that form the original file system tile\n"
21590"SELECT filename, ST_Union(rast,1) As file_rast\n"
21591"FROM sometable WHERE filename IN('dem01', 'dem02') GROUP BY filename;"
21592msgstr ""
21593"-- ファイルシステムタイルの1番バンドから新しい単一バンドを生成します\n"
21594"SELECT filename, ST_Union(rast,1) As file_rast\n"
21595"FROM sometable WHERE filename IN('dem01', 'dem02') GROUP BY filename;"
21596
21597#. Tag: title
21598#: reference_raster.xml:8613 reference_raster.xml:8617
21599#, no-c-format
21600msgid ""
21601"Examples: Return a multi-band raster that is the union of tiles intersecting "
21602"geometry"
21603msgstr ""
21604"例: タイルのジオメトリとインタセクトするタイルを結合した複数バンドのラスタ"
21605
21606#. Tag: programlisting
21607#: reference_raster.xml:8614
21608#, no-c-format
21609msgid ""
21610"-- this creates a multi band raster collecting all the tiles that intersect "
21611"a line\n"
21612"-- Note: In 2.0, this would have just returned a single band raster\n"
21613"-- , new union works on all bands by default\n"
21614"-- this is equivalent to unionarg: ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), "
21615"ROW(3, 'LAST')]::unionarg[]\n"
21616"SELECT ST_Union(rast)\n"
21617"FROM aerials.boston\n"
21618"WHERE ST_Intersects(rast,  ST_GeomFromText('LINESTRING(230486 887771, 230500 "
21619"88772)',26986) );"
21620msgstr ""
21621"-- ラインとインタセクトするタイルを結合した複数バンドラスタを生成します\n"
21622"-- ご注意: 2.0では、単一バンドのラスタを帰すだけです\n"
21623"--   これはunionargで\n"
21624"--   ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), ROW(3, 'LAST')]::unionarg[]\n"
21625"--   を指定するのと同じです。\n"
21626"SELECT ST_Union(rast)\n"
21627"FROM aerials.boston\n"
21628"WHERE ST_Intersects(rast,  ST_GeomFromText('LINESTRING(230486 887771, 230500 "
21629"88772)',26986) );"
21630
21631#. Tag: para
21632#: reference_raster.xml:8618
21633#, no-c-format
21634msgid ""
21635"Here we use the longer syntax if we only wanted a subset of bands or we want "
21636"to change order of bands"
21637msgstr ""
21638"バンドの部分集合が欲しいだけの場合や、バンドの並び順を変更したい場合には、よ"
21639"り長い書き方にします。"
21640
21641#. Tag: programlisting
21642#: reference_raster.xml:8619
21643#, no-c-format
21644msgid ""
21645"-- this creates a multi band raster collecting all the tiles that intersect "
21646"a line\n"
21647"SELECT ST_Union(rast,ARRAY[ROW(2, 'LAST'), ROW(1, 'LAST'), ROW(3, 'LAST')]::"
21648"unionarg[])\n"
21649"FROM aerials.boston\n"
21650"WHERE ST_Intersects(rast,  ST_GeomFromText('LINESTRING(230486 887771, 230500 "
21651"88772)',26986) );"
21652msgstr ""
21653"-- ラインとインタセクトするタイルを結合した複数バンドラスタを生成します\n"
21654"SELECT ST_Union(rast,ARRAY[ROW(2, 'LAST'), ROW(1, 'LAST'), ROW(3, 'LAST')]::"
21655"unionarg[])\n"
21656"FROM aerials.boston\n"
21657"WHERE ST_Intersects(rast,  ST_GeomFromText('LINESTRING(230486 887771, 230500 "
21658"88772)',26986) );"
21659
21660#. Tag: para
21661#: reference_raster.xml:8625
21662#, no-c-format
21663msgid ""
21664", <xref linkend=\"RT_ST_Envelope\"/>, <xref linkend=\"RT_ST_ConvexHull\"/>, "
21665"<xref linkend=\"RT_ST_Clip\"/>, <xref linkend=\"ST_Union\"/>"
21666msgstr ""
21667", <xref linkend=\"RT_ST_Envelope\"/>, <xref linkend=\"RT_ST_ConvexHull\"/>, "
21668"<xref linkend=\"RT_ST_Clip\"/>, <xref linkend=\"ST_Union\"/>"
21669
21670#. Tag: title
21671#: reference_raster.xml:8638
21672#, no-c-format
21673msgid "Built-in Map Algebra Callback Functions"
21674msgstr "組み込み地図代数コールバック関数"
21675
21676#. Tag: refname
21677#: reference_raster.xml:8642
21678#, no-c-format
21679msgid "ST_Distinct4ma"
21680msgstr "ST_Distinct4ma"
21681
21682#. Tag: refpurpose
21683#: reference_raster.xml:8643
21684#, no-c-format
21685msgid ""
21686"Raster processing function that calculates the number of unique pixel values "
21687"in a neighborhood."
21688msgstr "近隣のピクセル値のうち一意となるものを数えるラスタ処理関数です。"
21689
21690#. Tag: funcsynopsis
21691#: reference_raster.xml:8647
21692#, no-c-format
21693msgid ""
21694"<funcprototype> <funcdef>float8 <function>ST_Distinct4ma</function></"
21695"funcdef> <paramdef><type>float8[][]</type> <parameter>matrix</parameter></"
21696"paramdef> <paramdef><type>text</type> <parameter>nodatamode</parameter></"
21697"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC args</"
21698"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
21699"precision <function>ST_Distinct4ma</function></funcdef> "
21700"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
21701"paramdef> <paramdef><type>integer[][] </type> <parameter>pos</parameter></"
21702"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
21703"parameter></paramdef> </funcprototype>"
21704msgstr ""
21705"<funcprototype> <funcdef>float8 <function>ST_Distinct4ma</function></"
21706"funcdef> <paramdef><type>float8[][]</type> <parameter>matrix</parameter></"
21707"paramdef> <paramdef><type>text</type> <parameter>nodatamode</parameter></"
21708"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC args</"
21709"parameter></paramdef> </funcprototype> <funcprototype> <funcdef>double "
21710"precision <function>ST_Distinct4ma</function></funcdef> "
21711"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
21712"paramdef> <paramdef><type>integer[][] </type> <parameter>pos</parameter></"
21713"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
21714"parameter></paramdef> </funcprototype>"
21715
21716#. Tag: para
21717#: reference_raster.xml:8667
21718#, no-c-format
21719msgid ""
21720"Calculate the number of unique pixel values in a neighborhood of pixels."
21721msgstr "近隣のピクセル値のうち一意となるものを数えます。"
21722
21723#. Tag: para
21724#: reference_raster.xml:8670 reference_raster.xml:8809
21725#: reference_raster.xml:8884 reference_raster.xml:8969
21726#: reference_raster.xml:9094 reference_raster.xml:9165
21727#: reference_raster.xml:9240
21728#, no-c-format
21729msgid ""
21730"Variant 1 is a specialized callback function for use as a callback parameter "
21731"to <xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>."
21732msgstr ""
21733"一つ目の形式は、<xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>へのコールバック引"
21734"数として使用する専用コールバック関数です。"
21735
21736#. Tag: para
21737#: reference_raster.xml:8674 reference_raster.xml:8813
21738#: reference_raster.xml:8888 reference_raster.xml:8975
21739#: reference_raster.xml:9098 reference_raster.xml:9169
21740#: reference_raster.xml:9244
21741#, no-c-format
21742msgid ""
21743"Variant 2 is a specialized callback function for use as a callback parameter "
21744"to <xref linkend=\"RT_ST_MapAlgebra\"/>."
21745msgstr ""
21746"二つ目の形式は、<xref linkend=\"RT_ST_MapAlgebra\"/>へのコールバック引数とし"
21747"て使用する専用コールバック関数です。"
21748
21749#. Tag: para
21750#: reference_raster.xml:8680 reference_raster.xml:8819
21751#: reference_raster.xml:8894 reference_raster.xml:8981
21752#: reference_raster.xml:9104 reference_raster.xml:9175
21753#: reference_raster.xml:9250
21754#, no-c-format
21755msgid ""
21756"Use of Variant 1 is discouraged since <xref linkend=\"RT_ST_MapAlgebraFctNgb"
21757"\"/> has been deprecated as of 2.1.0."
21758msgstr ""
21759"一つ目の形式は、<xref linkend=\"RT_ST_MapAlgebraFctNgb\"/>が2.1.0で非推奨と"
21760"なったので、使用しないようになります。"
21761
21762#. Tag: para
21763#: reference_raster.xml:8686 reference_raster.xml:8825
21764#: reference_raster.xml:8900 reference_raster.xml:8987
21765#: reference_raster.xml:9110 reference_raster.xml:9181
21766#: reference_raster.xml:9256
21767#, no-c-format
21768msgid "Enhanced: 2.1.0 Addition of Variant 2"
21769msgstr "Enhanced: 2.1.0 二つ目の形式の追加"
21770
21771#. Tag: programlisting
21772#: reference_raster.xml:8692
21773#, no-c-format
21774msgid ""
21775"SELECT\n"
21776"    rid,\n"
21777"    st_value(\n"
21778"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][],"
21779"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
21780"    )\n"
21781"FROM dummy_rast\n"
21782"WHERE rid = 2;\n"
21783" rid | st_value\n"
21784"-----+----------\n"
21785"   2 |        3\n"
21786"(1 row)"
21787msgstr ""
21788"SELECT\n"
21789"    rid,\n"
21790"    st_value(\n"
21791"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][],"
21792"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
21793"    )\n"
21794"FROM dummy_rast\n"
21795"WHERE rid = 2;\n"
21796" rid | st_value\n"
21797"-----+----------\n"
21798"   2 |        3\n"
21799"(1 row)"
21800
21801#. Tag: para
21802#: reference_raster.xml:8698 reference_raster.xml:9122
21803#: reference_raster.xml:9193
21804#, no-c-format
21805msgid ""
21806", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
21807"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
21808"linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
21809"linkend=\"RT_ST_StdDev4ma\"/>"
21810msgstr ""
21811", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
21812"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
21813"linkend=\"RT_ST_Mean4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
21814"linkend=\"RT_ST_StdDev4ma\"/>"
21815
21816#. Tag: refname
21817#: reference_raster.xml:8713
21818#, no-c-format
21819msgid "ST_InvDistWeight4ma"
21820msgstr "ST_InvDistWeight4ma"
21821
21822#. Tag: refpurpose
21823#: reference_raster.xml:8714
21824#, no-c-format
21825msgid ""
21826"Raster processing function that interpolates a pixel's value from the "
21827"pixel's neighborhood."
21828msgstr "近隣のピクセル値の内挿補間を行うラスタ処理関数です。"
21829
21830#. Tag: funcprototype
21831#: reference_raster.xml:8719
21832#, no-c-format
21833msgid ""
21834"<funcdef>double precision <function>ST_InvDistWeight4ma</function></funcdef> "
21835"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
21836"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
21837"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
21838"parameter></paramdef>"
21839msgstr ""
21840"<funcdef>double precision <function>ST_InvDistWeight4ma</function></funcdef> "
21841"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
21842"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
21843"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
21844"parameter></paramdef>"
21845
21846#. Tag: para
21847#: reference_raster.xml:8731
21848#, no-c-format
21849msgid ""
21850"Calculate an interpolated value for a pixel using the Inverse Distance "
21851"Weighted method."
21852msgstr ""
21853"近隣のピクセル値の逆距離加重法 (IDW=Inverse Distance Weighted method)による内"
21854"挿補間を行います。"
21855
21856#. Tag: para
21857#: reference_raster.xml:8733
21858#, no-c-format
21859msgid ""
21860"There are two optional parameters that can be passed through "
21861"<varname>userargs</varname>. The first parameter is the power factor "
21862"(variable k in the equation below) between 0 and 1 used in the Inverse "
21863"Distance Weighted equation. If not specified, default value is 1. The second "
21864"parameter is the weight percentage applied only when the value of the pixel "
21865"of interest is included with the interpolated value from the neighborhood. "
21866"If not specified and the pixel of interest has a value, that value is "
21867"returned."
21868msgstr ""
21869"<varname>userargsに</varname>渡される、二つの任意引数があります。一つ目は、逆"
21870"距離加重法の式に与える0から1の間を取る冪数 (下の式の変数k)です。指定しない場"
21871"合には、デフォルトは1とします。二つ目は、対象ピクセルの値が近隣セルからの補間"
21872"値に含まれている場合にのみ適用される重み率です。指定せず、かつ対象ピクセルが"
21873"値を持っている場合には、そのピクセルの持つ値が返されます。"
21874
21875#. Tag: para
21876#: reference_raster.xml:8737
21877#, no-c-format
21878msgid "The basic inverse distance weight equation is:"
21879msgstr "基本的な逆距離加重法の方程式は次の通りです。"
21880
21881#. Tag: para
21882#: reference_raster.xml:8746
21883#, no-c-format
21884msgid "k = power factor, a real number between 0 and 1"
21885msgstr "k = 冪数で、0から1の浮動小数点数を取ります。"
21886
21887#. Tag: para
21888#: reference_raster.xml:8755 reference_raster.xml:9040
21889#, no-c-format
21890msgid ""
21891"This function is a specialized callback function for use as a callback "
21892"parameter to <xref linkend=\"RT_ST_MapAlgebra\"/>."
21893msgstr ""
21894"この関数は<xref linkend=\"RT_ST_MapAlgebra\"/>へのコールバック引数として使用"
21895"する専用コールバック関数です。"
21896
21897#. Tag: programlisting
21898#: reference_raster.xml:8763 reference_raster.xml:9048
21899#, no-c-format
21900msgid "-- NEEDS EXAMPLE"
21901msgstr "-- 例が必要"
21902
21903#. Tag: para
21904#: reference_raster.xml:8768
21905#, no-c-format
21906msgid ", <xref linkend=\"RT_ST_MinDist4ma\"/>"
21907msgstr ", <xref linkend=\"RT_ST_MinDist4ma\"/>"
21908
21909#. Tag: refname
21910#: reference_raster.xml:8777
21911#, no-c-format
21912msgid "ST_Max4ma"
21913msgstr "ST_Max4ma"
21914
21915#. Tag: refpurpose
21916#: reference_raster.xml:8778
21917#, no-c-format
21918msgid ""
21919"Raster processing function that calculates the maximum pixel value in a "
21920"neighborhood."
21921msgstr "近隣のピクセル値の最大値を計算するラスタ処理関数です。"
21922
21923#. Tag: funcsynopsis
21924#: reference_raster.xml:8782
21925#, no-c-format
21926msgid ""
21927"<funcprototype> <funcdef>float8 <function>ST_Max4ma</function></funcdef> "
21928"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
21929"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
21930"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
21931"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
21932"<function>ST_Max4ma</function></funcdef> <paramdef><type>double precision[][]"
21933"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
21934"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
21935"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
21936msgstr ""
21937"<funcprototype> <funcdef>float8 <function>ST_Max4ma</function></funcdef> "
21938"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
21939"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
21940"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
21941"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
21942"<function>ST_Max4ma</function></funcdef> <paramdef><type>double precision[][]"
21943"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
21944"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
21945"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
21946
21947#. Tag: para
21948#: reference_raster.xml:8802
21949#, no-c-format
21950msgid "Calculate the maximum pixel value in a neighborhood of pixels."
21951msgstr "近隣のピクセル値の最大値を計算します。"
21952
21953#. Tag: para
21954#: reference_raster.xml:8804 reference_raster.xml:8879
21955#: reference_raster.xml:8964 reference_raster.xml:9089
21956#: reference_raster.xml:9235
21957#, no-c-format
21958msgid ""
21959"For Variant 2, a substitution value for NODATA pixels can be specified by "
21960"passing that value to userargs."
21961msgstr ""
21962"二つ目の形式では、userargsに渡す値でNODATAピクセルに代入する値を指定できま"
21963"す。"
21964
21965#. Tag: programlisting
21966#: reference_raster.xml:8831
21967#, no-c-format
21968msgid ""
21969"SELECT\n"
21970"    rid,\n"
21971"    st_value(\n"
21972"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_max4ma(float[][],text,"
21973"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
21974"    )\n"
21975"FROM dummy_rast\n"
21976"WHERE rid = 2;\n"
21977" rid | st_value\n"
21978"-----+----------\n"
21979"   2 |      254\n"
21980"(1 row)"
21981msgstr ""
21982"SELECT\n"
21983"    rid,\n"
21984"    st_value(\n"
21985"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_max4ma(float[][],text,"
21986"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
21987"    )\n"
21988"FROM dummy_rast\n"
21989"WHERE rid = 2;\n"
21990" rid | st_value\n"
21991"-----+----------\n"
21992"   2 |      254\n"
21993"(1 row)"
21994
21995#. Tag: para
21996#: reference_raster.xml:8837
21997#, no-c-format
21998msgid ""
21999", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22000"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22001"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22002"linkend=\"RT_ST_StdDev4ma\"/>"
22003msgstr ""
22004", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22005"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22006"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22007"linkend=\"RT_ST_StdDev4ma\"/>"
22008
22009#. Tag: refname
22010#: reference_raster.xml:8852
22011#, no-c-format
22012msgid "ST_Mean4ma"
22013msgstr "ST_Mean4ma"
22014
22015#. Tag: refpurpose
22016#: reference_raster.xml:8853
22017#, no-c-format
22018msgid ""
22019"Raster processing function that calculates the mean pixel value in a "
22020"neighborhood."
22021msgstr "近隣のピクセル値の平均値を計算するラスタ処理関数です。"
22022
22023#. Tag: funcsynopsis
22024#: reference_raster.xml:8857
22025#, no-c-format
22026msgid ""
22027"<funcprototype> <funcdef>float8 <function>ST_Mean4ma</function></funcdef> "
22028"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22029"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22030"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22031"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22032"<function>ST_Mean4ma</function></funcdef> <paramdef><type>double precision[]"
22033"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22034"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22035"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22036msgstr ""
22037"<funcprototype> <funcdef>float8 <function>ST_Mean4ma</function></funcdef> "
22038"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22039"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22040"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22041"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22042"<function>ST_Mean4ma</function></funcdef> <paramdef><type>double precision[]"
22043"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22044"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22045"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22046
22047#. Tag: para
22048#: reference_raster.xml:8877
22049#, no-c-format
22050msgid "Calculate the mean pixel value in a neighborhood of pixels."
22051msgstr "近隣のピクセル値の平均値を計算します。"
22052
22053#. Tag: programlisting
22054#: reference_raster.xml:8906
22055#, no-c-format
22056msgid ""
22057"SELECT\n"
22058"    rid,\n"
22059"    st_value(\n"
22060"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_mean4ma(float[][],"
22061"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22062"    )\n"
22063"FROM dummy_rast\n"
22064"WHERE rid = 2;\n"
22065" rid |     st_value\n"
22066"-----+------------------\n"
22067"   2 | 253.222229003906\n"
22068"(1 row)"
22069msgstr ""
22070"SELECT\n"
22071"    rid,\n"
22072"    st_value(\n"
22073"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_mean4ma(float[][],"
22074"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22075"    )\n"
22076"FROM dummy_rast\n"
22077"WHERE rid = 2;\n"
22078" rid |     st_value\n"
22079"-----+------------------\n"
22080"   2 | 253.222229003906\n"
22081"(1 row)"
22082
22083#. Tag: programlisting
22084#: reference_raster.xml:8913
22085#, no-c-format
22086msgid ""
22087"SELECT\n"
22088"    rid,\n"
22089"    st_value(\n"
22090"              ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], "
22091"integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1)\n"
22092"       ,  2, 2)\n"
22093"  FROM dummy_rast\n"
22094"   WHERE rid = 2;\n"
22095" rid |     st_value\n"
22096"-----+------------------\n"
22097"   2 | 253.222229003906\n"
22098"(1 row)"
22099msgstr ""
22100"SELECT\n"
22101"    rid,\n"
22102"    st_value(\n"
22103"              ST_MapAlgebra(rast, 1, 'st_mean4ma(double precision[][][], "
22104"integer[][], text[])'::regprocedure,'32BF', 'FIRST', NULL, 1, 1)\n"
22105"       ,  2, 2)\n"
22106"  FROM dummy_rast\n"
22107"   WHERE rid = 2;\n"
22108" rid |     st_value\n"
22109"-----+------------------\n"
22110"   2 | 253.222229003906\n"
22111"(1 row)"
22112
22113#. Tag: para
22114#: reference_raster.xml:8919
22115#, no-c-format
22116msgid ""
22117", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22118"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
22119"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_StdDev4ma\"/>"
22120msgstr ""
22121", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22122"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Sum4ma\"/>, <xref "
22123"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_StdDev4ma\"/>"
22124
22125#. Tag: refname
22126#: reference_raster.xml:8933
22127#, no-c-format
22128msgid "ST_Min4ma"
22129msgstr "ST_Min4ma"
22130
22131#. Tag: refpurpose
22132#: reference_raster.xml:8934
22133#, no-c-format
22134msgid ""
22135"Raster processing function that calculates the minimum pixel value in a "
22136"neighborhood."
22137msgstr "近隣のピクセル値の最小値を計算するラスタ処理関数です。"
22138
22139#. Tag: funcsynopsis
22140#: reference_raster.xml:8940
22141#, no-c-format
22142msgid ""
22143"<funcprototype> <funcdef>float8 <function>ST_Min4ma</function></funcdef> "
22144"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22145"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
22146"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22147"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22148"<function>ST_Min4ma</function></funcdef> <paramdef><type>double precision[][]"
22149"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22150"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22151"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22152msgstr ""
22153"<funcprototype> <funcdef>float8 <function>ST_Min4ma</function></funcdef> "
22154"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22155"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
22156"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22157"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22158"<function>ST_Min4ma</function></funcdef> <paramdef><type>double precision[][]"
22159"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22160"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22161"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22162
22163#. Tag: para
22164#: reference_raster.xml:8960
22165#, no-c-format
22166msgid "Calculate the minimum pixel value in a neighborhood of pixels."
22167msgstr "近隣のピクセル値の最小値を計算します。"
22168
22169#. Tag: programlisting
22170#: reference_raster.xml:8993
22171#, no-c-format
22172msgid ""
22173"SELECT\n"
22174"    rid,\n"
22175"    st_value(\n"
22176"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text,"
22177"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22178"    )\n"
22179"FROM dummy_rast\n"
22180"WHERE rid = 2;\n"
22181" rid | st_value\n"
22182"-----+----------\n"
22183"   2 |      250\n"
22184"(1 row)"
22185msgstr ""
22186"SELECT\n"
22187"    rid,\n"
22188"    st_value(\n"
22189"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text,"
22190"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22191"    )\n"
22192"FROM dummy_rast\n"
22193"WHERE rid = 2;\n"
22194" rid | st_value\n"
22195"-----+----------\n"
22196"   2 |      250\n"
22197"(1 row)"
22198
22199#. Tag: para
22200#: reference_raster.xml:8998
22201#, no-c-format
22202msgid ""
22203", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, "
22204"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22205"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22206"linkend=\"RT_ST_StdDev4ma\"/>"
22207msgstr ""
22208", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Max4ma\"/>, "
22209"<xref linkend=\"RT_ST_Sum4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22210"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22211"linkend=\"RT_ST_StdDev4ma\"/>"
22212
22213#. Tag: refname
22214#: reference_raster.xml:9013
22215#, no-c-format
22216msgid "ST_MinDist4ma"
22217msgstr "ST_MinDist4ma"
22218
22219#. Tag: refpurpose
22220#: reference_raster.xml:9014
22221#, no-c-format
22222msgid ""
22223"Raster processing function that returns the minimum distance (in number of "
22224"pixels) between the pixel of interest and a neighboring pixel with value."
22225msgstr ""
22226"対象ピクセルと値を持つ近隣ピクセルとの最短距離をピクセル単位で返すラスタ処理"
22227"関数です。"
22228
22229#. Tag: funcprototype
22230#: reference_raster.xml:9019
22231#, no-c-format
22232msgid ""
22233"<funcdef>double precision <function>ST_MinDist4ma</function></funcdef> "
22234"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
22235"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
22236"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
22237"parameter></paramdef>"
22238msgstr ""
22239"<funcdef>double precision <function>ST_MinDist4ma</function></funcdef> "
22240"<paramdef><type>double precision[][][]</type> <parameter>value</parameter></"
22241"paramdef> <paramdef><type>integer[][]</type> <parameter>pos</parameter></"
22242"paramdef> <paramdef><type>text[]</type> <parameter>VARIADIC userargs</"
22243"parameter></paramdef>"
22244
22245#. Tag: para
22246#: reference_raster.xml:9031
22247#, no-c-format
22248msgid ""
22249"Return the shortest distance (in number of pixels) between the pixel of "
22250"interest and the closest pixel with value in the neighborhood."
22251msgstr ""
22252"対象ピクセルと値を持つ近隣ピクセルとの最短距離をピクセル単位で返します。"
22253
22254#. Tag: para
22255#: reference_raster.xml:9034
22256#, no-c-format
22257msgid ""
22258"The intent of this function is to provide an informative data point that "
22259"helps infer the usefulness of the pixel of interest's interpolated value "
22260"from <xref linkend=\"RT_ST_InvDistWeight4ma\"/>. This function is "
22261"particularly useful when the neighborhood is sparsely populated."
22262msgstr ""
22263"この関数の意図は、<xref linkend=\"RT_ST_InvDistWeight4ma\"/>から対象ピクセル"
22264"の内挿補間された値の有用性を判断することを補助するのに有益なデータポイントを"
22265"提供することです。この関数は近隣セルの密度が小さい時に特に使えます。"
22266
22267#. Tag: para
22268#: reference_raster.xml:9053
22269#, no-c-format
22270msgid ", <xref linkend=\"RT_ST_InvDistWeight4ma\"/>"
22271msgstr ", <xref linkend=\"RT_ST_InvDistWeight4ma\"/>"
22272
22273#. Tag: refname
22274#: reference_raster.xml:9062
22275#, no-c-format
22276msgid "ST_Range4ma"
22277msgstr "ST_Range4ma"
22278
22279#. Tag: refpurpose
22280#: reference_raster.xml:9063
22281#, no-c-format
22282msgid ""
22283"Raster processing function that calculates the range of pixel values in a "
22284"neighborhood."
22285msgstr "近隣のピクセル値の範囲を計算するラスタ処理関数です。"
22286
22287#. Tag: funcsynopsis
22288#: reference_raster.xml:9067
22289#, no-c-format
22290msgid ""
22291"<funcprototype> <funcdef>float8 <function>ST_Range4ma</function></funcdef> "
22292"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22293"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22294"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22295"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22296"<function>ST_Range4ma</function></funcdef> <paramdef><type>double precision[]"
22297"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22298"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22299"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22300msgstr ""
22301"<funcprototype> <funcdef>float8 <function>ST_Range4ma</function></funcdef> "
22302"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22303"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22304"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22305"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22306"<function>ST_Range4ma</function></funcdef> <paramdef><type>double precision[]"
22307"[][]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22308"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22309"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22310
22311#. Tag: para
22312#: reference_raster.xml:9087
22313#, no-c-format
22314msgid "Calculate the range of pixel values in a neighborhood of pixels."
22315msgstr "近隣のピクセル値の範囲を計算します。"
22316
22317#. Tag: programlisting
22318#: reference_raster.xml:9116
22319#, no-c-format
22320msgid ""
22321"SELECT\n"
22322"    rid,\n"
22323"    st_value(\n"
22324"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_range4ma(float[][],text,"
22325"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22326"    )\n"
22327"FROM dummy_rast\n"
22328"WHERE rid = 2;\n"
22329" rid | st_value\n"
22330"-----+----------\n"
22331"   2 |        4\n"
22332"(1 row)"
22333msgstr ""
22334"SELECT\n"
22335"    rid,\n"
22336"    st_value(\n"
22337"        st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_range4ma(float[][],text,"
22338"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22339"    )\n"
22340"FROM dummy_rast\n"
22341"WHERE rid = 2;\n"
22342" rid | st_value\n"
22343"-----+----------\n"
22344"   2 |        4\n"
22345"(1 row)"
22346
22347#. Tag: refname
22348#: reference_raster.xml:9137
22349#, no-c-format
22350msgid "ST_StdDev4ma"
22351msgstr "ST_StdDev4ma"
22352
22353#. Tag: refpurpose
22354#: reference_raster.xml:9138
22355#, no-c-format
22356msgid ""
22357"Raster processing function that calculates the standard deviation of pixel "
22358"values in a neighborhood."
22359msgstr "近隣のピクセル値の標準偏差を計算するラスタ処理関数です。"
22360
22361#. Tag: funcsynopsis
22362#: reference_raster.xml:9142
22363#, no-c-format
22364msgid ""
22365"<funcprototype> <funcdef>float8 <function>ST_StdDev4ma</function></funcdef> "
22366"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22367"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
22368"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22369"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22370"<function>ST_StdDev4ma</function></funcdef> <paramdef><type>double "
22371"precision[][][]</type> <parameter>value</parameter></paramdef> "
22372"<paramdef><type>integer[][] </type> <parameter>pos</parameter></paramdef> "
22373"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
22374"paramdef> </funcprototype>"
22375msgstr ""
22376"<funcprototype> <funcdef>float8 <function>ST_StdDev4ma</function></funcdef> "
22377"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22378"<paramdef><type>text </type> <parameter>nodatamode</parameter></paramdef> "
22379"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22380"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22381"<function>ST_StdDev4ma</function></funcdef> <paramdef><type>double "
22382"precision[][][]</type> <parameter>value</parameter></paramdef> "
22383"<paramdef><type>integer[][] </type> <parameter>pos</parameter></paramdef> "
22384"<paramdef><type>text[]</type> <parameter>VARIADIC userargs</parameter></"
22385"paramdef> </funcprototype>"
22386
22387#. Tag: para
22388#: reference_raster.xml:9162
22389#, no-c-format
22390msgid ""
22391"Calculate the standard deviation of pixel values in a neighborhood of pixels."
22392msgstr "近隣のピクセル値の標準偏差を計算します。"
22393
22394#. Tag: programlisting
22395#: reference_raster.xml:9187
22396#, no-c-format
22397msgid ""
22398"SELECT\n"
22399"    rid,\n"
22400"    st_value(\n"
22401"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_stddev4ma(float[][],"
22402"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22403"    )\n"
22404"FROM dummy_rast\n"
22405"WHERE rid = 2;\n"
22406" rid |     st_value\n"
22407"-----+------------------\n"
22408"   2 | 1.30170822143555\n"
22409"(1 row)"
22410msgstr ""
22411"SELECT\n"
22412"    rid,\n"
22413"    st_value(\n"
22414"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_stddev4ma(float[][],"
22415"text,text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22416"    )\n"
22417"FROM dummy_rast\n"
22418"WHERE rid = 2;\n"
22419" rid |     st_value\n"
22420"-----+------------------\n"
22421"   2 | 1.30170822143555\n"
22422"(1 row)"
22423
22424#. Tag: refname
22425#: reference_raster.xml:9208
22426#, no-c-format
22427msgid "ST_Sum4ma"
22428msgstr "ST_Sum4ma"
22429
22430#. Tag: refpurpose
22431#: reference_raster.xml:9209
22432#, no-c-format
22433msgid ""
22434"Raster processing function that calculates the sum of all pixel values in a "
22435"neighborhood."
22436msgstr "近隣のピクセル値の合計を計算するラスタ処理関数です。"
22437
22438#. Tag: funcsynopsis
22439#: reference_raster.xml:9213
22440#, no-c-format
22441msgid ""
22442"<funcprototype> <funcdef>float8 <function>ST_Sum4ma</function></funcdef> "
22443"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22444"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22445"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22446"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22447"<function>ST_Sum4ma</function></funcdef> <paramdef><type>double precision[][]"
22448"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22449"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22450"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22451msgstr ""
22452"<funcprototype> <funcdef>float8 <function>ST_Sum4ma</function></funcdef> "
22453"<paramdef><type>float8[][]</type> <parameter>matrix</parameter></paramdef> "
22454"<paramdef><type>text</type> <parameter>nodatamode</parameter></paramdef> "
22455"<paramdef><type>text[]</type> <parameter>VARIADIC args</parameter></"
22456"paramdef> </funcprototype> <funcprototype> <funcdef>double precision "
22457"<function>ST_Sum4ma</function></funcdef> <paramdef><type>double precision[][]"
22458"[]</type> <parameter>value</parameter></paramdef> <paramdef><type>integer[]"
22459"[] </type> <parameter>pos</parameter></paramdef> <paramdef><type>text[]</"
22460"type> <parameter>VARIADIC userargs</parameter></paramdef> </funcprototype>"
22461
22462#. Tag: para
22463#: reference_raster.xml:9233
22464#, no-c-format
22465msgid "Calculate the sum of all pixel values in a neighborhood of pixels."
22466msgstr "近隣のピクセル値の合計を計算します。"
22467
22468#. Tag: programlisting
22469#: reference_raster.xml:9262
22470#, no-c-format
22471msgid ""
22472"SELECT\n"
22473"    rid,\n"
22474"    st_value(\n"
22475"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_sum4ma(float[][],text,"
22476"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22477"    )\n"
22478"FROM dummy_rast\n"
22479"WHERE rid = 2;\n"
22480" rid | st_value\n"
22481"-----+----------\n"
22482"   2 |     2279\n"
22483"(1 row)"
22484msgstr ""
22485"SELECT\n"
22486"    rid,\n"
22487"    st_value(\n"
22488"        st_mapalgebrafctngb(rast, 1, '32BF', 1, 1, 'st_sum4ma(float[][],text,"
22489"text[])'::regprocedure, 'ignore', NULL), 2, 2\n"
22490"    )\n"
22491"FROM dummy_rast\n"
22492"WHERE rid = 2;\n"
22493" rid | st_value\n"
22494"-----+----------\n"
22495"   2 |     2279\n"
22496"(1 row)"
22497
22498#. Tag: para
22499#: reference_raster.xml:9268
22500#, no-c-format
22501msgid ""
22502", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22503"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22504"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22505"linkend=\"RT_ST_StdDev4ma\"/>"
22506msgstr ""
22507", <xref linkend=\"RT_ST_MapAlgebra\"/>, <xref linkend=\"RT_ST_Min4ma\"/>, "
22508"<xref linkend=\"RT_ST_Max4ma\"/>, <xref linkend=\"RT_ST_Mean4ma\"/>, <xref "
22509"linkend=\"RT_ST_Range4ma\"/>, <xref linkend=\"RT_ST_Distinct4ma\"/>, <xref "
22510"linkend=\"RT_ST_StdDev4ma\"/>"
22511
22512#. Tag: title
22513#: reference_raster.xml:9284
22514#, no-c-format
22515msgid "DEM (Elevation)"
22516msgstr "DEM (標高)"
22517
22518#. Tag: refname
22519#: reference_raster.xml:9288
22520#, no-c-format
22521msgid "ST_Aspect"
22522msgstr "ST_Aspect"
22523
22524#. Tag: refpurpose
22525#: reference_raster.xml:9289
22526#, no-c-format
22527msgid ""
22528"Returns the aspect (in degrees by default) of an elevation raster band. "
22529"Useful for analyzing terrain."
22530msgstr ""
22531"標高ラスタバンドの傾斜方向 (デフォルトの単位は度)を返します。地形解析に使えま"
22532"す。"
22533
22534#. Tag: funcsynopsis
22535#: reference_raster.xml:9292
22536#, no-c-format
22537msgid ""
22538"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
22539"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22540"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
22541"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
22542"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22543"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
22544"<paramdef choice=\"opt\"><type>boolean </type> "
22545"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype> "
22546"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
22547"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22548"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
22549"<paramdef><type>raster </type> <parameter>customextent</parameter></"
22550"paramdef> <paramdef choice=\"opt\"><type>text </type> "
22551"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22552"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
22553"<paramdef choice=\"opt\"><type>boolean </type> "
22554"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
22555msgstr ""
22556"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
22557"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22558"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
22559"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
22560"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22561"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
22562"<paramdef choice=\"opt\"><type>boolean </type> "
22563"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype> "
22564"<funcprototype> <funcdef>raster <function>ST_Aspect</function></funcdef> "
22565"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22566"<paramdef><type>integer </type> <parameter>band</parameter></paramdef> "
22567"<paramdef><type>raster </type> <parameter>customextent</parameter></"
22568"paramdef> <paramdef choice=\"opt\"><type>text </type> "
22569"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22570"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
22571"<paramdef choice=\"opt\"><type>boolean </type> "
22572"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
22573
22574#. Tag: para
22575#: reference_raster.xml:9317
22576#, no-c-format
22577msgid ""
22578"Returns the aspect (in degrees by default) of an elevation raster band. "
22579"Utilizes map algebra and applies the aspect equation to neighboring pixels."
22580msgstr ""
22581"標高ラスタバンドの傾斜方向 (デフォルトの単位は度)を返します。地図代数を利用し"
22582"て、傾斜方向方程式を隣接ピクセルに適用します。"
22583
22584#. Tag: para
22585#: reference_raster.xml:9319
22586#, no-c-format
22587msgid ""
22588"<varname>units</varname> indicates the units of the aspect. Possible values "
22589"are: RADIANS, DEGREES (default)."
22590msgstr ""
22591"<varname>units</varname>は、傾斜方向の単位を示します。取りえる値はRADIANS, "
22592"DEGREES (デフォルト)です。"
22593
22594#. Tag: para
22595#: reference_raster.xml:9323
22596#, no-c-format
22597msgid ""
22598"When <varname>units</varname> = RADIANS, values are between 0 and 2 * pi "
22599"radians measured clockwise from North."
22600msgstr ""
22601"<varname>units</varname>がRADIANSの時、値は0から2πラジアンの間で、北から時計"
22602"回りに計ります。"
22603
22604#. Tag: para
22605#: reference_raster.xml:9327
22606#, no-c-format
22607msgid ""
22608"When <varname>units</varname> = DEGREES, values are between 0 and 360 "
22609"degrees measured clockwise from North."
22610msgstr ""
22611"<varname>units</varname>がDEGREESの時、値は0から360度の間で、北から時計回りに"
22612"計ります。"
22613
22614#. Tag: para
22615#: reference_raster.xml:9331
22616#, no-c-format
22617msgid "If slope of pixel is zero, aspect of pixel is -1."
22618msgstr "ピクセルの傾斜角が0の場合には、傾斜方向は-1とします。"
22619
22620#. Tag: para
22621#: reference_raster.xml:9336
22622#, no-c-format
22623msgid ""
22624"For more information about Slope, Aspect and Hillshade, please refer to "
22625"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?"
22626"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and "
22627"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/"
22628"wwhelp.htm?context=FieldGuide&amp;file=Aspect_Images.html\">ERDAS Field "
22629"Guide - Aspect Images</ulink>."
22630msgstr ""
22631"傾斜角、傾斜方および陰影起伏に関する詳細情報については、<ulink url=\"http://"
22632"webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade"
22633"%20works\">ESRI - How hillshade works</ulink>および<ulink url=\"http://e2b."
22634"erdas.com/fieldguide/wwhelp/wwhimpl/common/html/wwhelp.htm?"
22635"context=FieldGuide&amp;file=Aspect_Images.html\">ERDAS Field Guide - Aspect "
22636"Images</ulink>を参照して下さい。"
22637
22638#. Tag: para
22639#: reference_raster.xml:9342 reference_raster.xml:9438
22640#, no-c-format
22641msgid ""
22642"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional "
22643"<varname>interpolate_nodata</varname> function parameter"
22644msgstr ""
22645"Enhanced: 2.1.0 ST_MapAlgebra()を使用するようにし、"
22646"<varname>interpolate_nodata</varname>任意引数を追加しました。"
22647
22648#. Tag: para
22649#: reference_raster.xml:9343 reference_raster.xml:9567
22650#, no-c-format
22651msgid ""
22652"Changed: 2.1.0 In prior versions, return values were in radians. Now, return "
22653"values default to degrees"
22654msgstr ""
22655"Changed: 2.1.0 以前の版では、返り値はラジアン単位でした。現在は、デフォルトで"
22656"は度で返します。"
22657
22658#. Tag: programlisting
22659#: reference_raster.xml:9348
22660#, no-c-format
22661msgid ""
22662"WITH foo AS (\n"
22663"        SELECT ST_SetValues(\n"
22664"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
22665"1, '32BF', 0, -9999),\n"
22666"                1, 1, 1, ARRAY[\n"
22667"                        [1, 1, 1, 1, 1],\n"
22668"                        [1, 2, 2, 2, 1],\n"
22669"                        [1, 2, 3, 2, 1],\n"
22670"                        [1, 2, 2, 2, 1],\n"
22671"                        [1, 1, 1, 1, 1]\n"
22672"                ]::double precision[][]\n"
22673"        ) AS rast\n"
22674")\n"
22675"SELECT\n"
22676"        ST_DumpValues(ST_Aspect(rast, 1, '32BF'))\n"
22677"FROM foo\n"
22678"\n"
22679"                                                                                                    st_dumpvalues\n"
22680"\n"
22681"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
22682"----------------------------------\n"
22683" (1,\"{{315,341.565063476562,0,18.4349479675293,45},"
22684"{288.434936523438,315,0,45,71.5650482177734},{270,270,-1,90,90},"
22685"{251.565048217773,225,180,135,108.434951782227},{225,198.43495178\n"
22686"2227,180,161.565048217773,135}}\")\n"
22687"(1 row)"
22688msgstr ""
22689"WITH foo AS (\n"
22690"        SELECT ST_SetValues(\n"
22691"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
22692"1, '32BF', 0, -9999),\n"
22693"                1, 1, 1, ARRAY[\n"
22694"                        [1, 1, 1, 1, 1],\n"
22695"                        [1, 2, 2, 2, 1],\n"
22696"                        [1, 2, 3, 2, 1],\n"
22697"                        [1, 2, 2, 2, 1],\n"
22698"                        [1, 1, 1, 1, 1]\n"
22699"                ]::double precision[][]\n"
22700"        ) AS rast\n"
22701")\n"
22702"SELECT\n"
22703"        ST_DumpValues(ST_Aspect(rast, 1, '32BF'))\n"
22704"FROM foo\n"
22705"\n"
22706"                                                                                                    st_dumpvalues\n"
22707"\n"
22708"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
22709"----------------------------------\n"
22710" (1,\"{{315,341.565063476562,0,18.4349479675293,45},"
22711"{288.434936523438,315,0,45,71.5650482177734},{270,270,-1,90,90},"
22712"{251.565048217773,225,180,135,108.434951782227},{225,198.43495178\n"
22713"2227,180,161.565048217773,135}}\")\n"
22714"(1 row)"
22715
22716#. Tag: para
22717#: reference_raster.xml:9354 reference_raster.xml:9451
22718#: reference_raster.xml:9579
22719#, no-c-format
22720msgid ""
22721"Complete example of tiles of a coverage. This query only works with "
22722"PostgreSQL 9.1 or higher."
22723msgstr ""
22724"カバレッジのタイルの完全な例です。このクエリはPostgreSQL 9.1以上でのみ動作し"
22725"ます。"
22726
22727#. Tag: programlisting
22728#: reference_raster.xml:9356
22729#, no-c-format
22730msgid ""
22731"WITH foo AS (\n"
22732"        SELECT ST_Tile(\n"
22733"                ST_SetValues(\n"
22734"                        ST_AddBand(\n"
22735"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
22736"0),\n"
22737"                                1, '32BF', 0, -9999\n"
22738"                        ),\n"
22739"                        1, 1, 1, ARRAY[\n"
22740"                                [1, 1, 1, 1, 1, 1],\n"
22741"                                [1, 1, 1, 1, 2, 1],\n"
22742"                                [1, 2, 2, 3, 3, 1],\n"
22743"                                [1, 1, 3, 2, 1, 1],\n"
22744"                                [1, 2, 2, 1, 2, 1],\n"
22745"                                [1, 1, 1, 1, 1, 1]\n"
22746"                        ]::double precision[]\n"
22747"                ),\n"
22748"                2, 2\n"
22749"        ) AS rast\n"
22750")\n"
22751"SELECT\n"
22752"        t1.rast,\n"
22753"        ST_Aspect(ST_Union(t2.rast), 1, t1.rast)\n"
22754"FROM foo t1\n"
22755"CROSS JOIN foo t2\n"
22756"WHERE ST_Intersects(t1.rast, t2.rast)\n"
22757"GROUP BY t1.rast;"
22758msgstr ""
22759"WITH foo AS (\n"
22760"        SELECT ST_Tile(\n"
22761"                ST_SetValues(\n"
22762"                        ST_AddBand(\n"
22763"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
22764"0),\n"
22765"                                1, '32BF', 0, -9999\n"
22766"                        ),\n"
22767"                        1, 1, 1, ARRAY[\n"
22768"                                [1, 1, 1, 1, 1, 1],\n"
22769"                                [1, 1, 1, 1, 2, 1],\n"
22770"                                [1, 2, 2, 3, 3, 1],\n"
22771"                                [1, 1, 3, 2, 1, 1],\n"
22772"                                [1, 2, 2, 1, 2, 1],\n"
22773"                                [1, 1, 1, 1, 1, 1]\n"
22774"                        ]::double precision[]\n"
22775"                ),\n"
22776"                2, 2\n"
22777"        ) AS rast\n"
22778")\n"
22779"SELECT\n"
22780"        t1.rast,\n"
22781"        ST_Aspect(ST_Union(t2.rast), 1, t1.rast)\n"
22782"FROM foo t1\n"
22783"CROSS JOIN foo t2\n"
22784"WHERE ST_Intersects(t1.rast, t2.rast)\n"
22785"GROUP BY t1.rast;"
22786
22787#. Tag: para
22788#: reference_raster.xml:9361
22789#, no-c-format
22790msgid ""
22791", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
22792"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
22793"linkend=\"RT_ST_Slope\"/>"
22794msgstr ""
22795", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
22796"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
22797"linkend=\"RT_ST_Slope\"/>"
22798
22799#. Tag: refname
22800#: reference_raster.xml:9374
22801#, no-c-format
22802msgid "ST_HillShade"
22803msgstr "ST_HillShade"
22804
22805#. Tag: refpurpose
22806#: reference_raster.xml:9375
22807#, no-c-format
22808msgid ""
22809"Returns the hypothetical illumination of an elevation raster band using "
22810"provided azimuth, altitude, brightness and scale inputs."
22811msgstr ""
22812"与えられた方位、高度、明度、スケールの入力を使って標高ラスタバンドの仮想照明"
22813"を返します。"
22814
22815#. Tag: funcsynopsis
22816#: reference_raster.xml:9378
22817#, no-c-format
22818msgid ""
22819"<funcprototype> <funcdef>raster <function>ST_HillShade</function></funcdef> "
22820"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22821"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
22822"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
22823"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22824"\"><type>double precision </type> <parameter>azimuth=315</parameter></"
22825"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22826"<parameter>altitude=45</parameter></paramdef> <paramdef choice=\"opt"
22827"\"><type>double precision </type> <parameter>max_bright=255</parameter></"
22828"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22829"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
22830"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
22831"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
22832"<function>ST_HillShade</function></funcdef> <paramdef><type>raster </type> "
22833"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
22834"<parameter>band</parameter></paramdef> <paramdef><type>raster </type> "
22835"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
22836"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
22837"<paramdef choice=\"opt\"><type>double precision </type> "
22838"<parameter>azimuth=315</parameter></paramdef> <paramdef choice=\"opt"
22839"\"><type>double precision </type> <parameter>altitude=45</parameter></"
22840"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22841"<parameter>max_bright=255</parameter></paramdef> <paramdef choice=\"opt"
22842"\"><type>double precision </type> <parameter>scale=1.0</parameter></"
22843"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
22844"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
22845msgstr ""
22846"<funcprototype> <funcdef>raster <function>ST_HillShade</function></funcdef> "
22847"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
22848"<paramdef choice=\"opt\"><type>integer </type> <parameter>band=1</"
22849"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
22850"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
22851"\"><type>double precision </type> <parameter>azimuth=315</parameter></"
22852"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22853"<parameter>altitude=45</parameter></paramdef> <paramdef choice=\"opt"
22854"\"><type>double precision </type> <parameter>max_bright=255</parameter></"
22855"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22856"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
22857"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
22858"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
22859"<function>ST_HillShade</function></funcdef> <paramdef><type>raster </type> "
22860"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
22861"<parameter>band</parameter></paramdef> <paramdef><type>raster </type> "
22862"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
22863"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
22864"<paramdef choice=\"opt\"><type>double precision </type> "
22865"<parameter>azimuth=315</parameter></paramdef> <paramdef choice=\"opt"
22866"\"><type>double precision </type> <parameter>altitude=45</parameter></"
22867"paramdef> <paramdef choice=\"opt\"><type>double precision </type> "
22868"<parameter>max_bright=255</parameter></paramdef> <paramdef choice=\"opt"
22869"\"><type>double precision </type> <parameter>scale=1.0</parameter></"
22870"paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
22871"<parameter>interpolate_nodata=FALSE</parameter></paramdef> </funcprototype>"
22872
22873#. Tag: para
22874#: reference_raster.xml:9409
22875#, no-c-format
22876msgid ""
22877"Returns the hypothetical illumination of an elevation raster band using the "
22878"azimuth, altitude, brightness, and scale inputs. Utilizes map algebra and "
22879"applies the hill shade equation to neighboring pixels. Return pixel values "
22880"are between 0 and 255."
22881msgstr ""
22882"与えられた方位、高度、明度、スケールの入力を使って標高ラスタバンドの仮想照明"
22883"を返します。地図代数を使って、陰影図方程式を隣接ピクセルに適用します。返され"
22884"るピクセル値は0と255の間です。"
22885
22886#. Tag: para
22887#: reference_raster.xml:9411
22888#, no-c-format
22889msgid ""
22890"<varname>azimuth</varname> is a value between 0 and 360 degrees measured "
22891"clockwise from North."
22892msgstr ""
22893"<varname>azimuth</varname>は0から360度の間の値で、北から時計回りに計ります。"
22894
22895#. Tag: para
22896#: reference_raster.xml:9415
22897#, no-c-format
22898msgid ""
22899"<varname>altitude</varname> is a value between 0 and 90 degrees where 0 "
22900"degrees is at the horizon and 90 degrees is directly overhead."
22901msgstr ""
22902"<varname>altitude</varname>は0から90度の間で、0が水平、90が鉛直上向きです。"
22903
22904#. Tag: para
22905#: reference_raster.xml:9419
22906#, no-c-format
22907msgid ""
22908"<varname>max_bright</varname> is a value between 0 and 255 with 0 as no "
22909"brightness and 255 as max brightness."
22910msgstr ""
22911"<varname>max_bright</varname>は0から255までの間で、0は明度なしで、255が最大明"
22912"度です。"
22913
22914#. Tag: para
22915#: reference_raster.xml:9423 reference_raster.xml:9551
22916#, no-c-format
22917msgid ""
22918"<varname>scale</varname> is the ratio of vertical units to horizontal. For "
22919"Feet:LatLon use scale=370400, for Meters:LatLon use scale=111120."
22920msgstr ""
22921"<varname>scale</varname>は鉛直単位と水平単位との比です。フィート:経度緯度では"
22922"scale=370400となり、メートル:経度緯度ではscale=111120となります。"
22923
22924#. Tag: para
22925#: reference_raster.xml:9427
22926#, no-c-format
22927msgid ""
22928"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels "
22929"from the input raster will be interpolated using <xref linkend="
22930"\"RT_ST_InvDistWeight4ma\"/> before computing the hillshade illumination."
22931msgstr ""
22932"<varname>interpolate_nodata</varname>がTRUEの場合には、入力ラスタのNODATAピク"
22933"セルの値は陰影図を計算する前に<xref linkend=\"RT_ST_InvDistWeight4ma\"/>を"
22934"使って内挿を行います。"
22935
22936#. Tag: para
22937#: reference_raster.xml:9432
22938#, no-c-format
22939msgid ""
22940"For more information about Hillshade, please refer to <ulink url=\"http://"
22941"webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade"
22942"%20works\">How hillshade works</ulink>."
22943msgstr ""
22944"陰影図に関する詳細情報については <ulink url=\"http://webhelp.esri.com/"
22945"arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade%20works\">How "
22946"hillshade works</ulink>をご覧下さい。"
22947
22948#. Tag: para
22949#: reference_raster.xml:9439
22950#, no-c-format
22951msgid ""
22952"Changed: 2.1.0 In prior versions, azimuth and altitude were expressed in "
22953"radians. Now, azimuth and altitude are expressed in degrees"
22954msgstr ""
22955"Changed: 2.1.0 以前の版ではazimuthとaltitudeはラジアン単位で表現しました。現"
22956"在はazimuthとaltitudeは度単位で表現します。"
22957
22958#. Tag: programlisting
22959#: reference_raster.xml:9445
22960#, no-c-format
22961msgid ""
22962"WITH foo AS (\n"
22963"        SELECT ST_SetValues(\n"
22964"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
22965"1, '32BF', 0, -9999),\n"
22966"                1, 1, 1, ARRAY[\n"
22967"                        [1, 1, 1, 1, 1],\n"
22968"                        [1, 2, 2, 2, 1],\n"
22969"                        [1, 2, 3, 2, 1],\n"
22970"                        [1, 2, 2, 2, 1],\n"
22971"                        [1, 1, 1, 1, 1]\n"
22972"                ]::double precision[][]\n"
22973"        ) AS rast\n"
22974")\n"
22975"SELECT\n"
22976"        ST_DumpValues(ST_Hillshade(rast, 1, '32BF'))\n"
22977"FROM foo\n"
22978"\n"
22979"                                                                                                                       st_dumpvalues\n"
22980"\n"
22981"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
22982"-----------------------------------------------------------------------\n"
22983" (1,\"{{NULL,NULL,NULL,NULL,NULL},"
22984"{NULL,251.32763671875,220.749786376953,147.224319458008,NULL},"
22985"{NULL,220.749786376953,180.312225341797,67.7497863769531,NULL},"
22986"{NULL,147.224319458008\n"
22987",67.7497863769531,43.1210060119629,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
22988"(1 row)"
22989msgstr ""
22990"WITH foo AS (\n"
22991"        SELECT ST_SetValues(\n"
22992"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
22993"1, '32BF', 0, -9999),\n"
22994"                1, 1, 1, ARRAY[\n"
22995"                        [1, 1, 1, 1, 1],\n"
22996"                        [1, 2, 2, 2, 1],\n"
22997"                        [1, 2, 3, 2, 1],\n"
22998"                        [1, 2, 2, 2, 1],\n"
22999"                        [1, 1, 1, 1, 1]\n"
23000"                ]::double precision[][]\n"
23001"        ) AS rast\n"
23002")\n"
23003"SELECT\n"
23004"        ST_DumpValues(ST_Hillshade(rast, 1, '32BF'))\n"
23005"FROM foo\n"
23006"\n"
23007"                                                                                                                       st_dumpvalues\n"
23008"\n"
23009"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
23010"-----------------------------------------------------------------------\n"
23011" (1,\"{{NULL,NULL,NULL,NULL,NULL},"
23012"{NULL,251.32763671875,220.749786376953,147.224319458008,NULL},"
23013"{NULL,220.749786376953,180.312225341797,67.7497863769531,NULL},"
23014"{NULL,147.224319458008\n"
23015",67.7497863769531,43.1210060119629,NULL},{NULL,NULL,NULL,NULL,NULL}}\")\n"
23016"(1 row)"
23017
23018#. Tag: programlisting
23019#: reference_raster.xml:9453
23020#, no-c-format
23021msgid ""
23022"WITH foo AS (\n"
23023"        SELECT ST_Tile(\n"
23024"                ST_SetValues(\n"
23025"                        ST_AddBand(\n"
23026"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
23027"0),\n"
23028"                                1, '32BF', 0, -9999\n"
23029"                        ),\n"
23030"                        1, 1, 1, ARRAY[\n"
23031"                                [1, 1, 1, 1, 1, 1],\n"
23032"                                [1, 1, 1, 1, 2, 1],\n"
23033"                                [1, 2, 2, 3, 3, 1],\n"
23034"                                [1, 1, 3, 2, 1, 1],\n"
23035"                                [1, 2, 2, 1, 2, 1],\n"
23036"                                [1, 1, 1, 1, 1, 1]\n"
23037"                        ]::double precision[]\n"
23038"                ),\n"
23039"                2, 2\n"
23040"        ) AS rast\n"
23041")\n"
23042"SELECT\n"
23043"        t1.rast,\n"
23044"        ST_Hillshade(ST_Union(t2.rast), 1, t1.rast)\n"
23045"FROM foo t1\n"
23046"CROSS JOIN foo t2\n"
23047"WHERE ST_Intersects(t1.rast, t2.rast)\n"
23048"GROUP BY t1.rast;"
23049msgstr ""
23050"WITH foo AS (\n"
23051"        SELECT ST_Tile(\n"
23052"                ST_SetValues(\n"
23053"                        ST_AddBand(\n"
23054"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
23055"0),\n"
23056"                                1, '32BF', 0, -9999\n"
23057"                        ),\n"
23058"                        1, 1, 1, ARRAY[\n"
23059"                                [1, 1, 1, 1, 1, 1],\n"
23060"                                [1, 1, 1, 1, 2, 1],\n"
23061"                                [1, 2, 2, 3, 3, 1],\n"
23062"                                [1, 1, 3, 2, 1, 1],\n"
23063"                                [1, 2, 2, 1, 2, 1],\n"
23064"                                [1, 1, 1, 1, 1, 1]\n"
23065"                        ]::double precision[]\n"
23066"                ),\n"
23067"                2, 2\n"
23068"        ) AS rast\n"
23069")\n"
23070"SELECT\n"
23071"        t1.rast,\n"
23072"        ST_Hillshade(ST_Union(t2.rast), 1, t1.rast)\n"
23073"FROM foo t1\n"
23074"CROSS JOIN foo t2\n"
23075"WHERE ST_Intersects(t1.rast, t2.rast)\n"
23076"GROUP BY t1.rast;"
23077
23078#. Tag: para
23079#: reference_raster.xml:9458
23080#, no-c-format
23081msgid ""
23082", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23083"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_Aspect\"/>, <xref "
23084"linkend=\"RT_ST_Slope\"/>"
23085msgstr ""
23086", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23087"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_Aspect\"/>, <xref "
23088"linkend=\"RT_ST_Slope\"/>"
23089
23090#. Tag: refname
23091#: reference_raster.xml:9471
23092#, no-c-format
23093msgid "ST_Roughness"
23094msgstr "ST_Roughness"
23095
23096#. Tag: refpurpose
23097#: reference_raster.xml:9472
23098#, no-c-format
23099msgid "Returns a raster with the calculated \"roughness\" of a DEM."
23100msgstr "DEMの「粗度」を計算したラスタを返します。"
23101
23102#. Tag: funcprototype
23103#: reference_raster.xml:9477
23104#, no-c-format
23105msgid ""
23106"<funcdef>raster <function>ST_Roughness</function></funcdef> "
23107"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23108"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
23109"<paramdef><type>raster </type> <parameter>customextent</parameter></"
23110"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype="
23111"\"32BF\"</parameter> </paramdef> <paramdef choice=\"opt\"><type>boolean </"
23112"type> <parameter> interpolate_nodata=FALSE </parameter> </paramdef>"
23113msgstr ""
23114"<funcdef>raster <function>ST_Roughness</function></funcdef> "
23115"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23116"<paramdef><type>integer </type> <parameter>nband</parameter></paramdef> "
23117"<paramdef><type>raster </type> <parameter>customextent</parameter></"
23118"paramdef> <paramdef choice=\"opt\"><type>text </type> <parameter>pixeltype="
23119"\"32BF\"</parameter> </paramdef> <paramdef choice=\"opt\"><type>boolean </"
23120"type> <parameter> interpolate_nodata=FALSE </parameter> </paramdef>"
23121
23122#. Tag: para
23123#: reference_raster.xml:9490
23124#, no-c-format
23125msgid ""
23126"Calculates the \"roughness\" of a DEM, by subtracting the maximum from the "
23127"minimum for a given area."
23128msgstr ""
23129"指定された領域の最大値から最小値を減じることでDEMの「粗度」を計算したラスタを"
23130"返します。"
23131
23132#. Tag: programlisting
23133#: reference_raster.xml:9496 reference_raster.xml:9629
23134#: reference_raster.xml:9680
23135#, no-c-format
23136msgid "-- needs examples"
23137msgstr "-- 例が必要"
23138
23139#. Tag: para
23140#: reference_raster.xml:9501
23141#, no-c-format
23142msgid ""
23143", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23144"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23145"linkend=\"RT_ST_Aspect\"/>"
23146msgstr ""
23147", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23148"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23149"linkend=\"RT_ST_Aspect\"/>"
23150
23151#. Tag: refname
23152#: reference_raster.xml:9514
23153#, no-c-format
23154msgid "ST_Slope"
23155msgstr "ST_Slope"
23156
23157#. Tag: refpurpose
23158#: reference_raster.xml:9515
23159#, no-c-format
23160msgid ""
23161"Returns the slope (in degrees by default) of an elevation raster band. "
23162"Useful for analyzing terrain."
23163msgstr ""
23164"標高ラスタバンドの傾斜角 (デフォルトでは度単位)を返します。地形解析に使えま"
23165"す。"
23166
23167#. Tag: funcsynopsis
23168#: reference_raster.xml:9518
23169#, no-c-format
23170msgid ""
23171"<funcprototype> <funcdef>raster <function>ST_Slope</function></funcdef> "
23172"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23173"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
23174"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
23175"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
23176"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
23177"<paramdef choice=\"opt\"><type>double precision </type> "
23178"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
23179"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
23180"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
23181"<function>ST_Slope</function></funcdef> <paramdef><type>raster </type> "
23182"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
23183"<parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23184"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23185"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
23186"<paramdef choice=\"opt\"><type>text </type> <parameter>units=DEGREES</"
23187"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
23188"type> <parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
23189"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
23190"paramdef> </funcprototype>"
23191msgstr ""
23192"<funcprototype> <funcdef>raster <function>ST_Slope</function></funcdef> "
23193"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23194"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=1</"
23195"parameter></paramdef> <paramdef choice=\"opt\"><type>text </type> "
23196"<parameter>pixeltype=32BF</parameter></paramdef> <paramdef choice=\"opt"
23197"\"><type>text </type> <parameter>units=DEGREES</parameter></paramdef> "
23198"<paramdef choice=\"opt\"><type>double precision </type> "
23199"<parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
23200"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
23201"paramdef> </funcprototype> <funcprototype> <funcdef>raster "
23202"<function>ST_Slope</function></funcdef> <paramdef><type>raster </type> "
23203"<parameter>rast</parameter></paramdef> <paramdef><type>integer </type> "
23204"<parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23205"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23206"\"><type>text </type> <parameter>pixeltype=32BF</parameter></paramdef> "
23207"<paramdef choice=\"opt\"><type>text </type> <parameter>units=DEGREES</"
23208"parameter></paramdef> <paramdef choice=\"opt\"><type>double precision </"
23209"type> <parameter>scale=1.0</parameter></paramdef> <paramdef choice=\"opt"
23210"\"><type>boolean </type> <parameter>interpolate_nodata=FALSE</parameter></"
23211"paramdef> </funcprototype>"
23212
23213#. Tag: para
23214#: reference_raster.xml:9545
23215#, no-c-format
23216msgid ""
23217"Returns the slope (in degrees by default) of an elevation raster band. "
23218"Utilizes map algebra and applies the slope equation to neighboring pixels."
23219msgstr ""
23220"標高ラスタバンドの傾斜角 (デフォルトでは度単位)を返します。地図代数を使って、"
23221"傾斜角方程式を隣接ピクセルに適用します。"
23222
23223#. Tag: para
23224#: reference_raster.xml:9547
23225#, no-c-format
23226msgid ""
23227"<varname>units</varname> indicates the units of the slope. Possible values "
23228"are: RADIANS, DEGREES (default), PERCENT."
23229msgstr ""
23230"<varname>units</varname>は傾斜角の単位を示します。取りえる値はRADIANS, "
23231"DEGREES (デフォルト), PERCENTです。"
23232
23233#. Tag: para
23234#: reference_raster.xml:9555
23235#, no-c-format
23236msgid ""
23237"If <varname>interpolate_nodata</varname> is TRUE, values for NODATA pixels "
23238"from the input raster will be interpolated using <xref linkend="
23239"\"RT_ST_InvDistWeight4ma\"/> before computing the surface slope."
23240msgstr ""
23241"<varname>interpolate_nodata</varname>がTRUEの場合には、入力ラスタのNODATAピク"
23242"セルの値は表面傾斜角を計算する前に<xref linkend=\"RT_ST_InvDistWeight4ma\"/>"
23243"を使って内挿を行います。"
23244
23245#. Tag: para
23246#: reference_raster.xml:9560
23247#, no-c-format
23248msgid ""
23249"For more information about Slope, Aspect and Hillshade, please refer to "
23250"<ulink url=\"http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?"
23251"TopicName=How%20Hillshade%20works\">ESRI - How hillshade works</ulink> and "
23252"<ulink url=\"http://e2b.erdas.com/fieldguide/wwhelp/wwhimpl/common/html/"
23253"wwhelp.htm?context=FieldGuide&amp;file=Slope_Images.html\">ERDAS Field Guide "
23254"- Slope Images</ulink>."
23255msgstr ""
23256"傾斜角、傾斜方および陰影起伏に関する詳細情報については、<ulink url=\"http://"
23257"webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=How%20Hillshade"
23258"%20works\">ESRI - How hillshade works</ulink>および<ulink url=\"http://e2b."
23259"erdas.com/fieldguide/wwhelp/wwhimpl/common/html/wwhelp.htm?"
23260"context=FieldGuide&amp;file=Slope_Images.html\">ERDAS Field Guide - Slope "
23261"Images</ulink>を参照して下さい。"
23262
23263#. Tag: para
23264#: reference_raster.xml:9566
23265#, no-c-format
23266msgid ""
23267"Enhanced: 2.1.0 Uses ST_MapAlgebra() and added optional <varname>units</"
23268"varname>, <varname>scale</varname>, <varname>interpolate_nodata</varname> "
23269"function parameters"
23270msgstr ""
23271"Enhanced: 2.1.0 ST_MapAlgebra()を使用するようにし、<varname>units</varname>, "
23272"<varname>scale</varname>, <varname>interpolate_nodata</varname>任意引数を追加"
23273"しました。"
23274
23275#. Tag: programlisting
23276#: reference_raster.xml:9573
23277#, no-c-format
23278msgid ""
23279"WITH foo AS (\n"
23280"        SELECT ST_SetValues(\n"
23281"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
23282"1, '32BF', 0, -9999),\n"
23283"                1, 1, 1, ARRAY[\n"
23284"                        [1, 1, 1, 1, 1],\n"
23285"                        [1, 2, 2, 2, 1],\n"
23286"                        [1, 2, 3, 2, 1],\n"
23287"                        [1, 2, 2, 2, 1],\n"
23288"                        [1, 1, 1, 1, 1]\n"
23289"                ]::double precision[][]\n"
23290"        ) AS rast\n"
23291")\n"
23292"SELECT\n"
23293"        ST_DumpValues(ST_Slope(rast, 1, '32BF'))\n"
23294"FROM foo\n"
23295"\n"
23296"                            st_dumpvalues\n"
23297"\n"
23298"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
23299"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
23300"---------------------------------------------------------------------\n"
23301" (1,"
23302"\"{{10.0249881744385,21.5681285858154,26.5650520324707,21.5681285858154,10.0249881744385},"
23303"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},\n"
23304"{26.5650520324707,36.8698959350586,0,36.8698959350586,26.5650520324707},"
23305"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},"
23306"{10.0249881744385,21.\n"
23307"5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}}\")\n"
23308"(1 row)"
23309msgstr ""
23310"WITH foo AS (\n"
23311"        SELECT ST_SetValues(\n"
23312"                ST_AddBand(ST_MakeEmptyRaster(5, 5, 0, 0, 1, -1, 0, 0, 0), "
23313"1, '32BF', 0, -9999),\n"
23314"                1, 1, 1, ARRAY[\n"
23315"                        [1, 1, 1, 1, 1],\n"
23316"                        [1, 2, 2, 2, 1],\n"
23317"                        [1, 2, 3, 2, 1],\n"
23318"                        [1, 2, 2, 2, 1],\n"
23319"                        [1, 1, 1, 1, 1]\n"
23320"                ]::double precision[][]\n"
23321"        ) AS rast\n"
23322")\n"
23323"SELECT\n"
23324"        ST_DumpValues(ST_Slope(rast, 1, '32BF'))\n"
23325"FROM foo\n"
23326"\n"
23327"                            st_dumpvalues\n"
23328"\n"
23329"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
23330"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n"
23331"---------------------------------------------------------------------\n"
23332" (1,"
23333"\"{{10.0249881744385,21.5681285858154,26.5650520324707,21.5681285858154,10.0249881744385},"
23334"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},\n"
23335"{26.5650520324707,36.8698959350586,0,36.8698959350586,26.5650520324707},"
23336"{21.5681285858154,35.2643890380859,36.8698959350586,35.2643890380859,21.5681285858154},"
23337"{10.0249881744385,21.\n"
23338"5681285858154,26.5650520324707,21.5681285858154,10.0249881744385}}\")\n"
23339"(1 row)"
23340
23341#. Tag: programlisting
23342#: reference_raster.xml:9581
23343#, no-c-format
23344msgid ""
23345"WITH foo AS (\n"
23346"        SELECT ST_Tile(\n"
23347"                ST_SetValues(\n"
23348"                        ST_AddBand(\n"
23349"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
23350"0),\n"
23351"                                1, '32BF', 0, -9999\n"
23352"                        ),\n"
23353"                        1, 1, 1, ARRAY[\n"
23354"                                [1, 1, 1, 1, 1, 1],\n"
23355"                                [1, 1, 1, 1, 2, 1],\n"
23356"                                [1, 2, 2, 3, 3, 1],\n"
23357"                                [1, 1, 3, 2, 1, 1],\n"
23358"                                [1, 2, 2, 1, 2, 1],\n"
23359"                                [1, 1, 1, 1, 1, 1]\n"
23360"                        ]::double precision[]\n"
23361"                ),\n"
23362"                2, 2\n"
23363"        ) AS rast\n"
23364")\n"
23365"SELECT\n"
23366"        t1.rast,\n"
23367"        ST_Slope(ST_Union(t2.rast), 1, t1.rast)\n"
23368"FROM foo t1\n"
23369"CROSS JOIN foo t2\n"
23370"WHERE ST_Intersects(t1.rast, t2.rast)\n"
23371"GROUP BY t1.rast;"
23372msgstr ""
23373"WITH foo AS (\n"
23374"        SELECT ST_Tile(\n"
23375"                ST_SetValues(\n"
23376"                        ST_AddBand(\n"
23377"                                ST_MakeEmptyRaster(6, 6, 0, 0, 1, -1, 0, 0, "
23378"0),\n"
23379"                                1, '32BF', 0, -9999\n"
23380"                        ),\n"
23381"                        1, 1, 1, ARRAY[\n"
23382"                                [1, 1, 1, 1, 1, 1],\n"
23383"                                [1, 1, 1, 1, 2, 1],\n"
23384"                                [1, 2, 2, 3, 3, 1],\n"
23385"                                [1, 1, 3, 2, 1, 1],\n"
23386"                                [1, 2, 2, 1, 2, 1],\n"
23387"                                [1, 1, 1, 1, 1, 1]\n"
23388"                        ]::double precision[]\n"
23389"                ),\n"
23390"                2, 2\n"
23391"        ) AS rast\n"
23392")\n"
23393"SELECT\n"
23394"        t1.rast,\n"
23395"        ST_Slope(ST_Union(t2.rast), 1, t1.rast)\n"
23396"FROM foo t1\n"
23397"CROSS JOIN foo t2\n"
23398"WHERE ST_Intersects(t1.rast, t2.rast)\n"
23399"GROUP BY t1.rast;"
23400
23401#. Tag: para
23402#: reference_raster.xml:9586
23403#, no-c-format
23404msgid ""
23405", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23406"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23407"linkend=\"RT_ST_Aspect\"/>"
23408msgstr ""
23409", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23410"linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23411"linkend=\"RT_ST_Aspect\"/>"
23412
23413#. Tag: refname
23414#: reference_raster.xml:9599
23415#, no-c-format
23416msgid "ST_TPI"
23417msgstr "ST_TPI"
23418
23419#. Tag: refpurpose
23420#: reference_raster.xml:9600
23421#, no-c-format
23422msgid "Returns a raster with the calculated Topographic Position Index."
23423msgstr "地形的位置指数を計算したラスタを返します。"
23424
23425#. Tag: funcprototype
23426#: reference_raster.xml:9605
23427#, no-c-format
23428msgid ""
23429"<funcdef>raster <function>ST_TPI</function></funcdef> <paramdef><type>raster "
23430"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
23431"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23432"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23433"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
23434"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
23435"interpolate_nodata=FALSE </parameter> </paramdef>"
23436msgstr ""
23437"<funcdef>raster <function>ST_TPI</function></funcdef> <paramdef><type>raster "
23438"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
23439"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23440"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23441"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
23442"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
23443"interpolate_nodata=FALSE </parameter> </paramdef>"
23444
23445#. Tag: para
23446#: reference_raster.xml:9619
23447#, no-c-format
23448msgid ""
23449"Calculates the Topographic Position Index, which is defined as the focal "
23450"mean with radius of one minus the center cell."
23451msgstr ""
23452"地形的位置指数 (TPI=Topographic Position Index)を計算します。地形的位置指数"
23453"は、半径1における近傍平均値から中心セルの値を引いたものです。"
23454
23455#. Tag: para
23456#: reference_raster.xml:9622 reference_raster.xml:9672
23457#, no-c-format
23458msgid "This function only supports a focalmean radius of one."
23459msgstr "この関数は、近傍平均値半径が1についてのみ対応しています。"
23460
23461#. Tag: para
23462#: reference_raster.xml:9634
23463#, no-c-format
23464msgid ""
23465", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_Roughness\"/>, <xref "
23466"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23467"linkend=\"RT_ST_Aspect\"/>"
23468msgstr ""
23469", <xref linkend=\"RT_ST_TRI\"/>, <xref linkend=\"RT_ST_Roughness\"/>, <xref "
23470"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23471"linkend=\"RT_ST_Aspect\"/>"
23472
23473#. Tag: refname
23474#: reference_raster.xml:9647
23475#, no-c-format
23476msgid "ST_TRI"
23477msgstr "ST_TRI"
23478
23479#. Tag: refpurpose
23480#: reference_raster.xml:9648
23481#, no-c-format
23482msgid "Returns a raster with the calculated Terrain Ruggedness Index."
23483msgstr "起伏指標を計算したラスタを返します。"
23484
23485#. Tag: funcprototype
23486#: reference_raster.xml:9653
23487#, no-c-format
23488msgid ""
23489"<funcdef>raster <function>ST_TRI</function></funcdef> <paramdef><type>raster "
23490"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
23491"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23492"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23493"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
23494"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
23495"interpolate_nodata=FALSE </parameter> </paramdef>"
23496msgstr ""
23497"<funcdef>raster <function>ST_TRI</function></funcdef> <paramdef><type>raster "
23498"</type> <parameter>rast</parameter></paramdef> <paramdef><type>integer </"
23499"type> <parameter>nband</parameter></paramdef> <paramdef><type>raster </type> "
23500"<parameter>customextent</parameter></paramdef> <paramdef choice=\"opt"
23501"\"><type>text </type> <parameter>pixeltype=\"32BF\"</parameter> </paramdef> "
23502"<paramdef choice=\"opt\"><type>boolean </type> <parameter> "
23503"interpolate_nodata=FALSE </parameter> </paramdef>"
23504
23505#. Tag: para
23506#: reference_raster.xml:9667
23507#, no-c-format
23508msgid ""
23509"Terrain Ruggedness Index is calculated by comparing a central pixel with its "
23510"neighbors, taking the absolute values of the differences, and averaging the "
23511"result."
23512msgstr ""
23513"起伏指標 (TRI=Terrain Ruggedness Index)は、中心ピクセルと隣接ピクセルを、差の"
23514"絶対値の平均を取って比較することで計算されます。"
23515
23516#. Tag: para
23517#: reference_raster.xml:9685
23518#, no-c-format
23519msgid ""
23520", <xref linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23521"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23522"linkend=\"RT_ST_Aspect\"/>"
23523msgstr ""
23524", <xref linkend=\"RT_ST_Roughness\"/>, <xref linkend=\"RT_ST_TPI\"/>, <xref "
23525"linkend=\"RT_ST_Slope\"/>, <xref linkend=\"RT_ST_HillShade\"/>, <xref "
23526"linkend=\"RT_ST_Aspect\"/>"
23527
23528#. Tag: title
23529#: reference_raster.xml:9699
23530#, no-c-format
23531msgid "Raster to Geometry"
23532msgstr "ラスタからジオメトリ"
23533
23534#. Tag: refname
23535#: reference_raster.xml:9703
23536#, no-c-format
23537msgid "Box3D"
23538msgstr "Box3D"
23539
23540#. Tag: refpurpose
23541#: reference_raster.xml:9704
23542#, no-c-format
23543msgid "Returns the box 3d representation of the enclosing box of the raster."
23544msgstr "ラスタを囲むボックスのbox3d表現を返します。"
23545
23546#. Tag: funcprototype
23547#: reference_raster.xml:9709
23548#, no-c-format
23549msgid ""
23550"<funcdef>box3d <function>Box3D</function></funcdef> <paramdef><type>raster </"
23551"type> <parameter>rast</parameter></paramdef>"
23552msgstr ""
23553"<funcdef>box3d <function>Box3D</function></funcdef> <paramdef><type>raster </"
23554"type> <parameter>rast</parameter></paramdef>"
23555
23556#. Tag: para
23557#: reference_raster.xml:9719
23558#, no-c-format
23559msgid "Returns the box representing the extent of the raster."
23560msgstr "ラスタの範囲を表現するボックスを返します。"
23561
23562#. Tag: para
23563#: reference_raster.xml:9720
23564#, no-c-format
23565msgid ""
23566"The polygon is defined by the corner points of the bounding box "
23567"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MAXX</"
23568"varname>, <varname>MAXY</varname>))"
23569msgstr ""
23570"ポリゴンは、バウンディングボックス ((<varname>MINX</varname>, <varname>MINY</"
23571"varname>), (<varname>MAXX</varname>, <varname>MAXY</varname>))の4隅のポイント"
23572"により定義されます。"
23573
23574#. Tag: para
23575#: reference_raster.xml:9724
23576#, no-c-format
23577msgid ""
23578"Changed: 2.0.0 In pre-2.0 versions, there used to be a box2d instead of "
23579"box3d. Since box2d is a deprecated type, this was changed to box3d."
23580msgstr ""
23581"Changed: 2.0.0 以前の版では、box3dでなくbox2dを使っていました。box2dは非推奨"
23582"型となり、box3dに変更しました。"
23583
23584#. Tag: programlisting
23585#: reference_raster.xml:9730
23586#, no-c-format
23587msgid ""
23588"SELECT\n"
23589"        rid,\n"
23590"        Box3D(rast) AS rastbox\n"
23591"FROM dummy_rast;\n"
23592"\n"
23593"rid |        rastbox\n"
23594"----+-------------------------------------------------\n"
23595"1   | BOX3D(0.5 0.5 0,20.5 60.5 0)\n"
23596"2   | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)"
23597msgstr ""
23598"SELECT\n"
23599"        rid,\n"
23600"        Box3D(rast) AS rastbox\n"
23601"FROM dummy_rast;\n"
23602"\n"
23603"rid |        rastbox\n"
23604"----+-------------------------------------------------\n"
23605"1   | BOX3D(0.5 0.5 0,20.5 60.5 0)\n"
23606"2   | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)"
23607
23608#. Tag: refname
23609#: reference_raster.xml:9743
23610#, no-c-format
23611msgid "ST_ConvexHull"
23612msgstr "ST_ConvexHull"
23613
23614#. Tag: refpurpose
23615#: reference_raster.xml:9744
23616#, no-c-format
23617msgid ""
23618"Return the convex hull geometry of the raster including pixel values equal "
23619"to BandNoDataValue. For regular shaped and non-skewed rasters, this gives "
23620"the same result as ST_Envelope so only useful for irregularly shaped or "
23621"skewed rasters."
23622msgstr ""
23623"BandNoDataValueと等しいピクセル値を含むラスタの凸包ジオメトリを返します。一般"
23624"的な形状でスキューのないラスタでは、ST_Envelopeと同じ結果になります。不規則な"
23625"形状をしているか回転しているラスタでのみ使います。"
23626
23627#. Tag: funcprototype
23628#: reference_raster.xml:9751
23629#, no-c-format
23630msgid ""
23631"<funcdef>geometry <function>ST_ConvexHull</function></funcdef> "
23632"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
23633msgstr ""
23634"<funcdef>geometry <function>ST_ConvexHull</function></funcdef> "
23635"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
23636
23637#. Tag: para
23638#: reference_raster.xml:9761
23639#, no-c-format
23640msgid ""
23641"Return the convex hull geometry of the raster including the NoDataBandValue "
23642"band pixels. For regular shaped and non-skewed rasters, this gives more or "
23643"less the same result as ST_Envelope so only useful for irregularly shaped or "
23644"skewed rasters."
23645msgstr ""
23646"NoDataValue値のピクセルを含むラスタの凸包ジオメトリを返します。一般的な形状で"
23647"スキューのないラスタでは、ST_Envelopeと同じ結果になります。不規則な形状をして"
23648"いるかスキューのあるラスタでのみ使います。"
23649
23650#. Tag: para
23651#: reference_raster.xml:9765
23652#, no-c-format
23653msgid ""
23654"ST_Envelope floors the coordinates and hence add a little buffer around the "
23655"raster so the answer is subtly different from ST_ConvexHull which does not "
23656"floor."
23657msgstr ""
23658"ST_Envelopeは、座標値の小数部を切り捨て、ラスタのまわりに小さなバッファを追加"
23659"します。小数部の切り捨てを行わないST_ConvexHullの答と若干異なります。"
23660
23661#. Tag: para
23662#: reference_raster.xml:9772
23663#, no-c-format
23664msgid ""
23665"Refer to <ulink url=\"http://trac.osgeo.org/postgis/wiki/WKTRaster/"
23666"SpecificationWorking01\">PostGIS Raster Specification</ulink> for a diagram "
23667"of this."
23668msgstr ""
23669"これの図については<ulink url=\"http://trac.osgeo.org/postgis/wiki/WKTRaster/"
23670"SpecificationWorking01\">PostGIS Raster Specification</ulink>を参照して下さ"
23671"い。"
23672
23673#. Tag: programlisting
23674#: reference_raster.xml:9773
23675#, no-c-format
23676msgid ""
23677"-- Note envelope and convexhull are more or less the same\n"
23678"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
23679"        ST_AsText(ST_Envelope(rast)) As env\n"
23680"FROM dummy_rast WHERE rid=1;\n"
23681"\n"
23682"                        convhull                        |                "
23683"env\n"
23684"--------------------------------------------------------"
23685"+------------------------------------\n"
23686" 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 "
23687"0,20 60,0 60,0 0))"
23688msgstr ""
23689"-- ST_EnvelopeとST_ConvexHullはだいたい同じです\n"
23690"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
23691"        ST_AsText(ST_Envelope(rast)) As env\n"
23692"FROM dummy_rast WHERE rid=1;\n"
23693"\n"
23694"                        convhull                        |                "
23695"env\n"
23696"--------------------------------------------------------"
23697"+------------------------------------\n"
23698" 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 "
23699"0,20 60,0 60,0 0))"
23700
23701#. Tag: programlisting
23702#: reference_raster.xml:9774
23703#, no-c-format
23704msgid ""
23705"-- now we skew the raster\n"
23706"-- note how the convex hull and envelope are now different\n"
23707"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
23708"        ST_AsText(ST_Envelope(rast)) As env\n"
23709"FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast\n"
23710"        FROM dummy_rast WHERE rid=1) As foo;\n"
23711"\n"
23712"                        convhull                        |                "
23713"env\n"
23714"--------------------------------------------------------"
23715"+------------------------------------\n"
23716" 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 "
23717"0,22 61,0 61,0 0))"
23718msgstr ""
23719"-- ラスタをスキューします\n"
23720"-- 凸包とエンベロープがどのくらい異なるかをみます\n"
23721"SELECT ST_AsText(ST_ConvexHull(rast)) As convhull,\n"
23722"        ST_AsText(ST_Envelope(rast)) As env\n"
23723"FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast\n"
23724"        FROM dummy_rast WHERE rid=1) As foo;\n"
23725"\n"
23726"                        convhull                        |                "
23727"env\n"
23728"--------------------------------------------------------"
23729"+------------------------------------\n"
23730" 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 "
23731"0,22 61,0 61,0 0))"
23732
23733#. Tag: para
23734#: reference_raster.xml:9780
23735#, no-c-format
23736msgid ""
23737", <xref linkend=\"RT_ST_MinConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/"
23738">, <xref linkend=\"ST_AsText\"/>"
23739msgstr ""
23740", <xref linkend=\"RT_ST_MinConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/"
23741">, <xref linkend=\"ST_AsText\"/>"
23742
23743#. Tag: refname
23744#: reference_raster.xml:9791
23745#, no-c-format
23746msgid "ST_DumpAsPolygons"
23747msgstr "ST_DumpAsPolygons"
23748
23749#. Tag: refpurpose
23750#: reference_raster.xml:9792
23751#, no-c-format
23752msgid ""
23753"Returns a set of geomval (geom,val) rows, from a given raster band. If no "
23754"band number is specified, band num defaults to 1."
23755msgstr ""
23756"指定されたラスタバンドからgeomval (geom,val)行の集合を返します。バンドを指定"
23757"しない場合のデフォルトは1です。"
23758
23759#. Tag: funcprototype
23760#: reference_raster.xml:9797
23761#, no-c-format
23762msgid ""
23763"<funcdef>setof geomval <function>ST_DumpAsPolygons</function></funcdef> "
23764"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23765"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
23766"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
23767"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
23768msgstr ""
23769"<funcdef>setof geomval <function>ST_DumpAsPolygons</function></funcdef> "
23770"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23771"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
23772"parameter></paramdef> <paramdef choice=\"opt\"><type>boolean </type> "
23773"<parameter>exclude_nodata_value=TRUE</parameter></paramdef>"
23774
23775#. Tag: para
23776#: reference_raster.xml:9808
23777#, no-c-format
23778msgid ""
23779"This is a set-returning function (SRF). It returns a set of geomval rows, "
23780"formed by a geometry (geom) and a pixel band value (val). Each polygon is "
23781"the union of all pixels for that band that have the same pixel value denoted "
23782"by val."
23783msgstr ""
23784"集合を返す関数 (SRF=set-returning function)です。geomval行の集合を返します。"
23785"geomvalはジオメトリ (geom)とピクセルバンド値 (val)からなります。それぞれのポ"
23786"リゴンは、指定したバンドの、valで示される値と同じピクセル値を持っている全ての"
23787"ピクセルの結合です。"
23788
23789#. Tag: para
23790#: reference_raster.xml:9812
23791#, no-c-format
23792msgid ""
23793"ST_DumpAsPolygon is useful for polygonizing rasters. It is the reverse of a "
23794"GROUP BY in that it creates new rows. For example it can be used to expand a "
23795"single raster into multiple POLYGONS/MULTIPOLYGONS."
23796msgstr ""
23797"ST_DumpAsPolygonはラスタのポリゴン化に使えます。新しい行を生成するのでGROUP "
23798"BYの逆です。たとえば、単一ラスタを複数のPOLYGON/MULTIPOLYGONに展開できます。"
23799
23800#. Tag: para
23801#: reference_raster.xml:9816
23802#, no-c-format
23803msgid "Availability: Requires GDAL 1.7 or higher."
23804msgstr "Availability: GDAL 1.7以上が必要です。"
23805
23806#. Tag: para
23807#: reference_raster.xml:9817
23808#, no-c-format
23809msgid ""
23810"If there is a no data value set for a band, pixels with that value will not "
23811"be returned except in the case of exclude_nodata_value=false."
23812msgstr ""
23813"バンドにNODATA値が設定されている場合には、exclude_nodata_value=falseが設定さ"
23814"れている場合を除いて、NODATA値を持つピクセルは返りません。"
23815
23816#. Tag: para
23817#: reference_raster.xml:9818
23818#, no-c-format
23819msgid ""
23820"If you only care about count of pixels with a given value in a raster, it is "
23821"faster to use <xref linkend=\"RT_ST_ValueCount\"/>."
23822msgstr ""
23823"ラスタ内の与えられた値を持つピクセルの数にのみ注意する場合には<xref linkend="
23824"\"RT_ST_ValueCount\"/>を使う方が速いです。"
23825
23826#. Tag: para
23827#: reference_raster.xml:9820
23828#, no-c-format
23829msgid ""
23830"This is different than ST_PixelAsPolygons where one geometry is returned for "
23831"each pixel regardless of pixel value."
23832msgstr ""
23833"これは、ピクセル値にかかわらずピクセルごとに一つのジオメトリを返す"
23834"ST_PixelAsPolygonsと違います。"
23835
23836#. Tag: programlisting
23837#: reference_raster.xml:9828
23838#, no-c-format
23839msgid ""
23840"-- this syntax requires PostgreSQL 9.3+\n"
23841"SELECT val, ST_AsText(geom) As geomwkt\n"
23842"FROM (\n"
23843"SELECT dp.*\n"
23844"FROM dummy_rast, LATERAL ST_DumpAsPolygons(rast) AS dp\n"
23845"WHERE rid = 2\n"
23846") As foo\n"
23847"WHERE val BETWEEN 249 and 251\n"
23848"ORDER BY val;\n"
23849"\n"
23850" val |                                                       geomwkt\n"
23851"-----"
23852"+--------------------------------------------------------------------------\n"
23853" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 "
23854"5793243.85,\n"
23855"                3427928 5793243.95,3427927.95 5793243.95))\n"
23856" 250 | POLYGON((3427927.75 5793243.9,3427927.75 5793243.85,3427927.8 "
23857"5793243.85,\n"
23858"                3427927.8 5793243.9,3427927.75 5793243.9))\n"
23859" 250 | POLYGON((3427927.8 5793243.8,3427927.8 5793243.75,3427927.85 "
23860"5793243.75,\n"
23861"                3427927.85 5793243.8, 3427927.8 5793243.8))\n"
23862" 251 | POLYGON((3427927.75 5793243.85,3427927.75 5793243.8,3427927.8 "
23863"5793243.8,\n"
23864"                3427927.8 5793243.85,3427927.75 5793243.85))"
23865msgstr ""
23866"-- PostgreSQL 9.3以上では、次のような文法になります\n"
23867"SELECT val, ST_AsText(geom) As geomwkt\n"
23868"FROM (\n"
23869"SELECT dp.*\n"
23870"FROM dummy_rast, LATERAL ST_DumpAsPolygons(rast) AS dp\n"
23871"WHERE rid = 2\n"
23872") As foo\n"
23873"WHERE val BETWEEN 249 and 251\n"
23874"ORDER BY val;\n"
23875"\n"
23876" val |                                                       geomwkt\n"
23877"-----"
23878"+--------------------------------------------------------------------------\n"
23879" 249 | POLYGON((3427927.95 5793243.95,3427927.95 5793243.85,3427928 "
23880"5793243.85,\n"
23881"                3427928 5793243.95,3427927.95 5793243.95))\n"
23882" 250 | POLYGON((3427927.75 5793243.9,3427927.75 5793243.85,3427927.8 "
23883"5793243.85,\n"
23884"                3427927.8 5793243.9,3427927.75 5793243.9))\n"
23885" 250 | POLYGON((3427927.8 5793243.8,3427927.8 5793243.75,3427927.85 "
23886"5793243.75,\n"
23887"                3427927.85 5793243.8, 3427927.8 5793243.8))\n"
23888" 251 | POLYGON((3427927.75 5793243.85,3427927.75 5793243.8,3427927.8 "
23889"5793243.8,\n"
23890"                3427927.8 5793243.85,3427927.75 5793243.85))"
23891
23892#. Tag: para
23893#: reference_raster.xml:9833
23894#, no-c-format
23895msgid ""
23896", <xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Polygon\"/>, <xref "
23897"linkend=\"RT_ST_ValueCount\"/>"
23898msgstr ""
23899", <xref linkend=\"RT_ST_Value\"/>, <xref linkend=\"RT_ST_Polygon\"/>, <xref "
23900"linkend=\"RT_ST_ValueCount\"/>"
23901
23902#. Tag: refname
23903#: reference_raster.xml:9844
23904#, no-c-format
23905msgid "ST_Envelope"
23906msgstr "ST_Envelope"
23907
23908#. Tag: refpurpose
23909#: reference_raster.xml:9845
23910#, no-c-format
23911msgid "Returns the polygon representation of the extent of the raster."
23912msgstr "ラスタの範囲のポリゴン表現を返します。"
23913
23914#. Tag: funcprototype
23915#: reference_raster.xml:9850
23916#, no-c-format
23917msgid ""
23918"<funcdef>geometry <function>ST_Envelope</function></funcdef> "
23919"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
23920msgstr ""
23921"<funcdef>geometry <function>ST_Envelope</function></funcdef> "
23922"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>"
23923
23924#. Tag: para
23925#: reference_raster.xml:9860
23926#, no-c-format
23927msgid ""
23928"Returns the polygon representation of the extent of the raster in spatial "
23929"coordinate units defined by srid. It is a float8 minimum bounding box "
23930"represented as a polygon."
23931msgstr ""
23932"SRIDで定義されている空間参照系上でのラスタの範囲のポリゴン表現を返します。ポ"
23933"リゴンで表現されるfloat8の最小バウンディングボックスです。"
23934
23935#. Tag: para
23936#: reference_raster.xml:9862
23937#, no-c-format
23938msgid ""
23939"The polygon is defined by the corner points of the bounding box "
23940"((<varname>MINX</varname>, <varname>MINY</varname>), (<varname>MINX</"
23941"varname>, <varname>MAXY</varname>), (<varname>MAXX</varname>, <varname>MAXY</"
23942"varname>), (<varname>MAXX</varname>, <varname>MINY</varname>), "
23943"(<varname>MINX</varname>, <varname>MINY</varname>))"
23944msgstr ""
23945"ポリゴンはバウンディングボックスの隅のポイント、すなわち ((<varname>MINX</"
23946"varname>, <varname>MINY</varname>), (<varname>MINX</varname>, <varname>MAXY</"
23947"varname>), (<varname>MAXX</varname>, <varname>MAXY</varname>), "
23948"(<varname>MAXX</varname>, <varname>MINY</varname>), (<varname>MINX</"
23949"varname>, <varname>MINY</varname>))です。"
23950
23951#. Tag: programlisting
23952#: reference_raster.xml:9874
23953#, no-c-format
23954msgid ""
23955"SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt\n"
23956"FROM dummy_rast;\n"
23957"\n"
23958" rid |                                         envgeomwkt\n"
23959"-----+--------------------------------------------------------------------\n"
23960"   1 | POLYGON((0 0,20 0,20 60,0 60,0 0))\n"
23961"   2 | POLYGON((3427927 5793243,3427928 5793243,\n"
23962"                3427928 5793244,3427927 5793244, 3427927 5793243))"
23963msgstr ""
23964"SELECT rid, ST_AsText(ST_Envelope(rast)) As envgeomwkt\n"
23965"FROM dummy_rast;\n"
23966"\n"
23967" rid |                                         envgeomwkt\n"
23968"-----+--------------------------------------------------------------------\n"
23969"   1 | POLYGON((0 0,20 0,20 60,0 60,0 0))\n"
23970"   2 | POLYGON((3427927 5793243,3427928 5793243,\n"
23971"                3427928 5793244,3427927 5793244, 3427927 5793243))"
23972
23973#. Tag: para
23974#: reference_raster.xml:9879
23975#, no-c-format
23976msgid ", <xref linkend=\"ST_AsText\"/>, <xref linkend=\"RT_ST_SRID\"/>"
23977msgstr ", <xref linkend=\"ST_AsText\"/>, <xref linkend=\"RT_ST_SRID\"/>"
23978
23979#. Tag: refname
23980#: reference_raster.xml:9889
23981#, no-c-format
23982msgid "ST_MinConvexHull"
23983msgstr "ST_MinConvexHull"
23984
23985#. Tag: refpurpose
23986#: reference_raster.xml:9890
23987#, no-c-format
23988msgid "Return the convex hull geometry of the raster excluding NODATA pixels."
23989msgstr "NODATA値を除いたラスタの凸包ジオメトリを返します。"
23990
23991#. Tag: funcprototype
23992#: reference_raster.xml:9897
23993#, no-c-format
23994msgid ""
23995"<funcdef>geometry <function>ST_MinConvexHull</function></funcdef> "
23996"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
23997"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=NULL</"
23998"parameter></paramdef>"
23999msgstr ""
24000"<funcdef>geometry <function>ST_MinConvexHull</function></funcdef> "
24001"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
24002"<paramdef choice=\"opt\"><type>integer </type> <parameter>nband=NULL</"
24003"parameter></paramdef>"
24004
24005#. Tag: para
24006#: reference_raster.xml:9908
24007#, no-c-format
24008msgid ""
24009"Return the convex hull geometry of the raster excluding NODATA pixels. If "
24010"<varname>nband</varname> is NULL, all bands of the raster are considered."
24011msgstr ""
24012"NODATA値を除いたラスタの凸包ジオメトリを返します。<varname>nband</varname>が"
24013"NULLの場合には、ラスタの全てのバンドが考慮されます。"
24014
24015#. Tag: programlisting
24016#: reference_raster.xml:9917
24017#, no-c-format
24018msgid ""
24019"WITH foo AS (\n"
24020"        SELECT\n"
24021"                ST_SetValues(\n"
24022"                        ST_SetValues(\n"
24023"                                ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(9, "
24024"9, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0), 2, '8BUI', 1, 0),\n"
24025"                                1, 1, 1,\n"
24026"                                ARRAY[\n"
24027"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24028"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24029"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24030"                                        [0, 0, 0, 1, 0, 0, 0, 0, 1],\n"
24031"                                        [0, 0, 0, 1, 1, 0, 0, 0, 0],\n"
24032"                                        [0, 0, 0, 1, 0, 0, 0, 0, 0],\n"
24033"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24034"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24035"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0]\n"
24036"                                ]::double precision[][]\n"
24037"                        ),\n"
24038"                        2, 1, 1,\n"
24039"                        ARRAY[\n"
24040"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24041"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24042"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24043"                                [1, 0, 0, 0, 0, 1, 0, 0, 0],\n"
24044"                                [0, 0, 0, 0, 1, 1, 0, 0, 0],\n"
24045"                                [0, 0, 0, 0, 0, 1, 0, 0, 0],\n"
24046"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24047"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24048"                                [0, 0, 1, 0, 0, 0, 0, 0, 0]\n"
24049"                        ]::double precision[][]\n"
24050"                ) AS rast\n"
24051")\n"
24052"SELECT\n"
24053"        ST_AsText(ST_ConvexHull(rast)) AS hull,\n"
24054"        ST_AsText(ST_MinConvexHull(rast)) AS mhull,\n"
24055"        ST_AsText(ST_MinConvexHull(rast, 1)) AS mhull_1,\n"
24056"        ST_AsText(ST_MinConvexHull(rast, 2)) AS mhull_2\n"
24057"FROM foo\n"
24058"\n"
24059"               hull               |                mhull                "
24060"|               mhull_1               |               mhull_2\n"
24061"----------------------------------+-------------------------------------"
24062"+-------------------------------------"
24063"+-------------------------------------\n"
24064" POLYGON((0 0,9 0,9 -9,0 -9,0 0)) | POLYGON((0 -3,9 -3,9 -9,0 -9,0 -3)) | "
24065"POLYGON((3 -3,9 -3,9 -6,3 -6,3 -3)) | POLYGON((0 -3,6 -3,6 -9,0 -9,0 -3))"
24066msgstr ""
24067"WITH foo AS (\n"
24068"        SELECT\n"
24069"                ST_SetValues(\n"
24070"                        ST_SetValues(\n"
24071"                                ST_AddBand(ST_AddBand(ST_MakeEmptyRaster(9, "
24072"9, 0, 0, 1, -1, 0, 0, 0), 1, '8BUI', 0, 0), 2, '8BUI', 1, 0),\n"
24073"                                1, 1, 1,\n"
24074"                                ARRAY[\n"
24075"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24076"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24077"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24078"                                        [0, 0, 0, 1, 0, 0, 0, 0, 1],\n"
24079"                                        [0, 0, 0, 1, 1, 0, 0, 0, 0],\n"
24080"                                        [0, 0, 0, 1, 0, 0, 0, 0, 0],\n"
24081"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24082"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24083"                                        [0, 0, 0, 0, 0, 0, 0, 0, 0]\n"
24084"                                ]::double precision[][]\n"
24085"                        ),\n"
24086"                        2, 1, 1,\n"
24087"                        ARRAY[\n"
24088"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24089"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24090"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24091"                                [1, 0, 0, 0, 0, 1, 0, 0, 0],\n"
24092"                                [0, 0, 0, 0, 1, 1, 0, 0, 0],\n"
24093"                                [0, 0, 0, 0, 0, 1, 0, 0, 0],\n"
24094"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24095"                                [0, 0, 0, 0, 0, 0, 0, 0, 0],\n"
24096"                                [0, 0, 1, 0, 0, 0, 0, 0, 0]\n"
24097"                        ]::double precision[][]\n"
24098"                ) AS rast\n"
24099")\n"
24100"SELECT\n"
24101"        ST_AsText(ST_ConvexHull(rast)) AS hull,\n"
24102"        ST_AsText(ST_MinConvexHull(rast)) AS mhull,\n"
24103"        ST_AsText(ST_MinConvexHull(rast, 1)) AS mhull_1,\n"
24104"        ST_AsText(ST_MinConvexHull(rast, 2)) AS mhull_2\n"
24105"FROM foo\n"
24106"\n"
24107"               hull               |                mhull                "
24108"|               mhull_1               |               mhull_2\n"
24109"----------------------------------+-------------------------------------"
24110"+-------------------------------------"
24111"+-------------------------------------\n"
24112" POLYGON((0 0,9 0,9 -9,0 -9,0 0)) | POLYGON((0 -3,9 -3,9 -9,0 -9,0 -3)) | "
24113"POLYGON((3 -3,9 -3,9 -6,3 -6,3 -3)) | POLYGON((0 -3,6 -3,6 -9,0 -9,0 -3))"
24114
24115#. Tag: para
24116#: reference_raster.xml:9922
24117#, no-c-format
24118msgid ""
24119", <xref linkend=\"RT_ST_ConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/>, "
24120"<xref linkend=\"ST_AsText\"/>"
24121msgstr ""
24122", <xref linkend=\"RT_ST_ConvexHull\"/>, <xref linkend=\"ST_ConvexHull\"/>, "
24123"<xref linkend=\"ST_AsText\"/>"
24124
24125#. Tag: refname
24126#: reference_raster.xml:9933
24127#, no-c-format
24128msgid "ST_Polygon"
24129msgstr "ST_Polygon"
24130
24131#. Tag: refpurpose
24132#: reference_raster.xml:9934
24133#, no-c-format
24134msgid ""
24135"Returns a multipolygon geometry formed by the union of pixels that have a "
24136"pixel value that is not no data value. If no band number is specified, band "
24137"num defaults to 1."
24138msgstr ""
24139"NODATA値でないピクセル値を持つピクセルの結合で形成されるマルチポリゴンジオメ"
24140"トリを返します。バンドを指定しない場合のデフォルトは1です。"
24141
24142#. Tag: funcprototype
24143#: reference_raster.xml:9939
24144#, no-c-format
24145msgid ""
24146"<funcdef>geometry <function>ST_Polygon</function></funcdef> "
24147"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
24148"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
24149"parameter></paramdef>"
24150msgstr ""
24151"<funcdef>geometry <function>ST_Polygon</function></funcdef> "
24152"<paramdef><type>raster </type> <parameter>rast</parameter></paramdef> "
24153"<paramdef choice=\"opt\"><type>integer </type> <parameter>band_num=1</"
24154"parameter></paramdef>"
24155
24156#. Tag: para
24157#: reference_raster.xml:9949
24158#, no-c-format
24159msgid "Availability: 0.1.6 Requires GDAL 1.7 or higher."
24160msgstr "Availability: 0.1.6 GDAL 1.7以上が必要です。"
24161
24162#. Tag: para
24163#: reference_raster.xml:9950
24164#, no-c-format
24165msgid ""
24166"Enhanced: 2.1.0 Improved Speed (fully C-Based) and the returning "
24167"multipolygon is ensured to be valid."
24168msgstr ""
24169"Enhanced: 2.1.0 速度を改善し (完全にC言語で記述しました)、確実に妥当なマルチ"
24170"ポリゴンを返すようにしました。"
24171
24172#. Tag: para
24173#: reference_raster.xml:9951
24174#, no-c-format
24175msgid ""
24176"Changed: 2.1.0 In prior versions would sometimes return a polygon, changed "
24177"to always return multipolygon."
24178msgstr ""
24179"Changed: 2.1.0 以前の版では、時々ポリゴンを返しましたが、常にマルチポリゴンを"
24180"返すように変更しました。"
24181
24182#. Tag: programlisting
24183#: reference_raster.xml:9956
24184#, no-c-format
24185msgid ""
24186"-- by default no data band value is 0 or not set, so polygon will return a "
24187"square polygon\n"
24188"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
24189"FROM dummy_rast\n"
24190"WHERE rid = 2;\n"
24191"\n"
24192"geomwkt\n"
24193"--------------------------------------------\n"
24194"MULTIPOLYGON(((3427927.75 5793244,3427928 5793244,3427928 "
24195"5793243.75,3427927.75 5793243.75,3427927.75 5793244)))\n"
24196"\n"
24197"\n"
24198"-- now we change the no data value of first band\n"
24199"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,1,254)\n"
24200"WHERE rid = 2;\n"
24201"SELECt rid, ST_BandNoDataValue(rast)\n"
24202"from dummy_rast where rid = 2;\n"
24203"\n"
24204"-- ST_Polygon excludes the pixel value 254 and returns a multipolygon\n"
24205"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
24206"FROM dummy_rast\n"
24207"WHERE rid = 2;\n"
24208"\n"
24209"geomwkt\n"
24210"---------------------------------------------------------\n"
24211"MULTIPOLYGON(((3427927.9 5793243.95,3427927.85 5793243.95,3427927.85 "
24212"5793244,3427927.9 5793244,3427927.9 5793243.95)),((3427928 "
24213"5793243.85,3427928 5793243.8,3427927.95 5793243.8,3427927.95 "
24214"5793243.85,3427927.9 5793243.85,3427927.9 5793243.9,3427927.9 "
24215"5793243.95,3427927.95 5793243.95,3427928 5793243.95,3427928 5793243.85)),"
24216"((3427927.8 5793243.75,3427927.75 5793243.75,3427927.75 5793243.8,3427927.75 "
24217"5793243.85,3427927.75 5793243.9,3427927.75 5793244,3427927.8 "
24218"5793244,3427927.8 5793243.9,3427927.8 5793243.85,3427927.85 "
24219"5793243.85,3427927.85 5793243.8,3427927.85 5793243.75,3427927.8 "
24220"5793243.75)))\n"
24221"\n"
24222"-- Or if you want the no data value different for just one time\n"
24223"\n"
24224"SELECT ST_AsText(\n"
24225"        ST_Polygon(\n"
24226"                ST_SetBandNoDataValue(rast,1,252)\n"
24227"                )\n"
24228"        ) As geomwkt\n"
24229"FROM dummy_rast\n"
24230"WHERE rid =2;\n"
24231"\n"
24232"geomwkt\n"
24233"---------------------------------\n"
24234"MULTIPOLYGON(((3427928 5793243.85,3427928 5793243.8,3427928 "
24235"5793243.75,3427927.85 5793243.75,3427927.8 5793243.75,3427927.8 "
24236"5793243.8,3427927.75 5793243.8,3427927.75 5793243.85,3427927.75 "
24237"5793243.9,3427927.75 5793244,3427927.8 5793244,3427927.85 5793244,3427927.9 "
24238"5793244,3427928 5793244,3427928 5793243.95,3427928 5793243.85),(3427927.9 "
24239"5793243.9,3427927.9 5793243.85,3427927.95 5793243.85,3427927.95 "
24240"5793243.9,3427927.9 5793243.9)))"
24241msgstr ""
24242"-- デフォルトではNODATA値は0になるか設定されていないので\n"
24243"--  ST_Polygon()は四角形のポリゴンを返します\n"
24244"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
24245"FROM dummy_rast\n"
24246"WHERE rid = 2;\n"
24247"\n"
24248"geomwkt\n"
24249"--------------------------------------------\n"
24250"MULTIPOLYGON(((3427927.75 5793244,3427928 5793244,3427928 "
24251"5793243.75,3427927.75 5793243.75,3427927.75 5793244)))\n"
24252"\n"
24253"\n"
24254"-- 1番目のバンドのNODATA値を変更します\n"
24255"UPDATE dummy_rast SET rast = ST_SetBandNoDataValue(rast,1,254)\n"
24256"WHERE rid = 2;\n"
24257"SELECt rid, ST_BandNoDataValue(rast)\n"
24258"from dummy_rast where rid = 2;\n"
24259"\n"
24260"-- ST_Polygonはピクセル値254を除外してマルチポリゴンを返します\n"
24261"\n"
24262"SELECT ST_AsText(ST_Polygon(rast)) As geomwkt\n"
24263"FROM dummy_rast\n"
24264"WHERE rid = 2;\n"
24265"\n"
24266"geomwkt\n"
24267"---------------------------------------------------------\n"
24268"MULTIPOLYGON(((3427927.9 5793243.95,3427927.85 5793243.95,3427927.85 "
24269"5793244,3427927.9 5793244,3427927.9 5793243.95)),((3427928 "
24270"5793243.85,3427928 5793243.8,3427927.95 5793243.8,3427927.95 "
24271"5793243.85,3427927.9 5793243.85,3427927.9 5793243.9,3427927.9 "
24272"5793243.95,3427927.95 5793243.95,3427928 5793243.95,3427928 5793243.85)),"
24273"((3427927.8 5793243.75,3427927.75 5793243.75,3427927.75 5793243.8,3427927.75 "
24274"5793243.85,3427927.75 5793243.9,3427927.75 5793244,3427927.8 "
24275"5793244,3427927.8 5793243.9,3427927.8 5793243.85,3427927.85 "
24276"5793243.85,3427927.85 5793243.8,3427927.85 5793243.75,3427927.8 "
24277"5793243.75)))\n"
24278"\n"
24279"-- 異なるNODATA値が1回だけ欲しい場合には、次のようにします\n"
24280"\n"
24281"SELECT ST_AsText(\n"
24282"        ST_Polygon(\n"
24283"                ST_SetBandNoDataValue(rast,1,252)\n"
24284"                )\n"
24285"        ) As geomwkt\n"
24286"FROM dummy_rast\n"
24287"WHERE rid =2;\n"
24288"\n"
24289"geomwkt\n"
24290"---------------------------------\n"
24291"MULTIPOLYGON(((3427928 5793243.85,3427928 5793243.8,3427928 "
24292"5793243.75,3427927.85 5793243.75,3427927.8 5793243.75,3427927.8 "
24293"5793243.8,3427927.75 5793243.8,3427927.75 5793243.85,3427927.75 "
24294"5793243.9,3427927.75 5793244,3427927.8 5793244,3427927.85 5793244,3427927.9 "
24295"5793244,3427928 5793244,3427928 5793243.95,3427928 5793243.85),(3427927.9 "
24296"5793243.9,3427927.9 5793243.85,3427927.95 5793243.85,3427927.95 "
24297"5793243.9,3427927.9 5793243.9)))"
24298
24299#. Tag: title
24300#: reference_raster.xml:9973
24301#, no-c-format
24302msgid "Raster Operators"
24303msgstr "ラスタ演算子"
24304
24305#. Tag: refname
24306#: reference_raster.xml:9976
24307#, no-c-format
24308msgid "&amp;&amp;"
24309msgstr "&amp;&amp;"
24310
24311#. Tag: refpurpose
24312#: reference_raster.xml:9978
24313#, no-c-format
24314msgid ""
24315"Returns <varname>TRUE</varname> if A's bounding box intersects B's bounding "
24316"box."
24317msgstr ""
24318"AのバウンディングボックスがBのバウンディングボックスとインタセクトする場合に"
24319"<varname>TRUE</varname>を返します。"
24320
24321#. Tag: funcsynopsis
24322#: reference_raster.xml:9982
24323#, no-c-format
24324msgid ""
24325"<funcprototype> <funcdef>boolean <function>&amp;&amp;</function></funcdef> "
24326"<paramdef> <type>raster </type> <parameter>A</parameter> </paramdef> "
24327"<paramdef> <type>raster </type> <parameter>B</parameter> </paramdef> </"
24328"funcprototype> <funcprototype> <funcdef>boolean <function>&amp;&amp;</"
24329"function></funcdef> <paramdef> <type>raster </type> <parameter>A</parameter> "
24330"</paramdef> <paramdef> <type>geometry </type> <parameter>B</parameter> </"
24331"paramdef> </funcprototype> <funcprototype> <funcdef>boolean <function>&amp;"
24332"&amp;</function></funcdef> <paramdef> <type>geometry </type> <parameter>B</"
24333"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>A</"
24334"parameter> </paramdef> </funcprototype>"
24335msgstr ""
24336"<funcprototype> <funcdef>boolean <function>&amp;&amp;</function></funcdef> "
24337"<paramdef> <type>raster </type> <parameter>A</parameter> </paramdef> "
24338"<paramdef> <type>raster </type> <parameter>B</parameter> </paramdef> </"
24339"funcprototype> <funcprototype> <funcdef>boolean <function>&amp;&amp;</"
24340"function></funcdef> <paramdef> <type>raster </type> <parameter>A</parameter> "
24341"</paramdef> <paramdef> <type>geometry </type> <parameter>B</parameter> </"
24342"paramdef> </funcprototype> <funcprototype> <funcdef>boolean <function>&amp;"
24343"&amp;</function></funcdef> <paramdef> <type>geometry </type> <parameter>B</"
24344"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>A</"
24345"parameter> </paramdef> </funcprototype>"
24346
24347#. Tag: para
24348#: reference_raster.xml:10024
24349#, no-c-format
24350msgid ""
24351"The <varname>&amp;&amp;</varname> operator returns <varname>TRUE</varname> "
24352"if the bounding box of raster/geometr A intersects the bounding box of "
24353"raster/geometr B."
24354msgstr ""
24355"<varname>&amp;&amp;</varname>演算子は、AのバウンディングボックスがBのバウン"
24356"ディングボックスにインタセクトする場合に <varname>TRUE</varname>を返します。"
24357
24358#. Tag: para
24359#: reference_raster.xml:10026 reference_raster.xml:10073
24360#: reference_raster.xml:10277 reference_raster.xml:11287
24361#: reference_raster.xml:11388 reference_raster.xml:11481
24362#, no-c-format
24363msgid ""
24364"This operand will make use of any indexes that may be available on the "
24365"rasters."
24366msgstr "これのオペランドは、ラスタで使用できるインデクスを使用します。"
24367
24368#. Tag: programlisting
24369#: reference_raster.xml:10035
24370#, no-c-format
24371msgid ""
24372"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&amp; B.rast As "
24373"intersect\n"
24374" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;\n"
24375"\n"
24376" a_rid | b_rid | intersect\n"
24377"-------+-------+---------\n"
24378"     2 |     2 | t\n"
24379"     2 |     3 | f\n"
24380"     2 |     1 | f"
24381msgstr ""
24382"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&amp; B.rast As "
24383"intersect\n"
24384" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B LIMIT 3;\n"
24385"\n"
24386" a_rid | b_rid | intersect\n"
24387"-------+-------+---------\n"
24388"     2 |     2 | t\n"
24389"     2 |     3 | f\n"
24390"     2 |     1 | f"
24391
24392#. Tag: refname
24393#: reference_raster.xml:10041
24394#, no-c-format
24395msgid "&amp;&lt;"
24396msgstr "&amp;&lt;"
24397
24398#. Tag: refpurpose
24399#: reference_raster.xml:10043
24400#, no-c-format
24401msgid ""
24402"Returns <varname>TRUE</varname> if A's bounding box is to the left of B's."
24403msgstr ""
24404"AのバウンディングボックスがBのバウンディングボックスをオーバラップするか、Bの"
24405"バウンディングボックスの左にある場合に<varname>TRUE</varname>を返します。"
24406
24407#. Tag: funcprototype
24408#: reference_raster.xml:10048
24409#, no-c-format
24410msgid ""
24411"<funcdef>boolean <function>&amp;&lt;</function></funcdef> <paramdef> "
24412"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24413"<type>raster </type> <parameter>B</parameter> </paramdef>"
24414msgstr ""
24415"<funcdef>boolean <function>&amp;&lt;</function></funcdef> <paramdef> "
24416"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24417"<type>raster </type> <parameter>B</parameter> </paramdef>"
24418
24419#. Tag: para
24420#: reference_raster.xml:10069
24421#, no-c-format
24422msgid ""
24423"The <varname>&amp;&lt;</varname> operator returns <varname>TRUE</varname> if "
24424"the bounding box of raster A overlaps or is to the left of the bounding box "
24425"of raster B, or more accurately, overlaps or is NOT to the right of the "
24426"bounding box of raster B."
24427msgstr ""
24428"<varname>&amp;&lt;</varname>演算子は、AのバウンディングボックスがBのバウン"
24429"ディングボックスをオーバラップするか、Bのバウンディングボックスの左にある場合"
24430"に<varname>TRUE</varname>を返します。条件についてより詳細に言うと、Bのバウン"
24431"ディングボックスをオーバラップするかBのバウンディングボックスの右に*ない*場合"
24432"です。"
24433
24434#. Tag: programlisting
24435#: reference_raster.xml:10079
24436#, no-c-format
24437msgid ""
24438"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&lt; B.rast As overleft\n"
24439" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
24440"\n"
24441"a_rid | b_rid | overleft\n"
24442"------+-------+----------\n"
24443"    2 |     2 | t\n"
24444"    2 |     3 | f\n"
24445"    2 |     1 | f\n"
24446"    3 |     2 | t\n"
24447"    3 |     3 | t\n"
24448"    3 |     1 | f\n"
24449"    1 |     2 | t\n"
24450"    1 |     3 | t\n"
24451"    1 |     1 | t"
24452msgstr ""
24453"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&lt; B.rast As overleft\n"
24454" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
24455"\n"
24456"a_rid | b_rid | overleft\n"
24457"------+-------+----------\n"
24458"    2 |     2 | t\n"
24459"    2 |     3 | f\n"
24460"    2 |     1 | f\n"
24461"    3 |     2 | t\n"
24462"    3 |     3 | t\n"
24463"    3 |     1 | f\n"
24464"    1 |     2 | t\n"
24465"    1 |     3 | t\n"
24466"    1 |     1 | t"
24467
24468#. Tag: refname
24469#: reference_raster.xml:10085
24470#, no-c-format
24471msgid "&amp;&gt;"
24472msgstr "&amp;&gt;"
24473
24474#. Tag: refpurpose
24475#: reference_raster.xml:10087
24476#, no-c-format
24477msgid ""
24478"Returns <varname>TRUE</varname> if A's bounding box is to the right of B's."
24479msgstr ""
24480"AのバウンディングボックスがBのバウンディングボックスをオーバラップするか、Bの"
24481"バウンディングボックスの右にある場合に <varname>TRUE</varname> を返します。"
24482
24483#. Tag: funcprototype
24484#: reference_raster.xml:10092
24485#, no-c-format
24486msgid ""
24487"<funcdef>boolean <function>&amp;&gt;</function></funcdef> <paramdef> "
24488"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24489"<type>raster </type> <parameter>B</parameter> </paramdef>"
24490msgstr ""
24491"<funcdef>boolean <function>&amp;&gt;</function></funcdef> <paramdef> "
24492"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24493"<type>raster </type> <parameter>B</parameter> </paramdef>"
24494
24495#. Tag: para
24496#: reference_raster.xml:10113
24497#, no-c-format
24498msgid ""
24499"The <varname>&amp;&gt;</varname> operator returns <varname>TRUE</varname> if "
24500"the bounding box of raster A overlaps or is to the right of the bounding box "
24501"of raster B, or more accurately, overlaps or is NOT to the left of the "
24502"bounding box of raster B."
24503msgstr ""
24504"<varname>&amp;&gt;</varname>演算子は、AのバウンディングボックスがBのバウン"
24505"ディングボックスをオーバラップするか、Bのバウンディングボックスの右にある場合"
24506"に<varname>TRUE</varname>を返します。条件についてより詳細に言うと、Bのバウン"
24507"ディングボックスをオーバラップするかBのバウンディングボックスの左に*ない*場合"
24508"です。"
24509
24510#. Tag: para
24511#: reference_raster.xml:10117
24512#, no-c-format
24513msgid ""
24514"This operand will make use of any indexes that may be available on the "
24515"geometries."
24516msgstr "これのオペランドは、ジオメトリで使用できるインデクスを使用します。"
24517
24518#. Tag: programlisting
24519#: reference_raster.xml:10124
24520#, no-c-format
24521msgid ""
24522"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&gt; B.rast As overright\n"
24523" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
24524"\n"
24525" a_rid | b_rid | overright\n"
24526"-------+-------+----------\n"
24527"     2 |     2 | t\n"
24528"     2 |     3 | t\n"
24529"     2 |     1 | t\n"
24530"     3 |     2 | f\n"
24531"     3 |     3 | t\n"
24532"     3 |     1 | f\n"
24533"     1 |     2 | f\n"
24534"     1 |     3 | t\n"
24535"     1 |     1 | t"
24536msgstr ""
24537"SELECT A.rid As a_rid, B.rid As b_rid, A.rast &amp;&gt; B.rast As overright\n"
24538" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
24539"\n"
24540" a_rid | b_rid | overright\n"
24541"-------+-------+----------\n"
24542"     2 |     2 | t\n"
24543"     2 |     3 | t\n"
24544"     2 |     1 | t\n"
24545"     3 |     2 | f\n"
24546"     3 |     3 | t\n"
24547"     3 |     1 | f\n"
24548"     1 |     2 | f\n"
24549"     1 |     3 | t\n"
24550"     1 |     1 | t"
24551
24552#. Tag: refname
24553#: reference_raster.xml:10130
24554#, no-c-format
24555msgid "&#61;"
24556msgstr "&#61;"
24557
24558#. Tag: refpurpose
24559#: reference_raster.xml:10132
24560#, no-c-format
24561msgid ""
24562"Returns <varname>TRUE</varname> if A's bounding box is the same as B's. Uses "
24563"double precision bounding box."
24564msgstr ""
24565"AのバウンディングボックスがBのバウンディングボックスと同じ場合に"
24566"<varname>TRUE</varname>を返します。倍精度浮動小数点数のバウンディングボックス"
24567"を使います。"
24568
24569#. Tag: funcprototype
24570#: reference_raster.xml:10137
24571#, no-c-format
24572msgid ""
24573"<funcdef>boolean <function>&#61;</function></funcdef> <paramdef> "
24574"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24575"<type>raster </type> <parameter>B</parameter> </paramdef>"
24576msgstr ""
24577"<funcdef>boolean <function>&#61;</function></funcdef> <paramdef> "
24578"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24579"<type>raster </type> <parameter>B</parameter> </paramdef>"
24580
24581#. Tag: para
24582#: reference_raster.xml:10158
24583#, no-c-format
24584msgid ""
24585"The <varname>&#61;</varname> operator returns <varname>TRUE</varname> if the "
24586"bounding box of raster A is the same as the bounding box of raster B. "
24587"PostgreSQL uses the =, &lt;, and &gt; operators defined for rasters to "
24588"perform internal orderings and comparison of rasters (ie. in a GROUP BY or "
24589"ORDER BY clause)."
24590msgstr ""
24591"<varname>&#61;</varname>演算子は、AのバウンディングボックスがBのバウンディン"
24592"グボックスと同じ場合にTRUEを返します。PostgreSQLは内部でラスタの順序決定や比"
24593"較 (GROUP BY節やORDER BY節など)を行うためにラスタ用として定義している=, "
24594"&lt;, &gt;演算子を使用します。"
24595
24596#. Tag: para
24597#: reference_raster.xml:10162
24598#, no-c-format
24599msgid ""
24600"This operand will NOT make use of any indexes that may be available on the "
24601"rasters. Use <xref linkend=\"RT_Raster_Same\"/> instead. This operator "
24602"exists mostly so one can group by the raster column."
24603msgstr ""
24604"これのオペランドは、ラスタで利用できるインデクスを使いません。代わりに<xref "
24605"linkend=\"RT_Raster_Same\"/>を使います。この演算子はラスタカラムのGROUP BYに"
24606"使うのがほとんどです。"
24607
24608#. Tag: refname
24609#: reference_raster.xml:10178
24610#, no-c-format
24611msgid "<refname>@</refname>"
24612msgstr "<refname>@</refname>"
24613
24614#. Tag: refpurpose
24615#: reference_raster.xml:10180
24616#, no-c-format
24617msgid ""
24618"Returns <varname>TRUE</varname> if A's bounding box is contained by B's. "
24619"Uses double precision bounding box."
24620msgstr ""
24621"AのバウンディングボックスがBのバウンディングボックスに含まれる場合に"
24622"<varname>TRUE</varname>を返します。倍精度浮動小数点数のバウンディングボックス"
24623"を使います。"
24624
24625#. Tag: funcsynopsis
24626#: reference_raster.xml:10184
24627#, no-c-format
24628msgid ""
24629"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24630"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24631"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24632"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24633"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
24634"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24635"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24636"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
24637"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
24638msgstr ""
24639"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24640"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24641"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24642"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24643"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
24644"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24645"<funcprototype> <funcdef>boolean <function>@</function></funcdef> <paramdef> "
24646"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
24647"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
24648
24649#. Tag: para
24650#: reference_raster.xml:10227
24651#, no-c-format
24652msgid ""
24653"The <varname>@</varname> operator returns <varname>TRUE</varname> if the "
24654"bounding box of raster/geometry A is contained by bounding box of raster/"
24655"geometr B."
24656msgstr ""
24657"<varname>@</varname>は、ラスタまたはジオメトリであるAのバウンディングボックス"
24658"が、ラスタまたはジオメトリであるBのバウンディングボックスに含まれる場合に"
24659"<varname>TRUE</varname>を返します。"
24660
24661#. Tag: para
24662#: reference_raster.xml:10230 reference_raster.xml:10350
24663#, no-c-format
24664msgid "This operand will use spatial indexes on the rasters."
24665msgstr "これのオペランドは、ラスタのインデクスを使用します。"
24666
24667#. Tag: para
24668#: reference_raster.xml:10232
24669#, no-c-format
24670msgid "Availability: 2.0.0 raster @ raster, raster @ geometry introduced"
24671msgstr ""
24672"Availability: 2.0.0 raster @ raster, raster @ geometry が導入されました。"
24673
24674#. Tag: para
24675#: reference_raster.xml:10233
24676#, no-c-format
24677msgid "Availability: 2.0.5 geometry @ raster introduced"
24678msgstr "Availability: 2.0.5 geometry @ raster が導入されました。"
24679
24680#. Tag: refname
24681#: reference_raster.xml:10246
24682#, no-c-format
24683msgid "<refname>~=</refname>"
24684msgstr "<refname>~=</refname>"
24685
24686#. Tag: refpurpose
24687#: reference_raster.xml:10248
24688#, no-c-format
24689msgid "Returns <varname>TRUE</varname> if A's bounding box is the same as B's."
24690msgstr ""
24691"AのバウンディングボックスがBのバウンディングボックスと同じ場合にTRUEを返しま"
24692"す。"
24693
24694#. Tag: funcprototype
24695#: reference_raster.xml:10253
24696#, no-c-format
24697msgid ""
24698"<funcdef>boolean <function>~=</function></funcdef> <paramdef> <type>raster </"
24699"type> <parameter>A</parameter> </paramdef> <paramdef> <type>raster </type> "
24700"<parameter>B</parameter> </paramdef>"
24701msgstr ""
24702"<funcdef>boolean <function>~=</function></funcdef> <paramdef> <type>raster </"
24703"type> <parameter>A</parameter> </paramdef> <paramdef> <type>raster </type> "
24704"<parameter>B</parameter> </paramdef>"
24705
24706#. Tag: para
24707#: reference_raster.xml:10274
24708#, no-c-format
24709msgid ""
24710"The <varname>~=</varname> operator returns <varname>TRUE</varname> if the "
24711"bounding box of raster A is the same as the bounding box of raster B."
24712msgstr ""
24713"<varname>~=</varname>演算子は、AのバウンディングボックスがBのバウンディング"
24714"ボックスと同じ場合に<varname>TRUE</varname>を返します。"
24715
24716#. Tag: para
24717#: reference_raster.xml:10286
24718#, no-c-format
24719msgid ""
24720"Very useful usecase is for taking two sets of single band rasters that are "
24721"of the same chunk but represent different themes and creating a multi-band "
24722"raster"
24723msgstr ""
24724"大変便利な利用局面として、単一バンドを持つラスタ集合が二つあって、これらは同"
24725"じデータなのに異なる主題を表現する場合で、これらを取って複数バンドのラスタを"
24726"生成する局面です。"
24727
24728#. Tag: programlisting
24729#: reference_raster.xml:10287
24730#, no-c-format
24731msgid ""
24732"SELECT ST_AddBand(prec.rast, alt.rast) As new_rast\n"
24733"    FROM prec INNER JOIN alt ON (prec.rast ~= alt.rast);"
24734msgstr ""
24735"SELECT ST_AddBand(prec.rast, alt.rast) As new_rast\n"
24736"    FROM prec INNER JOIN alt ON (prec.rast ~= alt.rast);"
24737
24738#. Tag: para
24739#: reference_raster.xml:10292
24740#, no-c-format
24741msgid ", <xref linkend=\"RT_Raster_EQ\"/>"
24742msgstr ", <xref linkend=\"RT_Raster_EQ\"/>"
24743
24744#. Tag: refname
24745#: reference_raster.xml:10298
24746#, no-c-format
24747msgid "<refname>~</refname>"
24748msgstr "<refname>~</refname>"
24749
24750#. Tag: refpurpose
24751#: reference_raster.xml:10300
24752#, no-c-format
24753msgid ""
24754"Returns <varname>TRUE</varname> if A's bounding box is contains B's. Uses "
24755"double precision bounding box."
24756msgstr ""
24757"AのバウンディングボックスがBのバウンディングボックスを含む場合に"
24758"<varname>TRUE</varname>を返します。倍精度浮動小数点数のバウンディングボックス"
24759"を使います。"
24760
24761#. Tag: funcsynopsis
24762#: reference_raster.xml:10304
24763#, no-c-format
24764msgid ""
24765"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24766"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24767"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24768"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24769"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
24770"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24771"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24772"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
24773"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
24774msgstr ""
24775"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24776"<type>raster </type> <parameter>A</parameter> </paramdef> <paramdef> "
24777"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24778"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24779"<type>geometry </type> <parameter>A</parameter> </paramdef> <paramdef> "
24780"<type>raster </type> <parameter>B</parameter> </paramdef> </funcprototype> "
24781"<funcprototype> <funcdef>boolean <function>~</function></funcdef> <paramdef> "
24782"<type>raster </type> <parameter>B</parameter> </paramdef> <paramdef> "
24783"<type>geometry </type> <parameter>A</parameter> </paramdef> </funcprototype>"
24784
24785#. Tag: para
24786#: reference_raster.xml:10347
24787#, no-c-format
24788msgid ""
24789"The <varname>~</varname> operator returns <varname>TRUE</varname> if the "
24790"bounding box of raster/geometry A is contains bounding box of raster/geometr "
24791"B."
24792msgstr ""
24793"<varname>~</varname>演算子は、ラスタまたはジオメトリであるAのバウンディング"
24794"ボックスがラスタまたはジオメトリであるBのバウンディングボックスを含む場合に"
24795"<varname>TRUE</varname>を返します。"
24796
24797#. Tag: title
24798#: reference_raster.xml:10365
24799#, no-c-format
24800msgid "Raster and Raster Band Spatial Relationships"
24801msgstr "ラスタとラスタバンドの空間関係関数"
24802
24803#. Tag: refname
24804#: reference_raster.xml:10369
24805#, no-c-format
24806msgid "ST_Contains"
24807msgstr "ST_Contains"
24808
24809#. Tag: refpurpose
24810#: reference_raster.xml:10370
24811#, no-c-format
24812msgid ""
24813"Return true if no points of raster rastB lie in the exterior of raster rastA "
24814"and at least one point of the interior of rastB lies in the interior of "
24815"rastA."
24816msgstr ""
24817"rastAの外にrastBの点が無く、rastAの内部にrastBの内部の点が一つ以上ある場合に"
24818"TRUEを返します。"
24819
24820#. Tag: funcsynopsis
24821#: reference_raster.xml:10376
24822#, no-c-format
24823msgid ""
24824"<funcprototype> <funcdef>boolean <function>ST_Contains</function></funcdef> "
24825"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
24826"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
24827"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
24828"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
24829"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Contains</"
24830"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
24831"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
24832"parameter> </paramdef> </funcprototype>"
24833msgstr ""
24834"<funcprototype> <funcdef>boolean <function>ST_Contains</function></funcdef> "
24835"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
24836"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
24837"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
24838"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
24839"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Contains</"
24840"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
24841"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
24842"parameter> </paramdef> </funcprototype>"
24843
24844#. Tag: para
24845#: reference_raster.xml:10415
24846#, no-c-format
24847msgid ""
24848"Raster rastA contains rastB if and only if no points of rastB lie in the "
24849"exterior of rastA and at least one point of the interior of rastB lies in "
24850"the interior of rastA. If the band number is not provided (or set to NULL), "
24851"only the convex hull of the raster is considered in the test. If the band "
24852"number is provided, only those pixels with value (not NODATA) are considered "
24853"in the test."
24854msgstr ""
24855"rastAの外にrastBの点が無く、rastAの内部にrastBの内部の点が一つ以上ある場合に"
24856"限って、rastAはrastBを包含しています。バンド番号が指定されていないかNULLに指"
24857"定されている場合には、ラスタの凸包のみを考慮してテストします。バンド番号が指"
24858"定されている場合には、値を持つ (NODATAでない)ピクセルについてテストします。"
24859
24860#. Tag: para
24861#: reference_raster.xml:10420 reference_raster.xml:10513
24862#: reference_raster.xml:10594 reference_raster.xml:10675
24863#: reference_raster.xml:10885 reference_raster.xml:10969
24864#: reference_raster.xml:11049
24865#, no-c-format
24866msgid ""
24867"This function will make use of any indexes that may be available on the "
24868"rasters."
24869msgstr "この関数はラスタで利用できるインデクスを使用します。"
24870
24871#. Tag: para
24872#: reference_raster.xml:10426
24873#, no-c-format
24874msgid ""
24875"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
24876"on the raster, e.g. ST_Contains(ST_Polygon(raster), geometry) or "
24877"ST_Contains(geometry, ST_Polygon(raster))."
24878msgstr ""
24879"ラスタとジオメトリの空間関係をテストするには、"
24880"ST_Contains(ST_Polygon(raster), geometry)またはST_Contains(geometry, "
24881"ST_Polygon(raster))というふうに、ラスタにST_Polygonを使います。"
24882
24883#. Tag: para
24884#: reference_raster.xml:10432
24885#, no-c-format
24886msgid ""
24887"ST_Contains() is the inverse of ST_Within(). So, ST_Contains(rastA, rastB) "
24888"implies ST_Within(rastB, rastA)."
24889msgstr ""
24890"ST_Contains()はST_Within()の逆です。ST_Contains(rastA, rastB)は"
24891"ST_Within(rastB, rastA)を示します。"
24892
24893#. Tag: programlisting
24894#: reference_raster.xml:10443
24895#, no-c-format
24896msgid ""
24897"-- specified band numbers\n"
24898"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
24899"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
24900"\n"
24901"NOTICE:  The first raster provided has no bands\n"
24902" rid | rid | st_contains\n"
24903"-----+-----+-------------\n"
24904"   1 |   1 |\n"
24905"   1 |   2 | f"
24906msgstr ""
24907"-- バンド番号指定\n"
24908"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
24909"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
24910"\n"
24911"NOTICE:  The first raster provided has no bands\n"
24912" rid | rid | st_contains\n"
24913"-----+-----+-------------\n"
24914"   1 |   1 |\n"
24915"   1 |   2 | f"
24916
24917#. Tag: programlisting
24918#: reference_raster.xml:10445
24919#, no-c-format
24920msgid ""
24921"-- no band numbers specified\n"
24922"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, r2.rast) FROM dummy_rast r1 "
24923"CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
24924" rid | rid | st_contains\n"
24925"-----+-----+-------------\n"
24926"   1 |   1 | t\n"
24927"   1 |   2 | f"
24928msgstr ""
24929"-- バンド番号不指定\n"
24930"SELECT r1.rid, r2.rid, ST_Contains(r1.rast, r2.rast) FROM dummy_rast r1 "
24931"CROSS JOIN dummy_rast r2 WHERE r1.rid = 1;\n"
24932" rid | rid | st_contains\n"
24933"-----+-----+-------------\n"
24934"   1 |   1 | t\n"
24935"   1 |   2 | f"
24936
24937#. Tag: para
24938#: reference_raster.xml:10449
24939#, no-c-format
24940msgid ", <xref linkend=\"RT_ST_Within\"/>"
24941msgstr ", <xref linkend=\"RT_ST_Within\"/>"
24942
24943#. Tag: refname
24944#: reference_raster.xml:10458
24945#, no-c-format
24946msgid "ST_ContainsProperly"
24947msgstr "ST_ContainsProperly"
24948
24949#. Tag: refpurpose
24950#: reference_raster.xml:10459
24951#, no-c-format
24952msgid ""
24953"Return true if rastB intersects the interior of rastA but not the boundary "
24954"or exterior of rastA."
24955msgstr ""
24956"rastBがrastAの内部でインタセクトし、かつrastAの境界とも外部ともインタセクトし"
24957"ない場合にTRUEを返します。"
24958
24959#. Tag: funcsynopsis
24960#: reference_raster.xml:10465
24961#, no-c-format
24962msgid ""
24963"<funcprototype> <funcdef>boolean <function>ST_ContainsProperly</function></"
24964"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
24965"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
24966"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
24967"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
24968"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
24969"<function>ST_ContainsProperly</function></funcdef> <paramdef> <type>raster </"
24970"type> <parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </"
24971"type> <parameter>rastB</parameter> </paramdef> </funcprototype>"
24972msgstr ""
24973"<funcprototype> <funcdef>boolean <function>ST_ContainsProperly</function></"
24974"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
24975"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
24976"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
24977"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
24978"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
24979"<function>ST_ContainsProperly</function></funcdef> <paramdef> <type>raster </"
24980"type> <parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </"
24981"type> <parameter>rastB</parameter> </paramdef> </funcprototype>"
24982
24983#. Tag: para
24984#: reference_raster.xml:10504
24985#, no-c-format
24986msgid ""
24987"Raster rastA contains properly rastB if rastB intersects the interior of "
24988"rastA but not the boundary or exterior of rastA. If the band number is not "
24989"provided (or set to NULL), only the convex hull of the raster is considered "
24990"in the test. If the band number is provided, only those pixels with value "
24991"(not NODATA) are considered in the test."
24992msgstr ""
24993"rastBがrastAの内部でインタセクトし、かつrastAの境界とも外部ともインタセクトし"
24994"ない場合には、rastAはrastBに対してContainsProperly (確実に包含している)です。"
24995"バンド番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみ"
24996"を考慮してテストします。バンド番号が指定されている場合には、値を持つ (NODATA"
24997"でない)ピクセルについてテストします。"
24998
24999#. Tag: para
25000#: reference_raster.xml:10508
25001#, no-c-format
25002msgid "Raster rastA does not contain properly itself but does contain itself."
25003msgstr "rastAは自身にはContainsProperlyではありませんが、Containsです。"
25004
25005#. Tag: para
25006#: reference_raster.xml:10519
25007#, no-c-format
25008msgid ""
25009"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25010"on the raster, e.g. ST_ContainsProperly(ST_Polygon(raster), geometry) or "
25011"ST_ContainsProperly(geometry, ST_Polygon(raster))."
25012msgstr ""
25013"ラスタとジオメトリの空間関係をテストするには、"
25014"ST_ContainsProperly(ST_Polygon(raster), geometry)または"
25015"ST_ContainsProperly(geometry, ST_Polygon(raster))というふうに、ラスタに"
25016"ST_Polygonを使います。"
25017
25018#. Tag: programlisting
25019#: reference_raster.xml:10530
25020#, no-c-format
25021msgid ""
25022"SELECT r1.rid, r2.rid, ST_ContainsProperly(r1.rast, 1, r2.rast, 1) FROM "
25023"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25024"\n"
25025" rid | rid | st_containsproperly\n"
25026"-----+-----+---------------------\n"
25027"   2 |   1 | f\n"
25028"   2 |   2 | f"
25029msgstr ""
25030"SELECT r1.rid, r2.rid, ST_ContainsProperly(r1.rast, 1, r2.rast, 1) FROM "
25031"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25032"\n"
25033" rid | rid | st_containsproperly\n"
25034"-----+-----+---------------------\n"
25035"   2 |   1 | f\n"
25036"   2 |   2 | f"
25037
25038#. Tag: para
25039#: reference_raster.xml:10534
25040#, no-c-format
25041msgid ", <xref linkend=\"RT_ST_Contains\"/>"
25042msgstr ", <xref linkend=\"RT_ST_Contains\"/>"
25043
25044#. Tag: refname
25045#: reference_raster.xml:10543
25046#, no-c-format
25047msgid "ST_Covers"
25048msgstr "ST_Covers"
25049
25050#. Tag: refpurpose
25051#: reference_raster.xml:10544
25052#, no-c-format
25053msgid "Return true if no points of raster rastB lie outside raster rastA."
25054msgstr "rastBがrastAの外部に点を持たない場合にTRUEを返します。"
25055
25056#. Tag: funcsynopsis
25057#: reference_raster.xml:10550
25058#, no-c-format
25059msgid ""
25060"<funcprototype> <funcdef>boolean <function>ST_Covers</function></funcdef> "
25061"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25062"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25063"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25064"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25065"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Covers</"
25066"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25067"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25068"parameter> </paramdef> </funcprototype>"
25069msgstr ""
25070"<funcprototype> <funcdef>boolean <function>ST_Covers</function></funcdef> "
25071"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25072"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25073"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25074"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25075"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Covers</"
25076"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25077"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25078"parameter> </paramdef> </funcprototype>"
25079
25080#. Tag: para
25081#: reference_raster.xml:10589
25082#, no-c-format
25083msgid ""
25084"Raster rastA covers rastB if and only if no points of rastB lie in the "
25085"exterior of rastA. If the band number is not provided (or set to NULL), only "
25086"the convex hull of the raster is considered in the test. If the band number "
25087"is provided, only those pixels with value (not NODATA) are considered in the "
25088"test."
25089msgstr ""
25090"rastAの外部にrastBの点が無い場合には、rastAはrastBに対してCoversです。バンド"
25091"番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみを考慮"
25092"してテストします。バンド番号が指定されている場合には、値を持つ (NODATAでない)"
25093"ピクセルについてテストします。"
25094
25095#. Tag: para
25096#: reference_raster.xml:10600
25097#, no-c-format
25098msgid ""
25099"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25100"on the raster, e.g. ST_Covers(ST_Polygon(raster), geometry) or "
25101"ST_Covers(geometry, ST_Polygon(raster))."
25102msgstr ""
25103"ラスタとジオメトリの空間関係をテストするには、ST_Covers(ST_Polygon(raster), "
25104"geometry)またはST_Covers(geometry, ST_Polygon(raster))というふうに、ラスタに"
25105"ST_Polygonを使います。"
25106
25107#. Tag: programlisting
25108#: reference_raster.xml:10611
25109#, no-c-format
25110msgid ""
25111"SELECT r1.rid, r2.rid, ST_Covers(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25112"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25113"\n"
25114" rid | rid | st_covers\n"
25115"-----+-----+-----------\n"
25116"   2 |   1 | f\n"
25117"   2 |   2 | t"
25118msgstr ""
25119"SELECT r1.rid, r2.rid, ST_Covers(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25120"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25121"\n"
25122" rid | rid | st_covers\n"
25123"-----+-----+-----------\n"
25124"   2 |   1 | f\n"
25125"   2 |   2 | t"
25126
25127#. Tag: para
25128#: reference_raster.xml:10615
25129#, no-c-format
25130msgid ", <xref linkend=\"RT_ST_CoveredBy\"/>"
25131msgstr ", <xref linkend=\"RT_ST_CoveredBy\"/>"
25132
25133#. Tag: refname
25134#: reference_raster.xml:10624
25135#, no-c-format
25136msgid "ST_CoveredBy"
25137msgstr "ST_CoveredBy"
25138
25139#. Tag: refpurpose
25140#: reference_raster.xml:10625
25141#, no-c-format
25142msgid "Return true if no points of raster rastA lie outside raster rastB."
25143msgstr "rastAがrastBの外部に点を持たない場合にTRUEを返します。"
25144
25145#. Tag: funcsynopsis
25146#: reference_raster.xml:10631
25147#, no-c-format
25148msgid ""
25149"<funcprototype> <funcdef>boolean <function>ST_CoveredBy</function></funcdef> "
25150"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25151"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25152"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25153"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25154"funcprototype> <funcprototype> <funcdef>boolean <function>ST_CoveredBy</"
25155"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25156"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25157"parameter> </paramdef> </funcprototype>"
25158msgstr ""
25159"<funcprototype> <funcdef>boolean <function>ST_CoveredBy</function></funcdef> "
25160"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25161"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25162"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25163"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25164"funcprototype> <funcprototype> <funcdef>boolean <function>ST_CoveredBy</"
25165"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25166"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25167"parameter> </paramdef> </funcprototype>"
25168
25169#. Tag: para
25170#: reference_raster.xml:10670
25171#, no-c-format
25172msgid ""
25173"Raster rastA is covered by rastB if and only if no points of rastA lie in "
25174"the exterior of rastB. If the band number is not provided (or set to NULL), "
25175"only the convex hull of the raster is considered in the test. If the band "
25176"number is provided, only those pixels with value (not NODATA) are considered "
25177"in the test."
25178msgstr ""
25179"rastAがrastBの外部に点を持たない場合には、rastAはrastBに対してCoveredByです。"
25180"バンド番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみ"
25181"を考慮してテストします。バンド番号が指定されている場合には、値を持つ (NODATA"
25182"でない)ピクセルについてテストします。"
25183
25184#. Tag: para
25185#: reference_raster.xml:10681
25186#, no-c-format
25187msgid ""
25188"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25189"on the raster, e.g. ST_CoveredBy(ST_Polygon(raster), geometry) or "
25190"ST_CoveredBy(geometry, ST_Polygon(raster))."
25191msgstr ""
25192"ラスタとジオメトリの空間関係をテストするには、"
25193"ST_CoveredBy(ST_Polygon(raster), geometry)またはST_CoveredBy(geometry, "
25194"ST_Polygon(raster))というふうに、ラスタにST_Polygonを使います。"
25195
25196#. Tag: programlisting
25197#: reference_raster.xml:10692
25198#, no-c-format
25199msgid ""
25200"SELECT r1.rid, r2.rid, ST_CoveredBy(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
25201"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25202"\n"
25203" rid | rid | st_coveredby\n"
25204"-----+-----+--------------\n"
25205"   2 |   1 | f\n"
25206"   2 |   2 | t"
25207msgstr ""
25208"SELECT r1.rid, r2.rid, ST_CoveredBy(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
25209"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25210"\n"
25211" rid | rid | st_coveredby\n"
25212"-----+-----+--------------\n"
25213"   2 |   1 | f\n"
25214"   2 |   2 | t"
25215
25216#. Tag: para
25217#: reference_raster.xml:10696
25218#, no-c-format
25219msgid ", <xref linkend=\"RT_ST_Covers\"/>"
25220msgstr ", <xref linkend=\"RT_ST_Covers\"/>"
25221
25222#. Tag: refname
25223#: reference_raster.xml:10705
25224#, no-c-format
25225msgid "ST_Disjoint"
25226msgstr "ST_Disjoint"
25227
25228#. Tag: refpurpose
25229#: reference_raster.xml:10706
25230#, no-c-format
25231msgid "Return true if raster rastA does not spatially intersect rastB."
25232msgstr "rastAがrastBとインタセクトしない場合にTRUEを返します。"
25233
25234#. Tag: funcsynopsis
25235#: reference_raster.xml:10712
25236#, no-c-format
25237msgid ""
25238"<funcprototype> <funcdef>boolean <function>ST_Disjoint</function></funcdef> "
25239"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25240"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25241"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25242"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25243"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Disjoint</"
25244"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25245"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25246"parameter> </paramdef> </funcprototype>"
25247msgstr ""
25248"<funcprototype> <funcdef>boolean <function>ST_Disjoint</function></funcdef> "
25249"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25250"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25251"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25252"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25253"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Disjoint</"
25254"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25255"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25256"parameter> </paramdef> </funcprototype>"
25257
25258#. Tag: para
25259#: reference_raster.xml:10751
25260#, no-c-format
25261msgid ""
25262"Raster rastA and rastB are disjointed if they do not share any space "
25263"together. If the band number is not provided (or set to NULL), only the "
25264"convex hull of the raster is considered in the test. If the band number is "
25265"provided, only those pixels with value (not NODATA) are considered in the "
25266"test."
25267msgstr ""
25268"rastAがrastBとインタセクトしない場合には、rastAとrastBはDisjointです。バンド"
25269"番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみを考慮"
25270"してテストします。バンド番号が指定されている場合には、値を持つ (NODATAでない)"
25271"ピクセルについてテストします。"
25272
25273#. Tag: para
25274#: reference_raster.xml:10756
25275#, no-c-format
25276msgid "This function does NOT use any indexes."
25277msgstr "この関数はインデクスを*使いません*。"
25278
25279#. Tag: para
25280#: reference_raster.xml:10762
25281#, no-c-format
25282msgid ""
25283"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25284"on the raster, e.g. ST_Disjoint(ST_Polygon(raster), geometry)."
25285msgstr ""
25286"ラスタとジオメトリの空間関係をテストするには、"
25287"ST_Disjoint(ST_Polygon(raster), geometry)というふうに、ラスタにST_Polygonを使"
25288"います。"
25289
25290#. Tag: programlisting
25291#: reference_raster.xml:10773
25292#, no-c-format
25293msgid ""
25294"-- rid = 1 has no bands, hence the NOTICE and the NULL value for "
25295"st_disjoint\n"
25296"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
25297"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25298"\n"
25299"NOTICE:  The second raster provided has no bands\n"
25300" rid | rid | st_disjoint\n"
25301"-----+-----+-------------\n"
25302"   2 |   1 |\n"
25303"   2 |   2 | f"
25304msgstr ""
25305"-- rid=1のラスタはバンドを持っていないので、\n"
25306"-- 警告が出て、ST_DisjointでNULL値が出ます\n"
25307"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, 1, r2.rast, 1) FROM dummy_rast "
25308"r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25309"\n"
25310"NOTICE:  The second raster provided has no bands\n"
25311" rid | rid | st_disjoint\n"
25312"-----+-----+-------------\n"
25313"   2 |   1 |\n"
25314"   2 |   2 | f"
25315
25316#. Tag: programlisting
25317#: reference_raster.xml:10775
25318#, no-c-format
25319msgid ""
25320"-- this time, without specifying band numbers\n"
25321"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, r2.rast) FROM dummy_rast r1 "
25322"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25323"\n"
25324" rid | rid | st_disjoint\n"
25325"-----+-----+-------------\n"
25326"   2 |   1 | t\n"
25327"   2 |   2 | f"
25328msgstr ""
25329"-- 今度はバンド番号を指定しません\n"
25330"SELECT r1.rid, r2.rid, ST_Disjoint(r1.rast, r2.rast) FROM dummy_rast r1 "
25331"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25332"\n"
25333" rid | rid | st_disjoint\n"
25334"-----+-----+-------------\n"
25335"   2 |   1 | t\n"
25336"   2 |   2 | f"
25337
25338#. Tag: refname
25339#: reference_raster.xml:10788
25340#, no-c-format
25341msgid "ST_Intersects"
25342msgstr "ST_Intersects"
25343
25344#. Tag: refpurpose
25345#: reference_raster.xml:10789
25346#, no-c-format
25347msgid "Return true if raster rastA spatially intersects raster rastB."
25348msgstr "rastAがrastBとインタセクトする場合にTRUEを返します。"
25349
25350#. Tag: funcsynopsis
25351#: reference_raster.xml:10793
25352#, no-c-format
25353msgid ""
25354"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
25355"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
25356"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
25357"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
25358"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
25359"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
25360"<function>ST_Intersects</function></funcdef> <paramdef> <type>raster </type> "
25361"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
25362"<parameter>rastB</parameter> </paramdef> </funcprototype> <funcprototype> "
25363"<funcdef>boolean <function>ST_Intersects</function></funcdef> <paramdef> "
25364"<type>raster </type> <parameter>rast</parameter> </paramdef> <paramdef> "
25365"<type>integer </type> <parameter>nband</parameter> </paramdef> <paramdef> "
25366"<type>geometry </type> <parameter>geommin</parameter> </paramdef> </"
25367"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Intersects</"
25368"function></funcdef> <paramdef> <type>raster </type> <parameter>rast</"
25369"parameter> </paramdef> <paramdef> <type>geometry </type> <parameter>geommin</"
25370"parameter> </paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
25371"<parameter>nband=NULL</parameter> </paramdef> </funcprototype> "
25372"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
25373"funcdef> <paramdef> <type>geometry </type> <parameter>geommin</parameter> </"
25374"paramdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
25375"paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
25376"<parameter>nband=NULL</parameter> </paramdef> </funcprototype>"
25377msgstr ""
25378"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
25379"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
25380"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
25381"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
25382"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
25383"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
25384"<function>ST_Intersects</function></funcdef> <paramdef> <type>raster </type> "
25385"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
25386"<parameter>rastB</parameter> </paramdef> </funcprototype> <funcprototype> "
25387"<funcdef>boolean <function>ST_Intersects</function></funcdef> <paramdef> "
25388"<type>raster </type> <parameter>rast</parameter> </paramdef> <paramdef> "
25389"<type>integer </type> <parameter>nband</parameter> </paramdef> <paramdef> "
25390"<type>geometry </type> <parameter>geommin</parameter> </paramdef> </"
25391"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Intersects</"
25392"function></funcdef> <paramdef> <type>raster </type> <parameter>rast</"
25393"parameter> </paramdef> <paramdef> <type>geometry </type> <parameter>geommin</"
25394"parameter> </paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
25395"<parameter>nband=NULL</parameter> </paramdef> </funcprototype> "
25396"<funcprototype> <funcdef>boolean <function>ST_Intersects</function></"
25397"funcdef> <paramdef> <type>geometry </type> <parameter>geommin</parameter> </"
25398"paramdef> <paramdef> <type>raster </type> <parameter>rast</parameter> </"
25399"paramdef> <paramdef choice=\"opt\"> <type>integer </type> "
25400"<parameter>nband=NULL</parameter> </paramdef> </funcprototype>"
25401
25402#. Tag: para
25403#: reference_raster.xml:10880
25404#, no-c-format
25405msgid ""
25406"Return true if raster rastA spatially intersects raster rastB. If the band "
25407"number is not provided (or set to NULL), only the convex hull of the raster "
25408"is considered in the test. If the band number is provided, only those pixels "
25409"with value (not NODATA) are considered in the test."
25410msgstr ""
25411"rastAがrastBとインタセクトする場合にTRUEを返します。バンド番号が指定されてい"
25412"ないかNULLに指定されている場合には、ラスタの凸包のみを考慮してテストします。"
25413"バンド番号が指定されている場合には、値を持つ (NODATAでない)ピクセルについてテ"
25414"ストします。"
25415
25416#. Tag: para
25417#: reference_raster.xml:10890
25418#, no-c-format
25419msgid "Enhanced: 2.0.0 support raster/raster intersects was introduced."
25420msgstr "Enhanced: 2.0.0 ラスタ/ラスタのインタセクト対応が導入されました。"
25421
25422#. Tag: para
25423#: reference_raster.xml:10895
25424#, no-c-format
25425msgid ""
25426"Changed: 2.1.0 The behavior of the ST_Intersects(raster, geometry) variants "
25427"changed to match that of ST_Intersects(geometry, raster)."
25428msgstr ""
25429"Changed: 2.1.0 ST_Intersects(raster, geometry)形式の挙動が "
25430"ST_Intersects(geometry, raster)とあうように変更されました。"
25431
25432#. Tag: programlisting
25433#: reference_raster.xml:10904
25434#, no-c-format
25435msgid ""
25436"-- different bands of same raster\n"
25437"SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;\n"
25438"\n"
25439" st_intersects\n"
25440"---------------\n"
25441" t"
25442msgstr ""
25443"-- 同じラスタの別のバンド\n"
25444"SELECT ST_Intersects(rast, 2, rast, 3) FROM dummy_rast WHERE rid = 2;\n"
25445"\n"
25446" st_intersects\n"
25447"---------------\n"
25448" t"
25449
25450#. Tag: para
25451#: reference_raster.xml:10909
25452#, no-c-format
25453msgid ", <xref linkend=\"RT_ST_Disjoint\"/>"
25454msgstr ", <xref linkend=\"RT_ST_Disjoint\"/>"
25455
25456#. Tag: refname
25457#: reference_raster.xml:10918
25458#, no-c-format
25459msgid "ST_Overlaps"
25460msgstr "ST_Overlaps"
25461
25462#. Tag: refpurpose
25463#: reference_raster.xml:10919
25464#, no-c-format
25465msgid ""
25466"Return true if raster rastA and rastB intersect but one does not completely "
25467"contain the other."
25468msgstr ""
25469"rastAとrastBがインタセクトして、かつ一方がもう一方に完全には包含されない場合"
25470"にはTRUEを返します。"
25471
25472#. Tag: funcsynopsis
25473#: reference_raster.xml:10925
25474#, no-c-format
25475msgid ""
25476"<funcprototype> <funcdef>boolean <function>ST_Overlaps</function></funcdef> "
25477"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25478"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25479"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25480"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25481"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Overlaps</"
25482"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25483"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25484"parameter> </paramdef> </funcprototype>"
25485msgstr ""
25486"<funcprototype> <funcdef>boolean <function>ST_Overlaps</function></funcdef> "
25487"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25488"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25489"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25490"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25491"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Overlaps</"
25492"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25493"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25494"parameter> </paramdef> </funcprototype>"
25495
25496#. Tag: para
25497#: reference_raster.xml:10964
25498#, no-c-format
25499msgid ""
25500"Return true if raster rastA spatially overlaps raster rastB. This means that "
25501"rastA and rastB intersect but one does not completely contain the other. If "
25502"the band number is not provided (or set to NULL), only the convex hull of "
25503"the raster is considered in the test. If the band number is provided, only "
25504"those pixels with value (not NODATA) are considered in the test."
25505msgstr ""
25506"rastAがrastBをオーバラップする場合にTRUEを返します。rastAとrastBがインタセク"
25507"トして、かつ一方がもう一方に完全には包含されない場合にはいう意味です。バンド"
25508"番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみを考慮"
25509"してテストします。バンド番号が指定されている場合には、値を持つ (NODATAでない)"
25510"ピクセルについてテストします。"
25511
25512#. Tag: para
25513#: reference_raster.xml:10975
25514#, no-c-format
25515msgid ""
25516"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25517"on the raster, e.g. ST_Overlaps(ST_Polygon(raster), geometry)."
25518msgstr ""
25519"ラスタとジオメトリの空間関係をテストするには、"
25520"ST_Overlaps(ST_Polygon(raster), geometry)というふうに、ラスタにST_Polygonを使"
25521"います。"
25522
25523#. Tag: programlisting
25524#: reference_raster.xml:10986
25525#, no-c-format
25526msgid ""
25527"-- comparing different bands of same raster\n"
25528"SELECT ST_Overlaps(rast, 1, rast, 2) FROM dummy_rast WHERE rid = 2;\n"
25529"\n"
25530" st_overlaps\n"
25531"-------------\n"
25532" f"
25533msgstr ""
25534"-- 同じラスタの別のバンドの比較\n"
25535"SELECT ST_Overlaps(rast, 1, rast, 2) FROM dummy_rast WHERE rid = 2;\n"
25536"\n"
25537" st_overlaps\n"
25538"-------------\n"
25539" f"
25540
25541#. Tag: refname
25542#: reference_raster.xml:10998
25543#, no-c-format
25544msgid "ST_Touches"
25545msgstr "ST_Touches"
25546
25547#. Tag: refpurpose
25548#: reference_raster.xml:10999
25549#, no-c-format
25550msgid ""
25551"Return true if raster rastA and rastB have at least one point in common but "
25552"their interiors do not intersect."
25553msgstr ""
25554"rastAとrastBが少なくとも一つの共通の点を持ち、かつ二つのラスタの内部同士がイ"
25555"ンタセクトしない場合にTRUEを返します。"
25556
25557#. Tag: funcsynopsis
25558#: reference_raster.xml:11005
25559#, no-c-format
25560msgid ""
25561"<funcprototype> <funcdef>boolean <function>ST_Touches</function></funcdef> "
25562"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25563"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25564"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25565"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25566"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Touches</"
25567"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25568"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25569"parameter> </paramdef> </funcprototype>"
25570msgstr ""
25571"<funcprototype> <funcdef>boolean <function>ST_Touches</function></funcdef> "
25572"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25573"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25574"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25575"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25576"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Touches</"
25577"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25578"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25579"parameter> </paramdef> </funcprototype>"
25580
25581#. Tag: para
25582#: reference_raster.xml:11044
25583#, no-c-format
25584msgid ""
25585"Return true if raster rastA spatially touches raster rastB. This means that "
25586"rastA and rastB have at least one point in common but their interiors do not "
25587"intersect. If the band number is not provided (or set to NULL), only the "
25588"convex hull of the raster is considered in the test. If the band number is "
25589"provided, only those pixels with value (not NODATA) are considered in the "
25590"test."
25591msgstr ""
25592"rastAがrastBに接触する場合にTRUEを返します。rastAとrastBが少なくとも一つの共"
25593"通の点を持ち、かつ二つのラスタの内部同士がインタセクトしないという意味です。"
25594"バンド番号が指定されていないかNULLに指定されている場合には、ラスタの凸包のみ"
25595"を考慮してテストします。バンド番号が指定されている場合には、値を持つ (NODATA"
25596"でない)ピクセルについてテストします。"
25597
25598#. Tag: para
25599#: reference_raster.xml:11055
25600#, no-c-format
25601msgid ""
25602"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25603"on the raster, e.g. ST_Touches(ST_Polygon(raster), geometry)."
25604msgstr ""
25605"ラスタとジオメトリの空間関係をテストするには、ST_Touches(ST_Polygon(raster), "
25606"geometry)というふうに、ラスタにST_Polygonを使います。"
25607
25608#. Tag: programlisting
25609#: reference_raster.xml:11066
25610#, no-c-format
25611msgid ""
25612"SELECT r1.rid, r2.rid, ST_Touches(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25613"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25614"\n"
25615" rid | rid | st_touches\n"
25616"-----+-----+------------\n"
25617"   2 |   1 | f\n"
25618"   2 |   2 | f"
25619msgstr ""
25620"SELECT r1.rid, r2.rid, ST_Touches(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25621"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25622"\n"
25623" rid | rid | st_touches\n"
25624"-----+-----+------------\n"
25625"   2 |   1 | f\n"
25626"   2 |   2 | f"
25627
25628#. Tag: refname
25629#: reference_raster.xml:11078
25630#, no-c-format
25631msgid "ST_SameAlignment"
25632msgstr "ST_SameAlignment"
25633
25634#. Tag: refpurpose
25635#: reference_raster.xml:11080
25636#, no-c-format
25637msgid ""
25638"Returns true if rasters have same skew, scale, spatial ref, and offset "
25639"(pixels can be put on same grid without cutting into pixels) and false if "
25640"they don't with notice detailing issue."
25641msgstr ""
25642"ラスタが同じスキュー、スケール、空間参照系、オフセットを持つ (ピクセルが分割"
25643"されることなく同じグリッドに置かれている)場合にTRUEを返し、そうでない場合は問"
25644"題を詳述する通知とともにFALSEを返します。"
25645
25646#. Tag: funcsynopsis
25647#: reference_raster.xml:11084
25648#, no-c-format
25649msgid ""
25650"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
25651"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
25652"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
25653"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
25654"<function>ST_SameAlignment</function></funcdef> <paramdef> <type>double "
25655"precision </type> <parameter>ulx1</parameter> </paramdef> <paramdef> "
25656"<type>double precision </type> <parameter>uly1</parameter> </paramdef> "
25657"<paramdef> <type>double precision </type> <parameter>scalex1</parameter> </"
25658"paramdef> <paramdef> <type>double precision </type> <parameter>scaley1</"
25659"parameter> </paramdef> <paramdef> <type>double precision </type> "
25660"<parameter>skewx1</parameter> </paramdef> <paramdef> <type>double precision "
25661"</type> <parameter>skewy1</parameter> </paramdef> <paramdef> <type>double "
25662"precision </type> <parameter>ulx2</parameter> </paramdef> <paramdef> "
25663"<type>double precision </type> <parameter>uly2</parameter> </paramdef> "
25664"<paramdef> <type>double precision </type> <parameter>scalex2</parameter> </"
25665"paramdef> <paramdef> <type>double precision </type> <parameter>scaley2</"
25666"parameter> </paramdef> <paramdef> <type>double precision </type> "
25667"<parameter>skewx2</parameter> </paramdef> <paramdef> <type>double precision "
25668"</type> <parameter>skewy2</parameter> </paramdef> </funcprototype> "
25669"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
25670"funcdef> <paramdef> <type>raster set </type> <parameter>rastfield</"
25671"parameter> </paramdef> </funcprototype>"
25672msgstr ""
25673"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
25674"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
25675"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
25676"paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
25677"<function>ST_SameAlignment</function></funcdef> <paramdef> <type>double "
25678"precision </type> <parameter>ulx1</parameter> </paramdef> <paramdef> "
25679"<type>double precision </type> <parameter>uly1</parameter> </paramdef> "
25680"<paramdef> <type>double precision </type> <parameter>scalex1</parameter> </"
25681"paramdef> <paramdef> <type>double precision </type> <parameter>scaley1</"
25682"parameter> </paramdef> <paramdef> <type>double precision </type> "
25683"<parameter>skewx1</parameter> </paramdef> <paramdef> <type>double precision "
25684"</type> <parameter>skewy1</parameter> </paramdef> <paramdef> <type>double "
25685"precision </type> <parameter>ulx2</parameter> </paramdef> <paramdef> "
25686"<type>double precision </type> <parameter>uly2</parameter> </paramdef> "
25687"<paramdef> <type>double precision </type> <parameter>scalex2</parameter> </"
25688"paramdef> <paramdef> <type>double precision </type> <parameter>scaley2</"
25689"parameter> </paramdef> <paramdef> <type>double precision </type> "
25690"<parameter>skewx2</parameter> </paramdef> <paramdef> <type>double precision "
25691"</type> <parameter>skewy2</parameter> </paramdef> </funcprototype> "
25692"<funcprototype> <funcdef>boolean <function>ST_SameAlignment</function></"
25693"funcdef> <paramdef> <type>raster set </type> <parameter>rastfield</"
25694"parameter> </paramdef> </funcprototype>"
25695
25696#. Tag: para
25697#: reference_raster.xml:11163
25698#, no-c-format
25699msgid ""
25700"Non-Aggregate version (Variants 1 and 2): Returns true if the two rasters "
25701"(either provided directly or made using the values for upperleft, scale, "
25702"skew and srid) have the same scale, skew, srid and at least one of any of "
25703"the four corners of any pixel of one raster falls on any corner of the grid "
25704"of the other raster. Returns false if they don't and a NOTICE detailing the "
25705"alignment issue."
25706msgstr ""
25707"非集計版 (一つ目と二つ目の形式): 二つのラスタ (直接与えたラスタでも左上隅、ス"
25708"ケール、スキュー、SRIDを使って作ったものでも)が同じスキュー、スケール、空間参"
25709"照系、を持ち、少なくとも4隅の一つがもう一方のラスタのグリッド隅に落ちる場合に"
25710"TRUEを返します。そうでない場合には、問題に言及した警告を出します。"
25711
25712#. Tag: para
25713#: reference_raster.xml:11167
25714#, no-c-format
25715msgid ""
25716"Aggregate version (Variant 3): From a set of rasters, returns true if all "
25717"rasters in the set are aligned. The ST_SameAlignment() function is an "
25718"\"aggregate\" function in the terminology of PostgreSQL. That means that it "
25719"operates on rows of data, in the same way the SUM() and AVG() functions do."
25720msgstr ""
25721"集約関数版 (三つ目の形式): ラスタ集合から、全てのラスタが同じアラインメントを"
25722"持つ場合にTRUEを返します。ST_SameAlignment()関数はPostgreSQLの用語で言うとこ"
25723"ろの「集約」関数です。SUM()やAVG()といった複数のデータ行での操作を意味しま"
25724"す。"
25725
25726#. Tag: para
25727#: reference_raster.xml:11172
25728#, no-c-format
25729msgid "Enhanced: 2.1.0 addition of Aggegrate variant"
25730msgstr "Enhanced: 2.1.0 集約関数版の追加"
25731
25732#. Tag: title
25733#: reference_raster.xml:11176
25734#, no-c-format
25735msgid "Examples: Rasters"
25736msgstr "例: ラスタ"
25737
25738#. Tag: programlisting
25739#: reference_raster.xml:11178
25740#, no-c-format
25741msgid ""
25742"SELECT ST_SameAlignment(\n"
25743"        ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25744"        ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0)\n"
25745") as sm;\n"
25746"\n"
25747"sm\n"
25748"----\n"
25749"t"
25750msgstr ""
25751"SELECT ST_SameAlignment(\n"
25752"        ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25753"        ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0)\n"
25754") as sm;\n"
25755"\n"
25756"sm\n"
25757"----\n"
25758"t"
25759
25760#. Tag: programlisting
25761#: reference_raster.xml:11179
25762#, no-c-format
25763msgid ""
25764"SELECT ST_SameAlignment(A.rast,b.rast)\n"
25765" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
25766"\n"
25767" NOTICE:  The two rasters provided have different SRIDs\n"
25768"NOTICE:  The two rasters provided have different SRIDs\n"
25769" st_samealignment\n"
25770"------------------\n"
25771" t\n"
25772" f\n"
25773" f\n"
25774" f"
25775msgstr ""
25776"SELECT ST_SameAlignment(A.rast,b.rast)\n"
25777" FROM dummy_rast AS A CROSS JOIN dummy_rast AS B;\n"
25778"\n"
25779" NOTICE:  The two rasters provided have different SRIDs\n"
25780"NOTICE:  The two rasters provided have different SRIDs\n"
25781" st_samealignment\n"
25782"------------------\n"
25783" t\n"
25784" f\n"
25785" f\n"
25786" f"
25787
25788#. Tag: para
25789#: reference_raster.xml:11183
25790#, no-c-format
25791msgid ""
25792", <xref linkend=\"RT_ST_NotSameAlignmentReason\"/>, <xref linkend="
25793"\"RT_ST_MakeEmptyRaster\"/>"
25794msgstr ""
25795", <xref linkend=\"RT_ST_NotSameAlignmentReason\"/>, <xref linkend="
25796"\"RT_ST_MakeEmptyRaster\"/>"
25797
25798#. Tag: refname
25799#: reference_raster.xml:11193
25800#, no-c-format
25801msgid "ST_NotSameAlignmentReason"
25802msgstr "ST_NotSameAlignmentReason"
25803
25804#. Tag: refpurpose
25805#: reference_raster.xml:11194
25806#, no-c-format
25807msgid ""
25808"<refpurpose>Returns text stating if rasters are aligned and if not aligned, "
25809"a reason why.</refpurpose>"
25810msgstr ""
25811"<refpurpose>ラスタが同じアラインメントを持つかどうか、また、持たない場合には"
25812"その理由を示す文字列を返します。</refpurpose>"
25813
25814#. Tag: funcprototype
25815#: reference_raster.xml:11199
25816#, no-c-format
25817msgid ""
25818"<funcdef>text <function>ST_NotSameAlignmentReason</function></funcdef> "
25819"<paramdef><type>raster </type><parameter>rastA</parameter></paramdef> "
25820"<paramdef><type>raster </type><parameter>rastB</parameter></paramdef>"
25821msgstr ""
25822"<funcdef>text <function>ST_NotSameAlignmentReason</function></funcdef> "
25823"<paramdef><type>raster </type><parameter>rastA</parameter></paramdef> "
25824"<paramdef><type>raster </type><parameter>rastB</parameter></paramdef>"
25825
25826#. Tag: para
25827#: reference_raster.xml:11209
25828#, no-c-format
25829msgid ""
25830"<para>Returns text stating if rasters are aligned and if not aligned, a "
25831"reason why.</para>"
25832msgstr ""
25833"<para>ラスタが同じアラインメントを持つかどうか、また、持たない場合にはその理"
25834"由を示す文字列を返します。</para>"
25835
25836#. Tag: para
25837#: reference_raster.xml:11212
25838#, no-c-format
25839msgid ""
25840"If there are several reasons why the rasters are not aligned, only one "
25841"reason (the first test to fail) will be returned."
25842msgstr ""
25843"ラスタが同じアラインメントを持たない理由が複数ある場合には、一つだけ (最初の"
25844"テストで失敗した)理由を返します。"
25845
25846#. Tag: programlisting
25847#: reference_raster.xml:11222
25848#, no-c-format
25849msgid ""
25850"SELECT\n"
25851"        ST_SameAlignment(\n"
25852"                ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25853"                ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
25854"        ),\n"
25855"        ST_NotSameAlignmentReason(\n"
25856"                ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25857"                ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
25858"        )\n"
25859";\n"
25860"\n"
25861" st_samealignment |            st_notsamealignmentreason\n"
25862"------------------+-------------------------------------------------\n"
25863" f                | The rasters have different scales on the X axis\n"
25864"(1 row)"
25865msgstr ""
25866"SELECT\n"
25867"        ST_SameAlignment(\n"
25868"                ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25869"                ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
25870"        ),\n"
25871"        ST_NotSameAlignmentReason(\n"
25872"                ST_MakeEmptyRaster(1, 1, 0, 0, 1, 1, 0, 0),\n"
25873"                ST_MakeEmptyRaster(1, 1, 0, 0, 1.1, 1.1, 0, 0)\n"
25874"        )\n"
25875";\n"
25876"\n"
25877" st_samealignment |            st_notsamealignmentreason\n"
25878"------------------+-------------------------------------------------\n"
25879" f                | The rasters have different scales on the X axis\n"
25880"(1 row)"
25881
25882#. Tag: para
25883#: reference_raster.xml:11227
25884#, no-c-format
25885msgid ", <xref linkend=\"RT_ST_SameAlignment\"/>"
25886msgstr ", <xref linkend=\"RT_ST_SameAlignment\"/>"
25887
25888#. Tag: refname
25889#: reference_raster.xml:11236
25890#, no-c-format
25891msgid "ST_Within"
25892msgstr "ST_Within"
25893
25894#. Tag: refpurpose
25895#: reference_raster.xml:11237
25896#, no-c-format
25897msgid ""
25898"Return true if no points of raster rastA lie in the exterior of raster rastB "
25899"and at least one point of the interior of rastA lies in the interior of "
25900"rastB."
25901msgstr ""
25902"rastAがrastBの外部に点を持たず、rastAの内部の少なくとも一つの点がrastBの内部"
25903"にある場合にTRUEを返します。"
25904
25905#. Tag: funcsynopsis
25906#: reference_raster.xml:11243
25907#, no-c-format
25908msgid ""
25909"<funcprototype> <funcdef>boolean <function>ST_Within</function></funcdef> "
25910"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25911"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25912"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25913"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25914"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Within</"
25915"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25916"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25917"parameter> </paramdef> </funcprototype>"
25918msgstr ""
25919"<funcprototype> <funcdef>boolean <function>ST_Within</function></funcdef> "
25920"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
25921"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
25922"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
25923"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> </"
25924"funcprototype> <funcprototype> <funcdef>boolean <function>ST_Within</"
25925"function></funcdef> <paramdef> <type>raster </type> <parameter>rastA</"
25926"parameter> </paramdef> <paramdef> <type>raster </type> <parameter>rastB</"
25927"parameter> </paramdef> </funcprototype>"
25928
25929#. Tag: para
25930#: reference_raster.xml:11282
25931#, no-c-format
25932msgid ""
25933"Raster rastA is within rastB if and only if no points of rastA lie in the "
25934"exterior of rastB and at least one point of the interior of rastA lies in "
25935"the interior of rastB. If the band number is not provided (or set to NULL), "
25936"only the convex hull of the raster is considered in the test. If the band "
25937"number is provided, only those pixels with value (not NODATA) are considered "
25938"in the test."
25939msgstr ""
25940"rastAがrastBの外部に点を持たず、rastAの内部の少なくとも一つの点がrastBの内部"
25941"にある場合にrastAはrastBに対してWithinです。バンド番号が指定されていないか"
25942"NULLに指定されている場合には、ラスタの凸包のみを考慮してテストします。バンド"
25943"番号が指定されている場合には、値を持つ (NODATAでない)ピクセルについてテストし"
25944"ます。"
25945
25946#. Tag: para
25947#: reference_raster.xml:11293
25948#, no-c-format
25949msgid ""
25950"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
25951"on the raster, e.g. ST_Within(ST_Polygon(raster), geometry) or "
25952"ST_Within(geometry, ST_Polygon(raster))."
25953msgstr ""
25954"ラスタとジオメトリの空間関係をテストするには、ST_Within(ST_Polygon(raster), "
25955"geometry)またはST_Within(geometry, ST_Polygon(raster))というふうに、ラスタに"
25956"ST_Polygonを使います。"
25957
25958#. Tag: para
25959#: reference_raster.xml:11299
25960#, no-c-format
25961msgid ""
25962"ST_Within() is the inverse of ST_Contains(). So, ST_Within(rastA, rastB) "
25963"implies ST_Contains(rastB, rastA)."
25964msgstr ""
25965"ST_Within()はST_Contains()の逆です。ST_Within(rastA, rastB)は"
25966"ST_Contains(rastB, rastA)を示します。"
25967
25968#. Tag: programlisting
25969#: reference_raster.xml:11310
25970#, no-c-format
25971msgid ""
25972"SELECT r1.rid, r2.rid, ST_Within(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25973"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25974"\n"
25975" rid | rid | st_within\n"
25976"-----+-----+-----------\n"
25977"   2 |   1 | f\n"
25978"   2 |   2 | t"
25979msgstr ""
25980"SELECT r1.rid, r2.rid, ST_Within(r1.rast, 1, r2.rast, 1) FROM dummy_rast r1 "
25981"CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
25982"\n"
25983" rid | rid | st_within\n"
25984"-----+-----+-----------\n"
25985"   2 |   1 | f\n"
25986"   2 |   2 | t"
25987
25988#. Tag: para
25989#: reference_raster.xml:11314
25990#, no-c-format
25991msgid ""
25992", <xref linkend=\"RT_ST_Contains\"/>, <xref linkend=\"RT_ST_DWithin\"/>, "
25993"<xref linkend=\"RT_ST_DFullyWithin\"/>"
25994msgstr ""
25995", <xref linkend=\"RT_ST_Contains\"/>, <xref linkend=\"RT_ST_DWithin\"/>, "
25996"<xref linkend=\"RT_ST_DFullyWithin\"/>"
25997
25998#. Tag: refname
25999#: reference_raster.xml:11325
26000#, no-c-format
26001msgid "ST_DWithin"
26002msgstr "ST_DWithin"
26003
26004#. Tag: refpurpose
26005#: reference_raster.xml:11326
26006#, no-c-format
26007msgid ""
26008"Return true if rasters rastA and rastB are within the specified distance of "
26009"each other."
26010msgstr "rastAとrastBが指定した距離内にある場合にTRUEを返します。"
26011
26012#. Tag: funcsynopsis
26013#: reference_raster.xml:11332
26014#, no-c-format
26015msgid ""
26016"<funcprototype> <funcdef>boolean <function>ST_DWithin</function></funcdef> "
26017"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
26018"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
26019"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
26020"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> "
26021"<paramdef> <type>double precision </type> <parameter>distance_of_srid</"
26022"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
26023"<function>ST_DWithin</function></funcdef> <paramdef> <type>raster </type> "
26024"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
26025"<parameter>rastB</parameter> </paramdef> <paramdef> <type>double precision </"
26026"type> <parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
26027msgstr ""
26028"<funcprototype> <funcdef>boolean <function>ST_DWithin</function></funcdef> "
26029"<paramdef> <type>raster </type> <parameter>rastA</parameter> </paramdef> "
26030"<paramdef> <type>integer </type> <parameter>nbandA</parameter> </paramdef> "
26031"<paramdef> <type>raster </type> <parameter>rastB</parameter> </paramdef> "
26032"<paramdef> <type>integer </type> <parameter>nbandB</parameter> </paramdef> "
26033"<paramdef> <type>double precision </type> <parameter>distance_of_srid</"
26034"parameter> </paramdef> </funcprototype> <funcprototype> <funcdef>boolean "
26035"<function>ST_DWithin</function></funcdef> <paramdef> <type>raster </type> "
26036"<parameter>rastA</parameter> </paramdef> <paramdef> <type>raster </type> "
26037"<parameter>rastB</parameter> </paramdef> <paramdef> <type>double precision </"
26038"type> <parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
26039
26040#. Tag: para
26041#: reference_raster.xml:11379
26042#, no-c-format
26043msgid ""
26044"Return true if rasters rastA and rastB are within the specified distance of "
26045"each other. If the band number is not provided (or set to NULL), only the "
26046"convex hull of the raster is considered in the test. If the band number is "
26047"provided, only those pixels with value (not NODATA) are considered in the "
26048"test."
26049msgstr ""
26050"rastAとrastBが指定した距離内にある場合にTRUEを返します。バンド番号が指定され"
26051"ていないかNULLに指定されている場合には、ラスタの凸包のみを考慮してテストしま"
26052"す。バンド番号が指定されている場合には、値を持つ (NODATAでない)ピクセルについ"
26053"てテストします。"
26054
26055#. Tag: para
26056#: reference_raster.xml:11383 reference_raster.xml:11476
26057#, no-c-format
26058msgid ""
26059"The distance is specified in units defined by the spatial reference system "
26060"of the rasters. For this function to make sense, the source rasters must "
26061"both be of the same coordinate projection, having the same SRID."
26062msgstr ""
26063"distanceはラスタの空間参照系で定義される単位です。この関数が意味あるものにす"
26064"るには、元のラスタが両方とも同じ空間参照系である、つまり同じSRIDを持たなけれ"
26065"ばなりません。"
26066
26067#. Tag: para
26068#: reference_raster.xml:11394
26069#, no-c-format
26070msgid ""
26071"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
26072"on the raster, e.g. ST_DWithin(ST_Polygon(raster), geometry)."
26073msgstr ""
26074"ラスタとジオメトリの空間関係をテストするには、ST_DWithin(ST_Polygon(raster), "
26075"geometry)というふうに、ラスタにST_Polygonを使います。"
26076
26077#. Tag: programlisting
26078#: reference_raster.xml:11405
26079#, no-c-format
26080msgid ""
26081"SELECT r1.rid, r2.rid, ST_DWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
26082"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
26083"\n"
26084" rid | rid | st_dwithin\n"
26085"-----+-----+------------\n"
26086"   2 |   1 | f\n"
26087"   2 |   2 | t"
26088msgstr ""
26089"SELECT r1.rid, r2.rid, ST_DWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
26090"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
26091"\n"
26092" rid | rid | st_dwithin\n"
26093"-----+-----+------------\n"
26094"   2 |   1 | f\n"
26095"   2 |   2 | t"
26096
26097#. Tag: para
26098#: reference_raster.xml:11409
26099#, no-c-format
26100msgid ", <xref linkend=\"RT_ST_DFullyWithin\"/>"
26101msgstr ", <xref linkend=\"RT_ST_DFullyWithin\"/>"
26102
26103#. Tag: refname
26104#: reference_raster.xml:11418
26105#, no-c-format
26106msgid "ST_DFullyWithin"
26107msgstr "ST_DFullyWithin"
26108
26109#. Tag: refpurpose
26110#: reference_raster.xml:11419
26111#, no-c-format
26112msgid ""
26113"Return true if rasters rastA and rastB are fully within the specified "
26114"distance of each other."
26115msgstr "rastAとrastBが指定した距離内に完全に収まる場合にTRUEを返します。"
26116
26117#. Tag: funcsynopsis
26118#: reference_raster.xml:11425
26119#, no-c-format
26120msgid ""
26121"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
26122"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
26123"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
26124"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
26125"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
26126"paramdef> <paramdef> <type>double precision </type> "
26127"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype> "
26128"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
26129"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
26130"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
26131"paramdef> <paramdef> <type>double precision </type> "
26132"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
26133msgstr ""
26134"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
26135"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
26136"paramdef> <paramdef> <type>integer </type> <parameter>nbandA</parameter> </"
26137"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
26138"paramdef> <paramdef> <type>integer </type> <parameter>nbandB</parameter> </"
26139"paramdef> <paramdef> <type>double precision </type> "
26140"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype> "
26141"<funcprototype> <funcdef>boolean <function>ST_DFullyWithin</function></"
26142"funcdef> <paramdef> <type>raster </type> <parameter>rastA</parameter> </"
26143"paramdef> <paramdef> <type>raster </type> <parameter>rastB</parameter> </"
26144"paramdef> <paramdef> <type>double precision </type> "
26145"<parameter>distance_of_srid</parameter> </paramdef> </funcprototype>"
26146
26147#. Tag: para
26148#: reference_raster.xml:11472
26149#, no-c-format
26150msgid ""
26151"Return true if rasters rastA and rastB are fully within the specified "
26152"distance of each other. If the band number is not provided (or set to NULL), "
26153"only the convex hull of the raster is considered in the test. If the band "
26154"number is provided, only those pixels with value (not NODATA) are considered "
26155"in the test."
26156msgstr ""
26157"rastAとrastBが指定した距離内に完全に収まる場合にTRUEを返します。バンド番号が"
26158"指定されていないかNULLに指定されている場合には、ラスタの凸包のみを考慮してテ"
26159"ストします。バンド番号が指定されている場合には、値を持つ (NODATAでない)ピクセ"
26160"ルについてテストします。"
26161
26162#. Tag: para
26163#: reference_raster.xml:11487
26164#, no-c-format
26165msgid ""
26166"To test the spatial relationship of a raster and a geometry, use ST_Polygon "
26167"on the raster, e.g. ST_DFullyWithin(ST_Polygon(raster), geometry)."
26168msgstr ""
26169"ラスタとジオメトリの空間関係をテストするには、"
26170"ST_DFullyWithin(ST_Polygon(raster), geometry)というふうに、ラスタにST_Polygon"
26171"を使います。"
26172
26173#. Tag: programlisting
26174#: reference_raster.xml:11498
26175#, no-c-format
26176msgid ""
26177"SELECT r1.rid, r2.rid, ST_DFullyWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
26178"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
26179"\n"
26180" rid | rid | st_dfullywithin\n"
26181"-----+-----+-----------------\n"
26182"   2 |   1 | f\n"
26183"   2 |   2 | t"
26184msgstr ""
26185"SELECT r1.rid, r2.rid, ST_DFullyWithin(r1.rast, 1, r2.rast, 1, 3.14) FROM "
26186"dummy_rast r1 CROSS JOIN dummy_rast r2 WHERE r1.rid = 2;\n"
26187"\n"
26188" rid | rid | st_dfullywithin\n"
26189"-----+-----+-----------------\n"
26190"   2 |   1 | f\n"
26191"   2 |   2 | t"
26192
26193#. Tag: para
26194#: reference_raster.xml:11502
26195#, no-c-format
26196msgid ", <xref linkend=\"RT_ST_DWithin\"/>"
26197msgstr ", <xref linkend=\"RT_ST_DWithin\"/>"
26198
26199#. Tag: para
26200#: reference_raster.xml:11514
26201#, no-c-format
26202msgid ""
26203"This section documents various gotchas and tips related to PostGIS Raster."
26204msgstr ""
26205"本節では、PostGISラスタに関連する様々な落とし穴や技法について説明します。"
26206
26207#. Tag: title
26208#: reference_raster.xml:11517
26209#, no-c-format
26210msgid "Raster Tips"
26211msgstr "ラスタに関する技法"
26212
26213#. Tag: title
26214#: reference_raster.xml:11520
26215#, no-c-format
26216msgid "Out-DB Rasters"
26217msgstr "データベース外ラスタ"
26218
26219#. Tag: title
26220#: reference_raster.xml:11523
26221#, no-c-format
26222msgid "Directory containing many files"
26223msgstr "多数のファイルを持つディレクトリ"
26224
26225#. Tag: para
26226#: reference_raster.xml:11524
26227#, no-c-format
26228msgid ""
26229"When GDAL opens a file, GDAL eagerly scans the directory of that file to "
26230"build a catalog of other files. If this directory contains many files (e.g. "
26231"thousands, millions), opening that file becomes extremely slow (especially "
26232"if that file happens to be on a network drive such as NFS)."
26233msgstr ""
26234"GDALはファイルを開く時に、そのファイルのディレクトリを熱心にスキャンして、他"
26235"のファイルのカタログを構築します。このディレクトリに多数のファイル (千とか万"
26236"とか)あるとします。一つのファイルを開くと動作が非常に遅くなります (特にNFSの"
26237"ようなネットワークドライブの場合)。"
26238
26239#. Tag: para
26240#: reference_raster.xml:11527
26241#, no-c-format
26242msgid ""
26243"To control this behavior, GDAL provides the following environment variable: "
26244"<ulink url=\"https://trac.osgeo.org/gdal/wiki/"
26245"ConfigOptions#GDAL_DISABLE_READDIR_ON_OPEN\">GDAL_DISABLE_READDIR_ON_OPEN</"
26246"ulink>. Set <varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> to "
26247"<varname>TRUE</varname> to disable directory scanning."
26248msgstr ""
26249"この振る舞いを制御するために、GDALには<ulink url=\"https://trac.osgeo.org/"
26250"gdal/wiki/ConfigOptions#GDAL_DISABLE_READDIR_ON_OPEN"
26251"\">GDAL_DISABLE_READDIR_ON_OPEN</ulink>という環境変数があります。"
26252"<varname>GDAL_DISABLE_READDIR_ON_OPEN</varname>を<varname>TRUE</varname>に設"
26253"定すると、ディレクトリのスキャンを無効にします。"
26254
26255#. Tag: para
26256#: reference_raster.xml:11531
26257#, no-c-format
26258msgid ""
26259"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), "
26260"<varname>GDAL_DISABLE_READDIR_ON_OPEN</varname> can be set in <emphasis>/etc/"
26261"postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/environment</emphasis> (where "
26262"POSTGRESQL_VERSION is the version of PostgreSQL, e.g. 9.6 and CLUSTER_NAME "
26263"is the name of the cluster, e.g. maindb). You can also set PostGIS "
26264"environment variables here as well."
26265msgstr ""
26266"Ubuntuでは (Ubuntu用PostgreSQLのパッケージを使っていると仮定します)、"
26267"<varname>GDAL_DISABLE_READDIR_ON_OPEN</varname>が<emphasis>/etc/postgresql/"
26268"POSTGRESQL_VERSION/CLUSTER_NAME/environment</emphasis>内で設定できます "
26269"(POSTGRESQL_VERSIONは9.6等のPostgreSQLのバージョンで、CLUSTER_NAMEはmaindb等"
26270"のクラスタ名です)。PostGIS環境変数もここで同じく設定できます。"
26271
26272#. Tag: programlisting
26273#: reference_raster.xml:11534
26274#, no-c-format
26275msgid ""
26276"# environment variables for postmaster process\n"
26277"# This file has the same syntax as postgresql.conf:\n"
26278"#  VARIABLE = simple_value\n"
26279"#  VARIABLE2 = 'any value!'\n"
26280"# I. e. you need to enclose any value which does not only consist of "
26281"letters,\n"
26282"# numbers, and '-', '_', '.' in single quotes. Shell commands are not\n"
26283"# evaluated.\n"
26284"POSTGIS_GDAL_ENABLED_DRIVERS = 'ENABLE_ALL'\n"
26285"\n"
26286"POSTGIS_ENABLE_OUTDB_RASTERS = 1\n"
26287"\n"
26288"<emphasis role=\"strong\">GDAL_DISABLE_READDIR_ON_OPEN = 'TRUE'</emphasis>"
26289msgstr ""
26290"# postmasterプロセスの環境変数\n"
26291"# このファイルはpostgresql.confと同じ文法で、次のように書きます。\n"
26292"#  VARIABLE = simple_value\n"
26293"#  VARIABLE2 = 'any value!'\n"
26294"# 例えば、英数文字と'-', '_', '.' (のシングルクォート内)以外の文字を含む値を"
26295"囲む必要があります。\n"
26296"# シェルコマンドは評価されません。\n"
26297"POSTGIS_GDAL_ENABLED_DRIVERS = 'ENABLE_ALL'\n"
26298"\n"
26299"POSTGIS_ENABLE_OUTDB_RASTERS = 1\n"
26300"\n"
26301"<emphasis role=\"strong\">GDAL_DISABLE_READDIR_ON_OPEN = 'TRUE'</emphasis>"
26302
26303#. Tag: title
26304#: reference_raster.xml:11540
26305#, no-c-format
26306msgid "Maximum Number of Open Files"
26307msgstr "開くことができるファイルの最大数"
26308
26309#. Tag: para
26310#: reference_raster.xml:11542
26311#, no-c-format
26312msgid ""
26313"The maximum number of open files permitted by Linux and PostgreSQL are "
26314"typically conservative (typically 1024 open files per process) given the "
26315"assumption that the system is consumed by human users. For Out-DB Rasters, a "
26316"single valid query can easily exceed this limit (e.g. a dataset of 10 year's "
26317"worth of rasters with one raster for each day containing minimum and maximum "
26318"temperatures and we want to know the absolute min and max value for a pixel "
26319"in that dataset)."
26320msgstr ""
26321"LinuxとPostgreSQLが許している、開くことができるファイルの最大数は、通常は増加"
26322"していません (通常、プロセスあたり1024ファイルです)。システムは人間のユーザが"
26323"使用するという仮定に立っているからです。データベース外ラスタは、一つの妥当な"
26324"クエリで簡単に制限超過させることができます (例えば、10年分のラスタからなる"
26325"データセットで、個々のラスタは日別最低気温、最大気温を持っていて、データセッ"
26326"ト内の最大値と最小値を得たい場合などです)。"
26327
26328#. Tag: para
26329#: reference_raster.xml:11546
26330#, no-c-format
26331msgid ""
26332"The easiest change to make is the following PostgreSQL setting: <ulink url="
26333"\"https://www.postgresql.org/docs/current/static/runtime-config-resource."
26334"html#GUC-MAX-FILES-PER-PROCESS\">max_files_per_process</ulink>. The default "
26335"is set to 1000, which is far too low for Out-DB Rasters. A safe starting "
26336"value could be 65536 but this really depends on your datasets and the "
26337"queries run against those datasets. This setting can only be made on server "
26338"start and probably only in the PostgreSQL configuration file (e.g. "
26339"<emphasis>/etc/postgresql/POSTGRESQL_VERSION/CLUSTER_NAME/postgresql.conf</"
26340"emphasis> in Ubuntu environments)."
26341msgstr ""
26342"最も簡単な変更方法は、PostgreSQL設定<ulink url=\"https://www.postgresql.org/"
26343"docs/current/static/runtime-config-resource.html#GUC-MAX-FILES-PER-PROCESS"
26344"\">max_files_per_process</ulink>です。デフォルトとして1000が設定されています"
26345"が、データベース外ラスタとしては非常に低い値です。安全な開始値は65536でしょ"
26346"う。ただし、実際には、これはデータベースとデータベースに対して実行されるクエ"
26347"リに依存します。サーバ開始時のみ、かつPostgreSQLコンフィギュレーションファイ"
26348"ル (例: Ubuntu環境では<emphasis>/etc/postgresql/POSTGRESQL_VERSION/"
26349"CLUSTER_NAME/postgresql.conf</emphasis>)内のみで設定できます。"
26350
26351#. Tag: programlisting
26352#: reference_raster.xml:11549
26353#, no-c-format
26354msgid ""
26355"...\n"
26356"# - Kernel Resource Usage -\n"
26357"\n"
26358"<emphasis role=\"strong\">max_files_per_process = 65536</emphasis>           "
26359"# min 25\n"
26360"                                        # (change requires restart)\n"
26361"..."
26362msgstr ""
26363"...\n"
26364"# - カーネルリソースの使用状況 -\n"
26365"\n"
26366"<emphasis role=\"strong\">max_files_per_process = 65536</emphasis>           "
26367"# min 25\n"
26368"                                        # (change requires restart)\n"
26369"..."
26370
26371#. Tag: para
26372#: reference_raster.xml:11552
26373#, no-c-format
26374msgid ""
26375"The major change to make is the Linux kernel's open files limits. There are "
26376"two parts to this:"
26377msgstr ""
26378"主な変更はLinuxカーネルのファイルを開く制限です。次の通り、二つに分かれます。"
26379
26380#. Tag: para
26381#: reference_raster.xml:11556
26382#, no-c-format
26383msgid "<para>Maximum number of open files for the entire system</para>"
26384msgstr "<para>システム全体で開くことができるファイルの最大数</para>"
26385
26386#. Tag: para
26387#: reference_raster.xml:11559
26388#, no-c-format
26389msgid "<para>Maximum number of open files per process</para>"
26390msgstr "<para>プロセスごとに開くことができるファイルの最大数</para>"
26391
26392#. Tag: title
26393#: reference_raster.xml:11565
26394#, no-c-format
26395msgid "<title>Maximum number of open files for the entire system</title>"
26396msgstr "<title>システム全体で開くことができるファイルの最大数</title>"
26397
26398#. Tag: para
26399#: reference_raster.xml:11567
26400#, no-c-format
26401msgid ""
26402"You can inspect the current maximum number of open files for the entire "
26403"system with the following example:"
26404msgstr ""
26405"次の例で、システム全体の、現在の開くことができるファイルの最大値を調べること"
26406"ができます。"
26407
26408#. Tag: programlisting
26409#: reference_raster.xml:11571
26410#, no-c-format
26411msgid ""
26412"$ sysctl -a | grep fs.file-max\n"
26413"fs.file-max = 131072"
26414msgstr ""
26415"$ sysctl -a | grep fs.file-max\n"
26416"fs.file-max = 131072"
26417
26418#. Tag: para
26419#: reference_raster.xml:11573
26420#, no-c-format
26421msgid ""
26422"If the value returned is not large enough, add a file to <emphasis>/etc/"
26423"sysctl.d/</emphasis> as per the following example:"
26424msgstr ""
26425"返された値が十分には大きくない場合には、次に示す例に従って、<emphasis>/etc/"
26426"sysctl.d/</emphasis>にファイルを追加します。"
26427
26428#. Tag: programlisting
26429#: reference_raster.xml:11577
26430#, no-c-format
26431msgid ""
26432"$ echo \"fs.file-max = 6145324\" >> /etc/sysctl.d/fs.conf\n"
26433"\n"
26434"$ cat /etc/sysctl.d/fs.conf\n"
26435"fs.file-max = 6145324\n"
26436"\n"
26437"$ sysctl -p --system\n"
26438"* Applying /etc/sysctl.d/fs.conf ...\n"
26439"fs.file-max = 2097152\n"
26440"* Applying /etc/sysctl.conf ...\n"
26441"\n"
26442"$ sysctl -a | grep fs.file-max\n"
26443"fs.file-max = 6145324"
26444msgstr ""
26445"$ echo \"fs.file-max = 6145324\" >> /etc/sysctl.d/fs.conf\n"
26446"\n"
26447"$ cat /etc/sysctl.d/fs.conf\n"
26448"fs.file-max = 6145324\n"
26449"\n"
26450"$ sysctl -p --system\n"
26451"* Applying /etc/sysctl.d/fs.conf ...\n"
26452"fs.file-max = 2097152\n"
26453"* Applying /etc/sysctl.conf ...\n"
26454"\n"
26455"$ sysctl -a | grep fs.file-max\n"
26456"fs.file-max = 6145324"
26457
26458#. Tag: title
26459#: reference_raster.xml:11581
26460#, no-c-format
26461msgid "<title>Maximum number of open files per process</title>"
26462msgstr "<title>プロセスごとの開けるファイルの最大数</title>"
26463
26464#. Tag: para
26465#: reference_raster.xml:11583
26466#, no-c-format
26467msgid ""
26468"We need to increase the maximum number of open files per process for the "
26469"PostgreSQL server processes."
26470msgstr ""
26471"PostgreSQLのサーバプロセスごとに開けるファイルの最大数を増やす必要がありま"
26472"す。"
26473
26474#. Tag: para
26475#: reference_raster.xml:11587
26476#, no-c-format
26477msgid ""
26478"To see what the current PostgreSQL service processes are using for maximum "
26479"number of open files, do as per the following example (make sure to have "
26480"PostgreSQL running):"
26481msgstr ""
26482"現在のPostgreSQLサービスのプロセスは開くことができるファイルの最大数を使って"
26483"いて、次の例のようになっています (PostgreSQLが実行されていることを確認して下"
26484"さい)。"
26485
26486#. Tag: programlisting
26487#: reference_raster.xml:11591
26488#, no-c-format
26489msgid ""
26490"$ ps aux | grep postgres\n"
26491"postgres 31713  0.0  0.4 179012 17564 pts/0    S    Dec26   0:03 /home/"
26492"dustymugs/devel/postgresql/sandbox/10/usr/local/bin/postgres -D /home/"
26493"dustymugs/devel/postgresql/sandbox/10/pgdata\n"
26494"postgres 31716  0.0  0.8 179776 33632 ?        Ss   Dec26   0:01 postgres: "
26495"checkpointer process\n"
26496"postgres 31717  0.0  0.2 179144  9416 ?        Ss   Dec26   0:05 postgres: "
26497"writer process\n"
26498"postgres 31718  0.0  0.2 179012  8708 ?        Ss   Dec26   0:06 postgres: "
26499"wal writer process\n"
26500"postgres 31719  0.0  0.1 179568  7252 ?        Ss   Dec26   0:03 postgres: "
26501"autovacuum launcher process\n"
26502"postgres 31720  0.0  0.1  34228  4124 ?        Ss   Dec26   0:09 postgres: "
26503"stats collector process\n"
26504"postgres 31721  0.0  0.1 179308  6052 ?        Ss   Dec26   0:00 postgres: "
26505"bgworker: logical replication launcher\n"
26506"\n"
26507"$ cat /proc/31718/limits\n"
26508"Limit                     Soft Limit           Hard Limit           Units\n"
26509"Max cpu time              unlimited            unlimited            seconds\n"
26510"Max file size             unlimited            unlimited            bytes\n"
26511"Max data size             unlimited            unlimited            bytes\n"
26512"Max stack size            8388608              unlimited            bytes\n"
26513"Max core file size        0                    unlimited            bytes\n"
26514"Max resident set          unlimited            unlimited            bytes\n"
26515"Max processes             15738                15738                "
26516"processes\n"
26517"<emphasis role=\"strong\">Max open files            1024                 "
26518"4096                 files</emphasis>\n"
26519"Max locked memory         65536                65536                bytes\n"
26520"Max address space         unlimited            unlimited            bytes\n"
26521"Max file locks            unlimited            unlimited            locks\n"
26522"Max pending signals       15738                15738                signals\n"
26523"Max msgqueue size         819200               819200               bytes\n"
26524"Max nice priority         0                    0\n"
26525"Max realtime priority     0                    0\n"
26526"Max realtime timeout      unlimited            unlimited            us"
26527msgstr ""
26528"$ ps aux | grep postgres\n"
26529"postgres 31713  0.0  0.4 179012 17564 pts/0    S    Dec26   0:03 /home/"
26530"dustymugs/devel/postgresql/sandbox/10/usr/local/bin/postgres -D /home/"
26531"dustymugs/devel/postgresql/sandbox/10/pgdata\n"
26532"postgres 31716  0.0  0.8 179776 33632 ?        Ss   Dec26   0:01 postgres: "
26533"checkpointer process\n"
26534"postgres 31717  0.0  0.2 179144  9416 ?        Ss   Dec26   0:05 postgres: "
26535"writer process\n"
26536"postgres 31718  0.0  0.2 179012  8708 ?        Ss   Dec26   0:06 postgres: "
26537"wal writer process\n"
26538"postgres 31719  0.0  0.1 179568  7252 ?        Ss   Dec26   0:03 postgres: "
26539"autovacuum launcher process\n"
26540"postgres 31720  0.0  0.1  34228  4124 ?        Ss   Dec26   0:09 postgres: "
26541"stats collector process\n"
26542"postgres 31721  0.0  0.1 179308  6052 ?        Ss   Dec26   0:00 postgres: "
26543"bgworker: logical replication launcher\n"
26544"\n"
26545"$ cat /proc/31718/limits\n"
26546"Limit                     Soft Limit           Hard Limit           Units\n"
26547"Max cpu time              unlimited            unlimited            seconds\n"
26548"Max file size             unlimited            unlimited            bytes\n"
26549"Max data size             unlimited            unlimited            bytes\n"
26550"Max stack size            8388608              unlimited            bytes\n"
26551"Max core file size        0                    unlimited            bytes\n"
26552"Max resident set          unlimited            unlimited            bytes\n"
26553"Max processes             15738                15738                "
26554"processes\n"
26555"<emphasis role=\"strong\">Max open files            1024                 "
26556"4096                 files</emphasis>\n"
26557"Max locked memory         65536                65536                bytes\n"
26558"Max address space         unlimited            unlimited            bytes\n"
26559"Max file locks            unlimited            unlimited            locks\n"
26560"Max pending signals       15738                15738                signals\n"
26561"Max msgqueue size         819200               819200               bytes\n"
26562"Max nice priority         0                    0\n"
26563"Max realtime priority     0                    0\n"
26564"Max realtime timeout      unlimited            unlimited            us"
26565
26566#. Tag: para
26567#: reference_raster.xml:11593
26568#, no-c-format
26569msgid ""
26570"In the example above, we inspected the open files limit for Process 31718. "
26571"It doesn't matter which PostgreSQL process, any of them will do. The "
26572"response we are interested in is <emphasis>Max open files</emphasis>."
26573msgstr ""
26574"上の例では、プロセスに対する開くことができるファイルの制限が31718になっていま"
26575"す。どのプロセスがどうするかは問題ではありません。関心を持っている応答は"
26576"<emphasis>Max open files</emphasis>です。"
26577
26578#. Tag: para
26579#: reference_raster.xml:11597
26580#, no-c-format
26581msgid ""
26582"We want to increase <emphasis>Soft Limit</emphasis> and <emphasis>Hard "
26583"Limit</emphasis> of <emphasis>Max open files</emphasis> to be greater than "
26584"the value we specified for the PostgreSQL setting "
26585"<varname>max_files_per_process</varname>. In our example, we set "
26586"<varname>max_files_per_process</varname> to 65536."
26587msgstr ""
26588"<emphasis>Max open files</emphasis>の<emphasis>Soft Limit</emphasis>と"
26589"<emphasis>Hard Limit</emphasis>をPostgreSQLの設定で指定した"
26590"<varname>max_files_per_process</varname>よりも多くなるようにしたいと思ってい"
26591"ます。この例では、<varname>max_files_per_process</varname>を65536にしていま"
26592"す。"
26593
26594#. Tag: para
26595#: reference_raster.xml:11601
26596#, no-c-format
26597msgid ""
26598"In Ubuntu (and assuming you are using PostgreSQL's packages for Ubuntu), the "
26599"easiest way to change the <emphasis>Soft Limit</emphasis> and <emphasis>Hard "
26600"Limit</emphasis> is to edit <emphasis role=\"strong\">/etc/init.d/"
26601"postgresql</emphasis> (SysV) or <emphasis role=\"strong\">/lib/systemd/"
26602"system/postgresql*.service</emphasis> (systemd)."
26603msgstr ""
26604"Ubuntu (かつ、Ubuntu用PostgreSQLパッケージを使用しているものとします)では、"
26605"<emphasis>Soft Limit</emphasis>と<emphasis>Hard Limit</emphasis>の変更につい"
26606"ては、<emphasis role=\"strong\">/etc/init.d/postgresql</emphasis> (SysV)また"
26607"は<emphasis role=\"strong\">/lib/systemd/system/postgresql*.service</"
26608"emphasis> (systemd)を編集するのが簡単な方法です。"
26609
26610#. Tag: para
26611#: reference_raster.xml:11605
26612#, no-c-format
26613msgid ""
26614"Let's first address the SysV Ubuntu case where we add <emphasis role=\"strong"
26615"\">ulimit -H -n 262144</emphasis> and <emphasis role=\"strong\">ulimit -n "
26616"131072</emphasis> to <emphasis role=\"strong\">/etc/init.d/postgresql</"
26617"emphasis>."
26618msgstr ""
26619"まず、SysV Ubuntuを扱います。<emphasis role=\"strong\">ulimit -H -n 262144</"
26620"emphasis>と<emphasis role=\"strong\">ulimit -n 131072</emphasis>を<emphasis "
26621"role=\"strong\">/etc/init.d/postgresql</emphasis>に追加します。"
26622
26623#. Tag: programlisting
26624#: reference_raster.xml:11609
26625#, no-c-format
26626msgid ""
26627"...\n"
26628"case \"$1\" in\n"
26629"    start|stop|restart|reload)\n"
26630"        if [ \"$1\" = \"start\" ]; then\n"
26631"            create_socket_directory\n"
26632"        fi\n"
26633"        if [ -z \"`pg_lsclusters -h`\" ]; then\n"
26634"            log_warning_msg 'No PostgreSQL clusters exist; see \"man "
26635"pg_createcluster\"'\n"
26636"            exit 0\n"
26637"        fi\n"
26638"<emphasis role=\"strong\">\n"
26639"        ulimit -H -n 262144\n"
26640"        ulimit -n 131072\n"
26641"</emphasis>\n"
26642"        for v in $versions; do\n"
26643"            $1 $v || EXIT=$?\n"
26644"        done\n"
26645"        exit ${EXIT:-0}\n"
26646"        ;;\n"
26647"    status)\n"
26648"..."
26649msgstr ""
26650"...\n"
26651"case \"$1\" in\n"
26652"    start|stop|restart|reload)\n"
26653"        if [ \"$1\" = \"start\" ]; then\n"
26654"            create_socket_directory\n"
26655"        fi\n"
26656"        if [ -z \"`pg_lsclusters -h`\" ]; then\n"
26657"            log_warning_msg 'No PostgreSQL clusters exist; see \"man "
26658"pg_createcluster\"'\n"
26659"            exit 0\n"
26660"        fi\n"
26661"<emphasis role=\"strong\">\n"
26662"        ulimit -H -n 262144\n"
26663"        ulimit -n 131072\n"
26664"</emphasis>\n"
26665"        for v in $versions; do\n"
26666"            $1 $v || EXIT=$?\n"
26667"        done\n"
26668"        exit ${EXIT:-0}\n"
26669"        ;;\n"
26670"    status)\n"
26671"..."
26672
26673#. Tag: para
26674#: reference_raster.xml:11611
26675#, no-c-format
26676msgid ""
26677"Now to address the systemd Ubuntu case. We will add <emphasis role=\"strong"
26678"\">LimitNOFILE=131072</emphasis> to every <emphasis role=\"strong\">/lib/"
26679"systemd/system/postgresql*.service</emphasis> file in the <emphasis role="
26680"\"strong\">[Service]</emphasis> section."
26681msgstr ""
26682"Ubuntuのsystemdを扱います。<emphasis role=\"strong\">LimitNOFILE=131072</"
26683"emphasis>を<emphasis role=\"strong\">/lib/systemd/system/postgresql*."
26684"service</emphasis>の各ファイルの<emphasis role=\"strong\">[Service]</"
26685"emphasis>セクション内に記述します。"
26686
26687#. Tag: programlisting
26688#: reference_raster.xml:11615
26689#, no-c-format
26690msgid ""
26691"...\n"
26692"[Service]\n"
26693"<emphasis role=\"strong\">\n"
26694"LimitNOFILE=131072\n"
26695"</emphasis>\n"
26696"...\n"
26697"\n"
26698"[Install]\n"
26699"WantedBy=multi-user.target\n"
26700"..."
26701msgstr ""
26702"...\n"
26703"[Service]\n"
26704"<emphasis role=\"strong\">\n"
26705"LimitNOFILE=131072\n"
26706"</emphasis>\n"
26707"...\n"
26708"\n"
26709"[Install]\n"
26710"WantedBy=multi-user.target\n"
26711"..."
26712
26713#. Tag: para
26714#: reference_raster.xml:11617
26715#, no-c-format
26716msgid ""
26717"After making the necessary systemd changes, make sure to reload the daemon"
26718msgstr ""
26719"必要なシステムの変更を行った後、デーモンのリロードを必ず行ってください。"
26720
26721#. Tag: programlisting
26722#: reference_raster.xml:11621
26723#, no-c-format
26724msgid "systemctl daemon-reload"
26725msgstr "systemctl daemon-reload"
26726
26727#~ msgid "ST_MapAlgebra"
26728#~ msgstr "ST_MapAlgebra"
26729