[prepair] 02/02: Install documentation, also install example data in separate arch indep package.
Bas Couwenberg
sebastic at xs4all.nl
Fri Nov 28 02:29:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
sebastic-guest pushed a commit to branch master
in repository prepair.
commit e639abfe211c213a6fda57744a6b34191e6e5ca2
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Nov 28 03:03:11 2014 +0100
Install documentation, also install example data in separate arch indep package.
---
debian/control | 16 ++++++++++++-
debian/patches/readme-example-paths.patch | 38 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/prepair-data.examples | 1 +
debian/prepair.docs | 1 +
debian/rules | 3 +++
6 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 1c87e61..f429a3d 100644
--- a/debian/control
+++ b/debian/control
@@ -18,7 +18,8 @@ Homepage: https://github.com/tudelft3d/prepair
Package: prepair
Architecture: any
-Depends: ${shlibs:Depends},
+Depends: prepair-data,
+ ${shlibs:Depends},
${misc:Depends}
Recommends: pprepair
Description: polygon repair tool
@@ -29,3 +30,16 @@ Description: polygon repair tool
ambiguous or ill-defined polygons and giving a coherent and clearly
defined output.
+Package: prepair-data
+Architecture: all
+Depends: ${misc:Depends}
+Description: polygon repair tool -- example data
+ prepair permits you to easily repair "broken" GIS polygons, and that
+ according to the international standards ISO 19107. In brief, given a
+ polygon stored in WKT, it automatically repairs it and gives you back
+ a valid WKT. Automated repair methods can be considered as interpreting
+ ambiguous or ill-defined polygons and giving a coherent and clearly
+ defined output.
+ .
+ This package contains the architecture independent example data.
+
diff --git a/debian/patches/readme-example-paths.patch b/debian/patches/readme-example-paths.patch
new file mode 100644
index 0000000..826b642
--- /dev/null
+++ b/debian/patches/readme-example-paths.patch
@@ -0,0 +1,38 @@
+Description: Change the paths to work the files as installed by the package.
+Author: Bas Couwenberg <sebastic at xs4all.nl>
+
+--- a/README.md
++++ b/README.md
+@@ -39,26 +39,26 @@ Afterwards run:
+
+ A [WKT](http://en.wikipedia.org/wiki/Well-known_text) or an OGR dataset (shapefile, geojson or GML for instance) is read as input, and a WKT or a shapefile (a MultiPolygon) is given as output:
+
+- $ ./prepair --wkt 'POLYGON((0 0, 0 10, 10 0, 10 10, 0 0))'
++ $ prepair --wkt 'POLYGON((0 0, 0 10, 10 0, 10 10, 0 0))'
+ MULTIPOLYGON (((0 10,0 0,5 5,0 10)),((5 5,10 0,10 10,5 5)))
+
+- $ ./prepair --ogr myfile.shp
++ $ prepair --ogr myfile.shp
+ MULTIPOLYGON (((0 10,0 0,5 5,0 10)),((5 5,10 0,10 10,5 5)))
+
+- $ ./prepair --shpOut --ogr data/CLC2006_180927.geojson
++ $ prepair --shpOut --ogr /usr/share/doc/prepair-data/examples/data/CLC2006_180927.geojson
+ Creating out.shp
+
+ [Snap rounding](http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Snap_rounding_2/Chapter_main.html) of the input segments can be performed:
+
+- $ /prepair --isr 2 --wkt "POLYGON((0 0, 10 0, 15 5, 10 0, 10 10, 0 10, 0 0))"
++ $ prepair --isr 2 --wkt "POLYGON((0 0, 10 0, 15 5, 10 0, 10 10, 0 10, 0 0))"
+ MULTIPOLYGON (((11 1,11 11,1 11,1 1,11 1)))
+
+ It's possible to remove small (sliver) polygons in the output by giving the smallest area allowed:
+
+- $ ./prepair --wkt 'POLYGON((0 0, 10 0, 10 11, 11 10, 0 10))'
++ $ prepair --wkt 'POLYGON((0 0, 10 0, 10 11, 11 10, 0 10))'
+ MULTIPOLYGON (((10 0,10 10,0 10,0 0,10 0)),((11 10,10 11,10 10,11 10)))
+
+- $ ./prepair --wkt 'POLYGON((0 0, 10 0, 10 11, 11 10, 0 10))' --minarea 1
++ $ prepair --wkt 'POLYGON((0 0, 10 0, 10 11, 11 10, 0 10))' --minarea 1
+ Removing polygons smaller than 1 unit^2.
+ MULTIPOLYGON (((10 0,10 10,0 10,0 0,10 0)))
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a149f95
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+readme-example-paths.patch
diff --git a/debian/prepair-data.examples b/debian/prepair-data.examples
new file mode 100644
index 0000000..8fce603
--- /dev/null
+++ b/debian/prepair-data.examples
@@ -0,0 +1 @@
+data/
diff --git a/debian/prepair.docs b/debian/prepair.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/prepair.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/rules b/debian/rules
index 6084bb6..942c04c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,3 +19,6 @@ override_dh_auto_build:
dh_auto_build
+override_dh_compress:
+ dh_compress -X.geojson
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/prepair.git
More information about the Pkg-grass-devel
mailing list