Code covered by the BSD License  

Highlights from
bufferm2

5.0

5.0 | 2 ratings Rate this file 6 Downloads (last 30 days) File Size: 4.44 KB File ID: #11095
image thumbnail

bufferm2

by Kelly Kearney

 

16 May 2006 (Updated 30 Sep 2010)

Creates a buffer zone around or inside a polygon or polygons

| Watch this File

File Information
Description

This function was originally designed as a replacement for the Mapping Toolbox function bufferm, which calculates a buffer zone around a polygon. The original bufferm function had some serious bugs that could result in incorrect buffer results and/or errors, and was also very slow. As of R2006b, those bugs have been fixed in bufferm.m. However, this version still maintains a few advantages over the original:
 
- Can be applied to polygons in either geographical space (as in bufferm) or in cartesian coordinates.
 
- Better treatment of polygon holes. The original function simply filled in all holes; this version trims or pads holes according to the buffer width given.
 
Input and output format is identical to bufferm unless the 'xy' cartesian-coordinate option is specified, so it can be used interchangeably.

Required Products Mapping Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
03 Feb 2010 Pavan

Works flawlessly. Thanks for modifying the code to read Cartesian co-ordinates.

02 Feb 2012 Jaroslaw

Doesn't work with GK-coordinates (Cartesian). My output polygon is the same as input.

04 Feb 2012 Jaroslaw

After some modifications works perfect with GK4 :)

Please login to add a comment or rating.
Updates
24 May 2006

Added link and comments to this web page regarding the updated version of bufferm.

20 Jan 2010

Added ability to work in cartesian coordinates rather than geographic space; updated description and example on webpage.

30 Sep 2010

Fixed a bug in input checks so input can be either row or column vectors. Also updates internal plot checks to plot in cartesian coordinates so can be used to check both geographic and x-y input.

Tag Activity for this File
Tag Applied By Date/Time
buffer zone Cristina McIntire 06 Feb 2009 10:57:32
polygon Cristina McIntire 06 Feb 2009 10:57:32
bufferm Cristina McIntire 06 Feb 2009 10:57:32
buffer Kelly Kearney 21 Jan 2010 09:47:55
polygon Kelly Kearney 21 Jan 2010 09:47:55
buffer zone xiao 19 Jun 2011 07:41:01

Contact us at files@mathworks.com