New answers tagged

1

You seem to have misinterpreted a suggestion offered in a comment. Instead of: inputOne = "C:\Users\DELL\AppData\Local\Temp\tmpA378\tmpA379.gdb\PerpendicularLine" inPointElevations = inputOne print os.path.dirname(inputOne) pathAfterJoin = os.path.join(inputOne) arcpy.TopoToRaster_3d(inPointElevations,"D:\\Temp\\topo1234") try using: inputOne = ...


1

Yes, there is. Click tools>preferences>editor>code introspection. Go there and uncheck auto complete


3

I am afraid that you will need to create 79 distance rasters with the distance for each point. This can be done in model builder (with iterate features) or with python (loop on the ID with make feature layers). Once you have your 79 rasters, you can use "extract multi values to points" that will yield a origin-destination cost matrix in your attribute ...


0

i think it must be select by location with intersect, without a distance. If your buffers have a distance field (is the default), this information will be added to your point features by select by location.


2

You are missing a + after +str(year) at the end line. Should be: arcpy.gp.Reclassify_sa("F:/Dissertation/0201_HysplitOutputs/LAI_calc/FINAL/"+month+"_"+str(year)+"_LAI_CALC","VALUE","2 28 1;28 56 2;56 84 3;84 112 4;112 140 5;140 168 6;168 196 7;196 224 8","F:/Dissertation/0201_HysplitOutputs/LAI_calc/FINAL/"+month+"_"+str(year)+"_LAI_FINAL","DATA") ...


0

When I want two .mxd files open at the same time, I launch ArcGIS for a second time. I do this by right clicking on the ArcGIS icon shortcut in my task bar and choosing the option to open ArcMap. Once it is launched I can open a second .mxd file and I now have two ArcMap windows going. I can even drag and drop features between them.


-2

UPDATE: I've already find this explanation of Microsoft about reserved words for Microsoft Access. and....oh surprise!!! "LONG" appears!!! List of reserved words in Access 2002 and in later versions of Access This article lists words and symbols that you should not use in field, object, and variable names in Microsoft Access 2002 and later ...


0

One solution I managed to get to work was to use the Dissolve tool and then use Multipart to Singlepart. This first dissolved all polygons into a single polygon but did dissolve the shapefiles that were adjacent. Then using Multipart to Singlepart this created a shapefile where each merged polygon was given by a single feature in the attribute table.


0

A second approach using a utility exe (requires .NET 4) that I've recently extended: esri_addin_util.exe -o UpdateProperties --updateDate --addinDesc="Test Description ABC" --increaseVersion -f "Path to the Directory containing the esriaddinx file" https://s3.amazonaws.com/cumminsjp/misc/esri_addin_util.zip -o/--operation required option is missing. ...


2

I had the same problem and simply convert .xlsx to .csv only helped to display the x coordinate. I used the table to table file to create a new table from the .csv file and define the field type to be numeric. After that it worked. To me it seems to be more of an excel problem rather than an ArcGIS 10.3 problem...


5

@Caleb if you use the Spatial Join (Analysis) tool, you can click on fields that pop up in the 'Field Map of Join Features (optional)' portion of the tool window. While a field is highlighted, click on the 'X' to the right and it will delete from view (and therefor not show up in your Join output feature class). Also, you can set join rules for certain ...


0

This is normal behaviour for a Join - ALL fields are returned from both the feature class and the joined table. You can now export that joined dataset to a new feature class In ArcMap from the Right-Click context menu: Or using the ArcToolbox tool Feature Class to Feature Class. With this new feature class created, you can now use the Delete Field tool ...


1

I would use a data access module da Update Cursor and the replace() method to accomplish this. The following is the preferred (new) method of using an Update Cursor. import arcpy shp = r'C:\path\to\shapefile.shp' with arcpy.da.UpdateCursor(shp, "your_field") as cursor: for row in cursor: row[0].replace("-", "") cursor.updateRow(row)


0

Here would be a procedure suggestion using Matlab and the mapping toolbox. this is not a turnkey solution, but if you are familiar with matlab, it would provide you the advantage of automation and replication on many rivers. 1- Produce a centerline, either by hand in ArcGis or produce it automatically (google for a method). I have'nt found a way that ...


-1

Not sure if this will work for you, but we've found that tables built in MSWord and pasted via clipboard (as an EMF) seem to behave much better than Excel ones.


0

I would tackle this problem in a completely different way. Cursors are great, but you really don't need one here. You basically want to select records according to a giant SQL Query, and delete those records. First, build up your query bit by bit, to make it more manageable. I would test the selections first individually and as a group: a = '"LAND1" = ...


0

