shpcutter

ESRI Shapefile cutter.

The program will append to an existing shape file or it will create a new file if needed. Only the items in the first output file will be preserved. When an item does not match with the append theme then the item might be placed to an existing item at the same position and type.

Note that you can use orthoigen instead to clip vectors, including shapefiles.

Functions

  • Select a group of shapes from a comma separated selection list.
  • UnSelect? a group of shapes from a comma separated selection list.
  • Clip boundary extent or by theme boundary.

Touch writes all the shapes that touch the boundary. Inside writes all the shapes that are completely within the boundary. *(N/A) Cut will cookie-cut shapes that are touching the boundary. Boundary clips are only the min and max of a theme boundary. *(N/A) Polygon clips use the polygons within a theme.

  • Erase boundary extent or by theme boundary.

Erase is the direct opposite of the Clip function.

  • Change coordinate value units between meters and feet.

There is no way to determine the input unit of a shape file. Skip this function if the shape file is already in the correct unit. Clip and Erase will be done before the unit is changed. A shift will be done after the unit is changed.

  • Shift X and Y coordinates.

Finally, There can only be one select or unselect in the command line.

There can only be one clip or erase in the command line. There can only be one unit and only one shift in the command line.

EX: shputils in.shp out.shp CLIP 10 10 90 90 Touch UNIT Feet SHIFT 40 40

shputils in.shp out.shp SELECT countycode 3,5,9,13,17,27

Usage

USAGE: shputils  <DescribeShape>
USAGE: shputils  <InputShape>  <AppendShape>
      { <SELECT>   <Item> <valuelist> }
      { <UNSELECT> <Item> <valuelist> }
      { <CLIP>   <xmin> <ymin> <xmax> <ymax> <TOUCH|INSIDE|CUT> }
      { <CLIP>   <Theme>  <BOUNDARY|POLYGON> <TOUCH|INSIDE|CUT> }
      Clip functions for Cut and Polygon are not supported yet...
      { <ERASE>  <xmin> <ymin> <xmax> <ymax> <TOUCH|INSIDE|CUT> }
      { <ERASE>  <Theme>  <BOUNDARY|POLYGON> <TOUCH|INSIDE|CUT> }
      { <UNIT>   <FEET|METERS|factor>  }
      { <SHIFT>  <xshift> <yshift> }

Last modified 9 years ago Last modified on Oct 17, 2010 5:01:41 AM