Tag Info

New answers tagged

1

The standard ESRI tech support response probably would be to reset your application profile. They usually recommend renaming the ESRI folder in your user application data folder. That is effective in letting you know if the problem is in your templates or registry settings, but you do lose all customizations. So if it works and you don't want to redo your ...


2

Within ArcMap, I think you're looking for the Raster to ASCII tool (under the Conversion Tools -> From Raster toolboxes). (The Matlab output, if it's in ASCII, can in theory be imported into arc with the related ASCII to Raster tool -- not sure if you've tried that.)


0

You can use the gdal utility gdal_translate to convert from tif to Arc ascii grid I think the basic command would be like: gdal_translate -of AAIGrid input.tif output.asc


0

Assuming you're trying to use it within a GIS-system, QGis does the trick. It's a free GIS-system, and you can set transparancy layer-based, toggle layers on and off, switch around the order, ... Whereas - to the best of my knowledge - Arcview or MapInfo's Proviewer do not offer the option to combine layers. That said, transparancy and opacity are not ...


2

The Grid Index Features tool can be used to create a grid above features and there is an option to only create cells for intersecting features, not for the square extent. If you need to join the attributes from the 5 km cells, use Spatial Join with 'HAVE_THEIR_CENTER_IN' as Match Option. Then to calculate the incremental ID for each cell within a 5 km ...


1

Since you are looking for a book, there is one published by Esri Press recently: Esri ArcGIS Desktop Associate Certification Study Guide


1

The ArcGIS Desktop Associate 10.0 certification is already quite specific about what it seeks to test. If the suggestions offered on its Preparation Resources tab are unsuitable or insufficient then I would recommend that you seek terms from its Skills Measured tab for searches against this site and the ArcGIS Online Help. For example, "arcgis supported ...


2

Make your table look like you want it to in your layout; change field aliases, hide fields you don't want etc. When you're done, use the "Add table to layout" button:


0

As indicated in the Comments, it looks like you may be encountering an issue that is no longer present, because @AlexTereshenkov reports that it works at ArcGIS 10.2 for Desktop. Consequently, your options would seem to be: Upgrade your version of ArcGIS for Desktop, preferably to 10.2 or later If your local Esri Support can confirm it as a bug that has ...


0

I think this may be a Question best posed to Esri's software developers via your local Esri support because it sounds like you are saying that you think they made a mistake when finalizing their 10.2.1 release. If they did, then I suspect they will be keen to address it, but if they stand by their code, then they may be able to help you with the Python ...


1

You could dissolve all polygons together to create one big landmass. Then, convert to polylines using the Feature to Line tool. Note, Feature to Line requires an ArcGIS for Desktop Advanced license. However, there are other tools out there that will convert polygons to polylines. XTools, for example.


3

Your SQL query should be: (subd = 'town1' or subd = 'town3') and village in ('v1','v3','v7','v8') for only town1 with v1,v3..v8 and town3 with v1,v3..v8.


0

Modelbuilder! Add iterator: FOR Set it to start at 10, iterate from 0-350 or so, in iterations of 30. Output of iterator will include Value variable. Select by attribute, as so: FID = %Value%+1 or FID = %Value%+2 or FID = %Value%+3 or etc. For the FIDS: First iteration: 0+1, 0+2, 0+3 Second iteration: 30+1, 30+2, 30+3 Third interation: 90+1, 90+2, ...


0

You may be accidentally overwriting your output with each iteration. Have you given each output a unique name, using inline variable substitution or the like? Try naming your output file like so: C\foo\bar\%value%.


4

An .esriaddin file is just a ZIP-compressed archive containing the files that make up your add-in. You can open it with something like 7-Zip to prove this to yourself. The Essential Python Add-in concepts article hints at this. The layout of your-addin, including definitions of toolbars, menus and buttons, is all stored within the config.xml, whose syntax ...


0

Use two models: 1) Import/Reclass and 2) weighted sum/output. To get the year to sum on, use an interate rasters. In Model Builder, Add Field "Year", calculate field [year] as: left(%value%,4) That will get you the first four characters of your raster name to use as a year. Once you've got a year field for all your rasters, sum them together on the basis ...


0

The symptoms that you describe seem to be the same as those discussed in the Esri Knowledge Base Article 38563 entitled Error: AttributeError: 'module' has no attribute when calling Spatial ETL tool which recommends that you: Copy and paste the following code into the Python script after importing the arcpy module and before using the Spatial ETL tool ...


