Select to view content in your preferred language

copy_data_to_server has no effect on SD file for Terrain Image Service

77
0
Wednesday
GIS_Enjoyer
New Contributor III

My goal:

I am trying to upload a Terrain Image Service to my standalone Enterprise ArcGIS Server (10.8.1) using ArcPy (10.8). I created a SD file and then I manually upload the SD file using Server Manager: causing the service to be created successfully.

Now I want to make it so that it references the raster DEM files from the remote drive folder (not working now), instead of copying them into the SD file (worked before).

In ArcGIS Server Manager:

I already added a data store (of folder type) and validated it in Server Manager; I also unchecked the "Allow data to be copied to the site when publishing services".

In ArcPy script:

...

arcpy.CreateMosaicDataset_management(GDBPath, Name, SRS, 1, "32_BIT_FLOAT")
arcpy.AddRastersToMosaicDataset_management(MosaicDatasetPath, "Raster Dataset", inputFolderPath, build_pyramids=False)
...
arcpy.CreateImageSDDraft(MosaicDatasetPath, SDDraftPath, Name, 'ARCGIS_SERVER', conPath,
                             copy_data_to_server=False,
                             folder_name="Basemap", summary=Summary, tags=Tags)

Problem:

The created SD file still has DEM files copied inside.

 

Tags (3)
0 Kudos
0 Replies