linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

manage GEOAlchemy dependency #18

Closed SPlanzer closed 5 years ago

SPlanzer commented 5 years ago

The NZGB db plugin requires the python lib SQLAlchemy. the read me in .../gazetteer/src/NZGBplugin/geoalchemy States;

This can be installed from
https://github.com/geoalchemy/geoalchemy/tree/master/geoalchemy into this folder, or 
geoalchemy can be installed directly

When installing geoalchemy directly in this folder, QGIS was still reporting the python lib was missing.

To resolve this I installed geoalchemy via pip3

This is a good solution for users whom have access to this directory but do not have permissions to install libraries via pip on their machines.

I will need to come back and solve for this method of providing the geoalchemy Lib. That is; uninstall geoalchemy via pip3 uninstall geoalchemy and have the plugin leverage this from .../gazetteer/src/NZGBplugin/geoalchemy

SPlanzer commented 5 years ago

.../gazetteer/src/NZGBplugin/geoalchemy renamed to .../gazetteer/src/NZGBplugin/geoalchemy2 and imports adjusted accordingly