MapWinGIS:Utils ShapefileToGrid

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

ShapefileToGrid

This function is not yet implemented. A working implementation of this function is available in MapWinGeoProc.Utils.ShapefileToGrid. Converts a shapefile to a grid.


VB.NET Usage

Function ShapefileToGrid(Shpfile As MapWinGIS.Shapefile, Optional UseShapefileBounds As Boolean, Optional GrdHeader As MapWinGIS.GridHeader, Optional Cellsize As Double, Optional UseShapeNumber As Boolean, Optional SingleValue As Short) As MapWinGIS.Grid

            Parameters

Shpfile

The shapefile to be converted into a grid.
UseShapefileBounds Optional. A boolean value representing whether or not the grid will have the same extents as the shapefile. The default is True.
GrdHeader Optional. The grid header to use to create the new grid. If UseShapefileBounds is set to True, the extents supplied in the grid header will be ignored when the grid is created.
Cellsize Optional. The cell size of the new grid. The default cell size is 30.
UseShapeNumber Optional. Specifies that the value of each cell in the grid should be the shape index. The default is True.
SingleValue Optional. The value to use when creating the grid. This only applies when UseShapeNumber is set to False. The default value is 1.
ReturnValue The grid created from the shapefile.

Sample Code

    Private Sub Name()
        'code
    End Sub
  

VB 6 Usage
Function ShapefileToGrid(Shpfile As Shapefile, Optional UseShapefileBounds As Boolean, Optional GrdHeader As GridHeader, Optional Cellsize As Double, Optional UseShapeNumber As Boolean, Optional SingleValue As Short) As Grid
            Parameters

Shpfile

The shapefile to be converted into a grid.
UseShapefileBounds Optional. A boolean value representing whether or not the grid will have the same extents as the shapefile. The default is True.
GrdHeader Optional. The grid header to use to create the new grid. If UseShapefileBounds is set to True, the extents supplied in the grid header will be ignored when the grid is created.
Cellsize Optional. The cell size of the new grid. The default cell size is 30.
UseShapeNumber Optional. Specifies that the value of each cell in the grid should be the shape index. The default is True.
SingleValue Optional. The value to use when creating the grid. This only applies when UseShapeNumber is set to False. The default value is 1.
ReturnValue The grid created from the shapefile.

Sample Code

    Private Sub Name()
        'code
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Utils_ShapefileToGrid"

This page has been accessed 1,459 times. This page was last modified on 1 October 2008, at 21:48.