New answers tagged

1

@JasonBK @jasonbk The CreateMapSDDraft method used in this sample asks for a {folder_name} parameter that was setted to None, so by default it points to root level (see below). If you want to use a sub folder you must specify this instead of None, so in the sample you will use something like this: analysis = arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft,...


3

It looks like you're mixing up data access update cursors and calculate field. Use the data access update cursor (it's faster): with arcpy.da.UpdateCursor (StreetCenterlines, ["Latitude", "Longitude", "SHAPE@X", "SHAPE@Y"]) as cursor: for lat, long, x, y in cursor: row = (x, y, x, y) cursor.updateRow (row)


-2

Here are few web-links which might be helpful: http://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8cahttp://ianbroad.com/arcgis-toolbox-create-unique-id-arcpy/13e1fdaf5948b http://support.esri.com/technical-article/000011137


-1

Doing this kind of process using only Argis and it's tools might be a bit too long (from both a performance and practicale point of of view). My advice? Export everything on Postgres and work on a local server. This'll be both a lot faster and easier to set up a Batch process, even on a lot of data. Since you can select and join attributes pretty easily via ...


-1

Go to join option in point layer choose join by location Spatial Join Will work.


2

Right click the Field Name which is in your case [kml_name] go to Field Calculator and write "Karaikal". The double quotation mark is must, and it will update all your cells at once. Based on Feature To Polygon tool, there is an option to preserve the attribute. you need to check that. If it is unchecked, the attribute will not be preserved. I think you ...


0

