Skip to main content

Landez builds MBTiles files either from a remote tile service URL or from a local Mapnik stylesheet.

The land covered is specified using a list of bounding boxes and zoom levels.

It uses mbutil from Mapbox https://github.com/mapbox/mbutil at the final stage to build the MBTiles file.

INSTALL

Landez requires nothing but python remote mode (specifying a tiles URL), but requires mapnik if the tiles are drawn locally.

sudo aptitude install python-mapnik

USAGE

Remote tiles

Using a remote tile service (Cloudmade by default):

import logging
from landez import MBTilesBuilder

logging.basicConfig(level=logging.DEBUG)

mb = MBTilesBuilder(remote=True, cache=False)
mb.add_coverage(bbox=(-90.0, -180.0, 180.0, 90.0),
                    zoomlevels=[0, 1])
mb.run()

Please respect Tile usage policies <http://wiki.openstreetmap.org/wiki/Tile_usage_policy>

Local rendering

Using mapnik to render tiles:

import logging
from landez import MBTilesBuilder

logging.basicConfig(level=logging.DEBUG)

mb = MBTilesBuilder(stylefile="yourstyle.xml", filepath="dest.mbtiles")
mb.add_coverage(bbox=(-90.0, -180.0, 180.0, 90.0),
                zoomlevels=[0, 1])
mb.run()

AUTHORS

LICENSE

  • Lesser GNU Public License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

landez-1.1.tar.gz (8.1 kB view details)

Uploaded Source

File details

Details for the file landez-1.1.tar.gz.

File metadata

  • Download URL: landez-1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for landez-1.1.tar.gz
Algorithm Hash digest
SHA256 2ba15531eea1c94e201e67145a3eb9954c02c7fac81e8c9a49cd7e80bc28204e
MD5 6dbec9a2ca87d30049cb01432f0e4a2d
BLAKE2b-256 e400cdd05337aae52ed4711bdbd84550eed24954d3c30fd0f92a71c24bcaf78e

See more details on using hashes here.

Release history Release notifications | RSS feed

2.5.0

1 file

2.4.1

1 file

2.4.0

1 file

2.3.0

1 file

2.2.0

1 file

2.1.1

1 file

2.1.0

1 file

2.0.3

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

1.8.2

1 file

1.8.1

1 file

1.8

1 file

1.7

1 file

1.6

1 file

1.5

1 file

1.4

1 file

1.3

1 file

1.2

1 file

This release

1.1 This release

1 file

1.0

1 file

0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page