forked from openkylin/shapelib
Import Debian changes 1.5.0-3
This commit is contained in:
parent
1a16aad386
commit
31bb73a160
|
@ -0,0 +1,5 @@
|
|||
shapelib (1.5.0-3ok1) yangtze; urgency=medium
|
||||
|
||||
* Build for openkylin.
|
||||
|
||||
-- rtlhq <nobelxyz@163.com> Tue, 13 Sep 2022 15:49:05 +0800
|
|
@ -0,0 +1,53 @@
|
|||
Source: shapelib
|
||||
Maintainer: openKylin KDE SIG <kde@lists.openkylin.top>
|
||||
Uploaders: rtlhq <nobelxyz@163.com>
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Build-Depends: debhelper-compat (= 12),
|
||||
ronn (>= 0.9.0)
|
||||
Standards-Version: 4.6.1
|
||||
Vcs-Browser: https://gitee.com/openkylin/shapelib
|
||||
Vcs-Git: https://gitee.com/openkylin/shapelib.git
|
||||
Homepage: http://shapelib.maptools.org/
|
||||
|
||||
Package: shapelib
|
||||
Architecture: any
|
||||
Multi-Arch: foreign
|
||||
Section: graphics
|
||||
Depends: ${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Description: Library for reading and writing ESRI Shapefiles - tools
|
||||
The Shapefile format is a working and interchange format promoted by
|
||||
ESRI for simple vector data with attributes. It is apparently the only
|
||||
file format that can be edited in ARCView 2/3, and can also be exported
|
||||
and imported in ArcGis.
|
||||
.
|
||||
This package contains a useful set of tools to manage shapefiles.
|
||||
|
||||
Package: libshp-dev
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Section: libdevel
|
||||
Depends: libshp2 (= ${binary:Version}),
|
||||
${misc:Depends}
|
||||
Description: Library for reading and writing ESRI Shapefiles - development files
|
||||
The Shapefile format is a working and interchange format promoted by
|
||||
ESRI for simple vector data with attributes. It is apparently the only
|
||||
file format that can be edited in ARCView 2/3, and can also be exported
|
||||
and imported in ArcGis.
|
||||
.
|
||||
This package includes the development files.
|
||||
|
||||
Package: libshp2
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends: ${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Pre-Depends: ${misc:Pre-Depends}
|
||||
Description: Library for reading and writing ESRI Shapefiles
|
||||
The Shapefile format is a working and interchange format promoted by
|
||||
ESRI for simple vector data with attributes. It is apparently the only
|
||||
file format that can be edited in ARCView 2/3, and can also be exported
|
||||
and imported in ArcGis.
|
||||
.
|
||||
This package includes the shared library.
|
|
@ -0,0 +1,137 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: Shapefile C Library
|
||||
Upstream-Contact: Frank Warmerdam <warmerdam@pobox.com>
|
||||
Source: https://download.osgeo.org/shapelib/
|
||||
|
||||
Files: *
|
||||
Copyright: 2012-2016, Even Rouault <even dot rouault at mines-paris dot org>
|
||||
1999-2013, Frank Warmerdam <warmedam@pobox.com>
|
||||
2005, Springs Rescue Mission
|
||||
2004, Eric Miller
|
||||
2004, Marco Podgorsek
|
||||
2002, Kevin Meyer
|
||||
1999, Carl Anderson
|
||||
1992, 1996, Free Software Foundation
|
||||
License: Expat or LGPL-2+
|
||||
|
||||
Files: CMakeLists.txt
|
||||
Copyright: 2012-2013 Alan W. Irwin
|
||||
License: GPL-2
|
||||
|
||||
Files: contrib/dbfcat.c
|
||||
Copyright: 1995, Frank Warmerdam
|
||||
License: public-domain
|
||||
This code is in the public domain.
|
||||
|
||||
Files: contrib/dbfinfo.c
|
||||
Copyright: 1999, Carl Anderson
|
||||
License: public-domain
|
||||
This code is in the public domain.
|
||||
.
|
||||
This code is based in part on the earlier work of Frank Warmerdam
|
||||
|
||||
Files: contrib/ShapeFileII.pas
|
||||
Copyright: 2002, Keven Meyer <Kevin@CyberTracker.co.za>
|
||||
License: Expat or LGPL-2+
|
||||
|
||||
Files: contrib/Shape_PointInPoly.cpp
|
||||
Copyright: 2004, Marko Podgorsek <d-mon@siol.net>
|
||||
License: Expat or LGPL-2+
|
||||
|
||||
Files: contrib/shpcat.c
|
||||
contrib/shpcentrd.c
|
||||
contrib/shpdata.c
|
||||
contrib/shpdxf.c
|
||||
contrib/shpfix.c
|
||||
contrib/shpgeo.c
|
||||
contrib/shpgeo.h
|
||||
contrib/shpinfo.c
|
||||
contrib/shpwkb.c
|
||||
Copyright: 1999, Carl Anderson
|
||||
License: Expat
|
||||
|
||||
Files: contrib/shpsort.c
|
||||
Copyright: 2004, Eric G. Miller
|
||||
License: Expat
|
||||
|
||||
Files: sbnsearch.c
|
||||
Copyright: 2012-2014, Even Rouault <even dot rouault at mines-paris dot org>
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2012, Francesco Paolo Lovergine <frankie@debian.org>
|
||||
2010, DebianGis contributors <pkg-grass-devel@lists.alioth.debian.org>
|
||||
License: GPL-3+
|
||||
|
||||
License: Expat
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
License: LGPL-2+
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
.
|
||||
On Debian systems, the full text of the GNU Library General Public
|
||||
License version 2 can be found in the file
|
||||
`/usr/share/common-licenses/LGPL-2'.
|
||||
|
||||
License: GPL-2
|
||||
This file is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Library General Public License as published
|
||||
by the Free Software Foundation; version 2 of the License.
|
||||
.
|
||||
This file is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Library General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU Library General Public License
|
||||
along with this file; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the complete text of the GNU General Public
|
||||
License can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
|
||||
License: GPL-3+
|
||||
This program is free software; you can redistribute it
|
||||
and/or modify it under the terms of the GNU General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 of the License, or (at your option) any later
|
||||
version.
|
||||
.
|
||||
This program is distributed in the hope that it will be
|
||||
useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
PURPOSE. See the GNU General Public License for more
|
||||
details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public
|
||||
License along with this package; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
Boston, MA 02110-1301 USA
|
||||
.
|
||||
On Debian systems, the complete text of the GPL-3 License can be
|
||||
found in `/usr/share/common-licenses/GPL-3'.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
usr/bin
|
||||
usr/sbin
|
|
@ -0,0 +1 @@
|
|||
README.tree
|
|
@ -0,0 +1,19 @@
|
|||
[DEFAULT]
|
||||
|
||||
# The default name for the upstream branch is "upstream".
|
||||
# Change it if the name is different (for instance, "master").
|
||||
upstream-branch = upstream
|
||||
|
||||
# The default name for the Debian branch is "master".
|
||||
# Change it if the name is different (for instance, "debian/unstable").
|
||||
debian-branch = master
|
||||
|
||||
# git-import-orig uses the following names for the upstream tags.
|
||||
# Change the value if you are not using git-import-orig
|
||||
upstream-tag = upstream/%(version)s
|
||||
|
||||
# Always use pristine-tar.
|
||||
pristine-tar = True
|
||||
|
||||
[buildpackage]
|
||||
pbuilder-options = --source-only-changes
|
|
@ -0,0 +1,2 @@
|
|||
usr/lib
|
||||
usr/include
|
|
@ -0,0 +1,4 @@
|
|||
usr/include/*
|
||||
usr/lib/*/lib*.a
|
||||
usr/lib/*/lib*.so
|
||||
usr/lib/*/pkgconfig
|
|
@ -0,0 +1 @@
|
|||
usr/lib
|
|
@ -0,0 +1 @@
|
|||
usr/lib/*/lib*.so.*
|
|
@ -0,0 +1,84 @@
|
|||
libshp.so.2 #PACKAGE# #MINVER#
|
||||
* Build-Depends-Package: libshp-dev
|
||||
DBFAddField@Base 1.3.0
|
||||
DBFAddNativeFieldType@Base 1.3.0
|
||||
DBFAlterFieldDefn@Base 1.3.0
|
||||
DBFCloneEmpty@Base 1.3.0
|
||||
DBFClose@Base 1.3.0
|
||||
DBFCreate@Base 1.3.0
|
||||
DBFCreateEx@Base 1.3.0
|
||||
DBFCreateLL@Base 1.3.0
|
||||
DBFDeleteField@Base 1.3.0
|
||||
DBFGetCodePage@Base 1.3.0
|
||||
DBFGetFieldCount@Base 1.3.0
|
||||
DBFGetFieldIndex@Base 1.3.0
|
||||
DBFGetFieldInfo@Base 1.3.0
|
||||
DBFGetNativeFieldType@Base 1.3.0
|
||||
DBFGetRecordCount@Base 1.3.0
|
||||
DBFIsAttributeNULL@Base 1.3.0
|
||||
DBFIsRecordDeleted@Base 1.3.0
|
||||
DBFMarkRecordDeleted@Base 1.3.0
|
||||
DBFOpen@Base 1.3.0
|
||||
DBFOpenLL@Base 1.3.0
|
||||
DBFReadDoubleAttribute@Base 1.3.0
|
||||
DBFReadIntegerAttribute@Base 1.3.0
|
||||
DBFReadLogicalAttribute@Base 1.3.0
|
||||
DBFReadStringAttribute@Base 1.3.0
|
||||
DBFReadTuple@Base 1.3.0
|
||||
DBFReorderFields@Base 1.3.0
|
||||
DBFSetLastModifiedDate@Base 1.4.0~rc1
|
||||
DBFSetWriteEndOfFileChar@Base 1.4.0~rc1
|
||||
DBFUpdateHeader@Base 1.3.0
|
||||
DBFWriteAttributeDirectly@Base 1.3.0
|
||||
DBFWriteDoubleAttribute@Base 1.3.0
|
||||
DBFWriteIntegerAttribute@Base 1.3.0
|
||||
DBFWriteLogicalAttribute@Base 1.3.0
|
||||
DBFWriteNULLAttribute@Base 1.3.0
|
||||
DBFWriteStringAttribute@Base 1.3.0
|
||||
DBFWriteTuple@Base 1.3.0
|
||||
SADError@Base 1.3.0
|
||||
SADFClose@Base 1.3.0
|
||||
SADFFlush@Base 1.3.0
|
||||
SADFOpen@Base 1.3.0
|
||||
SADFRead@Base 1.3.0
|
||||
SADFSeek@Base 1.3.0
|
||||
SADFTell@Base 1.3.0
|
||||
SADFWrite@Base 1.3.0
|
||||
SADRemove@Base 1.3.0
|
||||
SASetupDefaultHooks@Base 1.3.0
|
||||
SBNCloseDiskTree@Base 1.4.0~rc1
|
||||
SBNOpenDiskTree@Base 1.4.0~rc1
|
||||
SBNSearchDiskTree@Base 1.4.0~rc1
|
||||
SBNSearchDiskTreeInteger@Base 1.4.0~rc1
|
||||
SBNSearchFreeIds@Base 1.4.0~rc1
|
||||
SHPCheckBoundsOverlap@Base 1.3.0
|
||||
SHPClose@Base 1.3.0
|
||||
SHPCloseDiskTree@Base 1.3.0
|
||||
SHPComputeExtents@Base 1.3.0
|
||||
SHPCreate@Base 1.3.0
|
||||
SHPCreateLL@Base 1.3.0
|
||||
SHPCreateObject@Base 1.3.0
|
||||
SHPCreateSimpleObject@Base 1.3.0
|
||||
SHPCreateTree@Base 1.3.0
|
||||
SHPDestroyObject@Base 1.3.0
|
||||
SHPDestroyTree@Base 1.3.0
|
||||
SHPGetInfo@Base 1.3.0
|
||||
SHPOpen@Base 1.3.0
|
||||
SHPOpenDiskTree@Base 1.3.0
|
||||
SHPOpenLL@Base 1.3.0
|
||||
SHPOpenLLEx@Base 1.4.0~rc1
|
||||
SHPPartTypeName@Base 1.3.0
|
||||
SHPReadObject@Base 1.3.0
|
||||
SHPRestoreSHX@Base 1.4.0~rc1
|
||||
SHPRewindObject@Base 1.3.0
|
||||
SHPSearchDiskTree@Base 1.3.0
|
||||
SHPSearchDiskTreeEx@Base 1.3.0
|
||||
SHPSetFastModeReadObject@Base 1.4.0~rc1
|
||||
SHPTreeAddShapeId@Base 1.3.0
|
||||
SHPTreeFindLikelyShapes@Base 1.3.0
|
||||
SHPTreeTrimExtraNodes@Base 1.3.0
|
||||
SHPTypeName@Base 1.3.0
|
||||
SHPWriteHeader@Base 1.3.0
|
||||
SHPWriteObject@Base 1.3.0
|
||||
SHPWriteTree@Base 1.3.0
|
||||
SHPWriteTreeLL@Base 1.3.0
|
|
@ -0,0 +1,22 @@
|
|||
Shape_PointInPoly(1) -- calculate a point in a polygon
|
||||
======================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`Shape_PointInPoly` _shpfile_path_ _quality_
|
||||
|
||||
##DESCRIPTION
|
||||
Commandline program to generate points-in-polygons from a shapefile as a shapefile.
|
||||
|
||||
##OPTIONS
|
||||
* _shpfile_path_:
|
||||
shapefile
|
||||
|
||||
* _quality_:
|
||||
quality of points to create
|
||||
|
||||
##AUTHOR
|
||||
`Shape_PointInPoly` was contributed to shapelib by Marko Podgorsek, shapelib is maintained by Frank Warmerdam.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
dbfadd(1) -- add a row to an xBase DBF file
|
||||
===========================================
|
||||
|
||||
##SYNOPSIS
|
||||
`dbfadd` _xbase_file_ _field_values..._
|
||||
|
||||
##DESCRIPTION
|
||||
Adds a row to the DBF file named by _xbase_file_ with column values given by the _field_values_ options that follow. A NULL value is denoted by an empty argument.
|
||||
|
||||
##OPTIONS
|
||||
* _xbase_file_:
|
||||
the name of an existing xBase file
|
||||
* _field_values_:
|
||||
list of values to be inserted into the xBase file. You must specify a number of values equal to the number of fields the xBase file has. The order of values must also reflect the order of fields inside xBase file.
|
||||
|
||||
##EXAMPLE
|
||||
`dbfadd` _testbase.dbf_ _REGION1_ _25.656_ _150.22_
|
||||
|
||||
Assuming that _testbase.dbf_ has 3 fields (`NAME`, `AREA` and `VALUE`), this command line will insert a new record into _testbase.dbf_ with the value "_REGION1_" for `NAME`, '_25.656_' for `AREA` and '_150.22_' for `VALUE` field.
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
* `1`:
|
||||
Missing _xbase_file_ or _field_values_ arguments.
|
||||
* `2`:
|
||||
Failed to open _xbase_file_ for reading and appending.
|
||||
* `3`:
|
||||
Too few values in _field_values..._
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
DBFOpen(_xbase_file_,"rb+") failed.
|
||||
|
||||
Got _count1_ fields, but require _count2_
|
||||
|
||||
##AUTHOR
|
||||
`dbfcreate` 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).
|
||||
|
||||
##BUGS
|
||||
Field values that are too large to fit in a field are silently truncated from the right. Numeric field values that can't be parsed by `atof`(3) get undefined values.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
dbfcat(1) -- appends the records of a source xBase file
|
||||
=======================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`dbfcat` [`-v`] [`-f`] _from_DBFfile_ _to_DBFfile_
|
||||
|
||||
##DESCRIPTION
|
||||
Appends the records of a source xBase file into a destiny xBase file. Both files must have the same number of fields.
|
||||
|
||||
##OPTIONS
|
||||
* `-v`:
|
||||
verbose mode.
|
||||
* `-f`:
|
||||
forces data conversion if data field types is not the same at both files or if is there any null value into _from_DBFfile_.
|
||||
* _from_DBFfile_:
|
||||
source xBase file.
|
||||
* _to_DBFfile_:
|
||||
destiny xBase file.
|
||||
|
||||
##EXAMPLE
|
||||
`dbfcat` `-v` _testbase1_ _testbase2_
|
||||
|
||||
##AUTHOR
|
||||
`dbfcat` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
dbfcreate(1) -- Create an empty xBase DBF file
|
||||
==============================================
|
||||
|
||||
##SYNOPSIS
|
||||
`dbfcreate` _xbase_file_ [[`-s` _field_name_ _width_] | [`-n` _field_name_ _width_ _decimals_],...]
|
||||
|
||||
##DESCRIPTION
|
||||
Creates an empty DBF file called _xbase_file_ with columns described by all the `-s` and `-n` options that follow.
|
||||
|
||||
##OPTIONS
|
||||
* _xbase_file_:
|
||||
the name of xBase file to be created. Doesn't need the extension.
|
||||
* `-s` _field_name_ _width_:
|
||||
creates a string field with name _field_name_ and size _width_.
|
||||
* `-n` _field_name_ _width_ _decimals_:
|
||||
creates a numeric field with name _field_name_, width of _width_ and with _decimals_ places sized by decimals.
|
||||
|
||||
##EXAMPLE
|
||||
`dbfcreate` _testbase_ `-s` `NAME` _20_, `-n` `AREA` _9_ _3_, `-n` `VALUE` _9_ _2_
|
||||
|
||||
this will create a file named _testbase_`.dbf` with 3 fields: `NAME` (string (_20_)), `AREA` (float (_9_,_3_)) and `VALUE` (float (_9_,_2_))
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
* `1`:
|
||||
Missing _xbase_file_ argument.
|
||||
* `2`:
|
||||
Failed to create the file _xbase_file_ for writing.
|
||||
* `3`:
|
||||
Missing _field_name_, _width_, or _decimals_ argument for a `-s` or `-n` option.
|
||||
* `4`:
|
||||
Failed to add a column given by a `-s` or `-n` option.
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
DBFCreate(_xbase_file_) failed.
|
||||
|
||||
DBFAddField(_field_name_,FTString,_width_,0) failed.
|
||||
|
||||
DBFAddField(_field_name_,FTDouble,_width_,_decimals_) failed.
|
||||
|
||||
Argument incomplete, or unrecognised: _arg_
|
||||
|
||||
##AUTHOR
|
||||
`dbfcreate` 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).
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
dbfdump(1) -- dumps the content of a xBase file to the terminal
|
||||
===============================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`dbfdump` [`-h`] [`-r`] [`-m`] _xbase_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Dumps the contents of _xbase_file_ to standard output. The first line contains the field names appearing in _xbase_file_, and each of the following lines contains the field values of a record. Field names and values are padded by spaces to their field widths. Empty fields are printed as the string "(NULL)".
|
||||
|
||||
##OPTIONS
|
||||
* `-h`:
|
||||
output header info (field descriptions).
|
||||
|
||||
Prints the column field definitions before other output. Each field definition consists of a line of the form
|
||||
|
||||
Field: _index_, Type=_type_, Title=`_name_', Width=_width_, Decimals=_precision_
|
||||
|
||||
where _index_ is the zero offset column number of the field; the _type_ indicates the datatype of the field value and is either "Integer", "Real" or "String"; _name_ is the field's name; _width_ is the number of bytes reserved for the field's value; and _precision_ is the number of decimal places of precision for "Real" type fields, and is zero for "Integer" and "String" type fields.
|
||||
|
||||
* `-r`:
|
||||
output raw field info, numeric values not reformatted.
|
||||
|
||||
Prints the exact bytes occurring in _xbase_file_ for field values and suppresses printing "(NULL)" for empty values.
|
||||
|
||||
* `-m`:
|
||||
output one line per field.
|
||||
|
||||
Prints each record in multiline format separated by empty lines. The first line of a record gives the number of the record in the form
|
||||
|
||||
Records: _record_index_
|
||||
|
||||
where _record_index_ is the zero offset number of the record in the file, and then each field of the record appears on its own line in the format
|
||||
|
||||
_name_: _value_
|
||||
|
||||
* _xbase_file_:
|
||||
the name of an existing xBase file.
|
||||
|
||||
##EXAMPLE
|
||||
`dbfdump` `-h` _testbase.dbf_
|
||||
|
||||
assuming that _testbase.dbf_ has 1 record (inserted by other example using `dbfadd`), this command line will produce the following output:
|
||||
|
||||
Field 0: Type=String, Title='NAME', Width=20, Decimals=0
|
||||
Field 1: Type=Double, Title='AREA', Width=9, Decimals=3
|
||||
Field 2: Type=Double, Title='VALUE', Width=9, Decimals=2
|
||||
NAME AREA VALUE REGION1 25.656 150.22
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
|
||||
* `1`:
|
||||
Missing _xbase_file_ argument.
|
||||
|
||||
* `2`:
|
||||
Failed to open _xbase_file_.
|
||||
|
||||
* `3`:
|
||||
There are no fields in _xbase_file_.
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
DBFOpen(_xbase_file_,"r") failed.
|
||||
|
||||
There are no fields in this table!
|
||||
|
||||
##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).
|
||||
|
||||
##BUGS
|
||||
Unless the `-r` option is given, values in numeric fields that overflow the `int` or `double` types of the `C` language are printed as plus or minus a huge number. For integer fields the huge value is `HUGE_VALL` from <stdlib.h> and for real fields it is `HUGE_VALF`.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
dbfinfo(1) -- Displays basic information for a given xBase file
|
||||
===============================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`dbfinfo` _xbase_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Displays basic information for a given xBase file, like number of columns, number of records and type of each column.
|
||||
|
||||
##OPTIONS
|
||||
* _xbase_file_:
|
||||
The name of an existing xBase file.
|
||||
|
||||
##EXAMPLE
|
||||
`dbfinfo` _testbase_
|
||||
|
||||
Info for testbase.dbf
|
||||
3 Columns, 1 Records in file
|
||||
NAME string (20,0)
|
||||
AREA float (9,3)
|
||||
VALUE float (9,2)
|
||||
|
||||
|
||||
##AUTHOR
|
||||
`dbfinfo` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
shpadd(1) -- append a shape to an ESRI shapefile
|
||||
================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpadd` _shp_file_ [[_x_ _y_] [+]]*
|
||||
|
||||
##DESCRIPTION
|
||||
Appends a shape to the shapefile determined from _shp_file_. The geometric data of the new shape consists of lists of _X/Y_ points on the command line grouped into _parts_, with points in different parts separated by a plus (`+`) sign. If no points or parts are given then a shape of type NullShape is appended to the shapefile, and otherwise the type of the new shape is determined by the shapefile's header. See `shpdump`(1) for a description of shape types and how geometric data for parts are interpreted for a specific type. No geometric restrictions set by the shapefile specification are enforced by `shpadd`(1).
|
||||
|
||||
Shapefiles actually consist of two files with the same basename and extensions `.shp` and `.shx` (or `.SHP` and `.SHX`) containing the shape data and shape index respectively. The files to open are determined by first stripping any filename extension from file and attempting to open the files _shp_file_`.shp` or _shp_file_`.SHP`, and _shp_file_`.shx` or _shp_file_`.SHX` for the respective data and index files.
|
||||
|
||||
##OPTIONS
|
||||
* _shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
* _x1_ _y1_ _x2_ _y2_ ... _xn_ _yn_:
|
||||
the set of x,y coordinates that describes the shape that you wish to add. Note that you must specify the correct number of parameters for a given type of shapefile. e.g.: for point shapefiles you have to pass 1 pair of XY coordinates and for a polygon shapefile you should pass at least 4 pairs of XY coordinates (where the first and the last point must have the same coordinates).
|
||||
|
||||
##EXAMPLE
|
||||
`shpadd` _testpolygon_ 100000 7000000 250000 6500000 200000 6000000 100000 7000000
|
||||
|
||||
assuming that _testpolygon_ is a polygon shapefile, this command line will insert a new shape (a triangle) into testpolygon with the following XY coordinates:
|
||||
|
||||
vertice 0: 100000 7000000 (this will also be the vertice where the shape starts and ends)
|
||||
vertice 1: 250000 6500000
|
||||
vertice 2: 200000 6000000
|
||||
vertice 3: 100000 7000000
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
|
||||
* `1`:
|
||||
Missing _shp_file_ argument, the shapefile can't be opened, or the program ran out of memory.
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
Unable to open:_shp_file_
|
||||
|
||||
Out of memory
|
||||
|
||||
##AUTHOR
|
||||
`shpadd` 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.
|
||||
|
||||
##BUGS
|
||||
Coordinate values that can't be be parsed by `sscanf`(3) get undefined values. There's no way to give measure or _Z_ data to vertices in a shape, but those are always set to zero if the shapefile's shape type requires those values. `MultiPatch` shape types aren't supported.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
shpcat(1) -- appends the records of a source shapefile
|
||||
======================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpcat` [`-v`] [`-f`] _from_shpfile_ _to_shpfile_
|
||||
|
||||
##DESCRIPTION
|
||||
Appends the content of a source shapefile into a destination shapefile. Both files must be the same shapefile type.
|
||||
|
||||
##OPTIONS
|
||||
* `-v`:
|
||||
verbose mode.
|
||||
|
||||
* `-f`:
|
||||
forces data conversion if data field types is not the same at both files or if is there any null value into from_DBFfile.
|
||||
|
||||
* _from_shpfile_:
|
||||
source shapefile.
|
||||
|
||||
* _to_shpfile_:
|
||||
destination shapefile.
|
||||
|
||||
##EXAMPLE
|
||||
`shpcat` `-v` _shapefile1_ _shapefile2_
|
||||
|
||||
##AUTHOR
|
||||
`shpcat` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
shpcentrd(1) -- computes XY centroid for polygon shapefiles
|
||||
===========================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpcentrd` _shp_file_ _new_shp_file_
|
||||
|
||||
##OPTIONS
|
||||
* _shp_file_:
|
||||
the name of an existing polygon shapefile.
|
||||
|
||||
* _new_shp_file_:
|
||||
the name of the point shapefile that will be created
|
||||
|
||||
##EXAMPLE
|
||||
`shpcentrd` _apolygonfile_ _pointcentrd_
|
||||
|
||||
##AUTHOR
|
||||
`shpcentrd` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
shpcreate(1) -- create an empty ESRI shapefile
|
||||
==============================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpcreate` _shp_file_ [`point`|`arc`|`polygon`|`multipoint`]
|
||||
|
||||
##DESCRIPTION
|
||||
Creates an empty shapefile supporting shapes of the given type. Shapefiles actually consist of two files with the same basename and extensions `.shp` and `.shx` (or `.SHP` and `.SHX`) containing the shape data and shape index respectively. The files to create are determined by first stripping any filename extension from _shp_file_ and attempting to create the files _shp_file_`.shp` or _shp_file_`.SHP`, and _shp_file_`.shx` or _shp_file_`.SHX` for the respective data and index files. The supported values for the _shapetype_ argument are: `point`, `arc`, `polygon`, and `multipoint`.
|
||||
|
||||
##OPTIONS
|
||||
* _shp_file_:
|
||||
the name of the shapefile to be created. Doesn't need the extension
|
||||
|
||||
* `point`|`arc`|`polygon`|`multipoint`:
|
||||
the type of shapefile that you wish to create. Must specify a valid option.
|
||||
|
||||
##EXAMPLE
|
||||
`shpcreate` _testpolygon_ `polygon`
|
||||
|
||||
this will create a polygon shapefile named testpolygon (in fact _testpolygon_`.shp` and _testpolygon_`.shx` will be created).
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
|
||||
* `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).
|
||||
|
||||
##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)
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
shpdata(1) -- Utility program for testing elements of the libraries.
|
||||
====================================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpdata` _shp_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Utility program for testing elements of the libraries.
|
||||
|
||||
##OPTIONS
|
||||
* _shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
##AUTHOR
|
||||
`shpdata` is part of shapelib, maintained by Frank Warmerdam.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,151 @@
|
|||
shpdump(1) -- dumps as text and/or validates the content of an ESRI shapefile
|
||||
=============================================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpdump` [-_validate_] _shp_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Prints the contents of the shapefile _shp_file_ to standard output in textual format. Shapefiles actually consist of two files with the same basename and extensions `.shp` and `.shx` (or `.SHP` and `.SHX`) containing the shape data and shape index respectively. The files to open are determined by first stripping any filename extension from _shp_file_ and attempting to open the files _shp_file_`.shp` or _shp_file_`.SHP`, and _shp_file_`.shx` or _shp_file_`.SHX` for the respective data and index files.
|
||||
|
||||
Output consists of a header giving number and type of shapes in the file and the bounds for the minimum and maximum _X_, _Y_, _Z_, and _M_ values appearing in the shapes. The header is followed by the geometric data for each shape in the file. All shapes in the file should be of the same type, except that `NullShape` typed shapes may be intermixed with any other type. The header has the form
|
||||
|
||||
Shapefile Type: type # of Shapes: count
|
||||
|
||||
File Bounds: (minX,minY,minZ,minM)
|
||||
to (maxX,maxY,maxZ,maxM)
|
||||
|
||||
See section `SHAPE TYPES` below for the list of possible shape types.
|
||||
|
||||
Next for each shape in the file a header giving it's _shape_index_, it's type _type_, number of vertices _nVertices_, number of parts _nParts_, and bounding box is given, followed by the vertex data of each part.
|
||||
|
||||
Shape: shape_index (type) nVertices=nVertices, nParts=nParts
|
||||
Bounds: (minX,minY,minZ,minM)
|
||||
to (maxX,maxY,maxZ,maxM)
|
||||
|
||||
vertices of the first part
|
||||
|
||||
+ vertices of the second part...
|
||||
|
||||
+ vertices of the last part
|
||||
|
||||
The _shape_index_ of a shape is the number of the shape starting from zero in the shape file. Each vertex has the form
|
||||
|
||||
(X,Y,Z,M)
|
||||
|
||||
If there are multiple parts then the type of the part is appended appended to first vertex of each part, and the first vertex of the second and following parts is preceded by a plus (`+`) sign. The part type is `Ring` for all shape types except `MultiPatch` where it is the type of a surface patch. See below for the description of possible part types.
|
||||
|
||||
##SHAPE TYPES
|
||||
Each type of shape except `MultiPatch` typed shapes comes in three flavours: The normal unsuffixed type, where points lie in _X/Y_-space; a type with suffix _M_ where points lie in _X/Y_-space and additionally have a _measure_ value in _M_-space; and finally a type with suffix _Z_ where points lie in _X/Y/Z_-space and also have a measure value in _M_-space.
|
||||
|
||||
* `NullShape`:
|
||||
A shape without data. Shapes of this type may be intermixed with other shapes and are sometimes used to represented deleted or missing geometric data for a shape.
|
||||
|
||||
* `Point` or `PointZ` or `PointM`:
|
||||
A single point.
|
||||
|
||||
* `Arc` or `ArcZ` or `ArcM`:
|
||||
Piecewise linear paths. Shapes of this type may consist of multiple parts which may or may not intersect and/or connect. Arcs are called `PolyLines` in the shapefile specification.
|
||||
|
||||
* `Polygon` or `PolygonZ` or `PolygonM`:
|
||||
Polygon shapes consist of one or more parts, called _rings_, that each define a closed path. Rings must contain at least four vertices with the first and last vertices being equal, and must not self-intersect. For shapes of type `Polygon`, the rings define a polygon with optional holes by giving the vertices of inner rings a counterclockwise orientation and the vertices of outer rings a clockwise orientation. Intersection and orientation is always computed in _X/Y_-space and never in _X/Y/M_-space.
|
||||
|
||||
* `MultiPoint` or `MultiPointZ` or `MultiPointM`:
|
||||
A set of points.
|
||||
|
||||
* `MultiPatch`:
|
||||
A `MultiPatch` represents one or more surfaces in `X/Y/Z`-space, and consists of a number of parts called it's _surface_ _patches_. Each surface patch describes a either a surface or a hole in another surface, depending on the type of the patch. Patches may share a common boundary but may not otherwise intersect. The type of a patch may be one of
|
||||
|
||||
`TriangleStrip`:
|
||||
A set of connected triangles. The first three points define the first triangle and every following point defines a new triangle using the new point and the two previous points.
|
||||
|
||||
`TriangleFan`:
|
||||
A set of connected triangles. The first three points define the first triangle and every following point defines a new triangle using the previous point, the current point, and the first point, thus forming a fan of triangles around the first point.
|
||||
|
||||
`OuterRing`:
|
||||
The outer ring of a sequence of rings defining a polygon with holes. All following parts of type `InnerRing` are taken to be the holes of the polygon. The sequence of rings ends with the first non-`InnerRing` typed part or the part of the shape, whichever comes first.
|
||||
|
||||
`InnerRing`:
|
||||
An inner ring in a sequence of rings defining a polygon with holes. This type of part may only follow an `OuterRing` or other `InnerRing` typed parts.
|
||||
|
||||
`FirstRing`:
|
||||
The first in a sequence of rings defining a polygon of unspecified type. The following parts of type `Ring` defines the other rings in the polygon. This type of part is used when the innerness or outerness of a polygon isn't known or applicable. The sequence of rings defining the polygon ends with the first non-`Ring` typed part or the last part of the shape, whichever comes first.
|
||||
|
||||
`Ring`:
|
||||
A ring in a sequence of rings defining a polygon of unspecified type. It may only follow a `FirstRing` or other `Ring` typed parts.
|
||||
|
||||
`UknownPartType`:
|
||||
This type is returned for parts whose type isn't recognised.
|
||||
|
||||
* `UnknownShapeType`:
|
||||
This type is returned for shapes whose type isn't recognised.
|
||||
|
||||
##OPTIONS
|
||||
* -_validate_:
|
||||
count the number of objects that have invalid ring ordenings
|
||||
|
||||
Performs validation on the orientation of inner and outer rings in `Polygon`, `PolygonZ`, and `PolygonM` objects. According to the shapefile specification outer rings should be given a clockwise orientation, and inner rings that define holes a counterclockwise orientation. If some rings of a shape are oriented the wrong way around then the following message is output after dumping that shape:
|
||||
|
||||
_count_ rings wound in the wrong direction.
|
||||
|
||||
In addition the total number of shapes with problem rings is output after the last shape has been dumped:
|
||||
|
||||
_count_ object has invalid ring orderings.
|
||||
|
||||
* _shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
|
||||
* `1`:
|
||||
No shapefile _shp_file_ was given or it couldn't be opened.
|
||||
|
||||
##EXAMPLE
|
||||
$ shpdump shapefile.shp
|
||||
|
||||
Shapefile Type: Arc # of Shapes: 3
|
||||
|
||||
File Bounds: ( 3531586.750, 7253086.100,0,0)
|
||||
to ( 3536417.463, 7778375.875,0,0)
|
||||
|
||||
Shape:0 (Arc) nVertices=2, nParts=1
|
||||
Bounds:( 3536397.797, 7253086.100, 0, 0)
|
||||
to ( 3536417.463, 7253163.597, 0, 0)
|
||||
( 3536397.797, 7253163.597, 0, 0) Ring
|
||||
( 3536417.463, 7253086.100, 0, 0)
|
||||
|
||||
Shape:1 (Arc) nVertices=3, nParts=1
|
||||
Bounds:( 3458966.390, 7373335.808, 0, 0)
|
||||
to ( 3459141.856, 7373474.681, 0, 0)
|
||||
( 3458966.390, 7373474.681, 0, 0) Ring
|
||||
( 3458979.042, 7373466.273, 0, 0)
|
||||
( 3459141.856, 7373335.808, 0, 0)
|
||||
|
||||
Shape:2 (Arc) nVertices=7, nParts=1
|
||||
Bounds:( 3531586.750, 7777880.500, 0, 0)
|
||||
to ( 3532930.206, 7778375.875, 0, 0)
|
||||
( 3531586.750, 7777880.500, 0, 0) Ring
|
||||
( 3532228.265, 7778072.455, 0, 0)
|
||||
( 3532310.897, 7778119.445, 0, 0)
|
||||
( 3532367.866, 7778144.877, 0, 0)
|
||||
( 3532440.559, 7778168.920, 0, 0)
|
||||
( 3532506.504, 7778190.785, 0, 0)
|
||||
( 3532930.206, 7778375.875, 0, 0)
|
||||
|
||||
$
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
Unable to open:_shp_file_
|
||||
|
||||
##AUTHOR
|
||||
`shpdump` 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).
|
||||
|
||||
##BUGS
|
||||
The `-`_validate_ option supports only one outer ring in a polygonal shape and assumes that the first ring in a shape is the outer ring. It doesn't support polygons inside `MultiPatch` shapes. The _X_ and _Y_ coordinates of a point are printed to three decimal places only.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
shpdxf(1) -- creates a DXF from an existing shapefield
|
||||
======================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpdxf` _shapefile_ _idfield_
|
||||
|
||||
##OPTIONS
|
||||
* _shapefile_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
* _idfield_:
|
||||
attribute that will be used as id
|
||||
|
||||
##EXAMPLE
|
||||
`shpdxf` _shapefile_ _name_
|
||||
|
||||
##AUTHOR
|
||||
`shpxdf` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
shpfix(1) -- fix nulls and inconsistencies in shapefiles
|
||||
=========================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpfix` _in_shp_file_ _out_shp_file_ [_record# to blank_]
|
||||
|
||||
##OPTIONS
|
||||
* _in_shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
* _out_shp_file_:
|
||||
the name of the new fixed shapefile that will be created.
|
||||
|
||||
##EXAMPLE
|
||||
`shpfix` _broken_ _fixed_
|
||||
|
||||
##AUTHOR
|
||||
`shpfix` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
shpinfo(1) -- Displays basic information for a given shapefile
|
||||
==============================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpinfo` _shapefile_
|
||||
|
||||
##DESCRIPTION
|
||||
Displays basic information for a given shapefile, like shapefile type, number of objects and its extents.
|
||||
|
||||
##OPTIONS
|
||||
* _shapefile_:
|
||||
The name of an existing shapefile.
|
||||
|
||||
##EXAMPLE
|
||||
`shpinfo` _testpolygon_
|
||||
|
||||
Info for testpolygon
|
||||
Polygon(5), 1 Records in file
|
||||
File Bounds: ( 100000, 6000000)
|
||||
( 250000, 7000000)
|
||||
|
||||
##AUTHOR
|
||||
`shpinfo` 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.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
shprewind(1) -- validates and resets the winding order of rings
|
||||
===============================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shprewind` _in_shp_file_ _out_shp_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Validates and resets the winding order of rings in polygon geometries to match the ordering required by shapefile specification. This is useful for shapefiles having troubles when checked with a 'shpdump -validate'.
|
||||
|
||||
Makes a copy of the shapefile _in_shp_file_ to _out_shp_file_ and fixes the orientation of points in the rings of `Polygon`, `PolygonZ`, and `PolygonM` typed shapes to conform to the shapefile specification. According to the specification, the vertices of outer rings should be oriented clockwise on the _X/Y_ plane, and those of inner rings counterclockwise.
|
||||
|
||||
Shapefiles actually consist of two files with the same basename and extensions `.shp` and `.shx` (or `.SHP` and `.SHX`) containing the shape data and shape index respectively. The files to open are determined by first stripping any filename extension from _in_shp_file_ and attempting to open the files _in_shp_file_`.shp` or _in_shp_file_`.SHP`, and _in_shp_file_`.shx` or _in_shp_file_`.SHX` for the respective data and index files. The files to create from _out_shp_file_ are determined by stripping any filename extension from _out_shp_file_ and appending `.shp` and `.shx` suffixes for the respective data and index files.
|
||||
|
||||
##OPTIONS
|
||||
* _in_shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
* _out_shp_file_:
|
||||
the name of the new fixed shapefile that will be created.
|
||||
|
||||
##EXIT STATUS
|
||||
* `0`:
|
||||
Successful program execution.
|
||||
|
||||
* `1`:
|
||||
Missing _in_shp_file_ or _out_shp_file_ arguments, failed to open shapefile _in_shp_file_ or create shapefile _out_shp_file_.
|
||||
|
||||
##DIAGNOSTICS
|
||||
The following diagnostics may be issued on stdout:
|
||||
|
||||
Unable to open:_in_shp_file_
|
||||
|
||||
Unable to create:_out_shp_file_
|
||||
|
||||
_count_ objects rewound.
|
||||
|
||||
##EXAMPLE
|
||||
`shprewind` _badshapefile_ _newshapefile_
|
||||
|
||||
##AUTHOR
|
||||
`shprewind` 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).
|
||||
|
||||
##BUGS
|
||||
The implementation assumes that there is at most one outer ring in each shape, that it is the first ring in a shape, and all other rings in a shape are inner rings. Polygons inside `MultiPatch` shape types aren't rewound.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpadd`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
shpsort(1) -- rewrite a shapefile sorted by a field or by the geometry
|
||||
======================================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpsort` _infile_ _outfile_ _field[;...]_ [<(ASCENDING|DESCENDING)[;...]>]
|
||||
|
||||
##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.
|
||||
|
||||
##OPTIONS
|
||||
* _infile_:
|
||||
input shapefile
|
||||
|
||||
* _outfile_:
|
||||
output shapefile
|
||||
|
||||
* _field[;...]_:
|
||||
one or more fields to use for ordering
|
||||
|
||||
* [<(ASCENDING|DESCENDING)[;...]>]:
|
||||
sort order
|
||||
|
||||
##AUTHOR
|
||||
`shpsort` is part of shapelib, maintained by Frank Warmerdam.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
shptreedump(1) -- dump an ASCII representation of a quadtree
|
||||
============================================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shptreedump` [-maxdepth _n_] [-search _xmin_ _ymin_ _xmax_ _ymax_] [-v] [-o _indexfilename_] [-i _indexfilename_] _shp_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Utility for creating and dumping an ASCII representation of a quadtree.
|
||||
|
||||
##OPTIONS
|
||||
* -maxdepth _n_:
|
||||
max tree depth
|
||||
|
||||
* -search _xmin_ _ymin_ _xmax_ _ymax_:
|
||||
limit search to box
|
||||
|
||||
* -v:
|
||||
verbose output
|
||||
|
||||
* -o _indexfilename_:
|
||||
output index filename
|
||||
|
||||
* -i _indexfilename_:
|
||||
input index filename
|
||||
|
||||
* _shp_file_:
|
||||
the name of an existing shapefile.
|
||||
|
||||
##AUTHOR
|
||||
`shptreedump` is part of shapelib, maintained by Frank Warmerdam.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
shputils(1) -- shapefile utility
|
||||
================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shputils` _in_shp_file_ _out_shp_file_ _args_
|
||||
|
||||
##DESCRIPTION
|
||||
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.
|
||||
|
||||
OTHER FUNCTIONS:
|
||||
|
||||
- Describe all items in the dbase file (Use ALL for more than 5000 recs.)
|
||||
|
||||
- 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: 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: CUT is not complete and does not create intersections.
|
||||
For more information read programmer comment.
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
shpwkb(1) -- test WKB binary Input / Output
|
||||
===========================================
|
||||
|
||||
##SYNOPSIS
|
||||
`shpwkb` _shp_file_ _wkb_file_
|
||||
|
||||
##DESCRIPTION
|
||||
Utility to test WKB binary Input / Output.
|
||||
|
||||
##OPTIONS
|
||||
* _shp_file_:
|
||||
the name of an existing shapefile
|
||||
|
||||
* _wkb_file_:
|
||||
WKB output file
|
||||
|
||||
##AUTHOR
|
||||
`shpwkb` is part of shapelib, maintained by Frank Warmerdam.
|
||||
|
||||
##SEE ALSO
|
||||
`dbfadd`(1), `dbfcat`(1), `dbfcreate`(1), `dbfdump`(1), `dbfinfo`(1), `shpcat`(1), `shpcentrd`(1), `shpcreate`(1), `shpdump`(1), `shpdxf`(1), `shpfix`(1), `shpinfo`(1), `shpproj`(1), `shprewind`(1), `shptest`(1)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
Description: Remove double free() in contrib/shpsrt, issue #39
|
||||
Author: Albin Eldstål-Ahrens <laeder.keps@gmail.com>
|
||||
Origin: https://github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f
|
||||
Bug: https://github.com/OSGeo/shapelib/issues/39
|
||||
Bug-Debian: https://bugs.debian.org/1022557
|
||||
|
||||
--- a/contrib/shpsort.c
|
||||
+++ b/contrib/shpsort.c
|
||||
@@ -279,7 +279,6 @@ static char ** split(const char *arg, co
|
||||
free(result[--i]);
|
||||
}
|
||||
free(result);
|
||||
- free(copy);
|
||||
return NULL;
|
||||
}
|
||||
result = tmp;
|
|
@ -0,0 +1 @@
|
|||
0001-Remove-double-free-in-contrib-shpsrt-issue-39.patch
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# Enable hardening build flags
|
||||
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
BUILD_DATE := $(shell LC_ALL=C date -u "+%Y-%m-%d" -d "@$(SOURCE_DATE_EPOCH)")
|
||||
|
||||
UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_clean:
|
||||
dh_clean debian/man/*.1
|
||||
|
||||
override_dh_auto_build:
|
||||
dh_auto_build
|
||||
ronn -r --date="$(BUILD_DATE)" --manual=shplib debian/man/*.md
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install
|
||||
|
||||
# Don't install .la files
|
||||
$(RM) debian/*/usr/lib/*/*.la
|
||||
|
||||
override_dh_makeshlibs:
|
||||
dh_makeshlibs -- -v$(UPSTREAM_VERSION)
|
|
@ -0,0 +1 @@
|
|||
usr/bin
|
|
@ -0,0 +1,8 @@
|
|||
Document: shapelib
|
||||
Title: shapelib documentation
|
||||
Abstract: This manual describes the shapelib APIs and associated utilities.
|
||||
Section: Science/Geoscience
|
||||
|
||||
Format: HTML
|
||||
Index: /usr/share/doc/shapelib/index.html
|
||||
Files: /usr/share/doc/shapelib/*.html
|
|
@ -0,0 +1 @@
|
|||
web/*
|
|
@ -0,0 +1 @@
|
|||
usr/bin/*
|
|
@ -0,0 +1,3 @@
|
|||
# Not a problem
|
||||
national-encoding *
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
debian/man/*.1
|
||||
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -0,0 +1,3 @@
|
|||
# False positive
|
||||
source-is-missing [web/shapelib-tools.html]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
Bug-Database: https://github.com/OSGeo/shapelib/issues
|
||||
Bug-Submit: https://github.com/OSGeo/shapelib/issues/new
|
||||
Repository: https://github.com/OSGeo/shapelib.git
|
||||
Repository-Browse: https://github.com/OSGeo/shapelib
|
|
@ -0,0 +1,6 @@
|
|||
version=4
|
||||
opts=\
|
||||
dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$//,\
|
||||
uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/;s/RC/rc/ \
|
||||
https://download.osgeo.org/shapelib/ \
|
||||
(?:|.*/)shapelib(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)
|
Loading…
Reference in New Issue