You could try converting the raster to a polyline (http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polyline.htm) and, subsequently, converting the lines to polygons (http://pro.arcgis.com/en/pro-app/tool-reference/data-management/feature-to-polygon.htm). The feature to polygon tool requires an advanced license; if you don't have an ...


6

As @Martin mentioned, the Dissolve tool allows you to choose multiple fields to dissolve by. Run the tool and select NAMA_KPH and PL15_ID.


0

EMVTP (http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/extract-multi-values-to-points.htm ExtractMultiValuesToPoints) can extract several attributes, from several rasters at a time. This is how it works: in_point_feature = "ResearchPlots" in_raster_and_fields = [["SoilData", "Texture"], \ ["SoilData", "...


0

on your screenshot, there is a problem with the cell size. The unit in mercator cylindrical is meter, therefore your should "convert the cell size from degree to meters. If your input cell size is 0.04166 degree, I suggest that you use 4000 m (at the equator, 1 degree ~= 110 km and it decreases towards the poles, here I take a rounded value with something ...


0

Here is a Python based spell checker for ArcGIS. There are three toolbox tools that will check the spelling of the layout items (title, legend, text), an attribute column, or the table of contents. The misspelled words are printed to the geoprocessing results window. The tools requires an installation of PyEnchant which is included in the zip file as an ...


0

Use the Data Driven Pages toolbar to automagically generate maps for all counties.


0

Just follow the link - very detail solution with basics https://youtu.be/K1Z3AGOnWrc


0

Sorry, but you cannot run the "hot spots" tool on linear feature events. Since the CSR (Completey Spatial Random) assumption that you are testing against is based on area, the statistic produces invalid results when applied to events, constrained by a linear feature, that would require a CSR assumption based on distance. You cannot apply conditions to the ...


3

You can calculate the NDWI using basic raster calculator in arcmap. You need to use Landsat bands 3 and 5 (Landsat 8 OLI), and simply calculate a new raster with an algebraic expression: (Band 3 - Band 5)/(Band 3 + Band 5) You should preferably use images corrected to TOA. In this example I have bands 3 and 5 The result is a raster with values between -...


0

Another option would be to : 1-create your layout template; 2-select the layout elements (using the "select elements" cursor); 3-Copy the layout elements and to past them in the layout view of your target MXD file; You may have to drag the data frame into the layout view (causing a double). My Arc license is located on a distant server and I couldn't ...


4

If you already have the Name field, as your images shows, then right-click on the field header and select "Field Calculator...". In the field calculator window, enter an expression in either VB Script or Python which checks the value of GRIDCODE and returns the appropriate name for each of the four possible values. To calculate the total area for each ...


6

In your table, right-click on the column name StreetNames and select Field Calculator... In the Field Calculator window, double-click on the field you want to copy (in your case TEMP, in my example I've used Sub_Unit_Type) and click OK Your StreeNames will now be overwritten by the values in your other field.


2

With VB script you just make the expression [temp] and in Python the expression is !temp! The Field Calculator has a field list to pick from on the left, so you can just double click the field name and it will add the delimiters around the field name.


1

You should be able to convert your feature class to a GRID using the elevation attribute, Feature to Raster in Toolbox. Cell size and projection should be the same as the GRID you want it to go into. Then add the grids together in Raster Calculator.


1

Another option: Use a definition query in layer properties on the County layer. "COUNTYNAME" = 'CountyYouWantToShow' This will only show the polygon for the county you're interested in. Then in Data Frame Properties, Data Frame tab, Clip Options, Clip to Shape, Specify Shape, Outline of Features, pick your county layer in the dropdown. This will show only ...


1

If I understand you well and you have Spatial Analyst, you can use the Reclassify tool to classify the target classes with the new values. If you do not have Spatial Analyst, then convert the raster image into vector shapefile (Polygon) and select the polygon that you need to update their class values into the new one. then convert it back to raster. Another ...


2

To prepare your script for receiving a parameter from the user, assign value to arcpy.getParameterAsText(0). The zero in the assignment identifies this as the first parameter you will set in the script tool. Next, modify your script to work with the parameter. Add an IF/ELSE statement to handle the option to clear the query: value = arcpy....


0

Try this (untested) snippet on a layer. if lyr.symbologyType = 'UNIQUE_VALUES': field = lyr.symbology.valueField freqTable = arcpy.Frequency_analysis(lyr.dataSource,"tempTable", field) freq = arcpy.da.TableToNumPyArray(freqTable ,field).tolist() vals= [val[0] for val in freq] lyr.symbology.classValues = vals


0

Yes you can do this. On main menu bar, there is the option for "Selection", click on it and then there is an option for "Select by Attribute". This will open a new window, if you have more than one layer for your map, please select the layer that has the counties. This should populate the list of attributes for the counties--use the one that has the list of ...


0

Errors should be analysed with Event Log Explorer to permanently get rid of the problem otherwise it keeps on reoccurring. Sometimes the previous logs should be analysed properly as they are the root cause of the real error. Check this for Windows Error log Analysis http://eventlogxp.com/blog/troubleshooting-philosophy-windows-event-log-error-analysis/


4

What you're trying to do won't work as you're not passing back the same information as you asked in your cursor - ["SHAPE@XY", "centerpo_4", "centerpo_5"] - it is expecting three values back. This is why you're getting the error TypeError: sequence size must match size of the row First you need to pass your new XY to row[0] as a tuple. As your other two ...


3

The easy one to fix is the icon size for the buttons on your toolbars. Use the Main Menu to find Options tab on the Customize | Customize Mode dialog, and tick the Large icons checkbox. Increasing font size is messier but explained well at http://gis.stackexchange.com/a/31347/115


0

I came across some software a while ago that may be of use for indexing GeoDatabases and other spatial data: https://www.voyagersearch.com/ I trialed it for our company and although we didn't end up using it for various reasons it has loads of useful functionality. In summary it creates an index of your spatial datasets which can then be searched using ...


0

@GisPlanTechLab Select Landuse layer. Right click and select properties. Select the tab Symbology. Select Categories, then Unique values. Then with the drop down option for value field select for "Unique value." This should then list all your zoning types below in the box. Here you can then right-click on Commercial and select remove value(s). This should ...


0

Thanks a lot Midavolo! Unfortunately, I don't have access to the Water Utility Network Editing and Analysis toolbars (which as you say has a Rotation to Features tool that populates a ROTATION field with the orientation of a line, which you can then use to rotate your symbols for each point). However, you got me thinking that if a tool can read the direction ...


1

You defined your variables as POINT_X and POINT_Y, but you use in the function X and Y. Then i also would go for an easier approach and not the old string formatting method, that is harder to read. In the code block you can put the following that is more logical (in my opinion): def Output(POINT_X,POINT_Y): return '{'+str(round(float(POINT_X),4))+'}'+'{'+...


0

What worked for me was to export the data in shapefile format. This can then be imported into a geodatabase if required. Note that exporting to shapefile will result in field names being truncated if they exceed 10 characters.


2

You give no indication on the size of the raster or how many buffers so the following approach may be impractical and there is a better way. Anyway here is one method: Convert your raster to a point dataset, if you use the buffer polygon as a mask you will reduce the data volume. Assuming you buffers have a unique ID (don't use FID/ObjectID - create one if ...


1

The first Feature Class you add to the tool defines the output scheme, which is entirely editable. In the Field Map dialog of Merge, you can right-click a field to add input fields or remove fields; under properties, you can change field types, field widths. You can Delete fields for the output. With the plus button, you can add a new field.


2

In field calculator, if you are merging two text fields, put single or double quotes around each field name. Also, make sure to see the combined length of these two fields do not exceed the length of the column you are calculating on.


4

The toolbar is designed to work with a "SurveyGeodatabase", which is created in the first step of the Toolbar workflow. Unless you are working with a set of total station data, I think the toolbar is not the right fit for your needs/task. This step in the toolbar actually relies on ESRI's "TIN to Raster" Geoprocessing tool, which can be accessed from ...


0

An alternate way is to combine all the values from each layer into one layer, using this way you will have the minimum and maximum values in on layer. The illustration: 1.combine the values from all layers into one column (let's name it as All_Vals) in an excel sheet next to the All_Vals column add two new columns named as X and Y and fill them with ...



Top 50 recent answers are included