Giter Club home page Giter Club logo

Comments (9)

systemed avatar systemed commented on May 13, 2024

Interesting question. I doubt that natural=coastline will be realistic to process on its own. The best approach might be for Tilemaker to support shapefiles, so that you can import (say) openstreetmapdata.com's water polygons. But that'll require both shapefile support and the ability to supply a bounding box to Tilemaker (so that it doesn't render the whole world by accident :) ).

from tilemaker.

pnorman avatar pnorman commented on May 13, 2024

I doubt that natural=coastline will be realistic to process on its own

Provided there is at least some coastline in the extract, it's technically possible, relying on the orientation of the coastline. But this would be difficult, and it would be good to have shapefile support for Natural Earth and other sources

from tilemaker.

systemed avatar systemed commented on May 13, 2024

I've now added shapefile support in a branch: https://github.com/systemed/tilemaker/tree/shapefiles

The configuration docs are updated to explain how it works, but in brief, you import shapefiles directly into a layer by specifying them in the JSON file. Shapefiles must be WGS84 (pure lat/long) and are clipped to the bounding box of the .pbf, unless you specify another bounding box.

Have a play and let me know how you get on. I'm hoping this will land in Tilemaker 1.2 so all feedback is very welcome.

from tilemaker.

sabas avatar sabas commented on May 13, 2024

Tried making the branch but I can't link libshp apparently (misses the inclusion of shapefil.h) although I've installed it.

# ldconfig -p | grep libshp
    libshp.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libshp.so.1

from tilemaker.

systemed avatar systemed commented on May 13, 2024

It looks like it needs libshp-dev on Ubuntu. I've added that to the docs - try again?

from tilemaker.

sabas avatar sabas commented on May 13, 2024

Ok, compiled.
I went to add in the default config.json

    "coastlines": {
  "minzoom": 11, "maxzoom": 14,
  "source": "/root/coast/water-polygons-generalized-3857/water_polygons_z7.shp",
  "simplify_below": 13, "simplify_level": 0.0003
                }
        },

It goes in segfault, the core (gdb tilemaker core) has

Core was generated by `tilemaker Arenzano---43144.pbf --output=arenzano.mbtiles'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f86cdd3294b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0

File is http://osm-toolserver-italia.wmflabs.org/estratti/comuni/pbf/Arenzano---43144.pbf

from tilemaker.

systemed avatar systemed commented on May 13, 2024

Hm. That works fine for me using the water_polygons_z7.shp file from openstreetmapdata.com and your .pbf. The error reported is a Lua one - are you using the default Lua script?

from tilemaker.

systemed avatar systemed commented on May 13, 2024

I've added brief error-trapping to pick up any Lua syntax errors.

from tilemaker.

sabas avatar sabas commented on May 13, 2024

Recompiled, now exits at the lua errors trap.

Error found in Lua script when reading node_keys - check your script for syntax errors.

I found my problem in the conversion, I'm a fool and deleted the process.lua, so it wasn't there... :-D

Edit: the conversion ends smoothly, I have yet to check if the tile is ok

from tilemaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.