You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/lib/TileServer.js:519
var callback = function(err) { if (err) throw err; };
^
Error: Unable to initialize "geology" layer: "Path must be a string. Received undefined"
at /Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/lib/TileServer.js:106:19
at /Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/node_modules/async/lib/async.js:52:16
at done (/Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/node_modules/async/lib/async.js:243:17)
at /Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/node_modules/async/lib/async.js:44:16
at Immediate._onImmediate (/Users/Daven/Development/Naukluft/versioned/node_modules/tilestrata/lib/TileRequestHandler.js:125:4)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
When I write the file out and refer to the pathname instead, everything works as expected.
The text was updated successfully, but these errors were encountered:
Could you try using pathname in conjunction with xml (setting it to the path of the xml, as if it were to exist on disk)? This way mapnik will know the base directory. Assuming this works, this should be documented in the readme and I can take care of that.
I just tried this, setting pathname: "style.xml" which is a non-existent path name, along with passing xml. This works fine (I guess I would need to specify an existing directory name if I had relative paths in my config).
I'm using node-mapnik 3.6.0 and generate a mapnik XML file shown below using carto
Config (in coffeescript):
Traceback:
When I write the file out and refer to the
pathname
instead, everything works as expected.The text was updated successfully, but these errors were encountered: