File: compare.sh

package info (click to toggle)
antimeridian 0.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,964 kB
  • sloc: python: 1,172; sh: 8; makefile: 4
file content (14 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh
#
# Compare ogr2ogr -wrapdateline with our package.

set -e

root="$(cd "$(dirname -- "$1")" >/dev/null; pwd -P)/$(basename -- "$1")"
destination="$root/tests/data/ogr2ogr"
mkdir -p $destination

for path in $root/tests/data/input/*.json; do
    file_name="${path##*/}"
    ogr2ogr -of GeoJSON -wrapdateline "$destination/$file_name" $path
done