Skip to content

mngr777/h3-split

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

The tool takes POLYGON or MULTIPOLYGON geometry in WKT format and cuts it by antimeridian.

split

Usage

$ split <wkt-filename>
$ echo <wkt> | split

(There are input examples in /example.)

Installation

Installing in /path/to/dir/install/bin:

# Create install directory
cd /path/to/dir
export WORKDIR=$(pwd)
export PREFIX="${WORKDIR}/install"
mkdir -p "$PREFIX"

# Clone h3-split repo
git clone https://github.com/mngr777/h3-split

# Clone h3 repo
git clone https://github.com/uber/h3.git --branch v4.0.1

# Build h3 library, install in `$PREFIX` using helper script
./h3-split/build-h3.sh "$PREFIX" h3

# Build h3-split, install in `$PREFIX`
cd h3-split
./autogen.sh
mkdir -p build && cd build
CFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib" ../configure --prefix "$PREFIX"
make && make install

# The tool has been installed in $WORKDIR/install/bin

cd "$WORKDIR"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.5%
  • Makefile 1.3%
  • Other 1.2%