Hi,

We have been using the API to automate project creation and execute rulesets. It's working well, but one issue we've encountered is the lack of layer alias control in the API. We have been able to rename layers if they are single bands, but the API does not allow renaming of multi-band rasters as we can't pass in an array of layer names. We currently have a workaround within the ruleset itself, but we'd like to be able to fully control this at the point of project creation in Python.

Are we missing something? If not, might be something for the wish-list.

Thanks

Loreena

2 comments

  • Javier Vargas

    Hi Loreena,

    Thank you for sharing this inquiry.

    Unfortunately, we currently do not have this feature in the Python API, however we might consider this for a future patch. In addition to the workaround you already have, you could also try it through customized import (https://www.youtube.com/watch?v=mnfLl1jru7o ) where you have the option to change layer aliases for different projects imported.

    Best regards,

    Javier

  • Loreena Jaouen

    Hi Javier,

    Thank you for your response. We have used customised imports (.xml) files before to set up projects in eCognition, but have been unable to call these XML files with the Python API. Unfortunately, we need to be able to execute rulesets directly from Python and so customised imports don't seem like a viable solution at present.

    Kind regards

    Loreena

Recent Discussions

Need more help?

Enter Knowledge Base Contact Support