How do I accept a mosaic service as a Parameter?

289
1
10-04-2023 11:33 AM
EricEagle
Occasional Contributor III

I have a custom geoprocessing tool that currently takes raster layers (DSMs and DTMs).  However, to scale it up and reduce the need for end-user research, I built large raster mosaics of the input data needed by users.  Then I published those as Map Services on ArcGIS Enterprise.  So far good to go.

 

However, nothing I've tried will allow my tool to set those loaded service layers as inputs to my tool.  Just for clarity, in the picture below I need to pull in the content annotated by the red rectangles.

Screenshot 2023-10-04 at 2.21.35 PM.png

 

For Parameter types, I've got: ['GPRasterLayer', 'GPRasterDataLayer', 'GPMapServerLayer', 'GPMosaicLayer']

 

but none of them will see the map service layer I'm trying to bring in.  How do I access this content as a parameter type?

0 Kudos
1 Reply
EricEagle
Occasional Contributor III

Thanks!  So wait, you're saying I have to have users look for the service endpoint, paste it in, and then hardcode the layer name in the arcpy.Parameter() object?  They can't just select it as a pulldown when it's already loaded in a Pro map project?

0 Kudos