Tag Info

New answers tagged

0

Your question mainly pertains to converting a lyr to qgis readable format. The only way that you can achieve this is by using ArcMap2sld which convert the style to sld which is ogc compliant which qgis can read and understand.


1

I have a solution for this problem. In the Registry search for the folder: HKEY_CURRENT_USER\Software\ESRI\Desktop10.1\Export\ExportDlg\ShowOptionsPanel and change the value from 0 to 1.


2

Okay, I've provided this answer to try and consolidate my comments above and to serve as a resource for others contending with the issue of stream burning. As I stated in my answer to this question Shapefile and DEM: check rivers behaviour, you would expect a mapped vector stream data set to deviate from a corresponding DEM-extracted stream network because ...


2

Shapefiles don't support nulls. Read the section 'Null value representation' here: http://desktop.arcgis.com/en/desktop/latest/manage-data/shapefiles/geoprocessing-considerations-for-shapefile-output.htm If you really need to have nulls, consider migrating this data into a geodatabase.


2

Use else: row[1] = None None is what Python uses for Null. I'm not very familiar with regex, so I'm going to suggest a different version of your cursor operations, see if this works: for row in cursor: if row[0] == " ": row[1] = None else: row[1] = round(float(row[0]), 1) cursor.updateRow(row) The issue may ...


0

An approach that you could use, although it will most likely require going outside ArcGIS and into something more flexible (Python / R / Julia etc). Calculate the distance to the intersection for each point, and then combine this with the timestamp and vehicle ID. Then compare the change in distance between two points in time. If the distance falls between ...


0

If the cells are date format you can just use the ExcelToTable tool. Which is new at 10.2. The tool converts xls, xlsx to a gdb table and handles dates correctly. On 10.1, you can download and use an earlier version of the functionality here. If the cells are a string, you can use python's strptime to convert the string to a datetime object . What i'd ...


0

In case this is helpful to others, i was able to create the following python code using arcpy which will place points at a specified interval based on an input line feature layer. import arcpy line_lyr = 'my_line' pt_lyr = "my_point" interval = 200 insertCursor = arcpy.da.InsertCursor(pt_lyr, ["SHAPE@XY"]) # this is the pre-existing pt feature class ...


0

