Tag Info

Hot answers tagged

6

No, you do not need ArcGIS Server to edit your MS SQL Server database. If you want to continue to interface with ArcMap/ArcCatalog without a ArcGIS Server license you do have at least one other (albeit non-free, but definitely cheaper than an ArcGIS Server License) option. I need to be able to connect to the ms sql server and import, export, create, and ...


6

You could calculate the field beforehand in Excel, or you can also do this in ArcMap. You need to add a field to your table (make sure you aren't in an edit session, thanks Sara). This will be for the % change. calculate the percent change in that field, using the Field Calculator. Possibly something like: ((table.INCOME_2005 - table.INCOME_1995)/ ...


5

To be able to work with a geodatabase stored in SQL Server you would need at least ArcGIS Server Basic Workgroup (see matrix here). You can work with simple features in ArcMap, but no geodatabase editing or alike will be available. Since you have ArcGIS Desktop (I assume you have Standard or Advanced), you get automatically access to geodatabase stored ...


5

Exp( 3.394 + ( 4.717 * "elev" ) + ( -2.602 * ("elev" ^ 2) ) ) In Raster Calculator syntax, the '^' operator is for 'Boolean XOr', not 'raise to power of' (see Raster Calculator operators here). Instead, you could use: Exp( 3.394 + ( 4.717 * "elev" ) + ( -2.602 * ("elev" ** 2) ) ) or Exp( 3.394 + ( 4.717 * "elev" ) + ( -2.602 * ("elev" * "elev") ) ) ...


5

This was a tough problem to track down because I had thought that the effect was at the edges of tiles when it fact they are throughout the data. You're right that the phenomena isn't in the data before mosaicking the data. The problem results from the resampling process that is inherent in mosaicking. You need to use either the cubic convolution or bilinear ...


4

You cannot directly delete a row in a raster attribute table. This is because deleting a row would essentially be reclassifying the cells in that grid to NoData within the attribute table, which is not supported in ArcGIS. ArcGIS has a variety of tools to effectively "delete rows" including (to name a few) Reclassify and Con. These tools actually ...


4

ArcGIS Snap tool will do this for you (standard and up license level). You need to fill in what type of snapping you are looking for in the Type column. Also the Distance of the snapping. Also keep in mind this is a tool with no outputs, so make copies of your input data before trying.


4

You can't get this information as the Python script will block until the tool has finished running.


4

The Root Mean Square Error (RMSE) is one of those rare indices that is perfectly named, in that the name actually tells you how to calculate it. First difference the two DEMs ('error' or more properly in this case the deviation). Then square the differences. These first two steps can be calculated using a single expression in the Raster Calculator. Next, ...


3

Unfortunately, because ArcGIS's source code is not publicaly available, we cannot know for certain how ESRI treats boundary locations when you provide a vector zone layer input. However, as DanC points out above, it is very likely that there is some kind of internal vector-to-raster conversion that is taking place such that the vector zone layer is mapped ...


2

General issues with the licence server caused the problem. After they were fixed, the error message did not turn up again.


2

A search with Google threw up these pages... http://blogs.esri.com/esri/arcgis/2011/09/06/creating-radial-flow-maps-with-arcgis/ http://blogs.esri.com/esri/apl/2012/09/12/generating-distributive-flow-maps-with-arcgis/ Someone has even created a tool that flows around country boundaries. ...


2

This is called 'dynamic text' and is used with ArcMap Layouts: Dynamic text is text placed on a map layout that changes dynamically based on the current properties of the map document, data frame, and Data Driven Pages. Dynamic text works through the use of tags, like HTML. Here is an example of a dynamic text tag for the title of a map document: ...


2

It would be something like this: Select Layer By Attribute Example (Python Window) import arcpy arcpy.MakeFeatureLayer_management ("C:/data/data.mdb/states", "stateslyr") arcpy.SelectLayerByAttribute_management ("stateslyr", "NEW_SELECTION", " [OBJECTID] = 12345 OR 12346") Then run the buffer.


2

If I understand well, what you want is smooth boundaries. Therefore you should use focal statistics with the MEAN value and a small (3*3) window. Low pass filter could also help. As a remark, this function will not "add" pixels between each class. It will create a gradient of 3 3 3 2.66 2.33 2 2 2 from 3 3 3 3 2 2 2 2. If you want a value between your ...


2

Assuming that the numbering of your rows always starts at 1 and proceeds with increments of 1 to a different number each time I think your model/code needs to do this: Use GetCount to count the number of rows (numRows) Use Calculate Field to do (numRows - ID) + 1


2

You can list text and other graphic elements with arcpy.ListLayoutElements(). This will even give you the option of returning only text elements, graphic elements, mapsurround elements (like north arrow, scale bar). For each of these elements you can set its location by setting the X and Y properties e.g. element.elementPositionX = 12.5. This allows you as ...


2

Situations requiring edit sessions: Feature classes participating in a topology Feature classes participating in a geometric network Versioned datasets in ArcSDE geodatabases Some object and feature classes with class extensions I'd say you need to start an edit session, and save the edits before you do the append. The Editor class allows use of ...


2

GetFeature() is a method of IFeatureClass, not IFeatureLayer. Change this: Dim feature as IFeature = pFLayer.GetFeature(1) to this: Dim feature as IFeature = pFLayer.FeatureClass.GetFeature(1) Looks like you're creating a featureclass object but not using it.


2

I went with simply installing the manager pip-Win. It will install pip and virtualenv for you. Then it can identify your python installations (or you can browse to a specific python.exe to add more) and take care of all of your pip execution and package maintenance. https://sites.google.com/site/pydatalog/python/pip-for-windows Very important warning: ...


2

You can "stream vertices," which does not simplify on completion. Full instructions here. In short, after you've placed the first vertex, right-click and enable streaming. Vertices will be placed at intervals according to the streaming tolerance set in Editor options.


2

You should check the geometry of the first feature. It might be that the first feature's geometry is not what you think it is. It might have a multipart at an unsuspected location. This will cause the first page to zoom to an other extent that you wanted.


2

I think that there are several open-source GIS and spatial analysis platforms that target the Java virtual machine (JVM). GeoTools, for example, provides a fairly comprehensive Java-based spatial library. If you're only interested in vector data analysis, then I can certainly recommend the Java Topology Suite as a basis for spatial analysis development. I am ...


2

1) You create a SearchCursor object which is assigned to the variable cursor: # place all the rows from the feature class into a search cursor cursor = arcpy.SearchCursor("IndCases") But then you try to access this using the variable cur, which doesn't exist: for row in cur: Try using for row in cursor instead. 2) See the arcpy.da.SearchCursor help ...


