PointStudio
It is possible to call certain menu options in PointStudio from Python. These menu options are called PointStudio operations within the Maptek SDK. The operations for PointStudio are in mapteksdk.pointstudio.operations
.
Here is an example of a script using the mapteksdk.pointstudio.operations
module.
from mapteksdk.project import Project from mapteksdk.data import Surface import mapteksdk.pointstudio.operations as pointstudio_operations with Project() as project: surfaces = [ project.copy_object(selected_object, selected_object.path + '_POST_PROCESS') for selected_object in project.get_selected() if selected_object.is_a(Surface) ] pointstudio_operations.simplify_by_distance_error(surfaces, 20.0) pointstudio_operations.despike(surfaces) pointstudio_operations.fix_surface(surfaces)
Additional operations have been added to the mapteksdk.pointstudio.operations
module. These include: