Tag Info

New answers tagged

1

I have also had a lot of success using the image classification tools in ArcGIS (http://resources.arcgis.com/en/help/main/10.2/index.html#//00nv00000008000000). The documentation is great and the results have been very accurate. Unsupervised classification is tricky because defining the number of classes will always result in some degree of mixing. Even ...


0

You can simply use: my_sr = arcpy.SpatialReference(my_wkid) Then use my_sr however you wish. ESRI Documentation - ArcPy SpatialReference


4

Hi Emil. The technique is called "conflation" and unfortunately ESRI did a lot of development in conflation for 10.2. There is even a toolbox in 10.2 fully devoted to your problem. I would say, try using a spatial join, or using the "Attribute Transfer Tool" in the Spatial Adjustment toolbar in ArcMap. Or if you're really ambitious depending on the ...


1

Try right clicking on the feature class then clicking on manage, then locks, and try disconnecting the user.


0

If you want to be extra safe, check to make sure all of the original and copied feature classes have identical attributes and geometry before you delete the originals. Here is a simple Python utility to do that. You can also configure the tool to produce a csv report on the differences. import arcpy, os # The original and the duplicate workspaces ws1 = ...


0

Check whether your ArcGIS installation is current on patches. I recollect that there was a patched bug that might be causing the condition you have observed.


0

ArcMap 9.2 was released in 2006, 3 years before the release of Windows7. So 9.2 does not support Windows7. XP and ArcGIS 9.2 are both outdated technologies (9.2 was retired in 2012 and XP last year) so moving to the current versions might sound like an option.


0

You can use the Copy GP tool for copying the entire feature dataset where the ND resides + it will copy all the related ND tables found in the geodatabase (outside of FD). This will preserve the ND and you don't need to create one. You are correct that it is not allowed to run the Dissolve network on an ND stored within the SDE geodatabase, you do need to ...


0

I really like using feature layers and selection for this kind of thing. Below I find all my relevant fields, then try selecting Nulls/''. If there's a selection, I field calculate. I haven't tested the script, so it may not be perfect. def removeNumericNulls (inFeatureClass): import arcpy #Relevant field types fieldTypes = ["Double", ...


0

Just for fun, I noticed ESRI 10.3 only shows NULL as 0 so you have no idea what is in there. In QuantumGIS Brighton or later, the field shows as NULL, but you don't know which one. I modified this as the following (I added a zero after copying off Jamie): def RemoveNULL(x): if x is None: return '0' elif x == '': return '0' else: ...


0

Fastest alternative if you have many holes to cover in a single file is a slight modification of mkennedy's comment suggestion using Union. There is no need to create a second layer that covers the extent of the one you're working with. Simply Union the layer to itself (add only the one layer to the Union tool) and be sure to uncheck the box at the bottom ...


0

Another option, faster than detailed tracing depending on how complex your boundaries are: Edit the layer and either reshape the feature you want to enlarge to cover the hole using the Reshape Feature tool on the Editor toolbar (left side of image) or draw a whole new feature over the hole (right side of image). In both cases just ensure overlap with ...


1

Here is an Update Cursor approach: import arcpy shp = r'C:\path\to\your\shapefile.shp' with arcpy.da.UpdateCursor(shp, ["field1", "field2"]) as cursor: for row in cursor: row[1] = row[0][:4] cursor.updateRow(row)


3

kind of figured it out as soon as I posted. Figured I should post the answer... arcpy.CalculateField_management(myFeatureLayer, field2, "!field1![0:4]", "PYTHON") suppose I should add that one can apply any standard Python string functions to !field1! and that this syntax can be used in the Field Calculator if one toggles the Python radio button to the on ...


0

The GeoTiff format is a good format for interchange with ArcGis, it is one of few that: Supports more than 3 bands. Has a wide range of pixel types (from 1 bit to 32bit signed/unsigned/float). Has multiple compression options (from none to JPEG/Lossy). Read more about supported raster formats from the Esri docs. It is a good idea to verify the spatial ...


0

The Profile Graph tool in ArcGIS does not work if the input DEM and the selected line feature are not in the same coordinate system. To test this statement, I used a DEM in UTM coordinates and a line feature class in US State Plane. My result was a graph with a constant elevation of one. I reprojected the line feature class to the UTM coordinate system and ...


2

This works for me and I have labeling only with 2nd word: So maybe you have few atributres without " ", and you get "out of index". def label([SSA_NAME]): x = [SSA_NAME] x1 = x.split(" ") if len(x1)>1: return x1[0] + " " + x1[1] else: return x1[0]


3

Thanks for your script Alex, very nice! I saw a small issue, since relies on several geoprocessing tools that run for each row: Create Table > Add Field > Cursor to Insert Rows > Bearing Distance To Line > Append > Delete Table > Delete Lines >>> Reiterate for next row. It took 10 secs per feature for me. Since, I needed to process around 18,000 features ...


1

If you use QGIS, there is a plugin named "semi automatic classification". It may not take too much time to utilize the plugin because you might be familiar with the RS analysis methods. I have used it for 1 week and have been pleased. The plugin is also capable of downloading landsat's photos. Here's the link of classification tutorial. ...


0

I don't know exactly what's happening, but whenever any export output is not coming out right, there are a few things I'll try: Turn transparency off in all layers. Turn vector layers off one by one and export at each step, sometimes one particular layer's symbology or labeling is causing the problem. Export in different formats, at different resolutions, ...


0

So this bug has been reported to ESRI and hopefully they'll fix it, but in the meantime, here's the work around: First create a new field: import arcpy from arcpy import env env.workspace = "C:/data/test.gdb" #Name of Feature Class fc = "Table1" #New Field Name newFieldName = "New_Field_Name" #Add new field to table arcpy.AddField_management(fc, ...


0

Create a Euclidean Distance raster (distance from shoreline) then use add the Add Surface Information to populate each record in the shape file with the distance to the shoreline.


0

You should be able to use this option: http://resources.arcgis.com/en/help/main/10.1/index.html#//001w00000008000000 I am sure you can get there with field mappings if that doesn't work, but it would likely be a lot more lines of code than what youd expect. https://geonet.esri.com/thread/30539


0

Just an idea but if your output was a GeoDatabase Featureclass rather than a Shapefile you could use the Alter Field tool to rename it back as part of the work flow of the model?


1

Make your current output a temporary dataset and then run Append GP tool to add the results into a final output dataset.


6

While I appreciate the answers of the ArcGIS power users here, I do think they overrate what is really necessary. ArcGIS for Desktop, unless you activate 64-bit geoprocessing, can't even adress more than about 3 GB, and I have seen it crash when it attempted to do so in extensions that didn't fully catch this limitation in their code... I have seen ArcGIS ...


0

If you will work extensively with such type of analysis, you might consider looking at geometric networks, they might suit your needs better. As a workaround, do the following: After solving the Route, use the GP tool Copy Traversed Source Features. This will export your edges that were traversed. In the Edges feature class, delete duplicates (they will ...


1

Okay I tried a little bit more to use the XSL template. There are some ways to include information and displaying them depending on the PointID. Here a little example. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" ...


0

I also encountered this problem (shadows appearing below the ground) and it took me a while to figure out a workaround (I suspect that the problem exists because the tools are not yet used very much - I had to figure this out on my own!) You basically need to select only the above ground shadows and delete the rest. My (not very eloquent) workaround was ...


1

Directly export to Excel file using the Table To Excel (Conversion) tool. No field name truncation and no formatting issue with numbers: Table To Excel (Conversion) Then you can easily export to a correct csv(txt) file from excel


0

Assuming you want to use it in Model Builder, I suggest you a "Calculate Value" script as follows: def LargestEcoregion(tabulate_intersection_result): rows=arcpy.SearchCursor(tabulate_intersection_result,sort_fields="PERCENTAGE D") row=rows.next() arcpy.AddMessage("%s--%s" ...


3

I've certainly created something like this; it's a great use for definition queries. Here's a copy/paste/modification from a tool I've written. You'll have to look up how to create a script tool in a toolbox. When you do, make two parameters, one to hold the input shapefile/feature class (type = Feature Class or Layer), and one to enter the "layer by" ...


0

I used set null function in the raster calculator and made a raster with 1 value where ever NDVi values are between 0.1 and 1 .Then I used zonal statistics as table function to give me the sum of these 1 values in each farm. Cheers


3

This computer will not perform well with ArcGIS. Trust me, you will eventually care about the processing speed as opposed to whether or not it will simply run. The only way I could recommend using this computer is if you have ArcGIS installed on a remote computer (i.e. with good specs) and you connect via remote desktop/VPN using this laptop. As a point of ...


1

The CID values represent the FIDs of the features in which the random points were generated.


0

You can change the LAS codes in 3D Analyst - Data Management - LAS Dataset. And then remap them to whatever you want.


2

Unfortunately, it is not possible to "reload" the Python add-in while having the ArcMap session open. This is because the add-in is loaded into the program cache. So, the only way to see the changes done is to close ArcMap, install a new add-in and then start ArcMap (as you approach it now). You should spend most of your time debugging and developing the ...


0

The solution is the following: in the Menu, under the "Wells" option there is "Spreadsheet" item. Here you can export all the data you need in text format, what can be converted and displayed in ArcGIS.


1

I think you may want to do the following: Union your feature classes A and B Run Multipart to Singlepart on the result of 1 Select on the result of 2 where FID_fcA = -1


0

A possible reason for the offset may be that the land mask of the MODIS data you use does not align quite well with your coastline shape file in WGS84 coordination system. Another possible reason is that some parameters need to be adjusted when you translate MODIS' sphere to WGS84's ellipsoid. Maybe you can try to convert the data to ArcGIS raster format ...


5

Take raster NDVI dataset and use a raster calculator-type function to create a binary surface of 1 and NULL (no data); 1 is where values are between 0.1 and 1; NULL is everything else. For each farm vector feature, clip your binary-classified NDVI dataset. For each clipped NDVI dataset, count the number of cells that are not NULL, and multiply this number ...


4

Spatial join to itself: ORIGINAL POLYGONS: JOINED POLYGONS:


2

If you are working from land survey plats, the basis of bearing, even though it is referenced to California Grid Zone 5, should have a starting, or reference line for the basis of bearing. This should be at the beginning of the description for the easement. It may start at a section corner, or some other aliquot corner, and describe the traverse to the ...


1

8.9 is the 98th percentile which QGIS computes by default for the rendering. If you change to min/max and press Load, QGIS computes 21.9, just like Arc.


0

I would recommend the batch solution, because no data selection (Group By) is necessary and will run faster. By integrating the answer of that question and loop over shapefiles you can achieve your goal. Just modify the code as necessary: - edit the number of ranks, - shapefile folder and so on Code: import arcpy import numpy as np import os #loop ...


2

I am not from California but in my state the declination should be listed on the plat or record of instrument, at least it usually is. If not I believe this may help, put in the area the survey was done and the date it was done and it should give you declination. NGS has alot of cool tools btw http://www.ngdc.noaa.gov/geomag-web/ The difference between ...


0

If this is for simply viewing or creating a map without the built in ESRI legend i would just do this, in your table of contents you can left click on the color box (the actual color you want to exclude) and the color selector menu will appear, then click on properties and select the box that says "Color is Null" this will remove that color from your map ...


0

I was just playing around with this and it seems that when you use data exclusion, it excludes the data (in this case 0), but still lists it in the range and label columns. My suggestions would be to manually change the label column to read what you want it to read (click on the label text within the symbology tab). You can double check that the 0 data ...


0

If you have ArcGIS version 10.2, to get the headings to sit properly as in the legend on the right you need to make sure that fixed frame strategy is switched off. So in the legend properties make sure fixed frame is switched off on the layout panel (see below). Then to define items to be in new columns select the item you wish to be in a new column on ...


0

I often find it easier to make multiple legends - each with only one or two feature classes and then just line them up next to each other. It is much easier to control the text that way and only slightly less convenient.



Top 50 recent answers are included