MapWinGIS:Shapefile EndPointInShapefile

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

EndPointInShapefile

Unloads all points in all shapes in the shapefile from memory. These points are loaded into memory by the function BeginPointInShapefile to increase the performance of calling the function PointInShapefile for the shapefile.
See also BeginPointInShapefile and PointInShapefile


VB.NET Usage

Sub EndPointInShapefile()

            Parameters

None

Sample Code

    Private Sub EndPtInSf()
        Dim sf As New MapWinGIS.Shapefile()
        Dim shapeindex As Integer
        'Load all points in all shapes in the shapefile into memory
        sf.BeginPointInShapefile()
        'See if a point is in the shapefile, returning the index of the shape or -1 if point doesn't lie in shapefile
        shapeindex = sf.PointInShapefile(100, 200)
        'Unload all points loaded by BeginPointInShapefile
        sf.EndPointInShapefile()
    End Sub
  

VB 6 Usage
Sub EndPointInShapefile()
            Parameters

None

Sample Code

    Private Sub EndPtInSf()
        Dim sf As New MapWinGIS.Shapefile
        Dim shapeindex As Long
        'Load all points in all shapes in the shapefile into memory
        sf.BeginPointInShapefile
        'See if a point is in the shapefile, returning the index of the shape or -1 if point doesn't lie in shapefile
        shapeindex = sf.PointInShapefile(100, 200)
        'Unload all points loaded by BeginPointInShapefile
        sf.EndPointInShapefile
    End Sub

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

This page has been accessed 1,844 times. This page was last modified on 9 November 2005, at 18:19.