.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "SHPSORT" "1" "December 2023" "" "shplib" .SH "NAME" \fBshpsort\fR \- rewrite a shapefile sorted by a field or by the geometry .SH "SYNOPSIS" \fBshpsort\fR \fIinfile\fR \fIoutfile\fR \fIfield[;\|\.\|\.\|\.]\fR [<(ASCENDING|DESCENDING)[;\|\.\|\.\|\.]>] .SH "DESCRIPTION" Rewrite a shapefile sorted by a field or by the geometry\. For polygons, sort by area, for lines sort by length and do nothing for all others\. .SH "OPTIONS" .TP \fIinfile\fR input shapefile .TP \fIoutfile\fR output shapefile .TP \fIfield[;\|\.\|\.\|\.]\fR one or more fields to use for ordering .TP [<(ASCENDING|DESCENDING)[;\|\.\|\.\|\.]>] sort order .SH "AUTHOR" \fBshpsort\fR is part of shapelib, maintained by Frank Warmerdam\. .SH "SEE ALSO" \fBdbfadd\fR(1), \fBdbfcat\fR(1), \fBdbfcreate\fR(1), \fBdbfdump\fR(1), \fBdbfinfo\fR(1), \fBshpcat\fR(1), \fBshpcentrd\fR(1), \fBshpcreate\fR(1), \fBshpdump\fR(1), \fBshpdxf\fR(1), \fBshpfix\fR(1), \fBshpinfo\fR(1), \fBshpproj\fR(1), \fBshprewind\fR(1), \fBshptest\fR(1)