Mapping Toolbox    

Simplifying Vector Data

Sometimes you may need to reduce the number of points in your vector data, while still maintaining an accurate representation of the geographical data. A quick and easy method would be to throw out every other element or set of elements in each vector. However, the result may be a very crude representation of the original data. Another option exists. The Mapping Toolbox provides a function implementing a powerful line simplification algorithm that selectively deletes points.

For example, reduce the number of points in the state of Massachusetts with the reducem function:

The stateline structure contains vector data for all 50 U.S. states and the District of Columbia. We are only interested in the state of Massachusetts, the 19th entry in the structure:

Now simplify your vector data:

The Massachusetts vector data has been reduced to almost a quarter of its original size:

Plots of the datasets, however, show two virtually identical maps.


  Trimming Vector Data to a Defined Region Working with Matrix Maps