question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help with mapnik plugin

See original GitHub issue

Hello!

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:open
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brianreaviscommented, Oct 10, 2017

Hah, embarrassing. Good catch! Just released a patch for that: https://github.com/naturalatlas/tilestrata/releases/tag/v2.1.2

0reactions
carrbrpoacommented, Oct 11, 2017

@brianreavis There are any logging available?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found