Hot answers tagged

3

Try to change your code to def calc(Wert1, Wert2, Wert3): if (Wert1 == None): return Wert2/Wert3 else: return Wert1


3

It appears you're mixing the syntax of the old arcpy.UpdateCursor() with the newer arcpy.da.UpdateCursor(). Try changing your cursor to be something like: updateFields = ["R_value", "G_value", "B_value", "C_value", "M_value", "Y_value", "K_value"] with arcpy.da.UpdateCursor(newtable, updateFields, query) as rows: for row in rows: row[0] = r ...


3

In your question you explicitly state you want to find the distance and not the actual line geometry. If you have an Advanced level license for ArcMap you can use the Point Distance tool or Generate Near Table.


3

I suspect the error is related to how you set your input features. Have a look at How to use multiple inputs, it gives examples in c# and vb.


2

Why does it appear squashed? In the TIFF viewer, the map is in the correct proportions. When a Google map of the same area is overlaid, it matches on-the-ground features almost exactly. Google Maps uses a spherical Mercator projection of WGS84 lat/longs, called WGS84 Web Mercator. Earth is not a sphere, so the Web Mercator projection stretches as a ...


2

OK the answer here was pretty simple: the WFS provider chose to set a limit to the number of features requested, which was at 15000, so that's why I wasn't able to get more than that. Still there's something buggy in ESRI's conveyance of the WFS as I got features from outside the search envelope. However, after contacting UK ESRI support, they told me you ...


2

I had the same problem (Arcmap would not import my csv file with headers, instead it would show Field1, Field2, Field3 etc). When I examined the file headers in Excel, I found...decimals numbers, spaces, percent signs etc. After replacing all of that with underscores or text, I had no problems. I dragged the .csv file into arcmap, opened the attribute ...


2

The comment above is incorrect. For work relating to environmental statements - ie for a windfarm OFFSETA needs to be the tip height of the turbine and OFFSETB is the height of the observer (general input of 2m). This is because you want to know if you were standing anywhere within a given radius of the wind farm would you see them. Hence you want to know ...


2

Figured it out everyone. As it turns out ESRI does already know about this problem. Have a look at this article: http://support.esri.com/technical-article/000013243 At version 10.4 - no more support for SQL Server 2008. ESRI tells me Microsoft is not willing to do anything to make it better. They are done with 2008. Thanks everyone!


2

I'd use the 'Tabulate Area', creating a cross-reference table between reclassified Aspect to 1-8 or 1-16 classes, and vegetation type areas. The resulting table would have aspect class and vegetation association. Sorry for my english.


2

There is a tool GPX To Features in which you can import or convert the point information inside a GPX file into point features. It is available in ArcGIS 10.3 basic license as well. You can access the tool from ArcToolbox -> Conversion Tools -> From GPS


2

I don't think there is a way to do this without some programming. Most likely ArcObjects. The only symbology parameters you can set with fields seems to be Size and Rotation. Alternatively, you could try creating a style for each possible combination (though you indicated that there were too many). You'd have to merge your two fields into one as your ...


2

If all your features have the same pattern (polygons with numbers as donuts inside), you can explode these multipart features (with Multipart to Singlepart) and keep the largest part of the original feature. An easy way to get rid of the 'numbers' is to dissolve all features from the same original feature based on their initial OBJECTID.


2

I just managed to fix the problem. It turns out I didn't correctly assign the cell-properties of the precipitation data as a number in excel.


1

If you had an advanced license, you could simply use the Tabulate Intersection tool. Without it: 1) Buffer the points. Do not select the option to dissolve the buffers; otherwise, they won't retain the identifying attributes of the original points. 2) Instead of using the Clip tool, you need to use the Intersect tool. The output of this tool retains all ...


1

Check out the 3rd party Marine Geospatial Ecology Tools for ArcGIS. It will perform CART and also has a tool for creating a raster from a decision tree.


1

I'm not sure if I would recommend ArcObjects/.NET if you have no experience with either ArcMap or .NET. But if you decide to go this way, start small, e.g. by creating an addin based on the Visual Studio templates that come with the ArcObjects SDK. After you do that a few times, throw everything away and do it again in the proper way ;-) An addin built with ...


1

Boolean attributes are not possible, but you can simulate it by assigning a domain to you attribute. Check out the ESRI help on domains, you want to use a coded-value domain.


1

Yes, use the integrate tool but make a backup copy of your data since this tool will alter the geometry. For example, if you have a polygon smaller than the tolerance the polygon will collapse.


1

I haven't tried this with graphics created from the Address Inspector. In fact, I haven't tried this ever. But what you're trying to do is create features from graphics. Fortunately, this is possible when you're viewing graphics in the Data View and not Layout View. If you right click on the data frame in the table of contents (by default, this is called ...


1

Using either a python add-in or script tool you could use the os.startfile() or subprocess.Popen()methods to point to your file and open it or you may use the subprocess.call([app, input_command]) to run a given command on an app. You may have to set it first in windows as the default app to open that particular file extension first (right click on file ...


1

Faced similar siutation and resolved using ScaleText option. ITextSymbol pTextSymbol = new TextSymbolClass(); pTextSymbol.Size = Convert.ToDouble(size); pTextSymbol.Font = pFontDisp; pTextSymbol.HorizontalAlignment = esriTextHorizontalAlignment.esriTHACenter; pTextSymbol.VerticalAlignment = esriTextVerticalAlignment.esriTVACenter; pTextElement.ScaleText = ...


1

According to the Python help file: If both x and y are finite, x is negative, and y is not an integer then pow(x, y) is undefined, and raises ValueError. May be this is the source of your error? The x needs to be a positive integer if you want y to be a double?


1

For what it's worth, I've not found a method of creating a GeoTransformation using nothing but the information in a Map, so I've not been able to get ProjectEx() to work. Using Project(), on the other hand, is simple: double x; double y; var success = this.projectLonLat(this.axMapControl1.SpatialReference, -84.3880, 33.7490, out x, out y); if (success)...


1

Sometimes what you see on the screen does not translate to what it looks like when printed or exported. To evaluate font/label size, in layout view click the 1 to 1 button. As my comment suggested, try to increase the font size and/or dpi resolution within your export method to enhance the label visibility.


1

This can easily be done by using a spatial join. Here are some step by step instructions: http://support.esri.com/technical-article/000008599


1

The easiest way to achieve this is to use the Spatial Join geoprocessing tool. After running the tool, a new field Join_Count will be calculated in the states feature class with the number of features that fell within each state. Target features: states; join features: points.


1

A standard ESRI tech support response would be to rename the templates et al folder (C:\Users\your user name here\AppData\Roaming\ESRI to see if that fixes it. If it does but you have customizations you don't want to redo, you could get rid of the new folder and rename your old back to the original, and then try renaming individual templates starting with ...


1

This model assumes the world is spherical, but earth's radius changes with the latitude. If the distance covers about 1/10 of a degree, and Earth's radius ranges from 6353-6384km, then the error can be over 400m. This might cause 10km to come out as 9km if you are aggressively rounding.


1

You need to add another data frame to your layout. In that new data frame you copy all the layers you want to display in your inset. The easiest way to do this is to just drag and drop from your main data frame into the new one. This will copy them to the new data frame. Insert Data Frame Copy layers to new Data Frame Once you have your new data ...



Only top voted, non community-wiki answers of a minimum length are eligible