MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:Shapefile QuickPoint

From MapWindow GIS

Jump to: navigation, search

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://www.mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_QuickPoint"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: November 12 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links