Help with mapnik plugin
See original GitHub issueHello!
I just installed tilestrata and am trying to use it to render maps where it’s data comes from Postgis and it’s style comes from mapnik XML (generated by Carto in another solution test - by the way, I’m trying to replace gopnik of that solution for tilestrata, because I know node.js better).
So the server is up (with some warnings), /health
is Ok ({"ok":true,"version":"2.1.0","host":"osboxes","uptime":"15 minutes, 20.149 seconds","uptime_s":920.15}
) but when I put together a Leaflet application to try the maps generated, it just gives me NOT FOUNDS (404):
1.png:1 GET http://localhost:9999/basemap/2/0/1.png 404 (Not Found)
3.png:1 GET http://localhost:9999/basemap/2/0/3.png 404 (Not Found)
3.png:1 GET http://localhost:9999/basemap/2/1/3.png 404 (Not Found)
1.png:1 GET http://localhost:9999/basemap/2/1/1.png 404 (Not Found)
9625.png:1 GET http://localhost:9999/basemap/14/5859/9625.png 404 (Not Found)
9625.png:1 GET http://localhost:9999/basemap/14/5863/9625.png 404 (Not Found)
9625.png:1 GET http://localhost:9999/basemap/14/5864/9625.png 404 (Not Found)
9625.png:1 GET http://localhost:9999/basemap/14/5857/9625.png 404 (Not Found)
and so on. My tilestrata server code:
var tilestrata = require('tilestrata');
var disk = require('tilestrata-disk');
var sharp = require('tilestrata-sharp');
var mapnik = require('tilestrata-mapnik');
var dependency = require('tilestrata-dependency');
var strata = tilestrata();
// define layers
strata.layer('basemap')
.route('*@2x.png')
.use(disk.cache({dir: '/var/lib/tiles/basemap'}))
.use(mapnik({
pathname: '/home/osboxes/dados_container_renderer/stylesheet_localhost_pg.xml',
tileSize: 512,
scale: 2
}))
.route('*.png')
.use(disk.cache({dir: '/var/lib/tiles/basemap'}))
.use(dependency('basemap', 'tile@2x.png'))
.use(sharp(function(image, sharp) {
return image.resize(256);
}));
// start accepting requests
strata.listen(9999);
It seems that it’s not even scratching server, since no terminal entries are being generated. Am I missing something?
Thanks a lot!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
PluginArchitecture · mapnik/mapnik Wiki - GitHub
Name Availability Status Build by Default
postgis 0.2.0 Stable yes
raster 0.2.0 Stable yes
shape 0.2.0 Stable yes
Read more >Node Mapnik | Documentation
Mapnik is the core of cartographic design and processing. node-mapnik provides a set of bindings to mapnik for node.js. Plugins. Node Mapnik relies...
Read more >[mapnik] problems loading plugins - Google Groups
guys for help. I built mapnik 0.7.2 on a ubuntu 11.10 64 Bit ... /usr/local/lib/mapnik/input/raster.input (dlopen failed - plugin
Read more >@mathisloge/mapnik - npm
var mapnik = require('mapnik'); var fs = require('fs'); // register fonts and datasource plugins mapnik.register_default_fonts(); ...
Read more >JOSM/Plugins/SlippyMap - - OpenStreetMap Wiki
For example you can use it with Mapnik and T@H renderings, ... Support for the new Bing aerial imagery has been added to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hah, embarrassing. Good catch! Just released a patch for that: https://github.com/naturalatlas/tilestrata/releases/tag/v2.1.2
@brianreavis There are any logging available?