MapWinGIS:Shapefile QuickPoint

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

QuickPoint

Gets a single point from the specified shape in the shapefile. Note: Use this function to get a point from a shape in the shapefile when speed is essential.
See also Point


VB.NET Usage

Function QuickPoint(ShapeIndex As Integer, PointIndex As Integer) As MapWinGIS.Point

            Parameters

ShapeIndex

The index of the shape in the shapfefile to retrieve the point from.
PointIndex The index of the point to be retrieveed from the specified shape in the shapefile.
ReturnValue The point object representing the retrieved point.

Sample Code

    Private Sub QuickPoint()
        Dim sf As New MapWinGIS.Shapefile()
        Dim point As New MapWinGIS.Point()
        'Get point 0 in shape 0 in the shapefile using the fastest method available
        point = sf.QuickPoint(0, 0)
        'Get point 0 in shape 0 in the shapefile using the slowest method available
        point = sf.Shape(0).Point(0)
    End Sub
  

VB 6 Usage
Function QuickPoint(ShapeIndex As Long, PointIndex As Long) As Point
            Parameters

ShapeIndex

The index of the shape in the shapfefile to retrieve the point from.
PointIndex The index of the point to be retrieveed from the specified shape in the shapefile.
ReturnValue The point object representing the retrieved point.

Sample Code

    Private Sub QuickPoint()
        Dim sf As New MapWinGIS.Shapefile
        Dim point As New MapWinGIS.point
        'Get point 0 in shape 0 in the shapefile using the fastest method available
        Set point = sf.QuickPoint(0, 0)
        'Get point 0 in shape 0 in the shapefile using the slowest method available
        Set point = sf.shape(0).point(0)
    End Sub

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

This page has been accessed 2,478 times. This page was last modified on 9 November 2005, at 18:25.