29.2.5. Raster မြေပုံအရိပ်ချစနစ်များ (Raster projections)
29.2.5.1. မြေပုံအရိပ်ချစနစ် သတ်မှတ်ခြင်း (Assign projection)
Raster dataset တစ်ခုကို ကိုဩဒိနိတ်စနစ်တစ်ခု သတ်မှတ်ပေးပါသည်။
Algorithm ကို GDAL edit utility မှ ရယူပါသည်။
Default menu -
သတ်မှတ်ချက်များ (Parameters)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Input layer (ထည့်သွင်းအသုံးပြုသော layer) |
|
[raster] |
ထည့်သွင်းအသုံးပြုသော raster layer |
Desired CRS (လိုချင်သော CRS) |
|
[crs] |
Output layer ၏ projection (CRS) |
ရလာဒ်များ (Outputs)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Layer with projection (Projection ပါသော layer) |
|
[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 -
သတ်မှတ်ချက်များ (Parameters)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Input file (ထည့်သွင်းအသုံးပြုသော file) |
|
[raster] |
ထည့်သွင်းအသုံးပြုသော raster ။ Algorithm သည် raster file လမ်းကြောင်းကို ဖန်တီးထားသော |
Create also .prj file (.prj file ကိုဖန်တီးခြင်း) |
|
[boolean] Default: False |
၎င်းကိုဖွင့်ထားပေးလျှင် projection သတင်းအချက်အလက်ပါသော |
ရလာဒ်များ (Outputs)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
World file |
|
[file] |
Raster file အတွက် transformation parameters (ပြောင်းလဲခြင်း parameter များ) ပါသော |
ESRI Shapefile prj file |
|
[file] |
CRS ကိုဖော်ပြသော |
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 -
သတ်မှတ်ချက်များ (Parameters)
အခြေခံ သတ်မှတ်ချက်များ (Basic parameters)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Input layer (ထည့်သွင်းအသုံးပြုသော layer) |
|
[raster] |
Projection ပြောင်းလဲမည့် input raster layer |
Source CRS (ရင်းမြစ် CRS) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[crs] |
Input raster layer ၏ CRS ကိုသတ်မှတ်ပေးပါသည်။ |
Target CRS (ဖြစ်စေလိုသော CRS) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[crs] Default: |
Output layer ၏ CRS |
Resampling method to use (အသုံးပြုမည့် resolution ပြင်ဆင်ခြင်း နည်းလမ်း) |
|
[enumeration] Default: 0 |
Resolution ပြင်ဆင်ခြင်းနည်းလမ်းအတွက် အသုံးပြုမည့် pixel တန်ဖိုး။ ရွေးချယ်စရာများမှာ -
|
Nodata value for output bands (Output band များအတွက် Nodata တန်ဖိုး) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[number] Default: None |
Output band များအတွက် nodata တန်ဖိုး သတ်မှတ်ပေးပါသည်။ တန်ဖိုးသတ်မှတ်မထားလျှင် nodata တန်ဖိုးများကို မူရင်း dataset မှ ကူးယူပါမည်။ |
Output file resolution in target georeferenced units (Target Georeference ပြုလုပ်ထားသော unit များဖြင့် output file ၏ resolution) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[number] Default: None |
Projection ပြောင်းလဲထားသော ရလာဒ်၏ output file resolution ကို သတ်မှတ်ပေးပါသည်။ |
Reprojected (Projection ပြောင်းလဲထားသော) |
|
[raster] Default: |
Output raster layer ၏ သီးခြားသတ်မှတ်ချက်။ အောက်ပါတို့ထဲမှ တစ်ခုခုဖြစ်ပါသည် -
|
အဆင့်မြင့် သတ်မှတ်ချက်များ (Advanced parameters)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Additional creation options (ထပ်ဆောင်း ဖန်တီးမှုနည်းလမ်းများ) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[string] Default: ‘’ |
Raster ဖန်တီးခြင်းကို ထိန်းချုပ်သော ဖန်တီးခြင်းနည်းလမ်းများကို ပိုမိုပေါင်းထည့်ရန် (အရောင်၊ block အရွယ်အစား၊ file ချုံ့ခြင်း)။ လွယ်ကူစေရန် ကြိုတင်သတ်မှတ်ထားသော profile များကိုအသုံးပြုနိုင်ပါသည် (GDAL driver options section တွင်ကြည့်ပါ)။ အစုလိုက်လုပ်ဆောင်ခြင်း (Batch process) နှင့် Model Designer - နည်းလမ်းများစွာကို pipe character ( |
Output data type (Output data အမျိုးအစား) |
|
[enumeration] Default: 0 |
Output raster file ၏ format ကို သတ်မှတ်ပေးပါသည်။ ရွေးချယ်စရာများမှာ -
အသုံးပြုနိုင်သော နည်းလမ်းများမှာ QGIS ထဲတွင်ပါသော GDAL version ပေါ်တွင်မူတည်ပါသည် ( menu တွင်ကြည့်ပါ)။ |
Georeferenced extents of output file to be created (ဖန်တီးမည့် output file ၏ georeference လုပ်ထားသော အကျယ်အဝန်းများ) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[extent] |
ဖန်တီးမည့် output file ၏ georeference လုပ်ထားသော အကျယ်အဝန်းကို သတ်မှတ်ပေးပါသည် (သာမန်အားဖြင့် Target CRS ထဲတွင်ရှိပါသည်။ သီးခြားသတ်မှတ်ထားလျှင် CRS of the target raster extent ထဲတွင်ရှိပါသည်)။ အသုံးပြုနိုင်သော နည်းလမ်းများမှာ -
|
CRS of the target raster extent (ဖြစ်စေလိုသော raster အကျယ်အဝန်း၏ CRS) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[crs] |
Output file ၏ အကျယ်အဝန်းအတွက် အသုံးပြုထားသော ကိုဩဒိနိတ်များကို နားလည်စေရန် CRS ကိုသတ်မှတ်ပေးပါသည်။ Output dataset ၏ ဖြစ်စေလိုသော CRS နှင့် မရှုပ်ထွေးရန်လိုအပ်ပါသည်။ ၎င်းသည်သုံးရလွယ်ကူပါသည်၊ ဥပမာ- output ကိုဩဒိနိတ်ကို geodetic long/lat CRS တစ်ခုဖြင့် သိပါသော်လည်း projected ကိုဩဒိနိတ်စနစ်တစ်ခုဖြင့် ရလာဒ်ကို အလိုရှိသောအခါ။ |
Use multithreaded warping implementation (Multithreaded warpping လုပ်ဆောင်ချက်ကိုအသုံးပြုခြင်း) |
|
[boolean] Default: False |
ဓာတ်ပုံအစုများကို လုပ်ဆောင်ရန် thread နှစ်ခုကို အသုံးပြုပြီး input/output လုပ်ဆောင်မှုများကို တပြိုင်တည်းလုပ်ဆောင်ပါသည်။ တွက်ထုတ်ခြင်းသည် multithread မဟုတ်ပါ။ |
Additional command-line parameters (ထပ်ဆောင်း command-line parameter များ) Optional (မဖြစ်မနေလုပ်ဆောင်ရန် မလိုအပ်ပါ) |
|
[string] Default: None |
ထပ်ဆောင်း GDAL command line ရွေးချယ်စရာများကို ထည့်ပေါင်းခြင်း |
ရလာဒ်များ (Outputs)
အညွှန်း |
အမည် |
အမျိုးအစား |
ရှင်းလင်းဖော်ပြချက် |
---|---|---|---|
Reprojected (Projection ပြောင်းလဲထားသော) |
|
[raster] Default: |
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 များကို အသုံးပြုခြင်း တွင်ကြည့်ပါ။