Skip To Content

Tile package command line examples

The following example operations describe how to create and manage Maritime Chart Service tile package (mcstpk.exe) projects using the command line.

Example 1: Help

The following is an example of how to return a list of parameters that can be used with the mcstpk.exe.

mcstpk.exe -help

Example 2: Open a project

The following is an example of how to open a project file using the command mcstpk.eve<name of the project file>.mcs where the name of the project file is global:

mcstpk.exe global.mcs

Example 3: Create a project

The following is an example of how to create a project named global.mcs.

mcstpk.exe -create_project -project_file="/project/global.mcs" -datasets_dir="/project/maritimechartservice/" -control_files_dir="/project/maritimechartservice/" -working_dir="/project/maritimechartservice/" -x_min=-179 -y_min=-85 -x_max=179 -y_max=85 -start_level=10 -end_level=20

Example 4: Update a project

The following is an example of how to update an existing project named global.mcs:

mcstpk.exe -update_project -project_file="/project/global.mcs"

Example 5: Replace a project

The following is an example of how to replace a project named global.mcs with updated parameter values, such as start and end levels that are different from the original input values:

mcstpk.exe -create_project -project_file="/project/global.mcs" -datasets_dir="/project/maritimechartservice/" -control_files_dir="/project/maritimechartservice/" -working_dir="/project/maritimechartservice/" -x_min=-179 -y_min=-85 -x_max=179 -y_max=85 -start_level=12 -end_level=18