I got it working. Seems I had to assign my dockwindow to Nothing before I use the getDockableWindow() method. Also had to change show() method. Protected Overrides Sub OnClick() Try ' Only get/create the dockable window if it's not there Dim dockWindow As ESRI.ArcGIS.Framework.IDockableWindow dockWindow = Nothing If ...


0

When using the summary statistics tool have you tried selecting IN_FID from the drop down under the Case field? Its the last option when you are using the Summary Statistics tool. This should give you the MAX_VALUE and IN_FID fields in a table.


0

The non-python method of achieving what you're looking for would be to use a definition query to single out an institution type, like "police". The definition query would look like this (for shapefiles)... "INSTITUTION" = 'police' Then sort your table by "value" in descending order. The "FID" with the highest value will be at the top. You would have to ...


0

Here's a complete sample that shows how to use the DockableWindowManager (C#, sorry): var w = ArcMap.DockableWindowManager.GetDockableWindow(new UIDClass { Value = ThisAddIn.IDs.DockableWindow1 }); if (w != null) { w.Show(true); } In VB.Net, the ID's are in My.ThisAddIn.IDs.


2

I would try doing this using the Select (Analysis) tool: Extracts features from an input feature class or input feature layer, typically using a select or Structured Query Language (SQL) expression and stores them in an output feature class. in batch mode: To use batch, right-click a tool and click Batch. This opens the batch dialog box with ...


2

One way would be to use ICurve QueryPointAndDistance to and get the DistanceAlongCurve value for your 'B' point. Then call ICurve.GetSubcurve twice (with the DistanceAlongCurve + 2 and DistanceAlongCurve - 2) and the fromDistance parameter as 0. And the asRatio as false. The "To" points of the resulting subcurves would be your 'A' and 'C'. ...


3

Taking multiple questions out of order: The size of a raster is just the product of bit-depth/8, bands, rows, and columns plus header metadata (statistics, etc.) 32/8 x 1 x 32225 x 13417 = 173079300 bytes ~= 1710Mb 8/8 x 1 x 32225 x 13417 = 43269825 bytes ~= 438Mb ArcGIS does not report the compressed file size. Compression tools are very sensitive ...


0

Works fine now. Here is the code for anyone interested. Useful if you need to copy OSGB1936 co-ordinates into Google Maps. Seems the way I was inserting the text into the clipboard was crashing ArcMap. Also should be tool not button. Protected Overrides Sub OnMouseDown(ByVal arg As ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs) MyBase.OnMouseDown(arg) ...


0

In ArcCatalog you can create a raster catalog in a .gdb (Data Management Tools->Raster). Unmanaged is fine. Then right click and load (if the rasters are just sitting in a folder then "load from workspace". If you load the raster catalog into ArcMap you can right click-> data-> export footprint, as a shape file or feature class. The shape file will have a ...


3

Addins are not backwards compatible and cannot be installed on an earlier version of ArcMap. You'll have to set up a development machine or VM with ArcGIS 10.0 and Visual Studio 2010 to compile the addin then it can be distributed to PCs running later versions of ArcGIS.


1

First you don't need to use updateRow() when you delete a row. Also, all your conditions are exclusive, so using elif instead of if would be neater and probably speed up your code a little bit. And third, calling the garbage collector gc.collect() is pretty useless here, just remove it. So your code would look like this: newcur = ...


0

From within ArcMap you can manually save your map view to Tiff, Bmp, Pdf, etc. File, Export Map, Save as type.


0

This worked. As long as i didnt use the ESRI ArcMap Addin form template it was ok. With ArcMap addin forms it always gives an error about using Hooks. When you call the form must have a hook variable passed through it or something. Didnt quite understand it. But using the standard VB.net form was ok. Dim oform As New ArcMapAddin2.Form2() oform.ShowDialog() ...


2

In the label settings for the feature where labels should not overlap (in this case, the rivers) the Feature Weight should be set to a number higher than 0. I believe Feature Weight is on the last tab of the label settings.


0

A dotted line means the output is acting as a precondition to the tool. So in your model f%value%_D must exist (thus the Euclidean Distance tool ran without error) before the Raster calculator can execute. Your Raster calculator expression is Ln("%f%value%_D%" + 1). Look inside the() you are attempting to add a number 1 to a string which makes no sense and ...


2

There were a couple of errors in your code: desc = arcpy.Describe(infc) should be desc = arcpy.Describe(inputfc) You've used "infc" instead of "inputfc" for feature in pairt: for coPair in feature: mypoint.X = coPair[0] mypoint.Y = coPair[1] myarray.add(mypoint) polyline = arcpy.Polyline(myarray) myarray.removeAll() ...


1

This is typically due to installing the new version of Visual Studio after ArcGIS 10.3. The easiest way to correct this is to run your ArcObjects SDK installer then select Modify and turn on the option to install the VisualStudio 2013 SDK:



Top 50 recent answers are included