11-12-2020 09:41 AM
Hello,
Is there a way for me to take a functioning Spatial Model and export it into usuable Python code?
Any suggestions would be greatly appreciated! Thanks!
Solved! Go to Solution.
11-12-2020 09:57 AM
Hi @Mase ,
If you want to automatically convert a Spatial Model to a Python Script you may wish to vote for this Idea:
In the meantime you should be able to use spatial model operators and models inside python scripts. Documentation can be found here (or in the Help installed with Spatial Modeler):
https://hexagongeospatial.fluidtopics.net/reader/fH0o7KrMKUViXGUeoilQuA/7ZcsiOy38Y9d76J9Nc5EiA
Cheers
11-12-2020 10:16 AM
Hello @ian.anderson ,
Thank you for the quick response!
I'm not seeing an option to convert to a Python script when I try to 'Save As'. The only options I'm getting are .gmdx and .json. Any suggestions?
Thanks,
Mason
11-12-2020 10:27 AM
Hi @Mase ,
As mentioned above, if you want to see an option implemented to Save As... to a Python script you should vote for the Idea so it gets implemented. The more HexPoints, the more likely it is to happen.
In the meantime you can use a .gmdx inside a python script, or build up a script manually using imported operators.
Cheers
11-12-2020 10:35 AM
Ahh gotcha gotcha, I understand what you were saying now.
Hopefully it gets implemented in the future. Thanks for your help!