2

Using arcpy geometry tokens, you could try something like this: import os import arcpy arcpy.env.workspace = r"" #path to workspace arcpy.env.overwriteOutput = 1 polygon_fc = r"" #path to polygon fc base = [row for row in arcpy.da.SearchCursor(polygon_fc,["OID@","SHAPE@"])] compare = base overlaps_stats = {} for b in base: for c in compare: ...


1

Edited: this expression relies on knowing the total (23) beforehand, but would be possible to calculate in the script, if needed. For the example series in the comments (3, 6, 5, 9) this expression returns 23, 20, 14, 9. total = 23 prev = 0 def cumsum(inc): global total global prev total -= prev prev = inc return total


1

I think the set of PostgreSQL drivers you downloaded are incomplete, and here's why: ArcGIS Server was installed as an x64 (bit) app, while the ArcGIS 10.2 Desktop client is an x86 (32-bit) app. So, referencing this ESRI documentation means the 64-bit postgreSQL libraries (libeay32.dll, libintl.dll, libpq.dll, and ssleay32.dll) go into the Server ...


1

You need a codeblock in your field calculator. The example below is with a Python parser total = 0 def cumsum(inc): global total total+=inc return total The first line initialize a variable to 0, then you define a function called cumsum with one argument. for the incrementation, you want your variable to be "global" that will keep incrementing the ...


1

Right click the layer and select "Properties..." to open the "Layer Properties" window. Select the "Source" tab and check to see if the "Geometry Type:" is "Multipoint" or a similar type of geometry. If so than there will be multiple points/polygons that correspond to one record and will result in the behavior you describe.


1

To deploy a custom .NET tool, you would need to document the tool first. Refer to A quick tour of documenting tools and toolboxes for the steps. However, to document a DLL-based custom tool, you need to enable Item Description first. Consult Enable ArcMap to create documentation for custom geoprocessing tools for details. After editing the registry as ...



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