[Git][debian-gis-team/proj-rdnap][master] Don't install rdnap init file for PROJ 6 or later (not compatible).

Bas Couwenberg gitlab at salsa.debian.org
Wed May 8 08:21:20 BST 2019



Bas Couwenberg pushed to branch master at Debian GIS Project / proj-rdnap


Commits:
bb3cdbfd by Bas Couwenberg at 2019-05-08T07:13:33Z
Don't install rdnap init file for PROJ 6 or later (not compatible).

- - - - -


4 changed files:

- debian/README.Debian
- debian/changelog
- debian/proj-rdnap.install
- debian/rules


Changes:

=====================================
debian/README.Debian
=====================================
@@ -113,7 +113,7 @@ 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:
+are available in the /usr/share/proj/rdnap file when using PROJ < 6:
 
  # 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 <>
@@ -124,13 +124,18 @@ are available in the /usr/share/proj/rdnap file:
 These were suggested by Lennard Huisman from Kadaster on the Dutch OSGeo
 mailinglist:
 
-https://lists.osgeo.org/pipermail/dutch/2014-October/000975.html
+ https://lists.osgeo.org/pipermail/dutch/2014-October/000975.html
 
-To use these definitions with cs2s specify the rnap file:
+To use these definitions with cs2cs specify the rnap file:
 
  cs2cs +init=rdnap:rdnap +to +init=epsg:4258
  cs2cs +init=rdnap:rd +to +init=epsg:4258
 
+To use the grid files with cs2s when using PROJ 6 or later,
+use EPSG:7415 & EPSG:4937:
+
+ cs2cs EPSG:7415 +to EPSG:4937
+
 Beware that the transformation procedure is not identical to RDNAPTRANS™2008.
 
 The file "Use of RDTRANS2008 and NAPTRANS2008.pdf" documents a list of


=====================================
debian/changelog
=====================================
@@ -4,6 +4,7 @@ proj-rdnap (2008-9) UNRELEASED; urgency=medium
   * Add support for PROJ 6.0.0.
   * Remove package name from lintian overrides.
   * Replace tabs with spaces in test script.
+  * Don't install rdnap init file for PROJ 6 or later (not compatible).
 
  -- Bas Couwenberg <sebastic at debian.org>  Thu, 05 Jul 2018 10:57:23 +0200
 


=====================================
debian/proj-rdnap.install
=====================================
@@ -1,3 +1,2 @@
 naptrans2008.gtx usr/share/proj/
 rdtrans2008.gsb  usr/share/proj/
-debian/rdnap     usr/share/proj/


=====================================
debian/rules
=====================================
@@ -14,5 +14,13 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	fi
 endif
 
+override_dh_install:
+	dh_install
+
+	if [ 6 -gt "$(shell cs2cs 2>&1 | head -1 | cut -d' ' -f2 | cut -d'.' -f1)" ]; then \
+		mkdir -p $(CURDIR)/debian/proj-rdnap/usr/share/proj; \
+		cp -v $(CURDIR)/debian/rdnap $(CURDIR)/debian/proj-rdnap/usr/share/proj/rdnap; \
+	fi
+
 get-orig-source:
 	. debian/get-orig-source



View it on GitLab: https://salsa.debian.org/debian-gis-team/proj-rdnap/commit/bb3cdbfdbdf7b483d763af5179318b276183b136

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/proj-rdnap/commit/bb3cdbfdbdf7b483d763af5179318b276183b136
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20190508/3b128b56/attachment-0001.html>


More information about the Pkg-grass-devel mailing list