![]() This will create the map service that will be used in the web application. In the top right corner of the Service Editor dialog box, click Publish.Choose a publish or admin connection to your ArcGIS Server machine.If you are unfamiliar with the publishing process, please review how to publish a service. The map is now ready to be published to your server. If you were authoring your own map document templates from scratch or were using existing map document templates that did not contain map graphics or basemap layers, these steps would not be required. Remember to use the forward slash (/) in your path. In the Python Window, change the newPath variable to be the location of TemplateData.gdb within the registered folder.In the Python Window, change the folderPath variable to be the path to the registered folder where the template MXDs reside.Mxd.findAndReplaceWorkspacePaths((mxd).workspacePath, newPath) # Loop through all MXDs in the specified folder and change the layer's data source to the new pathįullpath = os.path.join(folderPath, filename)īasename, extension = os.path.splitext(fullpath) NewPath = "C:/MyDataStore/USA/TemplateData.gdb" # The location of TemplateData.gdb within the registered folder # The path to the registered folder where the template MXDs reside Register your data with ArcGIS Server using ArcMap.About registering your data with ArcGIS Server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |