Tag Info

New answers tagged

0

As suggested by @FelixIP you can pre-format your CSV to: Replace ND with 0.0. Replace NA with ridiculous -9999. Make sure 1st row in Excel contains numeric (if there is a number) with desirable decimal accuracy. then: When it comes to interpolation, select rows where CONCENTRATION <>-9999.


0

Make sure that you are formatting your paths correctly. Currently your CulvertFeature = "C:\Users\rdcoopercaroselli\RowynProjects\LiDAR_Work\AutomationTest\Automation_try2.gdb/Culverts" There are a number of other paths with the same issue.


1

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Dynamic_Layer_Table/02r3000000q0000000/ supportsAdvancedQueries would return false in the following scenarios: The layer / table resides in a workspace other than an enterprise database or File Geodatabase. The layer / table is joined with another layer / table from a different workspace. We ...


0

If you do have access to ArcSDE, then all of your conversion can be done within the ArcGIS Desktop/Arcpy kit of tools. For example, in ArcCatalog you simply right-click the feature class in your file GDB and select Export/Geodatabase (single or multiple items). If you are not afraid of scripting, I would recommend pyodbc. You can use a da.SearchCursor to ...


1

The builtin python min() and max() functions operate only on python iterables (i.e lists, tuples, etc.) and return the smallest/largest item in the iterable. They do not return the minimum/maximum value of a Raster object which is why a TypeError was raised. You need to use the Raster.minimum and Raster.maximum properties. For example: ("dem" ...


1

This is a file I built up over a couple of years wrangling with ArcMap & ArcCatalog extensions & then Add-Ins: Things that can prevent ArcMap from debugging Add-ins in Visual Studio: Release mode rather than Debug mode (if using old non-Add-in approach this can be a problem because most likely the \bin\Debug dll was registered with regasm, not ...


1

Upgrading my initial comment to an answer: I had a similar problem with ArcMap 10.3 in combination with Visual Studio 2013. I found all the same posts that @michael-miles-stimson mentioned, and indeed, at one point I could actually debug and hit a breakpoint. But for some reason that stopped working after a while, and there was no way I could get it to work ...


1

In my old job I had developed a tool that would identify this scenario so you could go back and replace the pour point. It required the vector network (do you have that ?) and tracing upstream to the source, the source being defined as the furthest point upstream. It was then a simple test of "is source point inside catchment polygon". If not, then you had ...


0

This same issue occurs for me if I am using a 64 bit Python version. I believe by default ArcMap/Catalog will use 64 bit Python for geoprocessing (if installed). To fix this I wrote the necessary steps in a python script and ran it in a 32 bit version of Python. In my case, I open a 32 bit Shell that should say something like [MSC v.1500 32 bit (Intel)] on ...


0

Some obvious steps(I suppose you have already tried these..but still). Check if the Mode is still "Debug" instead of release. Delete the "obj" and "bin" folders and rebuild.


1

Whilst cleansing I noticed that addins for ArcCatalog are copied to %USERPROFILE%\Documents\ArcGIS\AddIns\Desktop10.X{AddInID}\ where ArcMap addins are not Actually Arcmap Addins are copied to that location after installation too(or a Build in Visual studio). To solve this problem try these steps: Clean your whole Solution in visual studio by ...


7

I ran ArcGIS Desktop 10.3 on the Windows 10 Technical Preview for a couple months, over several different builds of Windows, and everything worked fine (I was on the "Fast" ring). I wasn't using it intensively but I didn't encounter any problems. However, I stopped using the Windows 10 Tech Preview around July 1 and went back to Windows 7, so I have not run ...


1

Since I used from arcpy import * (not shown), the line: cursor = InsertCursor (outFc, ["SHAPE@XY", "PGA"]) ...was calling the older version of InsertCursor. The proper code is: cursor = da.InsertCursor (outFc, ["SHAPE@XY", "PGA"]) This line calls the data access InsertCursor.


3

Esri has two mechanisms for making database connections embedded in the ArcSDE 'C' API. The first (original) protocol uses an application server (giomgr) process, usually running on the database server, to accept network connections and then bequeaths the connection to a child (gsrvr) process to manage database interaction on behalf of the client. While ...


1

Ok, I just verified I am able to step through code using this process. I am doing this in ArcMap, but I think it should apply to ArcCatalog since the process deals with debugging DLLs and not an ESRI specific item. I confirmed this in both ArcMap 10.2.2 and ArcCatalog 10.2.2. As this is a Windows process dealing with DLLs directly, ESRI software versions ...


4

You could use the raster Calculator something like (raster1>raster2>raster3)*1 OR (raster1>raster3>raster2)*1 OR (raster2>raster3>raster1)*2 OR (raster2>raster1>raster3)*2 OR (raster3>raster2>raster1)*3 OR (raster3>raster1>raster2)*3


0

This is a late answer and you may have already solved your problem. However there is no relevance between geometric network and editor tracking. they are two separate things. The snapshot you have shared indicates that you have enabled editor tracking with this feature class. If you can't see the dates fields, you may have hide them. So remove the layer and ...


0

^Hi `Andrea, The Union will create duplicate polygons on top of each other (older one + newer one) at areas where they overlap (the selected polygons below have 2 overlapping). You could deduplicate these by running Find Identical (use the [SHAPE] field and check "Output only duplicate records". Then Join your union polygons based on [OBJECTID] and ...


0

Here is the solution: Try removing SupportedRuntime from arcmap.exe.config, in the bin directory. This is the \ArcGIS\Desktop10.0\bin\arcmap.exe.config xml file. Why can't the breakpoint be "hit" when debugging an ArcGIS 10 Add-In?


1

I was experiencing a similar issue with my iterating model. I was calculating a field in a series of tables to equal the names of the tables. I was left with blank fields. Since the data type is string, the expression needed to include quotes around the substituted variable, such as '%Name%' as opposed to %Name%. With this change, the model worked as ...


0

I did the steps above, but at first it didn't work. Here's my solution if it doesn't work at first: Close all open dialog boxes. Go back into Properties and changed the symbol to something other than pie. Then, I changed it back to pie, and the steps above worked perfect.


3

You need to set a definition query (see link in @PolyGeo's answer) to show only the selected features that you wanted labeled. This can be done through the definition query tab in properties or through the labelling options called label classes (note - see @ChrisW comments below). I use these solution quite regularly and find them easy to do.


1

You need to write an expression in the label tool, to make only your desired values visible. Double-click the layer properties and select the label tab. Locate the "Expression" button and select it. Now you have to write the expression that will visualize only the desired values. You can choose between VBScript, Python, Jscript. You will need to check ...


3

The Symbology tab of the Layer Properties does not perform any selections. If you want the same features to not be labelled, I recommend that you apply a Definition Query instead: When you specify a dataset that you want to draw as a map layer, you often only want to draw some of the features in the dataset. In these situations, you can define a ...


0

If possible try to convert it to a .3ds file. I have had more luck with those than .dae for preserving texture.


0

It is possible with the LAStools Production toolbox, which can also be used from the ArcGIS toolboxes. According to rapidlasso GmbH the new toolbox has the advantage of batch automating LiDAR tasks across folders of las/laz files. A summary of Martin Isenburg's answer in the LAStools GoogleGroups is: a) Index the las files: lasindex -i folder/*.las ...


0

Using a list comprehension with embedded logic is an efficient approach to this problem. Using arcpy.Exists() function also allows you to check for the existence of feature classes in a geodatabase (note that os.path.exists() will not work for this). import arcpy fc = r'C:\path\to\fgdb.gdb\some_fc' li = [row[0] for row in arcpy.da.SearchCursor(fc, ...


1

SetNull is one way to do this, then follow with IsNull to create a binary polygon and then Raster to Polygon (simplify). A simpler workflow would be to use Con (SA): In arcpy: outCon = Con(Raster("elevation") >= 5, 1, 0) arcpy.RasterToPolygon_conversion(outCon, "c:/output/NewLandSea.shp", "SIMPLIFY") The Con tool is available interactively using ...


2

This can be accomplished directly with the Spatial Join, though note you need to use the actual GP tool, not just right-click layer and choose joins. Your parameters will be: target Features buildings, join features points, join operation one_to_one, set field mapping (see below), match_option within a distance of, search radius 2m Field mapping is the key ...


7

I am posting my answer in case this could prove useful to anyone jumping here in the future. In Raster Calculator I used: SetNull("DEM", "DEM", "Value <= 5") and it did the trick.


5

Spatial join your points to your polygons (by nearest) then use summary statistics to get the maximum value with a case field of the NEAR_FID. This will give you for every unique NEAR_FID (building) the maximum elevation. Both of these tools are available at any license level. You may encounter situations where a point is 'near' two buildings, in this case ...


2

This worked for me: result_output = "C:\\Data\\Results.csv" arcpy.TableCompare_management("C:\\Data\\Data.gdb\TaxLot", "C:\\Data\\Data.gdb\TaxLot2", "OBJECTID", out_compare_file=result_output) mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] data = arcpy.TableToTable_conversion(result_output, "in_memory", "Results") ...


4

Reclass the lake layer to (0) lake, and (1) Everywhere else that covers the entire river layer (union). Multiply (times) this output by your rivers.


2

I'm not 100% on this but I believe this is a way of transferring your connections. On your old computer navigate to Users > (user_name) > AppData > Roaming > ESRI > Desktop10.1 > ArcCatalog You should see a list of files with varying extensions: I think if you copy the files for the server connections you want to transfer to your new computer ...


0

select desired polygons you are working with and from selection make layer. export layer to CAD & explode polygons and just keep lines that make up the edge of the road, add any lines needed to close lines into polygon and join all lines in cad to make it a polygon. add CAD drawing to map. select CAD polygon copy & paste into layer as polygon to ...


3

You can use a Python numpy array and a .sum() operation to sum all of the floating point values in the array. ArcGIS has an easy interface to convert raster data to a numpy array by using RasterToNumPyArray (arcpy) # Import the arcpy site package import arcpy, numpy # Your input floating point raster raster = r'C:\temp\floating_point_raster.tif' # Convert ...


0

I haven't got ArcGIS to hand right now, but if you right click, select properties, and look under the general or source tab it might have a sum description, let me know if this doesn't help and I will look further. Gary


0

You should read help for the function in ArcGIS here. However, you could define number of neighbor points (cells) and the function will take the exact number of nearest points. Or you could define search radius in i. e. meters and all the points (cells) that fit into this radius will be taken into the interpolation. To choose the amount of neighbours, it ...


0

From my read of your question it sounds like you are after something like the Dynamic Charting for ArcMap sample application: This sample allows the ArcMap user to display dynamic charts summarizing lengths, area or any other numeric field of a layer. Only layers with unique value renderers are supported. This download includes source code. I ...


1

You can do this by using a field in your layer's attribute table as the source for the buffer distance, rather than specifying the distance manually. This works in either the Buffer Wizard or the Buffer geoprocessing tool. You would first need to create a field in your feature class, then populate it with the buffer distances you'd like to use for each ...


1

Assuming layer1 has symbology based on the field "symbol_field", and layer2 has a field "other_field" which contains data suitable to be symbolised in the same way as layer1: Add a field "symbol_field" to layer2 Copy the values from "other_field" on layer2 to "symbol_field" on layer2 Use arcpy.ApplySymbologyFromLayer_management(layer2,layer1)


1

All understandable! So for scenario 1 you created a layer file called red_sections.lyr then added that to MXD_2. In windows explorer if you look at the folder with the red_sections.lyr file it is only a few KB in size, so it cannot possibly be the data (all your polygons). A LayerFile which is what you created just holds symbology any definition queries plus ...


0

Since these are all separate layers, I suggest using two legends with a split between legend 1 and legend 2 occurring between the Fire Station layer and the Operational Area Station layer. You can then manually arrange the spacing of the legends as you desire. This approach avoids converting to graphics, so your legends will still automatically update.


1

The Integrate tool will fix small gaps in the data, but be very very very careful when using this tool on SDE data it will overwrite the existing features in the dataset with no undo. To use this tool properly: Backup your SDE data: either as XML workspace document, Geodatabase feature class (file or personal - use copy/paste), Shapefile or your current ...


6

Here's a handy list of keyboard shortcuts: http://www.esri.com/library/brochures/pdfs/arcgis-desktop-tips.pdf In an attribute table, Ctrl + Enter will move to the next row and select it. Then Ctrl + Shift + = (the equal key) will zoom to that feature in the map.


2

Let arcpy build the correct syntax for you and use .format() so you don't need to juggle extra quotes: def selectzoom(convwkgid): fc = "Convwks" field = arcpy.AddFieldDelimiters(fc, "CONVWGID") selection = "{f} = {v}".format(f=field, v=convwkgid) arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", selection) mxd = ...


3

It's maybe your extra double quotes at the beginning and end of your code: Let's say convwkgid = 10000001 '"[CONVWGID] = ' + str(convwkgid) + '"' doesn't equal "[CONVWGID] = 10000001" '"[CONVWGID] = ' + str(convwkgid) + '"' would actually be '"[CONVWGID] = 10000001"' Try instead: '[CONVWGID] = ' + str(convwkgid)


1

If you have the spatial analysis extension, you should be able to get good results with the spatial join tool using a one-to-many operation. eg. arcpy.SpatialJoin_analysis(points_file, buffers_file, output_file, "JOIN_ONE_TO_MANY") You can also choose which fields you would like to keep, so you can just keep the field which identifies the buffer.


0

I'am currently facing this problem too. I authomatized via python the creation as the report and the tif is added to the layout than, now I'd like to automatically fit on my view. Any ideas?


0

The service will need to be published out as either a feature service or WFS. This will allow you to export the data or perform spatial queries/selection on it. If the service is not one of the two noted above then it is probably just a WMS service which essentially is just images of the data.



Top 50 recent answers are included