From d928db15d53805d9b728b440079756081961c536 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 14 Nov 2018 17:40:42 +0100 Subject: Implement RFC 2: Initial integration of "GDAL SRS barn" work This work mostly consists of: - a C++ implementation of the ISO-19111:2018 / OGC Topic 2 "Referencing by coordinates" classes to represent Datums, Coordinate systems, CRSs (Coordinate Reference Systems) and Coordinate Operations. - methods to convert between this C++ modeling and WKT1, WKT2 and PROJ string representations of those objects - management and query of a SQLite3 database of CRS and Coordinate Operation definition - a C API binding part of those capabilities This is all-in-one squashed commit of the work of https://github.com/OSGeo/proj.4/pull/1040 --- scripts/gen_html_coverage.sh | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'scripts/gen_html_coverage.sh') diff --git a/scripts/gen_html_coverage.sh b/scripts/gen_html_coverage.sh index 95dfb1af..bb239fbf 100755 --- a/scripts/gen_html_coverage.sh +++ b/scripts/gen_html_coverage.sh @@ -1,5 +1,43 @@ #!/bin/sh set -eu + +# To filter only on c++ stuff: +# scripts/gen_html_coverage.sh -ext "*.cpp,*.hh" + +SCRIPT_DIR=$(dirname "$0") +case $SCRIPT_DIR in + "/"*) + ;; + ".") + SCRIPT_DIR=$(pwd) + ;; + *) + SCRIPT_DIR=$(pwd)/$(dirname "$0") + ;; +esac + +FILTER="" +if test $# -ge 1; then + if test "$1" = "--help"; then + echo "Usage: gen_html_coverage.sh [--help] [-ext \"ext1,...\"]" + exit + fi + + if test "$1" = "-ext"; then + FILTER="$2" + shift + shift + fi + + if test $# -ge 1; then + echo "Invalid option: $1" + echo "Usage: gen_html_coverage.sh [--help] [-ext \"ext1,...\"]" + exit + fi +fi + rm -rf coverage_html -lcov --directory src --capture --output-file proj.info +lcov --directory src --directory include --capture --output-file proj.info +"$SCRIPT_DIR"/filter_lcov_info.py "$FILTER" < proj.info > proj.info.filtered +mv proj.info.filtered proj.info genhtml -o ./coverage_html --ignore-errors source --num-spaces 2 proj.info -- cgit v1.2.3