29.2.5. Raster မြေပုံအရိပ်ချစနစ်များ (Raster projections)

29.2.5.1. မြေပုံအရိပ်ချစနစ် သတ်မှတ်ခြင်း (Assign projection)

Raster dataset တစ်ခုကို ကိုဩဒိနိတ်စနစ်တစ်ခု သတ်မှတ်ပေးပါသည်။

Algorithm ကို GDAL edit utility မှ ရယူပါသည်။

Default menu - Raster ► Projections

သတ်မှတ်ချက်များ (Parameters)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Input layer (ထည့်သွင်းအသုံးပြုသော layer)

INPUT_LAYER

[raster]

ထည့်သွင်းအသုံးပြုသော raster layer

Desired CRS (လိုချင်သော CRS)

CRS

[crs]

Output layer ၏ projection (CRS)

ရလာဒ်များ (Outputs)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Layer with projection (Projection ပါသော layer)

OUTPUT

[raster]

Projection အသစ်အချက်အလက်များဖြင့် output raster layer

Python code

Algorithm ID: gdal:assignprojection

import processing
processing.run("algorithm_id", {parameter_dictionary})

Processing Toolbox ထဲရှိ algorithm ပေါ်တွင် mouse ကိုတင်ထားလျှင် algorithm id ကိုပြသပေးပါသည်။ parameter dictionary သည် parameter နာမည်များနှင့် တန်ဖိုးများကို ပေးပါသည်။ Python console မှ algorithm များကို မည်သို့လုပ်ဆောင်ရမည် ဆိုသည့် အသေးစိတ်ကို သိရှိလိုလျှင် Console တွင် processing algorithm များကို အသုံးပြုခြင်း တွင်ကြည့်ပါ။

29.2.5.2. Projection ထုတ်ယူခြင်း (Extract projection)

Raster file တစ်ခု၏ projection ကိုဆွဲထုတ်ပေးပြီး ၎င်းကို .wld extension ဖြင့် world file တစ်ခုထဲတွင်ရေးပေးပါသည်။

Algorithm ကို GDAL srsinfo utility မှ ရယူပါသည်။

Default menu - Raster ► Projections

သတ်မှတ်ချက်များ (Parameters)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Input file (ထည့်သွင်းအသုံးပြုသော file)

INPUT_LAYER

[raster]

ထည့်သွင်းအသုံးပြုသော raster ။ Algorithm သည် raster file လမ်းကြောင်းကို ဖန်တီးထားသော .wld file ၏တည်နေရာအဖြစ် အသုံးပြုသောကြောင့် raster layer သည် file အခြေခံသော အမျိုးအစားဖြစ်ရပါမည်။ File မဟုတ်သော raster layer ကိုအသုံးပြုလျှင် အမှား/ပြဿနာ တစ်ခုခု ဖြစ်စေနိုင်ပါသည်။

Create also .prj file (.prj file ကိုဖန်တီးခြင်း)

PRJ_FILE_CREATE

[boolean]

Default: False

၎င်းကိုဖွင့်ထားပေးလျှင် projection သတင်းအချက်အလက်ပါသော .prj file တစ်ခုကိုလည်း ဖန်တီးပေးပါသည်။

ရလာဒ်များ (Outputs)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

World file

WORLD_FILE

[file]

Raster file အတွက် transformation parameters (ပြောင်းလဲခြင်း parameter များ) ပါသော .wld extension ဖြင့် စာသား file ။

ESRI Shapefile prj file

PRJ_FILE

[file]

CRS ကိုဖော်ပြသော .prj extension ဖြင့် စာသား file ။ Create also .prj file ကို False (အမှား) အဖြစ်ထားလျှင် None ဖြစ်ပါလိမ့်မည်။

Python code

Algorithm ID: gdal:extractprojection

import processing
processing.run("algorithm_id", {parameter_dictionary})

Processing Toolbox ထဲရှိ algorithm ပေါ်တွင် mouse ကိုတင်ထားလျှင် algorithm id ကိုပြသပေးပါသည်။ parameter dictionary သည် parameter နာမည်များနှင့် တန်ဖိုးများကို ပေးပါသည်။ Python console မှ algorithm များကို မည်သို့လုပ်ဆောင်ရမည် ဆိုသည့် အသေးစိတ်ကို သိရှိလိုလျှင် Console တွင် processing algorithm များကို အသုံးပြုခြင်း တွင်ကြည့်ပါ။

29.2.5.3. Projection တစ်ခုမှ တစ်ခုသို့ပြောင်းခြင်း (Warp (reproject))

Raster layer တစ်ခုကို အခြား Coordinate Reference System (CRS) တစ်ခုသို့ပြောင်းလဲပေးပါသည်။ ထွက်လာမည့် file ၏ resolution နှင့် resolution ပြင်ဆင်ခြင်း နည်းလမ်းများကို ရွေးချယ်နိုင်ပါသည်။