To answer the question about returning an output with no extra fields. From the dialog, you can just delete everything from the field map parameter. From Python, giving nothing (None, "", "#") to the field_mapping argument assumes you want everything. You can fake it out a bit, with something like this though: arcpy.SpatialJoin_analysis(fc1, fc2, output_fc, ...


1

I'll provide a couple links with more information. To familiarize yourself with what you are doing with field mappings, I recommend doing a spatial join or a merge operation within ArcMap. Perhaps visit the Geoprocessing Results window too. This will really help if you can first simulate manually the join that you want to do programmatically. They can be ...


1

Ok Here is what I would do. Use the "Extract Values to Points" tool under "Extraction" which is in "Spatial Analyst Tools". You will use your point shapefile as the Input Point Feature and your continuous raster as the input Raster. I think that may be all you need to do. BTW instead of a 1-word comment, sometimes it is good policy to edit your question. ...


1

The first thing that springs to mind is an incorrectly defined nodata value. What I notice in the two images is that the dark blue area should be nodata and that it only occurs between valid/data/light blue pixels. Based on the help file, it actually relates to two of the tool parameters - nodata_value and background_value. From the help file: Use this ...


0

Unsplit Line (Data Management) Merges lines that have coincident endpoints and, optionally, common attribute values.


2

You need to remove all of the quotes from your strings. Here is one approach: # 1) Split strings by "&" and 2) remove leading/tailing white space cleaned = [x.strip().replace("\"","") for x in row[1].split("&")] # "Name_From" field cleaned2 = [x.strip().replace("\"","") for x in row[2].split("&")] # "Name_To" field # Continue with script


0

For a raster-based approach, you can use the Euclidean Distance tool. For this example, I changed the raster display to histogram equalized stretched (Layer Properties > Symbology > Stretch > Type : Histogram Equalize). The stretch type will give you control on how the buffers appear--you may want to use a custom histogram. Also, you will want to ...


1

In the symbol selector you can choose 'Circular Gradient' then select edit symbol, here you can select the color ramp style and outline type. When selecting the outline type select 'Edit Symbol' again and choose the 'Null' option from the drop-down menu: The result is a gradient buffer with no outline like this: There may be other ways to accomplish ...


0

After spending some time working though Beginning ArcGIS for Desktop Development using .NET, I came back and was reviewing what was going wrong for me. For whatever reason in the code block Michael gave me when I added in a geographic layer the pEnv.YMax and the pEnv.YMin were coming out as the same number, hence the ActiveView.Extent was staying the same ...


1

Try Compress Images. It keeps the best achievable quality/size ratio and automatically tunes the compression settings based on the content of every file, smartly balancing quality and size


1

You can create a Python add-in tool that first allows a user to select features (including with a mouse), and then executes a piece of logic on the selection. See the tutorial for an add-in Tool. Any time you create an ArcPy search cursor on a layer, only the selected rows are returned. In combination, you will be able to select features with your mouse, ...


1

The function below is based on Ryan's idea, but is a little more direct. ArcGIS map documents are actually OLE documents, which can be parsed with the oletools module (available on pypi: https://pypi.python.org/pypi/oletools). The function opens the file and reads the version string. Tested with 9.0, 9.3, 10.1 and 10.3, but should work with anything (not ...


5

Do you need parentheses around part of the expression? Either of the following could be correct, but I assume it is the latter. (PopDenZone = 'CPSE URBAN' AND Priority_Description = 'Life Threat') OR Priority_Description = 'Urgent Medical' PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical')


3

Perhaps try parentheses around the expressions. I think what you're trying to say is: PopDenZone = 'CPSE URBAN' AND (Priority_Description = 'Life Threat' OR Priority_Description = 'Urgent Medical') It's worth noting that: (x AND y) OR z is different to: x AND (y OR z)


1

Just try in python in filed calculator as below- "WP_" + str(!OBJECTID!) N.B. The field going to be populated also needs to be string/text


1

You should define the trace to be selected, rather than being drawn. That is through the analysis> analysis options> results menus of the Utility Network Analysis toolbar (see image). After that re-compute the trace, and export it regularly.


0

As I mentioned in comments, no join is currently possible because there are no records in one table to join those from the other to. The simplest, easiest, fastest thing to do is create your line features and enter a unique ID attribute for each record that is found in the table you already have. You can then join your table to the features using that ID ...


0

JPEG isn't a spatially aware format. That means it doesn't have the ability to store georeferencing information internally, like a geotiff or potentially the newer JPEG2000 format. If you do not have an accompanying world file, there is no way for Arc to know where the image is supposed to be on the surface of the earth. It sounds like at some point in the ...


1

I was facing a similar problem, and ended up solving the equation for both circumference and area of a circle to make them equal one another like so: 2*pi*r = c <=> r = c/2*pi pi*r^2 = a <=> r = sqrt(a/pi) c/2*pi = sqrt(a/pi) <=> sqrt(a/pi) -------------- = 1 c/2*pi This index is between 0 and 1 where 1 is a perfect circle. I ...


1

This is easy to do assuming you mean that you want the Centroid coordinates of each parcel currently being calculated. Use !SHAPE.CENTROID.X! and !SHAPE.CENTROID.Y! as parameters to define the expression and then include them in the def as the east and north variables. If this is somehow trying to use two separate feature classes then you need to use a ...


0

check your indentation, your OutCurrent = "X... line looks like it is indented 5 spaces compared to the others. An error should have thrown more information as well


0

arcpy.GetParameterAsText is for accessing parameters in Script Tools. If you're going to run this outside of ArcGIS, you'll need another way to pass parameters in a command line, such as sys.argv. Have a look at this page for some examples uses: http://www.tutorialspoint.com/python/python_command_line_arguments.htm Here's more information on the sys ...


0

I came across this looking for something else, however I think your issue may be with the connect string and the DSN parameter, try adding Trusted_Connection=yes; after the DSN in the connection string. I usually run my arcpy scripts with their own database user and permissions without using Microsoft Authentication and the connection string looks like this ...


0

As it turns out. The solution was pretty simple. Each ArcGISDynamicMapServiceLayer has a "Opacity" property that we bind to a slider and now we can control the whole ArcGISDynamicMapServiceLayer transparency instead of just the individual layers.


2

It depends which tool you're using, but in my experience (I haven't used every single ArcGIS tool), the output units are usually the same as the units used in whatever the source layer is for your calculation. So for your example, if your polygons are in a coordinate system that uses meters as the linear unit, the polygon volumes will be in cubic meters. The ...


0

