New answers tagged geoprocessing
0
I am able to find the reason for the above error. It looks like an ESRI bug to me.
One of the parameter that I pass to gp.Execute() method is a FeatureSet. This FeatureSet contain a polygon with empty geometry and few attributes. My output will add geometry to this FeatureSet.
When map's spatial reference is GCS, the GP tool works fine. But when the spatial ...
0
It may not be a great solution but if you have saved layer files with them collapsed then RemoveLayer followed by InsertLayer sounds like it could do it:
The way a layer appears in the table of contents (TOC) after it is
added depends on the source layer and how it appears. For example,
some layers are completely collapsed and do not display their
...
1
In Arc10.1 there are 3 tools that will complete this task:
Near
Near3d (3d analyst)
Generate Near Table
Both Near and Near 3d will change your original data while Generate Near Table will create a separate table output.
Near 3d may be the best option for mountainous terrain with high relief, but if you lack the 3d Analyst license or are working ...
1
To express whuber's answer in terms of tool use, here's a simple implementation of the North-South, East-West use case when using point data in Arcgis:
Add X and Y (or Lat and Long) columns to the attribute table, Calculate Geometry
export to Excel or whatever, sort by the column of interest (X for East-West, Y for North-South), and then bring back in ...
0
So is there a reason why you are trying to return the coordinates as a string instead of returning the data as is? The output of your geoprocessing tasks should be returned as features without issue. Can you simplify the polygon features so you do not have so many vertices.
This is a link to esri's general performance tips, it is down near the bottom ...
4
The first thing to do once you upgrade to 10.1 on your new 64 bit computer is to install ArcGIS 10.1 SP1 because it enables 64 bit background processing, thus increasing your memory usage abilities. Whether or not ArcGIS will use it, I cannot say - I'm running 10.0.
The next thing to do would be to learn about using the In-Memory workspace, which ...
6
To sort in the direction with a bearing of a degrees east of north, precompute the unit direction vector as (sin(a), cos(a)).
With a field calculation, obtain the (projected) [X] and [Y] coordinates of features (use their centroids or whatever for non-point features) if they aren't already available and compute a new field equal to the distance along the ...
0
The variable name in GP Tool code and model is different hence it throws an error. My colleague has found the difference in name and fixed.
0
I would (in arcmap)select the polygon(I think you are asking about 1 polygon), but it works without selecting anything also.
Use the toolbox and the intersect tool.
Selecting your line layer first.
Then it is easy to get the attribute of the polygon selected in the lines.
They are also broken at the poly edges.
3
It is the same tool i.e. Clip_analysis.
There is a diagram showing this in its online help at http://resources.arcgis.com/en/help/main/10.1/0008/000800000004000000.htm where it also says:
"When the Input Features are lines, the Clip Features can be lines or polygons."
1
I would try registering an eventlistener, to help debug what's going on inside of the gp tool.
public static void Test()
{
InvokeTool(@"C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Toolboxes\3D Analyst Tools.tbx",
"AddSurfaceInformation");
}
public static void InvokeTool(string tbxPath, string toolName)
{
var gp = new ...
6
There are a couple of reasons why you want to reference Feature Layers in ModelBuilder, as opposed to Feature Classes. First it is helpful to understand the differences.
"Feature Classes" as simply references to the raw data, in its entirety. One simple example of this where the FC is a shapefile on disk.
"Feature Layers" are references to an ...
4
Incorporating temporary layers into your models also decreases processing time. From a processing standpoint, it is much more efficient writing to memory compared to writing to disk. Similarly, you can write temporary data to in_memory workspace, which is also more computationally efficient.
Many operations in ArcGIS require temporary layers as inputs. ...
2
Models may have many sub process output layers depending on their size and complexity. To eliminate files being written onto your hard disk, some tools make you use feature layers (e.g. Iterate Feature Selection, or Select by Attribute). Feature layers are temporary and will not persist after your model ends.
See Make Feature Layer
1
You basically need the following fields in your feature class
MunicipalNumber
2000_population
2013_population
diff_population = 2013_population-2000_population
Then as PolyGeo mentioned you would use graduated simbology based on the diff_population field
I see no case for using buffers here
4
Since you put "geoprocessing" in the tags, i'd say this is the best source of info
http://blogs.esri.com/esri/arcgis/2012/06/15/be-successful-overlaying-large-complex-datasets-in-geoprocessing/
0
Don't know if this is still an open question, but an idea that occurred to me was that if you had the points/centroids from which your circle polygons were generated, you might be able to more quickly assess their euclidean distance from the coast, select those below a threshold, and then relate these points to the polygon feature class and use that for a ...
0
When we needed this, we just pregenerated a zip file for each layer, and had a link in a custom legend which allowed you to download the data, and just housed the zip files on the site. Not 'slick and automatic', but it gives a way for the user to download the data if they want.
2
I finally managed to make it work...Hope this is useful for others, too.
I re-installed the GDAL 1.9 bindings using the proper installer in this page http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-gdal-1-9-mapserver-6-2.zip which lists the GDAL core binaries and bindings components that are compiled daily using the Microsoft Visual ...
2
As mentioned in my Comment, I think this classic point-in-polygon overlay operation is best handled using the Intersect_analysis tool.
4
Almost any time you use cursors to manipulate geodatabase rows one by one, you should expect a slower process than if you can find a way to do the same thing but on larger selections. Compare the difference of, say, iterating through a point feature class containing 5000 points with a search cursor and buffering each one individually then merging the ...
8
No. Once you've started executing your script at prompt, you're in either the 32 or 64 bit space.
[yes you could do some sort of multiprocess or os.system call out to 32 or 64bit, but thats at your own risk and I've heard nothing but problems when people do this.]
See this blog article about specifying what "bits" to run against.
In short, you'll need to ...
6
Although it is difficult to troubleshoot your script without seeing the spatial data, a few tricks and ideas may help your workflow. To begin, subset your dataset and experiment with different approaches. Incorporate a time clock into your script to get a real sense of how fast or slow operations are. Try wrapping your commands with a time.clock. For ...
1
the solution is :
the new Model is like :
it Paramters like :
the Code :
Sub diso()
Dim gp As GeoProcessor = New ESRI.ArcGIS.Geoprocessing.GeoProcessor()
Dim trac As ITrackCancel = New CancelTracker
Dim Result As ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult2
Dim parameters As IVariantArray = New ...
0
First off, create parallel lines to your original using this method:
How to create an offset polyline in arcpy?
Next, run a cursor over each line and add points to them using the 'positionAlongLine' geometry method (only in ArcGIS 10.1). I made a function that writes these points to a new feature class and then splits the line based on the points, but you'd ...
Top 50 recent answers are included




