New answers tagged

0

Assuming that you are using ArcGIS 10.1 SP1 (or later) for Desktop I think you are better to look past os.walk and glob because arcpy.da.Walk is more spatial data aware and can: Generate data names in a directory/database structure by walking the tree top-down or bottom-up. Each directory/workspace yields a tuple of three: directory path, directory ...


1

Reading the output message of the geoprocessing tool in batch, I realized the batch is not looping as I expected. It seems it loops at each tool in the model for each line in the batch, rather than performing the entire model once and then passing the next line and so on. So, it was sufficient to append an "%n%" to the first output variable ("judete_100_L" ...


1

I haven't attempted to run any of my models in batch mode before, but it sounds like something is being held over from the first step. ArcGIS likes to hold on to layers and selections made when tools are run. It is possible that either the feature layer created in step one, or one of the selections created (step two or four) may still be held in memory and ...


3

It appears you need to use arcpy.mapping.MapDocument import arcpy, os Workspace = "J:\\IrrigatedLands" arcpy.env.workspace = Workspace mxdList = arcpy.ListFiles("*.mxd") i = 0 for mxd in mxdList: i += 1 outmxd = arcpy.mapping.MapDocument(Workspace + "\\" + mxd) gifname = Workspace + "\\IrrigatedLands_temp_{}.gif".format(i) ...


0

Since QGIS 2.12, with the introduction of data-defined properties on the "lock layers for map" option, in the map item properties, you can do what you seek. You just need to create the right coverage layer, with the information of the extents, but also of the layers to "print". Create the layer presets You can "save" the current state (visible or not ...



Top 50 recent answers are included