Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By : Donald Eric Pimpler, Eric Pimpler
Book Image

Programming ArcGIS with Python Cookbook, Second Edition

By: Donald Eric Pimpler, Eric Pimpler

Overview of this book

Table of Contents (22 chapters)
Programming ArcGIS with Python Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Publishing a map document to an ArcGIS Server service


Using the arcpy.mapping module, it is possible to publish your map document files to ArcGIS Server as map services. ArcGIS Server is a platform to distribute maps and data on the Web. Using the ArcGIS JavaScript API, web and mobile applications can be created from services created in ArcGIS Server. For more information about ArcGIS Server, please visit the esri ArcGIS Server site at http://www.esri.com/software/arcgis/arcgisserver. There are several steps involved in creating a map service from a map document file. The map document file must first be analyzed for suitability and performance issues and any resulting errors must be fixed before final publication to ArcGIS Server. This process involves several steps including a call to an arcpy.mapping function along with the use of a couple of tools in ArcToolbox that can be called from your script. After errors have been fixed, you can then upload the resulting Service Definition Draft...