SHPUTILS(1)
okay bestie, you opened SHPUTILS(1) from shplib and it's giving shapefile utility main character energy. no cap, let's go. π
β¨
πΈ NAME πΈ
shputils - shapefile utility
like... that's the name. short, sweet, and it does shapefile things. iconic.
β¨ SYNOPSIS β¨
shputils in_shp_file out_shp_file args
π DESCRIPTION π
okay so 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. periodt.
π« OTHER FUNCTIONS π«
- Describe all items in the
dbasefile (UseALLfor more than5000recs.) β literally a whole describe moment. - 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. Boundary clips are only the min and max of a theme boundary.
- 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.
π Examples π
shputils in.shp out.shp SELECT countycode 3,5,9,13,17,27
shputils in.shp out.shp CLIP 10 10 90 90 Touch FACTOR Meter Feet
shputils in.shp out.shp FACTOR Meter 3.0
shputils in.shp out.shp CLIP clip.shp Boundary Touch SHIFT 40 40
shputils in.shp out.shp SELECT co 112 CLIP clip.shp Boundary Touch
π USAGE π
USAGE: shputils DescribeShape {ALL}
USAGE: shputils InputShape OutShape|AppendShape
{ FACTOR FEET|MILES|METERS|KM FEET|MILES|METERS|KM|factor }
{ SHIFT xshift yshift }
{ SELECT|UNSEL Item valuelist }
{ CLIP|ERASE xmin ymin xmax ymax TOUCH|INSIDE|CUT }
{ CLIP|ERASE theme BOUNDARY TOUCH|INSIDE|CUT }
β οΈ Note β οΈ
Note: CUT is not complete and does not create intersections. For more information read programmer comment.
that's it, my love. this page is from shplib, dated March 2026 β go be the main character of your shapefile era. ππ¦π
π¦ where this page comes from
- ubuntu stonking: shapelib 1.6.3-1 Β· MIT OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms