Skip to content

Include classification for building model via blocks config #1

@ajknol

Description

@ajknol

Thanks for building the SDK, works great!

I would like to include blocks such as Simplification: true and Classification: true

https://docs.mapflow.ai/api/processing_api.html#customize-processing-with-the-workflow-options

processing = mf.processing.start(name='test',
geometry=aoi,
wd_id=wdid,
provider_name=providername,
url='https://api.mapflow.ai/rest/processings',
token=os.environ.get('MAPFLOW_TOKEN'))

Is this possible? This is not working:

processing = mf.processing.start(name='test',
geometry=aoi,
wd_id=wdid,
provider_name=providername,
url='https://api.mapflow.ai/rest/processings',
blocks=json.dumps({{"name": "Simplification","enabled":"true"},
{"name": "Classification","enabled":"true"},
{"name": "OSM","enabled":"true"},
{"name":"Polygonization","enabled":"true"}}),
token=os.environ.get('MAPFLOW_TOKEN'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions