RPT Documentation Draft

download RPT Documentation Draft

of 13

Transcript of RPT Documentation Draft

  • 7/30/2019 RPT Documentation Draft

    1/13

    Installation: ...................................................................................................................... 2Introduction ...................................................................................................................... 5Eucledian Buffer: ............................................................................................................ 5Raster Calculator: ............................................................................................................ 7Reclassification: ............................................................................................................ 11

    Fuzzy Logic: ................................................................................................................. 12

  • 7/30/2019 RPT Documentation Draft

    2/13

    Request to all who are using the plugins: Please keep extending this documentation bywriting the workflow or the way in which you have been using the plugins. It will behelpful to others and also to the people who are new to it. You can always send in thewritten document to my email id so that I can upload it on the website.

    Installation:

    Unzip the provided binaries and copy all the files that are contained in the folder.

    Go the installation folder of MapWindow which is usually in Program Files folder.Double click on the Plugins folder and paste them into this folder. The following figureshows a screen shot of the copied binaries.

  • 7/30/2019 RPT Documentation Draft

    3/13

    Open MapWindow software and add the Reddys RPToolkit to the menu bar.

    Once added the plugins should show like this.

  • 7/30/2019 RPT Documentation Draft

    4/13

  • 7/30/2019 RPT Documentation Draft

    5/13

    Introduction

    The Raster Processing Toolkit consists of Six major tools like Shape2Kml, EucledianBuffer, Raster Calculator, Reclassification, RecCalc(Combination of

    Reclassification and Raster Calculator) and Fuzzy Logic . Each of these is explainedin the following sections.

    Eucledian Buffer:

    This tool creates buffer around a particular feature with distance values in it. Thedeveloped algorithm not only buffers outwards from a feature with distance values butalso buffers inwards with extreme accuracy. Inward buffering is something thatEucledian Distance tool of ArcGIS lacks.

    Explanation on how the tool can be used:Open mapwindow gis. Go to the plugins menu and click on the Reddys RPToolkit to addthe set of tools to the menu. Once added, go to the added Reddys RPToolkit>Raster Analyzer>Eucledian Buffer.

    Note:- if a layer is already added, it would appear automatically on the layers list of the Eucledian Buffer tool. If it dosent then one can add it from this tool as well. Thetool adds features with the .asc extensions only.

    A Sample_ASCII_File.asc has been provided for testing the plugins. One can download itform the same place where you downloaded this document. For all the tools, I will be

    using this sample file for demonstration.

    Now enter the following values in the fields.

    Distance 100Units CellsChoose Algorithm- Eucledian Buffer (by default)Choose Outwards or Inwards from a layer Outwards (by default)Choose Ascending or Descending from layer- Ascending(by default)By default the layer is renamed with a _buffer extension.

    The user has to enter just the first parameter i.e. Distance-100 to make the plugin work.The rest are set to appropriate setting by default.

    A snapshot of the tool along with the results is shown in figure 1 and figure 2. In thegenerated output, each cell of the buffered feature is assigned a Euclidian distance valuethat represents true distance from the feature.

  • 7/30/2019 RPT Documentation Draft

    6/13

    Figure 1: The tool performs 100 cells buffering.

    In a similar way play around with the tool for other parameters.

  • 7/30/2019 RPT Documentation Draft

    7/13

    Figure 2: Result of 100 Cells Eucledian Buffer

    Raster Calculator:

    This tool performs and executes different mathematical expressions and equations on theraster dataset. The tool consists of calculator like interface and a layer interface used for

    inputting different mathematical expressions and layers. Any number of layers with themost complicated map algebraic expression can be used for evaluating. The layers areentered with quotes and brackets, and the evaluation of set of expressions can beseparated by brackets.

    The raster calculator is quite unique when compared to the others who provide it. It hastwo buttons called Calculate and Evaluate Raster. The Calculate button is used for checking the values and to see if the equation is working. For the Calculator button towork, integer or double values have to be entered instead of layer name. The followingexample should make things clear:

    Suppose you want to evaluate a raster layer for the following equation:

    (Sin(("Sample_ASCII_File")^ 2) / (29 / Cos(Sin("Sample_ASCII_File")))) * 2

    The layer Sample_ASCII_File is an ASCII file provided along with the tools. In this filewe have polygons with pixel values 200 and 300. So lets check the results for the value200 by putting it in the equation:

  • 7/30/2019 RPT Documentation Draft

    8/13

  • 7/30/2019 RPT Documentation Draft

    9/13

    Now to calculate the layer, instead of the pixels values enter the following equation withthe layer name. Click the Evaluate Raster(s) button for applying the equation to the wholeraster.

    The following figure show the results produced:

  • 7/30/2019 RPT Documentation Draft

    10/13

    The Raster Calculator works for any number of layers with same extent. In a similar way,the following equations can also be used

    Note: if sine or cos or square root that contains bracts like sin(), cos() orSqr() it shouldnt matter if the layer entered has multiple bracts likethis sin(("Sample_ASCII_File")) or cos((("Sample_ASCII_File"))) orSqr(((((("Sample_ASCII_File")))))). All these expressions are evaluated.Here what matters is that every opening bracket should have a closingbracket.

    For Checking Calculate Button:

    round(sqr(2*pi*200)*(200/e)*e^(1/(12*200+(200/100))))

    For Checking Evaluate Raster(s)

    round(sqr(2*pi*("Sample_ASCII_File"))*(("Sample_ASCII_File")/e)*e^(1/(12*("Sample_ASCII_File")+(("Sample_ASCII_File")/100))))

    For Checking Calculate Button:

    6 + Tan((Sqr(200)*10 - 1) / (Sqr(200) + 10))

  • 7/30/2019 RPT Documentation Draft

    11/13

  • 7/30/2019 RPT Documentation Draft

    12/13

    Figure 3 : Reclassification Tool

    Fuzzy Logic:The logic in simple terms defines the values of the resultant raster dataset withmembership values ranging from 0 to 1 rather than discrete values of 0's and 1's as withordinary Boolean analysis. There exists a tool called FUZSIG in IDIRISI which is

    probably the commonly used tool for fuzzy GIS. To date only IDRISI has a reasonablegeneric tool for fuzzy classification that takes a buffered map for fuzzy classification. But

    the Fuzzy Logic tool I have created provides a fully functional capability which carriesout process from buffering till fuzzification of the raster dataset.

  • 7/30/2019 RPT Documentation Draft

    13/13

    Figure 4 : Fuzzy Logic Tool