Algorithm ကို GDAL warp utility မှ ရယူပါသည်။

Default menu - Raster ► Projections

သတ်မှတ်ချက်များ (Parameters)

အခြေခံ သတ်မှတ်ချက်များ (Basic parameters)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Input layer (ထည့်သွင်းအသုံးပြုသော layer)

INPUT

[raster]

Projection ပြောင်းလဲမည့် input raster layer

Source CRS (ရင်းမြစ် CRS)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

SOURCE_CRS

[crs]

Input raster layer ၏ CRS ကိုသတ်မှတ်ပေးပါသည်။

Target CRS (ဖြစ်စေလိုသော CRS)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

TARGET_CRS

[crs]

Default: EPSG:4326

Output layer ၏ CRS

Resampling method to use (အသုံးပြုမည့် resolution ပြင်ဆင်ခြင်း နည်းလမ်း)

RESAMPLING

[enumeration]

Default: 0

Resolution ပြင်ဆင်ခြင်းနည်းလမ်းအတွက် အသုံးပြုမည့် pixel တန်ဖိုး။ ရွေးချယ်စရာများမှာ -

  • 0 — Nearest neighbour

  • 1 — Bilinear

  • 2 — Cubic

  • 3 — Cubic spline

  • 4 — Lanczos windowed sinc

  • 5 — Average

  • 6 — Mode

  • 7 — Maximum

  • 8 — Minimum

  • 9 — Median

  • 10 — First quartile

  • 11 — Third quartile

Nodata value for output bands (Output band များအတွက် Nodata တန်ဖိုး)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

NODATA

[number]

Default: None

Output band များအတွက် nodata တန်ဖိုး သတ်မှတ်ပေးပါသည်။ တန်ဖိုးသတ်မှတ်မထားလျှင် nodata တန်ဖိုးများကို မူရင်း dataset မှ ကူးယူပါမည်။

Output file resolution in target georeferenced units (Target Georeference ပြုလုပ်ထားသော unit များဖြင့် output file ၏ resolution)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

TARGET_RESOLUTION

[number]

Default: None

Projection ပြောင်းလဲထားသော ရလာဒ်၏ output file resolution ကို သတ်မှတ်ပေးပါသည်။

Reprojected (Projection ပြောင်းလဲထားသော)

OUTPUT

[raster]

Default: [Save to temporary file] ([ယာယီ file အဖြစ်သိမ်းဆည်းပါ])

Output raster layer ၏ သီးခြားသတ်မှတ်ချက်။ အောက်ပါတို့ထဲမှ တစ်ခုခုဖြစ်ပါသည် -

  • ယာယီ file တစ်ခုတွင် သိမ်းဆည်းပါ

  • File တွင်သိမ်းဆည်းပါ

အဆင့်မြင့် သတ်မှတ်ချက်များ (Advanced parameters)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Additional creation options (ထပ်ဆောင်း ဖန်တီးမှုနည်းလမ်းများ)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

OPTIONS

[string]

Default: ‘’

Raster ဖန်တီးခြင်းကို ထိန်းချုပ်သော ဖန်တီးခြင်းနည်းလမ်းများကို ပိုမိုပေါင်းထည့်ရန် (အရောင်၊ block အရွယ်အစား၊ file ချုံ့ခြင်း)။ လွယ်ကူစေရန် ကြိုတင်သတ်မှတ်ထားသော profile များကိုအသုံးပြုနိုင်ပါသည် (GDAL driver options section တွင်ကြည့်ပါ)။ အစုလိုက်လုပ်ဆောင်ခြင်း (Batch process) နှင့် Model Designer - နည်းလမ်းများစွာကို pipe character (|) ဖြင့်ပိုင်းခြားထားပါသည်။

Output data type (Output data အမျိုးအစား)

DATA_TYPE

[enumeration]

Default: 0

Output raster file ၏ format ကို သတ်မှတ်ပေးပါသည်။ ရွေးချယ်စရာများမှာ -

  • 0 — Use Input Layer Data Type (Input layer ၏ data အမျိုးအစားကိုအသုံးပြုပါ)

  • 1 — Byte (Eight bit unsigned integer (quint8))

  • 2 — Int16 (Sixteen bit signed integer (qint16))

  • 3 — UInt16 (Sixteen bit unsigned integer (quint16))

  • 4 — UInt32 (Thirty two bit unsigned integer (quint32))

  • 5 — Int32 (Thirty two bit signed integer (qint32))

  • 6 — Float32 (Thirty two bit floating point (float))

  • 7 — Float64 (Sixty four bit floating point (double))

  • 8 — CInt16 (Complex Int16)

  • 9 — CInt32 (Complex Int32)

  • 10 — CFloat32 (Complex Float32)

  • 11 — CFloat64 (Complex Float64)

  • 12 — Int8 (Eight bit signed integer (qint8))

