Tag Archives: Python
Among the most important activities at the Esri Oceans Summit (November 7–8, 2012; see prior blog post 1 and prior prior blog post 2) were the breakout groups, where participants were called upon to identify major barriers to the use … Continue reading
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