1

Thanks for all the help but I think I fixed the problem. The computer had two versions of python 27 installed and seems that that is the reason behind python crashing when using the CalcFiled method. I removed the version Arcgis does not use and it is not crashing anymore so its working normal now. Thanks for the help


5

Try something like this: import arcpy from arcpy import env env.workspace = "E:\Example.gdb" # here you are creating a list of all features from your workspace lst = arcpy.ListFeatureClasses("", "Polyline") # and here you are looping for featureClass in list: arcpy.CreateRandomPoints_Management(


1

I would simply set my workspace (arcpy.env.workspace = "NAME OF GDB HERE") and then list the Line feature classes into a python list (fcs = arcpy.ListFeatureClasses("","Polyline")). Then you can loop through them. So same as other answer provided but with 1 minor difference - incorporating the Polyline option: import arcpy arcpy.env.workspace = ...


1

You will have to insert a Calculatate Value tool. In model builder, Insert / Model Only tools / Calculate Value. In expression, enter: "\\".join('%scratchworkspace%'.split("\\")[0:-1]) The resulting "folder" will be in the output variable. Default name output_value, but you can change that by renaming the output. You could also use this Calculate Value ...


0

Answered this one myself. What I ended up doing was exporting the Raster Datasets to tiff files, opening both images in ENVI, and running a 2D Scatter plot.


2

