Closed hausfath closed 2 years ago
Hi, Are you using macOSX Mojave?
I use Mojave, and install basemap
by using source version 1.2.0. I use brew to install all of dependencies like you do :
brew install proj
brew install geos
pip3 install git+https://github.com/jswhit/pyproj.git
cd ../basemap
python3 setup.py install
everything is working fine. I use geos 3.7.0.
My only problems is it installed as :
/usr/local/lib/python3.7/site-packages/basemap-1.2.0-py3.7-macosx-10.14-x86_64.egg
not inside /usr/local/lib/python3.7/site-packages/mpl_toolkit
if I installed it from source.
This is fix my problems :
pip3 install -U git+https://github.com/matplotlib/basemap.git
and you should use matplotlib < 3.0.1
BTW, had the same issue, reinstalling pyproj
from git solved it
pip3 install git+https://github.com/jswhit/pyproj.git
_ /usr/local/include/geos_c.h:1380:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeqsetY(GEOSCoordSequence s, ^ src/_geoslib.c:3803:42: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct
Hi,
I'm trying to install basemap and experienced the same problem. Were you able to successfully install the package eventually?
Thank you!
Hi @dobrych, I experienced the same problem as hausfath did. I tried reinstalling pyproj as you suggested but it didn't work. The errors seem to be related to geos. Is there a way to test if geos is installed properly? I tried "import geos" from python and got "No module named 'geos'". Any more suggestions? Thank you!
Hi @wardhani, I'm using Mojave and did everything you did except that I'm using geos version is 3.7.2 because there's no 3.7.0 available. It didn't work. Got 15 error messages seemly about geos. And I tried pip3 install -U git+https://github.com/matplotlib/basemap.git that fixed your problem. It said "successfully installed" when I ran it but when I go to python and ran "from mpl_toolkits.basemap import Basemap", no module found. Any suggestions? Thank you!
Hello Guys, I also encounter the same problem on my mac, did you solve it ? Cheers, Wenjie
In your case, basemap
was failing to build because of the _geoslib
wrapper around the GEOS library that is provided with basemap
. Before basemap
version 1.3.0, the repository contained a C file with the result of compiling the Cython file _geoslib.pyx
into C code. This C code was generated running Cython in an older Python version (<3.7), and it contains symbols that have been removed from the CPython implementation in 3.7+ (exc_type
, exc_value
, exc_traceback
).
To deal with this problem, I have removed this C file in the basemap
1.3.x series. Instead, only the Cython file _geoslib.pyx
remains in the repository, and the C file is now generated at build time for your specific Python version. This means that you will need to have Cython installed to build basemap
(apart from GEOS of course).
Maybe you can give another try by installing basemap
directly from the latest version in the repository:
python -m pip install https://github.com/matplotlib/basemap/archive/refs/tags/v1.3.1.zip#subdirectory=packages/basemap
If you still encounter problems, feel free to comment it here and we can try to help.
I am closing this issue since the pre-generated C file for _geoslib
was removed in basemap
version 1.3.0 and is generated at build time for the running Python version. With the basemap
release 1.3.4, it should be possible for Mac users to install basemap
directly from the source distribution in PyPI (as long as there is a C compiler plus GEOS in the system):
python -m pip install basemap
I'm running Python 3.9.2 on macOS Big Sur 11.6.8. basemap
is failing installation similar to the above comments. Here are the outputs from the installation attempt.
pipenv run python -m pip install basemap
Collecting basemap
Using cached basemap-1.3.4.zip (155 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting basemap-data<1.4,>=1.3.2
Using cached basemap_data-1.3.2-py2.py3-none-any.whl (30.5 MB)
Collecting matplotlib<3.6,>=1.5
Using cached matplotlib-3.5.3-cp39-cp39-macosx_10_9_x86_64.whl (7.3 MB)
Collecting pyshp<2.4,>=1.2
Using cached pyshp-2.3.1-py2.py3-none-any.whl (46 kB)
Requirement already satisfied: numpy<1.24,>=1.22 in ./.venv/lib/python3.9/site-packages (from basemap) (1.23.4)
Collecting pyproj<3.4.0,>=1.9.3
Using cached pyproj-3.3.1-cp39-cp39-macosx_10_9_x86_64.whl (8.2 MB)
Requirement already satisfied: python-dateutil>=2.7 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (2.8.2)
Requirement already satisfied: pillow>=6.2.0 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (9.2.0)
Requirement already satisfied: cycler>=0.10 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (1.4.4)
Requirement already satisfied: pyparsing>=2.2.1 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (3.0.9)
Requirement already satisfied: fonttools>=4.22.0 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (4.37.4)
Requirement already satisfied: packaging>=20.0 in ./.venv/lib/python3.9/site-packages (from matplotlib<3.6,>=1.5->basemap) (21.3)
Requirement already satisfied: certifi in ./.venv/lib/python3.9/site-packages (from pyproj<3.4.0,>=1.9.3->basemap) (2022.9.24)
Requirement already satisfied: six>=1.5 in ./.venv/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib<3.6,>=1.5->basemap) (1.16.0)
Building wheels for collected packages: basemap
Building wheel for basemap (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for basemap (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
<string>:58: RuntimeWarning: Cannot find GEOS library and/or headers in standard locations ('/Users/mrashid/local', '/Users/mrashid', '/usr/local', '/usr', '/opt/local', '/opt', '/sw'). Please install the corresponding packages using your software management system or set the environment variable GEOS_DIR to point to the location where GEOS is installed (for example, if 'geos_c.h' is in '/usr/local/include' and 'libgeos_c' is in '/usr/local/lib', then you need to set GEOS_DIR to '/usr/local'
/private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/setuptools/dist.py:286: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).
warnings.warn(msg, SetuptoolsDeprecationWarning)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-cpython-39
creating build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits
copying src/mpl_toolkits/__init__.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits
creating build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/cm.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/__init__.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/test.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/diagnostic.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/proj.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
copying src/mpl_toolkits/basemap/solar.py -> build/lib.macosx-11-x86_64-cpython-39/mpl_toolkits/basemap
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
cythoning src/_geoslib.pyx to src/_geoslib.c
building '_geoslib' extension
creating build/temp.macosx-11-x86_64-cpython-39
creating build/temp.macosx-11-x86_64-cpython-39/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/numpy/core/include -I/Users/mrashid/dev/bitbucket.trimble.tools/network_analysis_workbooks/.venv/include -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/_geoslib.c -o build/temp.macosx-11-x86_64-cpython-39/src/_geoslib.o
In file included from src/_geoslib.c:744:
In file included from /private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969:
/private/var/folders/d3/7z6xlz9n15b88h9j_s_f934jmczwvp/T/pip-build-env-ef8_o_8i/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
^
src/_geoslib.c:745:10: fatal error: 'geos_c.h' file not found
#include "geos_c.h"
^~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for basemap
Failed to build basemap
ERROR: Could not build wheels for basemap, which is required to install pyproject.toml-based projects
Any help would be appreciated.
Hi @miadadrashid! At the moment, MacOS users need to build basemap
from the source distribution, and this implies having GEOS preinstalled in your system and set the environment variable GEOS_DIR
to point to the installation place.
What is the value of GEOS_DIR
and where (if available) is your GEOS installation placed?
Hopefully at some point I can extend the GitHub workflows to also build the MacOS precompiled wheels in the future, I just did not have the time and knowledge yet.
I just purchased a new macbook pro and decided to use the opportunity to upgrade to Python 3. However, I'm having a set of apparently GEOS-related errors when installing basemap and I'm unable to figure out how to solve them.
Here were the steps I took:
brew install proj brew install geos pip install git+https://github.com/jswhit/pyproj.git
I also tried to make sure the correct version of GEOS was being used after getting an error (per this thread: https://github.com/matplotlib/basemap/issues/414):
rm -rf $SRC_DIR/geos-3.7.0 export GEOS_DIR=$PREFIX
Here is what I get when I try to install basemap via pip install https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz:
creating build/temp.macosx-10.13-x86_64-3.7/src compile options: '-Iinclude -I['/usr/local/lib/python3.7/site-packages/numpy/core/include'] -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c' clang: src/_geoslib.c In file included from src/_geoslib.c:247: In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18: In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821: /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
warning "Using deprecated NumPy API, disable it by " \
^ src/_geoslib.c:1139:31: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_valid = GEOSisValid(pyx_v_self->_geom); ^
~~~~~~ /usr/local/include/geos_c.h:1924:54: note: passing argument to parameter 'g' here extern char GEOS_DLL GEOSisValid(const GEOSGeometry g); ^ src/_geoslib.c:1239:47: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_t_1 = PyBytes_FromString(GEOSGeomType(__pyx_v_self->_geom)); if (unlikely(!pyx_t_1)) {pyx_filename = __pyx_f[0]; pyx_lineno = 152; __pyx_clineno = LINE; goto __pyx_L1_error;} ^~~~~~~ /usr/local/include/geos_c.h:1945:56: note: passing argument to parameter 'g' here extern char GEOS_DLL GEOSGeomType(const GEOSGeometry g); ^ src/_geoslib.c:1330:31: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_answer = GEOSWithin(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1749:53: note: passing argument to parameter 'g1' here extern char GEOS_DLL GEOSWithin(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:1330:43: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_answer = GEOSWithin(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1749:77: note: passing argument to parameter 'g2' here extern char GEOS_DLL GEOSWithin(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:1468:26: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSUnion(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1601:61: note: passing argument to parameter 'g1' here extern GEOSGeometry GEOS_DLL GEOSUnion(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:1468:38: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSUnion(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1601:85: note: passing argument to parameter 'g2' here extern GEOSGeometry GEOS_DLL GEOSUnion(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:1468:14: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_g3 = GEOSUnion(pyx_v_g1, pyx_v_g2); ^~~~~~~~~~ src/_geoslib.c:1477:35: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_typeid = GEOSGeomTypeId(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1948:56: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGeomTypeId(const GEOSGeometry g); ^ src/_geoslib.c:1592:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with * [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:1601:37: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:1601:18: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t *') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t *') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:1658:45: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:1667:37: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with * [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:1667:18: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t *') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:1716:49: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_t_2 = PyBytes_FromString(GEOSGeomType(pyx_v_g3)); if (unlikely(!pyx_t_2)) {pyx_filename = __pyx_f[0]; pyx_lineno = 194; pyx_clineno = LINE; goto pyx_L1_error;} ^~~~~~ /usr/local/include/geos_c.h:1945:56: note: passing argument to parameter 'g' here extern char GEOS_DLL GEOSGeomType(const GEOSGeometry g); ^ src/_geoslib.c:1751:20: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t *') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:1857:29: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSSimplify(pyx_v_g1, __pyx_v_tolerance); ^~~~~~ /usr/local/include/geos_c.h:1649:64: note: passing argument to parameter 'g' here extern GEOSGeometry GEOS_DLL GEOSSimplify(const GEOSGeometry g, double tolerance); ^ src/_geoslib.c:1857:14: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t *') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t *') [-Wincompatible-pointer-types] pyx_v_g3 = GEOSSimplify(pyx_v_g1, pyx_v_tolerance); ^~~~~~~~~~~~ src/_geoslib.c:1866:35: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_typeid = GEOSGeomTypeId(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1948:56: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGeomTypeId(const GEOSGeometry g); ^ src/_geoslib.c:1981:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:1990:37: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:1990:18: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t *') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:2047:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:2056:37: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:2056:18: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t *') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:2105:49: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_t_3 = PyBytes_FromString(GEOSGeomType(pyx_v_g3)); if (unlikely(!pyx_t_3)) {__pyx_filename = pyx_f[0]; pyx_lineno = 227; __pyx_clineno = LINE; goto pyx_L1_error;} ^~~~~~ /usr/local/include/geos_c.h:1945:56: note: passing argument to parameter 'g' here extern char GEOS_DLL GEOSGeomType(const GEOSGeometry g); ^ src/_geoslib.c:2140:20: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(__pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:2234:27: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSBuffer(pyx_v_g1, 0., 0); ^~~~~~ /usr/local/include/geos_c.h:1451:62: note: passing argument to parameter 'g' here extern GEOSGeometry GEOS_DLL GEOSBuffer(const GEOSGeometry g, ^ src/_geoslib.c:2234:14: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_g3 = GEOSBuffer(pyx_v_g1, 0., 0); ^~~~~~~~~~ src/_geoslib.c:2243:35: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_typeid = GEOSGeomTypeId(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1948:56: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGeomTypeId(const GEOSGeometry g); ^ src/_geoslib.c:2358:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:2367:37: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:2367:18: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t ') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:2424:45: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:2433:37: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:2433:18: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, 0); ^~~~~~~~ src/_geoslib.c:2482:49: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_t_2 = PyBytes_FromString(GEOSGeomType(pyx_v_g3)); if (unlikely(!pyx_t_2)) {__pyx_filename = pyx_f[0]; pyx_lineno = 258; __pyx_clineno = LINE; goto pyx_L1_error;} ^~~~~~ /usr/local/include/geos_c.h:1945:56: note: passing argument to parameter 'g' here extern char GEOS_DLL GEOSGeomType(const GEOSGeometry g); ^ src/_geoslib.c:2517:20: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(__pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:2620:35: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_answer = GEOSIntersects(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1747:57: note: passing argument to parameter 'g1' here extern char GEOS_DLL GEOSIntersects(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:2620:47: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_answer = GEOSIntersects(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1747:81: note: passing argument to parameter 'g2' here extern char GEOS_DLL GEOSIntersects(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:2761:33: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSIntersection(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1554:68: note: passing argument to parameter 'g1' here extern GEOSGeometry GEOS_DLL GEOSIntersection(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:2761:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_g3 = GEOSIntersection(pyx_v_g1, __pyx_v_g2); ^~~~~~ /usr/local/include/geos_c.h:1554:92: note: passing argument to parameter 'g2' here extern GEOSGeometry GEOS_DLL GEOSIntersection(const GEOSGeometry g1, const GEOSGeometry g2); ^ src/_geoslib.c:2761:14: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_g3 = GEOSIntersection(pyx_v_g1, pyx_v_g2); ^~~~~~~~~src/_geoslib.c:2770:35: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_typeid = GEOSGeomTypeId(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1948:56: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGeomTypeId(const GEOSGeometry g); ^ src/_geoslib.c:2915:45: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with * [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:2946:39: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, __pyx_v_i); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:2946:20: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t *') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t *') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, pyx_v_i); ^~~~~~~~~~~~ src/_geoslib.c:3013:45: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_numgeoms = GEOSGetNumGeometries(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1966:62: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGetNumGeometries(const GEOSGeometry g); ^ src/_geoslib.c:3044:39: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, __pyx_v_i); ^~~~~~ /usr/local/include/geos_c.h:1976:74: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetGeometryN(const GEOSGeometry g, int n); ^ src/_geoslib.c:3044:20: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_gout = GEOSGetGeometryN(pyx_v_g3, pyx_v_i); ^~~~~~~~~~~~ src/_geoslib.c:3103:22: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:3128:20: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(__pyx_v_g3); ^~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:3258:20: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSGeom_destroy(__pyx_v_self->_geom); ^~~~~~~ /usr/local/include/geos_c.h:1545:53: note: passing argument to parameter 'g' here extern void GEOS_DLL GEOSGeom_destroy(GEOSGeometry g); ^ src/_geoslib.c:3683:14: warning: incompatible pointer types assigning to 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t *') from 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t ') [-Wincompatible-pointer-types] __pyx_v_cs = GEOSCoordSeq_create(__pyx_v_M, 2); ^~~~~~~~~~ src/_geoslib.c:3729:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setX(pyx_v_cs, pyx_v_i, __pyx_v_dx); ^~~~~~ /usr/local/include/geos_c.h:1378:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setX(GEOSCoordSequence s, ^ src/_geoslib.c:3738:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setY(pyx_v_cs, pyx_v_i, __pyx_v_dy); ^~~~~~ /usr/local/include/geos_c.h:1380:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setY(GEOSCoordSequence s, ^ src/_geoslib.c:3776:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setX(pyx_v_cs, (pyx_v_M - 1), __pyx_v_dx); ^~~~~~ /usr/local/include/geos_c.h:1378:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setX(GEOSCoordSequence s, ^ src/_geoslib.c:3785:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setY(pyx_v_cs, (pyx_v_M - 1), __pyx_v_dy); ^~~~~~ /usr/local/include/geos_c.h:1380:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setY(GEOSCoordSequence s, ^ src/_geoslib.c:3803:42: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] __pyx_v_lr = GEOSGeom_createLinearRing(__pyx_v_cs); ^~~~~~ /usr/local/include/geos_c.h:1521:76: note: passing argument to parameter 's' here extern GEOSGeometry GEOS_DLL GEOSGeom_createLinearRing(GEOSCoordSequence s); ^ src/_geoslib.c:3803:14: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_lr = GEOSGeom_createLinearRing(__pyx_v_cs); ^~~~~~~~~~ src/_geoslib.c:3812:59: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'GEOSGeometry ' (aka 'struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_self->__pyx_base._geom = GEOSGeom_createPolygon(__pyx_v_lr, NULL, 0); ^~~~~~ /usr/local/include/geos_c.h:1531:68: note: passing argument to parameter 'shell' here extern GEOSGeometry GEOS_DLL GEOSGeom_createPolygon(GEOSGeometry shell, ^ src/_geoslib.c:3812:34: warning: incompatible pointer types assigning to 'GEOSGeom ' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_self->pyx_base._geom = GEOSGeom_createPolygon(pyx_v_lr, NULL, 0); ^~~~~~~~~~~~ src/_geoslib.c:3888:12: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t *') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] GEOSArea(pyx_v_self->pyx_base._geom, (&__pyx_v_area)); ^~~~~~~~~~ /usr/local/include/geos_c.h:2055:50: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSArea(const GEOSGeometry g, double area); ^ src/_geoslib.c:4090:14: warning: incompatible pointer types assigning to 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t *') from 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t *') [-Wincompatible-pointer-types] pyx_v_cs = GEOSCoordSeq_create(pyx_v_M, 2); ^~~~~~~~~~ src/_geoslib.c:4136:23: warning: incompatible pointer types passing 'GEOSCoordSeq *' (aka 'struct GEOSCoordSeq_t *') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setX(pyx_v_cs, pyx_v_i, pyx_v_dx); ^~~~~~ /usr/local/include/geos_c.h:1378:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setX(GEOSCoordSequence s, ^ src/_geoslib.c:4145:23: warning: incompatible pointer types passing 'GEOSCoordSeq *' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setY(pyx_v_cs, pyx_v_i, __pyx_v_dy); ^~~~~~ /usr/local/include/geos_c.h:1380:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setY(GEOSCoordSequence s, ^ src/_geoslib.c:4155:62: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] pyx_v_self->pyx_base._geom = GEOSGeom_createLineString(__pyx_v_cs); ^~~~~~ /usr/local/include/geos_c.h:1522:76: note: passing argument to parameter 's' here extern GEOSGeometry GEOS_DLL GEOSGeom_createLineString(GEOSCoordSequence s); ^ src/_geoslib.c:4155:34: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_self->pyx_base._geom = GEOSGeom_createLineString(__pyx_v_cs); ^~~~~~~~~~ src/_geoslib.c:4273:14: warning: incompatible pointer types assigning to 'GEOSCoordSeq *' (aka 'struct GEOSCoordSeq_t *') from 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t ') [-Wincompatible-pointer-types] __pyx_v_cs = GEOSCoordSeq_create(1, 2); ^~~~~~src/_geoslib.c:4300:21: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setX(pyx_v_cs, 0, pyx_v_dx); ^~~~~~ /usr/local/include/geos_c.h:1378:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setX(GEOSCoordSequence s, ^ src/_geoslib.c:4309:21: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_setY(pyx_v_cs, 0, pyx_v_dy); ^~~~~~ /usr/local/include/geos_c.h:1380:58: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_setY(GEOSCoordSequence s, ^ src/_geoslib.c:4318:57: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'GEOSCoordSequence ' (aka 'struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] pyx_v_self->pyx_base._geom = GEOSGeom_createPoint(__pyx_v_cs); ^~~~~~ /usr/local/include/geos_c.h:1519:71: note: passing argument to parameter 's' here extern GEOSGeometry GEOS_DLL GEOSGeom_createPoint(GEOSCoordSequence s); ^ src/_geoslib.c:4318:34: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'GEOSGeometry ' (aka 'struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_self->pyx_base._geom = GEOSGeom_createPoint(__pyx_v_cs); ^~~~~~~~~ src/_geoslib.c:4584:32: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_t_1 = ((GEOSGeomTypeId(pyx_v_geom) == GEOS_POLYGON) != 0); ^~~~ /usr/local/include/geos_c.h:1948:56: note: passing argument to parameter 'g' here extern int GEOS_DLL GEOSGeomTypeId(const GEOSGeometry g); ^ src/_geoslib.c:4594:38: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] pyx_v_lr = GEOSGetExteriorRing(pyx_v_geom); ^~~~ /usr/local/include/geos_c.h:2011:77: note: passing argument to parameter 'g' here extern const GEOSGeometry GEOS_DLL GEOSGetExteriorRing(const GEOSGeometry g); ^ src/_geoslib.c:4594:16: warning: incompatible pointer types assigning to 'GEOSGeom *' (aka 'struct GEOSGeom_t ') from 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t ') [-Wincompatible-pointer-types] pyx_v_lr = GEOSGetExteriorRing(pyx_v_geom); ^~~~~~~~~~ src/_geoslib.c:4603:39: warning: incompatible pointer types passing 'GEOSGeom *' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] __pyx_v_cs = GEOSGeom_getCoordSeq(__pyx_v_lr); ^~~~~~ /usr/local/include/geos_c.h:2020:83: note: passing argument to parameter 'g' here extern const GEOSCoordSequence GEOS_DLL GEOSGeom_getCoordSeq(const GEOSGeometry g); ^ src/_geoslib.c:4603:16: warning: incompatible pointer types assigning to 'GEOSCoordSeq *' (aka 'struct GEOSCoordSeq_t *') from 'const GEOSCoordSequence ' (aka 'const struct GEOSCoordSeq_t ') [-Wincompatible-pointer-types] __pyx_v_cs = GEOSGeom_getCoordSeq(__pyx_v_lr); ^~~~~~~~~ src/_geoslib.c:4623:39: warning: incompatible pointer types passing 'GEOSGeom ' (aka 'struct GEOSGeom_t ') to parameter of type 'const GEOSGeometry ' (aka 'const struct GEOSGeom_t '); dereference with [-Wincompatible-pointer-types] __pyx_v_cs = GEOSGeom_getCoordSeq(__pyx_v_geom); ^~~~ /usr/local/include/geos_c.h:2020:83: note: passing argument to parameter 'g' here extern const GEOSCoordSequence GEOS_DLL GEOSGeom_getCoordSeq(const GEOSGeometry g); ^ src/_geoslib.c:4623:16: warning: incompatible pointer types assigning to 'GEOSCoordSeq *' (aka 'struct GEOSCoordSeq_t *') from 'const GEOSCoordSequence ' (aka 'const struct GEOSCoordSeq_t ') [-Wincompatible-pointer-types] __pyx_v_cs = GEOSGeom_getCoordSeq(__pyx_v_geom); ^~~~~~~~~~~ src/_geoslib.c:4634:24: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'const GEOSCoordSequence ' (aka 'const struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_getSize(pyx_v_cs, (&pyx_v_M)); ^~~~~~ /usr/local/include/geos_c.h:1403:67: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_getSize(const GEOSCoordSequence s, ^ src/_geoslib.c:4720:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t ') to parameter of type 'const GEOSCoordSequence ' (aka 'const struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_getX(pyx_v_cs, pyx_v_i, (&__pyx_v_dx)); ^~~~~~ /usr/local/include/geos_c.h:1391:64: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_getX(const GEOSCoordSequence s, ^ src/_geoslib.c:4729:23: warning: incompatible pointer types passing 'GEOSCoordSeq ' (aka 'struct GEOSCoordSeq_t *') to parameter of type 'const GEOSCoordSequence ' (aka 'const struct GEOSCoordSeq_t '); dereference with [-Wincompatible-pointer-types] GEOSCoordSeq_getY(pyx_v_cs, pyx_v_i, (&pyx_v_dy)); ^~~~~~ /usr/local/include/geos_c.h:1393:64: note: passing argument to parameter 's' here extern int GEOS_DLL GEOSCoordSeq_getY(const GEOSCoordSequence s, ^ src/_geoslib.c:5485:12: warning: incompatible pointer types passing 'void (char , char )' to parameter of type 'GEOSMessageHandler' (aka 'void ()(const char , ...)') [-Wincompatible-pointer-types] initGEOS(pyx_f_8_geoslib_notice_h, pyx_f_8_geoslib_error_h); ^~~~~~/usr/local/include/geos_c.h:1316:50: note: passing argument to parameter 'notice_function' here extern void GEOS_DLL initGEOS(GEOSMessageHandler notice_function, ^ src/_geoslib.c:5485:40: warning: incompatible pointer types passing 'void (char , char )' to parameter of type 'GEOSMessageHandler' (aka 'void ()(const char , ...)') [-Wincompatible-pointer-types] initGEOS(pyx_f_8_geoslib_notice_h, __pyx_f_8_geoslib_error_h); ^~~~~~~~~ /usr/local/include/geos_c.h:1317:24: note: passing argument to parameter 'error_function' here GEOSMessageHandler error_function); ^ src/_geoslib.c:5552:21: error: no member named 'exc_type' in 'struct _ts' *type = tstate->exc_type;