API#

This is the reference page for the MOMA Python API.

Dataloader#

Generators#

Mapping#

Math#

Mobility#

Planning#

Plotting#

Raster#

Tileserver#

Tile server module

class moma.tileserver.TileServer(input_path, output_path, database_path)#

Simple interface to the Terracotta tile server

__init__(input_path, output_path, database_path)#

Initialises the TileServer.

Args:

input_path (str): Path to the input directory containing raster files. output_path (str): Path to the output directory for optimized raster files. database_path (str): Path to the database directory for storing optimized raster files.

connect()#

Connects to the Terracotta XYZ tile server.

serve()#

Runs the Terracotta XYZ tile server.

update()#

Updates the tile server by optimizing and ingesting raster files.

This method runs the Terracotta raster optimization and database update processes.

Toolboxes#