Esri / mdcs-py

MDCS is an acronym for Mosaic Dataset Configuration Script and is the entry point to a collection of Python classes/libraries that could be consumed by a Python client application to complete a given workflow for creating a mosaic dataset, populating it with data, and setting all required/desired parameters.
Apache License 2.0
64 stars 29 forks source link

How to register Mosaic Datasets Footprint layer for web tool publication #125

Closed MoritzMoreira closed 8 months ago

MoritzMoreira commented 1 year ago

I am trying to publish a Python script as a web tool, which calls a MDCS (Mosaic Dataset Configuration Script). It flags missing data stores for /Footprints. The .gdb folder is registered as a datastore. The xml config file:

`<?xml version="1.0" encoding="utf-8"?>

Amberg1Demo CM+AR D:\...\DTK-Workflow-test\Services_test Amberg Source Amberg1 25832 3 8_BIT_UNSIGNED Amberg Raster Dataset C:\...\Downloads\Amberg\Amberg * ` 2 Lines of Python to trigger the MDCS (toolbox script): `import MDCS MDCS.main(2, ["x", r"-i:C:\...\Downloads\mdcs-py-master\mdcs-py-master\Parameter\Config\Amberg1.xml"])` It also flags "24046 tool calculate field cannot use VB expressions for services". Do I have to enter /Footprints somehow as a parameter? Not sure how to, because the mosaic dataset does not exist before running the tool. Also, where would I use the parameters variable? Or do I have to do something like ", , ", in the xml, but for geoprocessing services? On the other hand, in this video at 23:14 the guy clearly says it's possible. https://mediaspace.esri.com/meia/t/1_q98qok22 Another thing I do not understand is that I successfully published scripts calling MDCS before, although they never executed without errors. To get rid of the errors, I introduced a parameter and canged some path variables. Now, after that,for some reason these flags come up at the at analysis step before publishing.
vijaygit02 commented 8 months ago

@MoritzMoreira ,

Are you trying to run CV tool? I don't see that command in the config. CV tool will only support Python syntax in ArcPro Were you able to run the workflow locally first?

Apologies for late reply

MoritzMoreira commented 8 months ago

thanks for the reply, but I am not anymore in the organisation with that project, I am trying to do it with QGIS and Lizmap-WPS now... But yes, the script was running locally without problems.

vijaygit02 commented 8 months ago

@MoritzMoreira I'll be closing the issue. let us know if you need any help in future