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

MapWinGeoProc:SpatialOperations BufferPolygon

From MapWindow GIS

Jump to: navigation, search

BufferPolygon

Syntax

 bool BufferPolygon(ref MapWinGIS.Shape polygon, System.Double distance, MapWinGeoProc.Enumerations.Buffer_HoleTreatment holeTreatment, MapWinGeoProc.Enumerations.Buffer_CapStyle capStyle, ref MapWinGIS.Shape resultShp)

Summary

Creates a buffer around (or inside of) the input polygon at the distance specified.

Parameters

polygon The polygon shape to be buffered.
distance The distance from the polygon's border that the buffer should be created.
Positive or Negative values are allowed.
holeTreatment For multiPart polygons with holes, specifies what should be done with holes.
0 = ignore (no holes will be included in result buffer), 1 = opposite (if distance is positive, hole will shrink),
2 = same (if distance is positive, hole will grow), 3 = keep original (the hole will not be buffered but will still exist inside of the buffer shape).
capStyle Edge treatment. 0 = pointed, 1 = rounded.
resultShp The resulting buffer shape.

Returns

False if an error was encountered, true otherwise.

Visual Basic Net 2005 Example Implementation Code
Visual C# 2005 Example Implementation Code
Back to SpatialOperations

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