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

I'm guessing customers and total_customers are integer fields, and the equation is using integer math, yielding the rounded-down result (0 * 100) in every case except where customers == total_customers (1 * 100). Use this equation to get decimal calculations: "float(!customers!) / float(!total_customers!) * 100"


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") ) ) ...


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

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 ...


3

This line: pRow = pCur.NextRow should be at the end of your loop Do Until pRow Is Nothing SegmentID = pRow.Value(pFieldIndex1) DrainName = pRow.Value(pFieldIndex2) MsgBox("SegmentID = " + SegmentID) MsgBox("DrainName = " + DrainName) pRow = pCur.NextRow Loop I think it's failing because you're trying to retrieve a value when ...


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

From ArcGIS Rules for working with schema locks: A schema is the structure or design of a database or database object such as a feature class or table. A schema lock means that another application is accessing a database, and you are not allowed to alter its structure by adding or removing fields. As Martin and PolyGeo noted in comments above, if the ...


2

Why not use a dictionary when reading your input data. The key is the ID, the values are the GRIDCODEs. Something like : DataDict = {} # open cursor etc if ID in DataDict: DataDict[ID].append(GRIDCODE) else: DataDict[ID] = [GRIDCODE] Then for each ID, you can process the associated list of GRIDCODEs using set() as you have done.


2

To see what the highest resolution is, you can right click the layer, go to properties, go to the Source Tab and look at the "Cell Size". The Cell size will be in the units used for the dataset (e.g. if it is UTM Meters, then the cell size is meters). To change a rasters resolution you have to resample it but you can't realistically sample up (at least there ...


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

For full control on the change of cell size, you can use the Resample tool (data management). You can then select the best resampling method for your dataset (most of the time, your best choice will be MAJORITY for categorical data and CUBIC for continuous data). You can run this tool in batch by right-clicking (> Batch...). You can then select all your ...


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

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

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 ...


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

If you know how to use javascript and d3, then the spatialsankey d3 plugin might help. Here is an example application that does something similar to what you ask, though only to show flows in one direction.



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