How to install GIS pkgs

1) support pkgs

Possible items that will be used by the core triplet:

    json, protobuf, Cython, Numpy

2) Install core triplet: GEOS, GDAL, and Proj

gdal:

./configure --with-python=/usr/bin/python3.9
  PostgreSQL support:        no
  SWIG Bindings:             python 

3) other Python GIS packages

3.a) shapely

a note from the shapely page:

Source distributions

If you want to build Shapely from source for compatibility with other modules that depend on GEOS (such as cartopy or osgeo.ogr) or want to use a different version of GEOS than the one included in the project wheels you should first install the GEOS library, Cython, and Numpy on your system (using apt, yum, brew, or other means) and then direct pip to ignore the binary wheels.

sudo LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/lib64  pip3.9 install shapely==1.7.0 --no-binary shapely==1.7.0

Successfully installed shapely-1.7.0

3.b) cartopy

ImportError: Using image transforms requires either pykdtree or scipy.

4) movingpandas

this issue Make plotting dependencies optional #78 has references to movingpandas-base and installs without other dependencies (holoviz, etc.)

9) and to see if the items in ~/.local/lib/python3.9/site-packages are ok:

    > python3.9

    Python 3.9.6 (default, Aug 25 2021, 16:22:38)

    >>> import pandas
    >>> import geopandas
    >>> import pygeos
    >>> import shapely
    >>> import movingpandas
    >>> import cartopy
    >>> import matplotlib
    >>> import bokeh
    >>> import fiona
    >>> import holoviews
    >>> import hvplot
    >>> import pyproj
    >>> import pygments
    >>>

looks good

wendell@piedmont:~/pkgs/python_pkgs