အသုံးပြုနိုင်သော နည်းလမ်းများမှာ QGIS ထဲတွင်ပါသော GDAL version ပေါ်တွင်မူတည်ပါသည် (Help ► About menu တွင်ကြည့်ပါ)။

Georeferenced extents of output file to be created (ဖန်တီးမည့် output file ၏ georeference လုပ်ထားသော အကျယ်အဝန်းများ)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

TARGET_EXTENT

[extent]

ဖန်တီးမည့် output file ၏ georeference လုပ်ထားသော အကျယ်အဝန်းကို သတ်မှတ်ပေးပါသည် (သာမန်အားဖြင့် Target CRS ထဲတွင်ရှိပါသည်။ သီးခြားသတ်မှတ်ထားလျှင် CRS of the target raster extent ထဲတွင်ရှိပါသည်)။

အသုံးပြုနိုင်သော နည်းလမ်းများမှာ -

  • Layer မှ တွက်ချက်ခြင်း - လက်ရှိ project ထဲတွင်ထည့်သွင်းထားသော layer ၏ extent (နယ်ပယ်အကျယ်အဝန်း)ကိုအသုံးပြုပါသည်။

  • Layout map မှ တွက်ချက်ခြင်း - အသုံးပြုနေသော project ထဲရှိ layout map item တစ်ခု၏ extent အသုံးပြုပါသည်။

  • Bookmark မှ တွက်ချက်ခြင်း - မှတ်ထားသော bookmark တစ်ခု၏ extent ကိုအသုံးပြုပါသည်။

  • မြေပုံ canvas extent ကိုအသုံးပြုခြင်း

  • Canvas ပေါ်တွင်ရေးဆွဲခြင်း - တွက်ချက်လိုသည့် ဧရိယာကို ထောင့်မှန်စတုဂံပုံဆွဲခြင်း။

  • x အနည်းဆုံး၊ x အများဆုံး၊ y အနည်းဆုံး၊  y အများဆုံး တို့အဖြစ် ကိုဩဒိနိတ်များကို ထည့်သွင်းခြင်း။

CRS of the target raster extent (ဖြစ်စေလိုသော raster အကျယ်အဝန်း၏ CRS)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

TARGET_EXTENT_CRS

[crs]

Output file ၏ အကျယ်အဝန်းအတွက် အသုံးပြုထားသော ကိုဩဒိနိတ်များကို နားလည်စေရန် CRS ကိုသတ်မှတ်ပေးပါသည်။ Output dataset ၏ ဖြစ်စေလိုသော CRS နှင့် မရှုပ်ထွေးရန်လိုအပ်ပါသည်။ ၎င်းသည်သုံးရလွယ်ကူပါသည်၊ ဥပမာ- output ကိုဩဒိနိတ်ကို geodetic long/lat CRS တစ်ခုဖြင့် သိပါသော်လည်း projected ကိုဩဒိနိတ်စနစ်တစ်ခုဖြင့် ရလာဒ်ကို အလိုရှိသောအခါ။

Use multithreaded warping implementation (Multithreaded warpping လုပ်ဆောင်ချက်ကိုအသုံးပြုခြင်း)

MULTITHREADING

[boolean]

Default: False

ဓာတ်ပုံအစုများကို လုပ်ဆောင်ရန် thread နှစ်ခုကို အသုံးပြုပြီး input/output လုပ်ဆောင်မှုများကို တပြိုင်တည်းလုပ်ဆောင်ပါသည်။ တွက်ထုတ်ခြင်းသည် multithread မဟုတ်ပါ။

Additional command-line parameters (ထပ်ဆောင်း command-line parameter များ)

Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ)

EXTRA

[string]

Default: None

ထပ်ဆောင်း GDAL command line ရွေးချယ်စရာများကို ထည့်ပေါင်းခြင်း

ရလာဒ်များ (Outputs)

အညွှန်း

အမည်

အမျိုးအစား

ရှင်းလင်းဖော်ပြချက်

Reprojected (Projection ပြောင်းလဲထားသော)

OUTPUT

[raster]

Default: [Save to temporary file] ([ယာယီ file အဖြစ်သိမ်းဆည်းပါ])

Projection ပြောင်းလဲထားသော output raster layer

Python code

Algorithm ID: gdal:warpreproject

import processing
processing.run("algorithm_id", {parameter_dictionary})

Processing Toolbox ထဲရှိ algorithm ပေါ်တွင် mouse ကိုတင်ထားလျှင် algorithm id ကိုပြသပေးပါသည်။ parameter dictionary သည် parameter နာမည်များနှင့် တန်ဖိုးများကို ပေးပါသည်။ Python console မှ algorithm များကို မည်သို့လုပ်ဆောင်ရမည် ဆိုသည့် အသေးစိတ်ကို သိရှိလိုလျှင် Console တွင် processing algorithm များကို အသုံးပြုခြင်း တွင်ကြည့်ပါ။