Tag Archives: Python
More organizations are moving towards using ArcGIS.com hosted feature services to serve data. One common task that has become a popular question of late is, “How do I automatically update the data within this hosted service?” For example, your organization may want to push nightly updates to keep synchronized with the daily changes made by your Desktop users. One of the easiest ways this can be done as this blog describes, is by overwriting the feature service completely with an updated one.
The following Python script demonstrates how to:
- Turn a map document into a sddraft.
- Modify the XML inside with the appropriate settings.
- Analyze the draft for errors.
- Stage the sddraft into a .sd (service definition) file.
- Upload the service to ArcGIS.com. Note that this code shares the feature service with everyone on ArcGIS.com.
Last week 64-bit Background Geoprocessing was made available for download. We’ve had a few questions from keen Python scripters who want to “get out of the application” and use their big data crunching scripts in 64-bit. If you’re one of those keen scripters, all you need to do is make sure you’re executing against 64-bit Python; no other special commands or tricks needed. Continue reading
One of the enhancements to the 10.1 release was the addition of two new environment variables (scratchFolder and scratchGDB) as mentioned in the What’s New for Geoprocessing in 10.1. (If you haven’t read it, check out all enhancements!). While new … Continue reading
by David Northup, GIS Analyst, Integrated Spatial Solutions Inc. (ISSI) The modeling application was designed for a hydroelectric power production system in CA. The system is located in the central Sierra Nevada Mountains, and is comprised of 6 major reservoirs, … Continue reading
The multiprocessing Python module provides functionality for distributing work between multiple processes on a given machine, taking advantage of multiple CPU cores and larger amounts of available system memory. When analyzing or working with large amounts of data in ArcGIS, … Continue reading
Here is a Python sample that can be used to clip items from your image service, package them into a mosaic dataset with all the metadata field values, and then ship them to a client or colleague. As with all … Continue reading
A number of geoprocessing tools including Spatial Join (Analysis), Append (Management), Merge (Management), Feature Class To Feature Class (Conversion), and Table To Table (Conversion), have a parameter for controlling how fields from the input dataset(s) are processed and written, or … Continue reading
Representations allow you to build complex symbols and add dynamic effects to meet your organization’s cartographic specifications. During the process of building these you may end up creating multiple representations. By using the recently released Drop All Representations tool you … Continue reading
Introduced with ArcGIS 10.1, Python Add-ins provide the newest mechanism for customizing an ArcGIS Desktop application (e.g., ArcMap). These add-ins take scripting to the next level by providing the ability to incorporate user interface elements (e.g., buttons, tools and toolbars) into the customization. Continue reading