Tag Info

New answers tagged

2

Try the following workflow: Reclassify your rasters so that Value = 1. Calculate Cell Statistics using a "SUM" statistic. Any value in the resulting raster > 1 is an overlap area. Additionally, the value of the resulting raster indicates how many overlapping rasters there are.


3

I'm not entirely clear on what you did, but I suspect you've misunderstood how map documents work and the distinction between data and symbology. Layers are just symbolization. You can have the same shapefile data represented ten different ways on ten different layers in a map. Layers are an mxd thing, not a data thing. If you start editing, now you're ...


1

Your question is a bit unclear. I try to explain to you what this script does: You have a column A and a column B. Depending on the values in column A we populate the empty fields in Column B. change(!A!) #write that into Expression of your Field Calculator, with the "!" you tell ArcMap in Python that this is a column def change (A): #everything from ...


0

The ASCIIToRaster tool is not interpreting the file names correctly, despite you setting the workspace environment. You need to include the full path, so in your case your line should be: arcpy.ASCIIToRaster_conversion(env.workspace + "\\" + ascFile, env.workspace + "\\" + rastFile, "INTEGER") Also as @Erica says you should get into the habit of placing ...


0

Check whether the raster exists by using a print statement, e.g. for ascFile in ascFileList: print ascFile If that prints a list of .asc files, try rebooting. If not, check that the raster is, in fact, there.


0

This answer was submitted by @Vince in the comments to the initial question. In a direct connection the Instance parameter needs to look like this INSTANCE = sde:sqlserver:(servername) and the Server parameter is ignored. More information can be found here


1

If you've already done the join, yes. If not, then you should start with the Join Field tool. This allows you to directly write attributes from one file to another based on a join (a one-step process rather than join/export two-step).


3

