Tag Info

New answers tagged

2

Iterating is a little tricky for the first time user who has done VB or C, there is no for i = 1 to n iteration in python (yet). To iterate from one number to another you have to make a range (list) of integers then step through it with for value in list: Use this as an example to adjust your code, I've written the whole thing to give you some context: ...


1

You will want to use clipping_geometry = True as in the following example. import arcpy shp = r'C:\temp\myshp.shp' raster = r'C:\temp\someRaster.tif' arcpy.Clip_management (raster, in_template_dataset = shp, out_raster = r'C:\temp\outRaster.tif', clipping_geometry = True)


0

The local Esri support have now logged an enhancement request to have this software behaviour from ArcMap be present in ArcGIS Pro: ENH-000086073: Creating a "Buffer" option for editing individual features in one feature class.


1

Alright. QGis requieres several python packages such as NumPy and Matplotlib. I did not have these packages prior to installing QGis thus I downloaded them and installed them on my machine (very to recommend since the "from hand" installation is kind of hard). However, I forgot about these packages and wanted to install them again - This time not from the ...


1

Within QGIS 2.8 you can choose the following setting:


0

Try this, I used it to label the grid. A1 B1 C1.....A2 B2 C2...etc Remember to make adjustments to the code for the # of rows and columns. In field calculator, select python, then: import string c=-1; r = 0 def code_grid(rows=1,cols=1): c += 1 global c, r UC = list(string.ascii_uppercase) if c >= cols: c = 0 r += 1 label = UC[c]+str(r) ...


2

The problem is probably that your County boundaries and your Census blocks are not identical and don't line up right leaving you with slivers. Instead of clipping, You could just query out the Counties you would like to use, within the study area, using the "COUNTYCU" field in the attribute table. This field gives a unique identifier to each County. Using ...


0

The AOI tool solved the problem while in ArcScene http://resources.arcgis.com/en/help/main/10.1/index.html#//00q800000144000000 Another option is to use SelectLayerByLocation tool paired with CopyFeatures tool. I began coding this into a python toolbox: def execute(self, parameters, messages): """The source code of the tool. """ # Get current ...


0

I really like Mark's answer. Indeed a feature not well known, at least not to me :). However, judging by Dan's screenshot, I think there is a more straight-forward solution. When you add that many readers in the same format, simply check the Single Merged Feature Type option in the Add Reader window (see below). All your files will then be displayed as if it ...


0

I was trying to figure out the same thing and made this model builder. I am not good with scripting at all and new to model building but this was pretty easy to make and worth the effort. Open model builder and select INSERT>Iterators>feature selection. Use the input to be your polygon shapefile that contains the 30 different polygons, hopefully they ...


-1

What abput "tile_map_edge_buffer" and "tile_metatile_level" metadata params? I was able to solve a similar problem, drawing points with png icons. The icons appeared cutted in adjacent tiles, but using "tile_map_edge_buffer" and "tile_metatile_level" metadata params in mapfile was the solution. Also you need to pass the follow request params: mode=tile ...


1

It seems that you've followed all the steps except one, that is ticking the"Add layer to canvas" box. Check in the directory where you stored your new layer, it might be there. Alternatively, try to add the layer you've just created and see what happens. I hope this was of some help. Cheers


1

I built a script for the first half of this: clip_all_layers.py, Clips all layers in map to the specified polygon layer. Command line usage: python clip_all_layers.py "path\to\Some map.mxd" path\to\data.gdb\clip_poly path\to\destination.gdb Relative paths are interpreted relative to the mxd, not the current shell folder (ref). There's an example toolbox ...



Top 50 recent answers are included