I found a technique to do this described at Another GIS Blog under the title of Python Add-Ins and Tkinter: ArcGIS for Desktop does not support any python GUIs out of the box, but let's say we want to have a form pop-up anyway. ... One way to do this is to create a wx python instance at start up, which is create before the desktop python loop is ...


0

I came up with the table for Tobler values posted on MapAspects in 2009 (in ArcGIS version 9.3) and after a few hours struggling with Path Distance in Arcmap 10.3 my conclusion is it's broken in the current version. Even their example table on the Esri help file produces the same transformation as a bunch of 0 values. I've tried various values and while ...


0

This might be a bit late. But if your are running into similar problems this can be useful: If you are using Dropbox, try stopping its syncing and then quit it. Then close and reopen your ArcMap project. This worked for me.


0

once you set the workspace to the feature dataset, you should be able to call the ListDatasets again with the 'Topology' feature type: so glomming onto the above code... for obj in gdb_objects: fd_path = os.path.join(path,obj) arcpy.env.workspace = fd_path #get a new workspace pointed to the fd fd_objects = arcpy.ListDatasets(wild_card=None, ...


5

You want to use an Update Cursor, not a Search Cursor. It allows the same retrieve rows and loop through process, but also enables updating fields. with arcpy.da.UpdateCursor(fc, fldNames) as uc: for thing in uc: # assign the data to the various fields thing[0] = tmp0 thing[1] = tmp1 # trigger an update (save) for that ...


3

The buffer tool allows you to specify an attribute to buffer each feature by. If you were to perform your calculations first and then populate a BUFFER attribute, you could easily buffer the points based on different criteria.


2

Once you choose 'Select HMS Processes' and select the appropriate processes then the options in the window should change. You may run into other issues when running the process which can range from ArcMap licensing to the location of files. HEC-GeoHMS does not always appreciate working from network drives.


0

If you are looking to calculate just the x,y,z centroid of the polygon, then you can add columns and calculate the geometry of the polygons. This is done in the attribute table by right clicking on the field and choosing Calculate Geometry. However, if you want to get the x,y,z of each node of the building, you will need to export the nodes to points, ...


5

That's ArcScene, not ArcMap, and as such has no real labelling abilities. However there are plugins. See this plugin for one potential solution: http://edndoc.esri.com/arcobjects/9.0/Samples/3D_Analyst/Visualization/ArcScene/Text_Toolbar/LABEL_3D_TOOLBAR.htm and https://geonet.esri.com/thread/96511 And also this answer: How to easily label point values in ...


0

Another option would be to work with normalized census boundaries, where data from the old geographies have been modified (split, combined, or apportioned as the case may be) to fit the most current boundaries. The Longitudinal Tract Data Base (LTDB) project at Brown University has normalized US census data from 1970 to 2000 to fit the current 2010 census ...


0

Cross Tabulate Statistics might work for you if you are using ArcMap 10+ and want Chi-square and/or Kappa statsCrossTabulateStatistics


0

A Pearson, Kendall or Spearman correlation (R) between two nominal variables is nonsensical. You want to explore techniques such as contingency analysis (Phi coefficient, Cramér's V, Persons C, Kappa, ...), factor analysis, canonical correspondence analysis or perhaps something in the family of Jaccard's similarity statistics. If you put one variable (y) in ...


0

I've run into the same problem: "workspace already in transaction mode". I had Microsoft SQL Server database connected to ArcCatalog as SDE. And decision in my case was just to change type of column "timestamp" of target table to "image".


0

Anything beyond a 1:1 zoom level (and sometimes anything closer than 1:5, depends on the storage format and tolerance/resolution settings) will show strange draw behavior like this. Zooming in to 1:0.03, while I don't know what units you're using, is probably a bit excessive and no, those gaps probably aren't really there. See ...


0

You could view the cache in the javascript viewer while running the web traffic debugger fiddler. It will throw errors where it files to find tiles. You can then look at the request folder locations to help you recreate the tiles


6

If your current version is 10.1 (as one of your tags suggests), there is a bug for da searchcursor, see this bug: NIM076948 The arcpy.da.SearchCursor() where clause does not work with a table view. I think it also applies to feature layers. Issues addressed at 10.2 note this bug, see this: ...


0

To address this I think you should use Spatial Adjustment to perform rubber sheeting: GIS data often comes from many sources. Inconsistencies between data sources sometimes require you to perform additional work to integrate a new dataset with the rest of your data. Some data is geometrically distorted or rotated with respect to your base data. ...



Top 50 recent answers are included