Joining a table to a shapefile won't change any data in your shapefile's attributes (thankfully!). Once you have the table joined to your shapefile, which you've done successfully, use the Field Calculator to copy the values from the joined table's fields to your shapefile's fields: Right-click the shapefile's field heading (we'll call it Field 1). Click ...


0

I've just written this for a similar task. It's for 10.2 but I think it will still work: def unique_values(table, field): with arcpy.da.SearchCursor(table, [field]) as cursor: dict = sorted({x[0] for x in cursor}) print type(dict) #testing to find type for i in range(len(dict)): whereD = dict[i] fname = whereD[0:5] + "_" + whereD[-4:] #just to ...


0

The last tip with the green tick mark solve my problem. Just to the the Untility and choose the "AdvancedArcMapSettings.exe", then check "create features using templates", reopen your arcmap, then start editors, everything works.


1

This tool has saved my life many times when working with excel data, or converting excel data in ArcGIS. The tool is called, Table to Table This tool allows you to format each field before you import - so that you can verify everything is correct (ex. text is text, and date as date). I've found ArcGIS works funny with excel, and it's best to import excel ...


0

Both the Field and Alias can only be changed in the Properties\Field Properties within a .gdb using ArcCatalog. Later versions eg 10.2.1 and above have a Data Management / Alter Field tool (although still only for .gdb). I export the changed file back to a shapefile for further use. A solution will be to change the MapInfo header file to align with the ...


1

I recommend working in a File Geodatabase and examining Shape_Length of feature_class + "_split". Sort Shape_length ascending, you may have zero length geometries from splitting lines very close to the start or end of the Line. As a test, delete the features that have 0 for shape_length and see if FeatureToLine finishes.


0

Not sure about your specific error, but if you are trying to split your input line FC where the features intersect, why not just return the output of the Intersection tool output as a line (output_type="LINE" or better yet output_type="INPUT")? I think you may be doing some gymnastics that are unneeded.


0

If you have access to the Spatial Analyst extension, you can also use the extract by mask tool.


2

You need to remove the trailing colon on the last line. return myText: should be return myText I don't see anything else that jumps out, but that's definitely the cause of the current error you're seeing.


1

Sounds like you want to use the Append tool. So if your new data is EXACTLY the same format you could append the data to an existing table. Think of it as adding more rows to the end of the table with your new data.


2

Here are a few options for clipping in ArcGIS: Clipping the DataFrame This allows you to draw a shape with the draw tools and "Clip to shape" which may be more what you're looking for. You should be able to draw a shape like a polygon and clip to it using this option. Using the Editor to clip. This is a quick and dirty way to clip your existing dataset, ...


-1

Use esriSimpleFillStyle.esriSFSHollow. Or even esriSimpleLineStyle.esriSLSNull can be used.


0

I figured out a few reasons why my WMS layers were not drawing: I was adding individual WMS layers to the map - layers will not draw unless the full parent WMS group layer service is added - individual layers can then be turned on/off as desired. Folder permissions on our ArcGIS server were set incorrectly for WMS service. I'm not sure why it was letting ...


5

It has already been created. Try SplitLayerByAttributes


0

One way this can be done is in a python script. You'd need to ask for the name of the field you are interested in (in your case it would be the county code) and extract unique values from its rows with a SearchCursor. You could save the data to a list and then iterate through the list and use a where clause with arcpy.Select and output each separate ...


2

I would use the following workflow to calculate the area within the classes: Reclassify (Spatial Analyst) the kernel density output to whichever classes you are using. By default ArcGIS creates a continuous raster surface for the kernel density output, but reclassifies the legend (which is temporary). Using the reclassify tool will make this permanent. ...


0

One quick solution to this is a manual solve: Open the properties of the raster and go to they symbology tab. Presumably the symbology is already set to Classified and the number of classes are what you want. Click the Classify button. On the right side of the dialog is a Break Values box. Click each break value and at the bottom of the dialog you will see ...


2

-1.#IND returns when an incorrect mathematical operation is done, like dividing by zero or the square root of a negative number. Maybe GRASS tool used standard deviation of NoData set as -9999. I suggest two solutions: Check your source NoData value, if it is negative, change it to positive. If you cannot change it or if it's positive, you can convert ...


1

Assuming that your kernel density plot is a raster created using the kernel density tool or similar, this is just a matter of using the Raster to Polygon tool. Make sure you specify the field that defines the classification of the raster and it will convert it to polygons. You can then use the Calculate Geometry tool to calculate area.


0

I agree with Vince. Use a mosaic dataset in ArcGIS. It does a good job of on-the-fly cropping of map marginalia by using the footprint of the actual data area. See here : What is a mosaic dataset Creating a mosaic dataset


2

Open a new dataframe, don't add a basemap, just the shapefile, move your mouse around on the screen and look at the coordinates towards the middle are they small numbers that look like latitude and longitude? Open windows explorer and navigate to your shapefile... look for a *.prj file, if you don't have one, then you are working with data that no ...


2

Once you get the shapefile/projection problem solved: Kriging is a method of interpolating points to create a continuous surface. I think that you actually want to use graduated colors to modify the symbology of the points, manually setting classification breaks at the values you need.


1

If you have a table with a row for each combination of year and point ID, then you have a many-to-one relationship ... multiple rows (years) for each point. This is always a pain in GIS because you have can't visualize multiple related rows very easily. If you have few enough years you have to deal with, you can work around the problem by creating a column ...


2

See this question: Event raised when selected layer changes in TOC, but it will unfortunately not be good news for you, as no event of such kind is available in ArcObjects. The answers will provide some hack-ish workarounds which you may find useful.


3

By using "<FNT name = 'Arial'>" + ' ←' + "</FNT>" + ' Pathway to Moosehide Village ' it came out fine and kept the original font. Thanks for all the suggestions.


0

While I'm unsure why this is occurring (my best guess is some font capability issue), if you add graphic text (in the Drawing toolbar) on top of your map in the Layout View and export to pdf -the arrow stays. I just tested this myself. I hope this helps!


0

You can approach it in different ways, better working with same type of layers: both raster or vector files. I would do in a quick&dirty way: Use "Polygon to Raster" to convert sinkhole shapefile into a raster: Value field "FID", Cell assignement "Maximum Area", Cellsize same of risk raster, on Environments/Extent snapped with risk raster. Reclassify ...


2

When performing the attribute join in ArcMap, the joined information (that you can see in the attribute table) is stored within a map document (.mxd) file. In order to save joined fields in the new shapefile (so it will have fields for each year you need), you have to export the joined layer from the table of contents. The result shapefile exported on the ...


6

Wikipedia defines sinuosity as: the ratio of the curvilinear length (along the curve) and the distance (straight line) between the end points of the curve So to calculate this in ArcGIS, you would need to determine: the curvilinear length of the line. You can use the Field Calculator the start and end points of the line. See this Stack Exchange ...


3

If you define sinuosity as a measure of the deviation of a line from the shortest path (dividing total length by shortest possible path), on http://www.arcgis.com/home/item.html?id=00e708a448b74810a0e805c4a97f9d46, you can get a python toolbox "Calculate sinuosity" to it. Just download it and load it in ArcToolBox to make the script available. Note that the ...


0

To address your first question of how "to sum the acreage of matching "WUNAME" and populate the "WU_Acre"", I would use the Summary Statistics (Analysis) tool which: Calculates summary statistics for field(s) in a table. You would use a case field of WUNAME to get the SUM of your WU_Acre field. I recommend you get this first part working before ...


1

The problem in your current method, and the reason summarizing afterward as @Branco suggests would not work, is that your spatial join operation creates the first attribute you want (total points per poly) while it destroys/eliminates the second variable (owner) you want to summarize. In order to summarize, you need whatever variables you want in the same ...


2

the problem is solved , i described what I did exactly ,in first i change the type of the id from the serial to integer in the table , i tried to load it with defining the OID in querylayer's advanced option, but without defining the srid or the spatial reference ,the result was: the layer appear in the map & i can open my attribute table wothout any ...


1

I recall having this problem before with ArcMap. In my case it was because I didn't go back in to the definition of query layer to refresh the columns. I don't have ArcMap in front of me so forget where that is. Try doing that or creating a completely new query layer if you haven't tried that already.


0

Working from PolyGeo's code, here's what I came up with to work around the problem of having to have an exact number of items and identical order match between lookup values and the description. The full working script is here. # name and path of the lookup table lookup_table = r"..\default.gdb\vegMajorComm_Lookup" # change these to match the relevant ...


2

To do this: Turn off the layer in your map Save your layer as a layer file Add the layer file to your map - it will come in with the visible property set to False If you want to do all of this from code then setting the visible property on the new layer object to False before you add it to your map will make it just as easy to do.


2

Your method assigns CB as a list not the individual lines in the file. Try opening your file like this: f = open('M:/Elevation_Masks/elevs.txt','r') for line in f: cb = line.strip('\n') # Carry on with the loop


1

You need to either set cb to the first element of the list of lines cb = [line.strip() for line in f][0] or loop over the list of country names in your file. with open('M:/Elevation_Masks/elevs.txt', 'r') as f: cb = [line.strip() for line in f] CNTRY_NAME_FIELD = 'CNTRY_NAME' for dirpath, dirnames, filenames in arcpy.da.Walk(cl, ...


4

You should look into a Spatial Join. There are details here from ESRI. If you follow the steps of to spatial join the locations with the state polygons, you will get a new state polygon with a count field (Join_Count) that will tell you how many points were in that polygon. This is a great tool to get to know in GIS since it can be useful in many ...


0

What you could do is: Do an intersect of all the points with the State Feature Class, which will get the state name in the point feature class. Do Frequency Statistics on the point feature class with the State name as the Case field - this will give you a table with the count. Do a join of the frequency table to the State Feature Feature class and ...


0

With the single core limitation, caching with ArcGIS for Desktop is only intended for cache with limited extend and/or level, such as a local government and study area. For more exhaustive cache (e.g. North America from L0 to L18), ArcGIS for Server is the recommended approach. In regards to monitor the process, beside keeping an eye on the created files' ...


0

PolyGeo has it right, you must connect the data, in this case both datasets need to be connected to the merge command. It seems though you may be a little confused about what you are trying to do. The merge tool takes the two inputs and puts them together into one output: If you have shapefiles A and B and merge them to C then C contains all of the features ...


1

I like the QGIS answer, that's one way to get GDAL, and probably the least confusing. The question was for ArcGis or ENVI, I can't comment on ENVI but in ArcGis use the Raster to Other Format tool which is available from ArcCatalog by selecting the rasters, right clicking, and selecting Raster to Other Format (multiple) from the popup menu. Select the ...



Top 50 recent answers are included