Cooperative Work Model

class maproulette.models.cooperative_work.CooperativeWorkModel(version=2, type=None, parent_operations=None, file_type='xml', file_format='osc', encoding='base64', content=None)

Bases: object

Definition for a Cooperative Work object

property content

A base64-encoded osc changefile to be used in type 2 cooperative work operations

property encoding

The type of encoding used in the changefile for type 2 cooperative work (currently, only base64 encoding is supported)

property file_format

The format of changefile to be used in type 2 cooperative work (currently, only osc files are supported

property file_type

The type of changefile to be used in type 2 cooperative work (currently, only xml files are supported

property parent_operations

A dict containing parent operation details which follows the parent_operation model

to_dict()
to_json()

Converts all non-null properties of a task object into a JSON object

property type

The type of cooperative work operation (either 1 for tag fix or 2 for change file) to be contained in the model

property version

The version of maproulette cooperative work format to be processed (currently, only version 2 is supported)