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 QuickExtents

From MapWindow GIS

Jump to: navigation, search

QuickExtents

Gets the extents of the specified shape. Note: Use this function to get the extents of a shape in a shapefile when speed is essential.
See also Extents


VB.NET Usage

Function QuickExtents(ShapeIndex As Integer) As MapWinGIS.Extents

            Parameters

ShapeIndex

The index of the shape for which the extents are required.
ReturnValue The Extents object representing the extents of the specified shape in the shapefile.

Sample Code

    Private Sub QuickExtents()
        Dim sf As New MapWinGIS.Shapefile()
        Dim extents As New MapWinGIS.Extents
        'Get the extents for shape 0 in the shapefile using the fastest method available
        extents = sf.QuickExtents(0)
        'Get the extents for shape 0 in the shapeifle using the slowest method avaiable
        extents = sf.Shape(0).Extents()
    End Sub
  

VB 6 Usage
Function QuickExtents(ShapeIndex As Long) As Extents
            Parameters

ShapeIndex

The index of the shape for which the extents are required.
ReturnValue The Extents object representing the extents of the specified shape in the shapefile.

Sample Code

    Private Sub QuickExtents()
        Dim sf As New MapWinGIS.Shapefile
        Dim extents As New MapWinGIS.extents
        'Get the extents for shape 0 in the shapefile using the fastest method available
        Set extents = sf.QuickExtents(0)
        'Get the extents for shape 0 in the shapeifle using the slowest method avaiable
        Set extents = sf.shape(0).extents()
    End Sub

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_QuickExtents"
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