MapWinGIS:Shapefile QuickPoint
From MapWindow GIS
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
















