Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"not a string" when attempting to use Kartograph.py #126

Open
zesterer opened this issue Sep 14, 2017 · 0 comments
Open

"not a string" when attempting to use Kartograph.py #126

zesterer opened this issue Sep 14, 2017 · 0 comments

Comments

@zesterer
Copy link

zesterer commented Sep 14, 2017

I run:
kartograph cfg.json -f svg -o map.svg
Where the contents of cfg.json are:

{
	"proj" : {
		"id" : "mercator",
		"lon0" : -5
	},
	"layers": {
		"background" : {"special" : "sea"},
		"constituencies" : {
			"src" : "scotland.shp",
			"simplify" : true
		}
	}
}

The following error is produced:

  /cli.py, in render_map()
  71: K.generate(cfg, args.output, preview=args.preview, format=format, stylesheet=css)  /kartograph.py, in generate()
  46: _map = Map(opts, self.layerCache, format=format)  /map.py, in __init__()
  42: layer = MapLayer(layer_id, layer_cfg, me, layerCache)  /maplayer.py, in __init__()
  35: self.source = handle_layer_source(self.options, self.cache)  /layersource/__init__.py, in handle_layer_source()
  32: src = ShapefileLayer(src)  /layersource/shplayer.py, in __init__()
  37: if srs.ImportFromWkt(prj_text):  /usr/lib/python2.7/site-packages/osgeo/osr.py, in ImportFromWkt()
  1108: return _osr.SpatialReference_ImportFromWkt(self, *args)
not a string%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant