New answers tagged

0

The MXD file's layer seemed to have something wrong with it so I couldn't simply just publish it. Also doing that didn't allow me edit some information regarding the layers. I ended up finding a gdb file which allowed me to add the layers and edit them as I saw fit.


2

The line os.path.join is throwing the error. This can be fixed by changing that line to fullPath = os.path.join(workSpace, lyr.name) although personally I'd remove it and use the following: mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, '')[0] workSpace = r"J:\foo\bar\test.gdb" for lyr in ...


2

Perhaps an expression like this would work better: [OU] = '001' AND [Formation] = 'Residuum' OR [OU] = '002' AND [Formation] = 'Residuum' It's a little tedious in its formatting, but should return the results that you're after. A little more elegant expression would be: ([OU] = '001' OR [OU] = '002') AND [Formation] = 'Residuum' Either one should ...


2

It would seem like you have to split the sidewalk features into smaller segments first. Then you can match the segments onto the most appropriate road. We've looked into this issue before and found that combining distance and orientation yields the best matching results. The method is published in Graser, A., & Straub, M. (2015). Improving Navigation: ...


-3

There are some new tools located at LIDARWidgets The tools there will batch convert LAS to ArcInfo grids, AutoCAD DXF mesh files, DXF point clouds, or QwtPlot3D viewable meshes. There are also tools that will convert standard XYZ files to the same format mentioned above.


0

Since you are on Network Analyst and ArcGIS, you could use Python for this: You need to construct all possible pairs of cities. That is, your shapefile of 400 cities will be your input for permutations list of length 2. So, the cities = ['city1','city2','city3'] will give you with the help of list(itertools.permutations(cities,2)): [('city1', 'city2'), ...


0

Create an arbitrary common factor in each table. For example, in each table create a column called "Merge". Make it an integer short field. Now open the Calculate Field Tool. Click the expression box and in the code block insert the code below. In the Pre logic script code type: autoIncrement() rec=0 def autoIncrement(): global rec pStart = 1 ...


0

You can achieve this without timely computations of viewshed. SUGGESTED WORKFLOW: Add geometry attributes and id’s to both houses (70 total) and towers (40 total): Spatially join towers to nodes (one to many, massive search radius) and concatenate their names into field FROMTO: Convert first couple of XY into points Convert second couple of XY into ...


0

Do you have any Python skills or Model Builder Skills? If not, now is a good time to learn because this is a great problem to solve with Python or Model Builder Iterators. Your labor will be worth the effort since you will end up with a reusable tool. Those wind farm folks change those tower location often! With looping, you will only need set the path to ...


2

If you want to calculate the sum of cut and the sum of fill do the following: Go to the attribute table of the layer Sort the rows by volume Select the rows with minus (i.e. fill) (highlight them) at the bottom of the window you can click on 'show selected records' Click on the VOLUME column id and click 'statistics' Here you will have the sum for all the ...


0

After several tries I had a solution for the problem. I'm still not perfectly satisfied with the result but it does what it has to. It creates a list of IDs and REGION IDs. If I Join this CSV to the shapefile I can use Dissolve by REGION ID and that's it! I've created a tool of it in ArcGIS. It may help someone so I copy my code here: import arcpy import ...


0

The execfile method described by @JasonScheirer allowed me to rearrange my code to that below and provides a solution to my test problem: import arcpy inputString1 = arcpy.GetParameterAsText(0) inputString2 = arcpy.GetParameterAsText(1) arcpy.ImportToolbox("H:/Temp/test.tbx") # Write second Python script to an ASCII file for first parameter & execute ...


0

I setup my bookmarks, then went through each of them in layout view and added a graphic rectangle to the extent of the data frame (by double clicking inside the frame and using the draw tools). I then converted the graphics to polygon features and added attributes for name and scale. The resulting feature class can be used for Data Driven Pages. It's not ...


1

If the polygons a have regular shapes like square of rectangle, you can go (in ArcGIS) to Start Editing -> Select the new feature to draw -> then use the right-click context menu to gain access to the "length" tool when creating a new feature. You can specify the fixed length that you want. If the polygons are of irregular shape, you can follow the ...


0

I had this problem, and tried all of the suggested fixes above. The only thing that worked for me was creating a .gdb to write the clip files to. Easy fix! Has to do with how they wrote the code for the tool...


2

Add Join requires that the Target is a Layer or a Table View, not a Feature Class or Table. The difference is that Layers and Table Views exist only in ArcMap Desktop and support display and record selections while the other is what is stored on disk and shown in ArcCatalog that does not let you select records. Copy Rows only creates a Feature Class or ...


3

The first column is an automatic ID field. If for some reason you need to preserve the specific ID value for each row, you need to create a new column and populate it with the ID values. Merging two layers will definitely change the automatic ID for all the features of one of them (usually, retains the add order in the merge tool box). As for your point ...


2

The steps below require an Advanced license. Broadly, these are the steps: Reproject layers to same projection Use the "Near" tool to snap your stop points to your route lines Export data table and create new points from "snapped" XY coordinates Use the "Integrate" tool to make your snapped stop points and route lines coincident. Use the "Split Line at ...


0

To me below steps worked! Be sure all field names are of length 1-9 and have no space in them ( use _ instead). Be sure file (excel/csv etc) name follows arcgis path rules (e.g. no space etc) Be sure sheet (excel etc) name follows arcgis path rules (e.g. no space etc) Be sure all field data are formatted as text Be sure added xy layer attribute table has ...


0

Golden Software (disclaimer, I work here) just released Raster Tools. This add-in currently works on ArcMap 10.3 (let us know if you'd like it developed for other versions). Raster Tools expands the abilities of ArcMap when creating raster datasets from regularly and irregularly spaced XYZ data. It's ideal for users requiring more interpolation methods, ...


0

Calculate the min/max values for X/Y using the field calculator or similar for respective new fields: XMin XMax YMin YMax Using a these functions: !shape.Extent.Xmin! !shape.Extent.Xmax! !shape.Extent.Ymin! !shape.Extent.Ymax! Then calculate the centerpoint using: Xcenter = ((XMin + XMax) / 2) Ycenter = ((YMin + YMax) / 2) The best would of ...


3

I can see two ways to do this. After following your steps, you can edit the fishnet Feature Class. After Start Editing select all features from the fishnet and Move (Editor toolbar, dropdown menu) them. For X and Y you should set the half of cell size. The numbers should be positive or negative depending on the direction you have to move the grid. While ...


0

Use method bootstrapArcobjectsJar described in: http://help.arcgis.com/EN/sdk/10.0/Java_AO_ADF/ConceptualHelp/engine/index.html#//0001000003n1000000 In export options for runnable jar file select 'copy required libraries into subfolder ...' Then you should be able to run your app without generated subfolder. Bootstrap method will find and add arcobjects to ...


0

I got this error message as well but continued to fill in the TYPE and DISTANCE in the box below the Snap Environment and it worked despite the error message. A bug perhaps?


0

To me they do not appear to be split in either picture so I assume that you mean there is a gap between the lines/polygons in the bottom picture. I suspect that what will happen when this is the only feature class added to a new map is that that when you select a polygon adjacent to the "split": only one side of the "split" will highlight you will be able ...


0

Definitely need to rename your model elements so they don't have percent signs in the element name. That will definitely break the parsing in the raster calculator! Note, the value of the element can have percent signs in it, but the element name/label cannot have percent signs.


0

I was able to execute the code successfully.However, i did not see the layer being removed from the map service. Your Python code above correctly removes the "test" layer from the MXD, so there are no problems with the code. But the ArcGIS Server service does not constantly "listen" to the MXD, so changes that you make to the MXD will not ...


0

You can make a new raster where the cell values will come from the "project" field of this raster using the spatial analyst tool called "Lookup."


3

Yes, you can access previous values with Field Calculator. I'd suggest migrating to Python and using update cursors, where it would be a lot simpler to work with values forward (via reading into a list) or reverse. Code Block: prev=None def diff(curr): global prev if prev is None: prev = curr res = curr - prev prev = curr return res ...


0

You can use the GISus-M to calculate LS-factor. https://www2.ufrb.edu.br/gisus-m/



Top 50 recent answers are included