SHPCREATE(1)
π SHPCREATE β bestie, let's make an empty shapefile π
okay so real quick, this one lives in the shplib manual, section 1, and it's genuinely the easiest glow-up in the whole toolkit. no cap.
β¨ NAME β¨
shpcreate β creates an empty ESRI shapefile π
β¨ SYNOPSIS β¨
shpcreate shp_file [point|arc|polygon|multipoint]
β¨ DESCRIPTION β¨
bestie, this little icon creates an empty shapefile that can hold shapes of whatever type you tell it. that's the whole job. she doesn't do drama.
but here's the tea you need to know: a "shapefile" isn't one file, it's two files that share the same basename π β one with a .shp extension and one with a .shx. and for the record those can also show up as .SHP and .SHX. the .shp one holds the actual shape data, and the .shx one holds the shape index. two sisters, one vibe. π
so how does it figure out what to name them? it strips any filename extension off of shp_file first, and then goes ahead and tries to create:
shp_file.shporshp_file.SHPβ the data file πshp_file.shxorshp_file.SHXβ the index file π
respectively, obviously. so if you hand it a filename that already has an extension, that extension is getting yeeted before anything gets created. periodt.
the supported values for the shapetype argument are exactly these four, no substitutions:
pointarcpolygonmultipoint
β¨ OPTIONS β¨
shp_fileβ the name of the shapefile you wanna create π¦. doesn't need the extension, girl, she'll sort that out herself.point|arc|polygon|multipointβ the type of shapefile you wish to create. you must specify a valid option. pick one from the list, that's it, that's the rule.
β¨ EXAMPLE β¨
shpcreate testpolygon polygon
this will create a polygon shapefile named testpolygon πΈ
and to be actually accurate (iykyk): in fact testpolygon.shp and testpolygon.shx will be created. two files. as promised. β¨
β¨ EXIT STATUS β¨
she reports back with a number, and here's the decoder ring:
0β successful program execution. slay, it worked. π1β missing shp_file or shapetype argument. π2β unknown shapetype. π3β unable to create the shapefile. π
β¨ DIAGNOSTICS β¨
the following diagnostics may be issued on stdout:
Shape Type `shapetype' not recognised.
Unable to create:shp_file
β¨ AUTHOR β¨
dbfdump is part of shapelib, maintained by Frank Warmerdam.
this guide was created by Eduardo Patoo Kanegae and converted to manpage by Johan Van de Wauw. it was further enhanced with the man page written by Joonas Pihlaja (jpihlaja@cc.helsinki.fi). credits where credits are due, always. π«Ά
β¨ SEE ALSO β¨
dbfadd(1), dbfcat(1), dbfcreate(1), dbfdump(1), dbfinfo(1), shpadd(1), shpcat(1), shpcentrd(1), shpdump(1), shpdxf(1), shpfix(1), shpinfo(1), shpproj(1), shprewind(1), shptest(1)
and that's the whole page, bestie π§ this one's from the shplib source, version vibes of March 2026, filed under SHPCREATE(1). go forth and create empty files. π
π¦ 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