Open radumas opened 7 years ago
You need gdal installed and probably have to change the code to do a try to see if gdal is available through osgeo otherwise load it directly.
You can try this provider for PostGIS as well http://tilestache.org/doc/TileStache.Goodies.VecTiles.html
I'm having the same issue when I try to load my own layer via shapefile.
"layer_name":
{
"provider": {"name": "vector", "driver": "shapefile",
"parameters": {"file": "examples/layer_name.shp"}},
"projection": "spherical mercator"
},
gives me:
Error loading Tilestache config file: No module named osgeo
I have gdal installed via sudo apt-get build-dep python-gdal
Uh oh. I know I solved this but I don't remember how....
This ticket can be closed now as #316 added new documentation that suggests installing GDAL to prevent these issues going forward.
I'm running
Ubuntu 16.04
with PostgreSQL 9.5 and PostGIS 2.2 installed from package archives. I installedpip install -U pillow modestmaps simplejson werkzeug uuid
into avirtualenv
running Python 2.7.12. I set up a configuration for a PostGIS layer based on the documentation.When I run
./scripts/tilestache-server.py -c myconf.cfg
I get the following error: