Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 823 Bytes

shapely.md

File metadata and controls

33 lines (24 loc) · 823 Bytes

trimesh, shapely issues

If you are having any issues running evaluation because shapely cannot find geos_c.h or similar, you may find the steps below help you:

  1. Download GEOS
  2. Unpack and install
tar xvfj geos-3.11.1.tar.bz2
cd geos-3.11.1 mkdir _build 
cd _build # Set up the build
 cmake \
 -DCMAKE_BUILD_TYPE=Release \
 -DCMAKE_INSTALL_PREFIX=/usr/local \
make
ctest
make install DESTDIR=<...>
  1. Set the following environment variables:
export GEOS_LIBRARY_PATH=<DESTDIR>/lib
export GEOS_INCLUDE_PATH=<DESTDIR>/include
export LD_LIBRARY_PATH=<DESTDIR>/lib 

With <DESTDIR> being the path to the directory you installed GEOS to.

  1. pip install shapely

You may also need to define those environment variables whenver you run eval.py