Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
bufferm2

  • function_handle.m
  • bufferm2(varargin)
    BUFFERM2 Computes buffer zone around a polygon
  • View all files
5.0
5.0 | 2 ratings Rate this file 26 Downloads (last 30 days) File Size: 90.8 KB File ID: #11095 Version: 1.4
image thumbnail

bufferm2

by

Kelly Kearney (view profile)

 

16 May 2006 (Updated )

Creates a buffer zone around or inside a polygon or polygons

| Watch this File

File Information
Description

Create a buffer around a polygon in Matlab

Required Products Mapping Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
23 Jan 2017 Kelly Kearney

Kelly Kearney (view profile)

@Randike Vithanage,
That error implies that Matlab is trying to call the built in function_handle function, not the new one included with this code. Please make sure the new function_handle function is on your path.

Comment only
12 Jan 2017 Randika Vithanage

Hi,

Nice work. However, I keep on getting below error when I try to use the tool with Cartesian coordinates.

Error using function_handle
Too many output arguments.

Error in bufferm2 (line 182)
vectorsToGPC = function_handle(v2gpcpath);

Error in Main_Prog_1 (line 154)
[xb,yb] = bufferm2('xy',xr,yr,1,'in')

will you be help to solve this ?

Comment only
04 Feb 2012 Jaroslaw

After some modifications works perfect with GK4 :)

02 Feb 2012 Jaroslaw

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

Comment only
03 Feb 2010 Pavan

Pavan (view profile)

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

Updates
20 Jan 2010 1.1

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

30 Sep 2010 1.3

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.

16 Feb 2017 1.4

Linked to GitHub repository

Contact us