[proj-rdnap] 02/09: Initial debian packaging.

Bas Couwenberg sebastic at xs4all.nl
Tue Nov 25 21:53:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository proj-rdnap.

commit feaa674c1fa29da1936a632e056ac1469d25df79
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Oct 4 03:27:04 2014 +0200

    Initial debian packaging.
---
 debian/README.Debian      | 132 ++++++++++++++++++++++++++++++++++++++++++++++
 debian/changelog          |   5 ++
 debian/compat             |   1 +
 debian/control            |  57 ++++++++++++++++++++
 debian/copyright          | 110 ++++++++++++++++++++++++++++++++++++++
 debian/get-orig-source    |  57 ++++++++++++++++++++
 debian/proj-rdnap.docs    |   1 +
 debian/proj-rdnap.install |   3 ++
 debian/rdnap              |   5 ++
 debian/rules              |  10 ++++
 debian/source/format      |   1 +
 11 files changed, 382 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..286b91e
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,132 @@
+RDNAP for Debian
+================
+
+Kadaster and Rijkswaterstaat CIV, working together under the name RDNAP,
+developed RDNAPTRANSTM2008, the precise and official transformation
+between ETRS89 and the dutch national horizontal and vertical coordinate
+reference systems the Stelsel van de Rijksdriehoeksmeting (RD) and the
+Normaal Amsterdams Peil (NAP).
+
+The Kadaster website has some general information (in dutch) about RDNAP
+transformation at: 
+
+https://www.kadaster.nl/web/Themas/Registraties/Rijksdriehoeksmeting/Transformatie-van-coordinaten.htm
+
+To download the RDNAPTRANSTM2008.zip file you need to fill in a form that
+requires your name, email address and phone number, before you're redirected
+to the download page.
+
+Direct links to the relevant pages:
+
+- RDNAPTRANS2008 request form
+  https://www.kadaster.nl/web/formulier/Rijksdriehoeksmeting-formulieren/Aanvraag-download-RDNAPTRANS2008.htm
+
+- RDNAPTRANS2008 download page
+  https://www.kadaster.nl/web/show?mode=preview&contentid=9674&id=107118&l_id=17022&webid=26098
+
+- RDNAPTRANS2008.zip file
+  https://www.kadaster.nl/web/file?uuid=f7ea740f-0f3c-402a-bf34-896dac7d557f&owner=23cbe925-35ce-4a72-ac8c-a33a0c19ae1e&contentid=9675
+
+The license contained in the RDNAPTRANS2008.zip file is problematic, because
+it doesn't allow distribution. The license is documented in the file
+"Use of RDNAPTRANS2008.doc" (use `antiword "Use of RDNAPTRANS2008.doc"` to
+display it in a terminal). It says:
+
+"
+ Use of the name RDNAPTRANSTM2008
+
+ Kadaster and Rijkswaterstaat DID, working together under the name RDNAP,
+ developed RDNAPTRANSTM2008 the precise and official transformation between
+ ETRS89 and RD/NAP for the Netherlands. This transformation will replace
+ RDNAPTRANSTM2008 as a result of a re-adjustment of the ETRS89 coordinates
+ of the AGRS.NL-stations. The validity of RDNAPTRANSTM2008  will start 25-04-
+ 2009. The validity of RDNAPTRANSTM2004 will stop 1-4-2010.
+
+ RDNAP makes the program rdnaptrans2008 and accessory data files for
+ RDNAPTRANSTM2008 freely available under the following conditions:
+
+   1. rdnaptrans2008 gives examples of routines for the transformation.
+      RDNAP is not responsible for the correctness of a program using these
+      routines.
+   2. rdnaptrans2008 may not be distributed to others.
+   3. The trademark in RDNAPTRANSTM2008 indicates that all rights on the use
+      of this name are in the hands of Kadaster and DID.
+
+ A written permission for the use of the name RDNAPTRANSTM2008 can be
+ obtained by sending this completely filled in sheet to:
+ RDNAP p/a
+ Kadaster GEO/MB/GRS
+ P.O. box 9046
+ 7300 GH Apeldoorn
+ or fax to:
+ 0031 (0)88 183 2079
+ .
+ .
+ The permission for the use of the name RDNAPTRANSTM2008 can be stopped by
+ RDNAP at any moment when the software does not meet the specifications as
+ mentioned at the RDNAPTRANSTM2008 test sheet in the appendix.
+"
+
+The RDNAPTRANS2008.zip file contains another zip file: NTv2_2008.zip. The
+NTv2_2008.zip file contains a different license which limits modification
+but allows distribution. The license is documented in the file 
+"Use of RDTRANS2008 and NAPTRANS2008.pdf" (use
+`pdf2txt "Use of RDTRANS2008 and NAPTRANS2008.pdf"` to display it in a
+terminal). It says:
+"
+ License
+
+ RDNAP makes the rdtrans2008.gsb and naptrans.gtx grid correction files
+ freely available.
+ Implementation and distribution of the rdtrans2008 NTv2-grid and
+ naptrans2008 VDatum-grid in combination with other tools/software that
+ require these grids for transformation between ETRS89 and RD/NAP is allowed,
+ under the following conditions:
+
+    1. It is not allowed to modify the correction values of the grid
+       correction files. (It is allowed to convert the grid data to a
+       different file format or data structure as long as this does not
+       affect the results of the calculations.)
+    2. It should be clear from the documentation of the software using the
+       grid correction files that the transformation procedure using the grid
+       correction files is not identical to RDNAPTRANS™2008.
+    3. The correct implementation of the grid corrections has to be tested as
+       specified in Appendix 2
+
+ Disclaimer
+
+ The correction grids for RD and NAP in NTv2 and VDatum format are provided
+ ‘as is’ and any express or implied warranties, including, but not limited
+ to, the implied warranties of merchantability and fitness for a particular
+ purpose are disclaimed. In no event shall Kadaster or Rijkswaterstaat be
+ liable for any direct, indirect, incidental, special, exemplary or
+ consequential damages (including but not limited to procurement of substitute
+ goods or services, loss of use, data or profits, or business interruption)
+ however caused and on any theory of liability, whether in contract, strict
+ liability, or tort (including negligence or otherwise) arising in any way out
+ of the use of the correction grids for RD and NAP in NTv2 and Vdatum format.”
+"
+
+The get-orig-source script dowloads the RDNAPTRANS2008.zip file, extracts
+the content of NTv2_2008.zip file from within it, and creates a tarball
+from the NTv2_2008.zip file content (documentation in PDF and grid files).
+
+To use the grid correction files the definitions as suggested by Kadaster
+are available in the /usr/share/proj/rdnap file:
+
+ # RDNAP with NTv2 and VDatum
+ <rdnap> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +nadgrids=rdtrans2008.gsb +geoidgrids=naptrans2008.gtx +units=m +no_defs <>
+
+ # RD with NTv2 only
+ <rd> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +nadgrids=rdtrans2008.gsb +units=m +no_defs <>
+
+These were suggested by Lennard Huisman from Kadaster on the Dutch OSGeo
+mailinglist:
+
+http://lists.osgeo.org/pipermail/dutch/2014-October/000975.html
+
+To use these definitions with cs2s specify the rnap file:
+
+ cs2cs +init=rdnap:rdnap +to +init=epsg:4258
+ cs2cs +init=rdnap:rd +to +init=epsg:4258
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..65e076f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+proj-rdnap (2008-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Bas Couwenberg <sebastic at xs4all.nl>  Fri, 03 Oct 2014 23:19:02 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0729a9f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,57 @@
+Source: proj-rdnap
+Section: non-free/science
+Priority: optional
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at xs4all.nl>
+Build-Depends: debhelper (>= 9),
+               proj-bin,
+               proj-data
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/proj-rdnap.git
+Vcs-Git: git://anonscm.debian.org/pkg-grass/proj-rdnap.git
+Homepage: https://www.kadaster.nl/web/Themas/Registraties/Rijksdriehoeksmeting/Transformatie-van-coordinaten.htm
+
+Package: proj-rdnap
+Architecture: all
+Depends: proj-data,
+         ${misc:Depends}
+Recommends: proj-bin
+Suggests: python-pdfminer
+Description: RDNAP grid correction files for PROJ.4
+ Kadaster and Rijkswaterstaat CIV, working together under the name RDNAP,
+ developed RDNAPTRANS™2008, the precise and official transformation
+ between ETRS89 and the dutch national horizontal and vertical coordinate
+ reference systems the Stelsel van de Rijksdriehoeksmeting (RD) and the
+ Normaal Amsterdams Peil (NAP). A ‘simplified’ procedure has been
+ devolped which uses a NTv2-grid for the transformation between ETRS89
+ and RD as well as a VDatum-grid for the transformation between ETRS89
+ and NAP. This ‘simplified’ procedure has the following limitations:
+ .
+  1) The rdtrans2008 NTv2-grid can only give identical results to
+     RDNAPTRANS™2008 within 1 millimeter at ground level onshore and at
+     mean seal level offshore. The horizontal deviation is approximately
+     1 millimeter per 50 meter height difference from ground level or mean
+     sea level.
+  2) An exception to 1) is the border of the RDNAPTRANS™2008 correction
+     grid. Transformation results within cells of the rdtrans2008 NTv2-grid
+     that are intersected by the border of the RDNAPTRANS™2008 correction
+     grid can result in deviations of up to 20 centimeter.
+  3) The naptrans2008 VDatum-grid cannot be used to determine deflections
+     of the vertical. For this the NLGEO2004 geoid model has to be used.
+  4) The naptrans2008 VDatum-grid is referenced to the Bessel-1841 ellipsoid
+     and cannot be used stand-alone, it has to be used in combination with
+     the rdtrans2008 NTv2-grid.
+ .
+ Taking into account the limitations listed above, the rdtrans2008 NTv2-grid
+ and naptrans2008 VDatum-grid can be used as an alternative to
+ RDNAPTRANS™2008 to transform geographic ETRS89-coordinates to
+ projected RD-coordinates with grid correction applied and NAP-heights.
+ The figure in appendix 1 shows the precise and official RDNAPTRANS™2008
+ flow-chart on the left and on the right the flow-chart for the ‘simplified’
+ procedure.
+ .
+ Note that, although the resulting RD/NAP and ETRS89 coordinates from the
+ transformation will be correct, geographic Bessel-1841 coordinates will
+ differ in both procedures and should only be considered as an intermediate
+ result.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ae7d64a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,110 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: proj-rdnap
+Source: https://www.kadaster.nl/web/file?uuid=f7ea740f-0f3c-402a-bf34-896dac7d557f&owner=23cbe925-35ce-4a72-ac8c-a33a0c19ae1e&contentid=9675
+Comment: The license for RDNAPTRANS2008 doesn't allow modification.
+ The license in the RDNAPTRANS2008.zip file doesn't allow redistribution
+ and has a trademark clause for the use of the name. The license says:
+ .
+ --------------------------------------------------------------------------
+ Use of the name RDNAPTRANSTM2008
+ .
+ Kadaster and Rijkswaterstaat DID, working together under the name RDNAP,
+ developed RDNAPTRANSTM2008 the precise and official transformation between
+ ETRS89 and RD/NAP for the Netherlands. This transformation will replace
+ RDNAPTRANSTM2008 as a result of a re-adjustment of the ETRS89 coordinates
+ of the AGRS.NL-stations. The validity of RDNAPTRANSTM2008  will start 25-04-
+ 2009. The validity of RDNAPTRANSTM2004 will stop 1-4-2010.
+ .
+ RDNAP makes the program rdnaptrans2008 and accessory data files for
+ RDNAPTRANSTM2008 freely available under the following conditions:
+ .
+   1. rdnaptrans2008 gives examples of routines for the transformation.
+      RDNAP is not responsible for the correctness of a program using these
+      routines.
+   2. rdnaptrans2008 may not be distributed to others.
+   3. The trademark in RDNAPTRANSTM2008 indicates that all rights on the use
+      of this name are in the hands of Kadaster and DID.
+ .
+ A written permission for the use of the name RDNAPTRANSTM2008 can be
+ obtained by sending this completely filled in sheet to:
+ RDNAP p/a
+ Kadaster GEO/MB/GRS
+ P.O. box 9046
+ 7300 GH Apeldoorn
+ or fax to:
+ 0031 (0)88 183 2079
+ .
+ .
+ The permission for the use of the name RDNAPTRANSTM2008 can be stopped by
+ RDNAP at any moment when the software does not meet the specifications as
+ mentioned at the RDNAPTRANSTM2008 test sheet in the appendix.
+ --------------------------------------------------------------------------
+ .
+ The grid correction files are contained in the NTv2_2008.zip file which
+ is part of the RDNAPTRANS2008.zip file content. The NTv2_2008.zip file
+ uses a different license that has limits modification, but allows
+ distribution.
+ .
+ The get-orig-source script dowloads the RDNAPTRANS2008.zip file, extracts
+ the content of NTv2_2008.zip file from within it, and creates a tarball
+ from it.
+
+Files: *
+Copyright: Kadaster and Rijkswaterstaat CIV, working together under the name RDNAP
+License: RDNAPTRANS2008-NTv2
+
+Files: debian/*
+Copyright: © 2013, Bas Couwenberg <sebastic at xs4all.nl>
+License: GPL-2.0+
+
+License: RDNAPTRANS2008-NTv2
+ License
+ .
+ RDNAP makes the rdtrans2008.gsb and naptrans.gtx grid correction files
+ freely available.
+ Implementation and distribution of the rdtrans2008 NTv2-grid and
+ naptrans2008 VDatum-grid in combination with other tools/software that
+ require these grids for transformation between ETRS89 and RD/NAP is allowed,
+ under the following conditions:
+ .
+    1. It is not allowed to modify the correction values of the grid
+       correction files. (It is allowed to convert the grid data to a
+       different file format or data structure as long as this does not
+       affect the results of the calculations.)
+    2. It should be clear from the documentation of the software using the
+       grid correction files that the transformation procedure using the grid
+       correction files is not identical to RDNAPTRANS™2008.
+    3. The correct implementation of the grid corrections has to be tested as
+       specified in Appendix 2
+ .
+ Disclaimer
+ .
+ The correction grids for RD and NAP in NTv2 and VDatum format are provided
+ ‘as is’ and any express or implied warranties, including, but not limited
+ to, the implied warranties of merchantability and fitness for a particular
+ purpose are disclaimed. In no event shall Kadaster or Rijkswaterstaat be
+ liable for any direct, indirect, incidental, special, exemplary or
+ consequential damages (including but not limited to procurement of substitute
+ goods or services, loss of use, data or profits, or business interruption)
+ however caused and on any theory of liability, whether in contract, strict
+ liability, or tort (including negligence or otherwise) arising in any way out
+ of the use of the correction grids for RD and NAP in NTv2 and Vdatum format.”
+
+License: GPL-2.0+
+ 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 2 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 program; 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 version 2 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..dd27c6b
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,57 @@
+#!/bin/sh
+# if you need to repack for whatever reason you can
+# use this script via uscan or directly
+#
+# FIXME: currently the code is not conform to Debian Policy
+#        http://www.debian.org/doc/debian-policy/ch-source.html
+#        "get-orig-source (optional)"
+#        This target may be invoked in any directory, ...
+# --> currently it is assumed the script is called in the
+#     source directory featuring the debian/ dir
+
+COMPRESS=xz
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+
+# RDNAPTRANS2008
+# https://www.kadaster.nl/web/file?uuid=f7ea740f-0f3c-402a-bf34-896dac7d557f&owner=23cbe925-35ce-4a72-ac8c-a33a0c19ae1e&contentid=9675
+#
+# Download page:
+# https://www.kadaster.nl/web/show?mode=preview&contentid=9674&id=107118&l_id=17022&webid=26098
+
+if ! echo $@ | grep -q upstream-version ; then
+    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+    wget "https://www.kadaster.nl/web/file?uuid=f7ea740f-0f3c-402a-bf34-896dac7d557f&owner=23cbe925-35ce-4a72-ac8c-a33a0c19ae1e&contentid=9675" -O ../RDNAPTRANS2008.zip
+else
+    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
+    if echo "$VERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
+
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+
+unzip ../RDNAPTRANS2008.zip -d RDNAPTRANS2008
+
+# RDNAPTRANS2008.zip is not redistributable! 
+# The grid correction files for PROJ.4 are shipped in the file NTv2_2008.zip,
+# which is more premissivly licensed.
+
+unzip RDNAPTRANS2008/NTv2_2008.zip
+
+UPSTREAMTARDIR="NTv2_2008/"
+TARDIR=${NAME}-${VERSION}
+
+if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then
+    mv "${UPSTREAMTARDIR}" "${TARDIR}"
+fi
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf ../"$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+cd ../
+rm -rf tarballs
diff --git a/debian/proj-rdnap.docs b/debian/proj-rdnap.docs
new file mode 100644
index 0000000..a136337
--- /dev/null
+++ b/debian/proj-rdnap.docs
@@ -0,0 +1 @@
+*.pdf
diff --git a/debian/proj-rdnap.install b/debian/proj-rdnap.install
new file mode 100644
index 0000000..e8a5641
--- /dev/null
+++ b/debian/proj-rdnap.install
@@ -0,0 +1,3 @@
+naptrans2008.gtx usr/share/proj/
+rdtrans2008.gsb  usr/share/proj/
+debian/rdnap     usr/share/proj/
diff --git a/debian/rdnap b/debian/rdnap
new file mode 100644
index 0000000..2f4e531
--- /dev/null
+++ b/debian/rdnap
@@ -0,0 +1,5 @@
+# RDNAP with NTv2 and VDatum
+<rdnap> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +nadgrids=rdtrans2008.gsb +geoidgrids=naptrans2008.gtx +units=m +no_defs <>
+
+# RD with NTv2 only
+<rd> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +nadgrids=rdtrans2008.gsb +units=m +no_defs <>
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6c5e98f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+%:
+	dh $@
+
+get-orig-source:
+	. debian/get-orig-source
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/proj-rdnap.git



More information about the Pkg-grass-devel mailing list