GPSFileDepot Forums

General Category => Map Making Support => Topic started by: Perry on June 07, 2009, 02:48:12 PM

Title: crop vector data to an irregular shape
Post by: Perry on June 07, 2009, 02:48:12 PM
I like to crop vector data to an irregular shape (area) such as cropping roads to a National Forest boundary.  Has anyone found an automated way to do it? Global Mapper does not.

Thanks,

Perry
Title: Re: crop vector data to an irregular shape
Post by: Indrid Cold on June 10, 2009, 08:14:19 AM
I think I read about something on http://freegeographytools.com/ that did but Les is going to have to answer that.
Title: Re: crop vector data to an irregular shape
Post by: -Oz- on June 10, 2009, 09:09:23 AM
I started using postgis.  I can give you the queries if you think that'll do it for you.

What I do is draw a polygon anything inside the polygon stays anything outside goes.  thats how I crop my maps to the actual state now.
Title: Re: crop vector data to an irregular shape
Post by: leszekp on June 10, 2009, 02:37:53 PM
The freeware GIS MapWindow can do this.

http://freegeographytools.com/2007/intro-to-mapwindow-iv-advanced-vector-tools

Make sure the GIS tools plugin is enabled, then load in the shapefile you want to clip, and the polygon you want to clip with (or create the polygon with the shapefile editor). Then use the Clip Shapefile With Polyon tool to clip the shapefile with the polygon, You can clip point, line or polygon shapes.
Title: Re: crop vector data to an irregular shape
Post by: -Oz- on June 10, 2009, 11:45:00 PM
Sweet, that'll be even easier than postgis.
Title: Re: crop vector data to an irregular shape
Post by: Indrid Cold on June 11, 2009, 07:20:46 AM
Quote from: leszekp on June 10, 2009, 02:37:53 PM
The freeware GIS MapWindow can do this.
That's the one I saw, and as I have some cropping coming up, a timely response.