what you need to use is MakeXYEventLayer_management to create a point layer CopyFeature_managment to convert your layer to a feature class (some analysis are not possible if you don't have an object identifier) SpatialJoin_analysis to get the value of the closest line feature class to your point What you should know is that the GUI uses LAYERS to ...


1

Map package, as suggested by @PolyGeo, is the way to go if you want to distribute the map along with the data, relative path may also work in some situations as pointed out by @Hornbydd but you can also easily fix multiple "broken links" by clicking the red exclamation mark rather then linking individual data sources. Clicking the exclamation mark will ...


1

you seem to have just two cases, so a conditional statment (using map algebra or raster calculator) could help Con( IsNull(C4), float(C1 + C2 + C3)/3 , float(C1 + C2 + C3 + C4)/4) In this case you apply a weighted overlay (with the same weight) that is different with or without NoData in C4. Note that you can change the weights if you want (see below): ...


1

You can use "Eliminate Polygon Part" tool (Data Management Tools -> Generalization) in ArcToolbox. You can specify minimum hole area/percentage to remove.


3

Why not make everything relative to your MXD? This approach only works if what you are doing can have all the data stored in sub-folders relative to your MXD. This works well with small projects. But you don't say where your data is? If they are spread across multiple drive spaces then as suggested by @PolyGeo the map package is probably your only option. ...


2

Selection by attributes: "field_name" LIKE 'C%' Field_name is attribute that contains your annotations.


8

The way to do this is to create a map package: Map packages (.mpk) make it easy to share complete map documents with others. A map package contains a map document (.mxd) and the data referenced by the layers it contains, packaged into one convenient, portable file. The downside of this will be that with the inclusion of raster data sources, your ...


0

In the ArcGIS 10.2 Online Help there is a Debugging Python add-ins page which says: Anytime a tool or button fails to load and displays Missing on the toolbar instead of the expected icon or name, it is commonly due to a Python syntax error. Recheck your Python script for syntax errors or incorrect inputs to Python functions.


0

Been thinking on this since you asked, and I can still only solve part of the problem as you have framed it. It's a good approach and I'm not sure if there is a better one, but it did occur to me that you're trying to transfer attributes from the streets (gray lines - which I assume hold those attributes) to the pipes by creating an intermediate polygon ...


1

You can export a raster to ASCII in ArcGIS for Desktop using its Raster to ASCII (Conversion) tool: Converts a raster dataset to an ASCII text file representing raster data. You have also mentioned some other requirements in your revised Question which I think are best researched/asked separately so that this Question remains focussed.


0

Easiest way to do this is to add a field and specify float. It will give you the option of setting a "Precision" and "Scale." Precision indicates total number of characters allowed in the field. Scale indicates total number of decimal places allowed. Set Precision to whatever it needs to be and set scale to 3. Then, in field calculator use the expression: ...


2

I suggest using the Create Database User tool and create a test user. http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000017r000000 Something like: arcpy.CreateDatabaseUser_management("yourconn.sde", "yourDB", "user", "pass", "db_datawriter") Then use the Change Privileges tool to add a few privileges to the test user. ...


2

You can use tool Raster Calculator. Then type this expression: SetNull("raster_name"<0, "raster_name") Choose output and you should create new raster with elevation 0-n.


1

Using Raster Calculator in ArcGIS should accomplish this task. Create a new field in your land cover raster and assign indicator numbers to each type (ie, Industrial = 100, Forest = 200, etc). Then add the two raster layers. Your output will have a 3-digit field where the first digit will indicate land cover and the second and third digits will represent ...


2

Focal Statistics and Raster Calculator are fairly different tools. First, you need to have a raster of cells that can be used to determined whether it's developed -- for a simple example, "house" (1) or "not house" (0). Run Focal Statistics on this data. Use a rectangular neighborhood (3 by 3 cells), statistics type SUM. I think this may be what you ...


2

If you are asking if a shapefile that is created with QGIS in a Mac environment will open with ESRI in a Windows environment, the answer is yes. A shapefile is a file format. It will respond to software the same, regardless of operating system. Think of it like a JPEG. You can make JPEGs on a Mac, and view them in Windows, or Linux.


1

Artwork is right, but note that the split_analysis tool does what you want. You just need to make sure that you have a field column with valid output names.


1

Depending on the version of ArcGIS you are using you may use the Iterate Feature Selection method which would precede your clip tool to pull the attribute value into a variable (Insert menu>Create Variable option), which may be consumed through an in-line variable substitution into your output layer name. Check out this link below for some case examples: ...


2

The 3D Analyst extension is installed from the same media, or via the same means, that you used to install ArcGIS Desktop 9.3. You simply ensure that extension is chosen during the install process. You will need a 3D Analyst license. That is obtained through the same mechanism that you use to obtain ArcGIS Desktop 9.3 licensing. Finally, you need to ...


0

Ok, I know this may seem counter to how you have been approaching this matter, but, here goes another idea for how you could tackle this issue. Instead of starting with your pipelines and trying to buffer them out to cover the empty space, why don't you start with a polygon of the entire city/area you are trying to perform this operation for. From that ...


3

The Field Calculator configuration below can be used to set values on any odd numbers in your Odd pages field (and blanks in the other rows). In order to simulate a Data Driven Pages index for test data, I used Create Fishnet to create a polygon feature class in a file geodatabase, and then added text fields 4 characters in size called Odd and Even. This ...


0

The purpose of that box is to control how far generated polygons will extend beyond the outside edges of the network. Consider a dense grid of streets as in a city. Service areas for facilities near the edge of the network may extend well beyond the range of your network with high enough break values. You are not concerned with areas beyond 'city limits', ...


0

I'm not an expert on the function or its ArcGIS implementation, but based on your description and some reading I see two issues with your method and proposed solution. If it is correct that it ignores either the date or the time portion for any single calc, your solution assumes there are no fields that differ more than 24 hours. Also, as you've already ...


0

with perfect run off and if time is not taken into account (instantaneous run off), your sink will be filled when the area of the catchment multiplied by the height of the precipitation is equal to its volume (assuming that there is no run off FROM the sink). So you want the volume of the sink divided by its catchment area. see watershed if you need to ...


0

As @Erica said, there is an indentation error in your code block. I'm surprised it isn't throwing a Syntax Error when you try to run calculate field. In any case, codeblock = """import math def GetAzimuthPolyline(shape): radian = math.atan((shape.lastpoint.x - shape.firstpoint.x)/(shape.lastpoint.y - shape.firstpoint.y)) degrees = radian * 180 / ...


2

Every time you want to display information from the surface of the Earth on a map (or on a flat screen), you are doing some kind of projection. It is however not necessary to use a projection for analysing your geographic data. When you work in a projected coordinate system, different types of distortions may occur, and it is impossible to build a ...


0

1) feature vertices to points to get some points along your stream (if you don't have ArcInfo, you can use ET Geowizard) 2) extract value to point ta extract the value of the DEM for each point.


0

For other's clarification, the tool you are referring to is custom written for a toolbox included with the Fire Run Book. I do not know the specifics of the tool, but it is written only to output a PDF. It might be possible for someone to modify it, but that would be beyond me. There is also a script tool at the link below that could be used/modified. ...



Top 50 recent answers are included