Tag Info

New answers tagged

0

You can definitely achieve this with arcobjects in any of the .net languages. Your question at this point is very broad. Most of the technical aspects you will find many examples of when performing a internet search such as; how to create ArcGIS add-in button, how to connect to database table, how to populate a data grid based on sql SELECT query, ...


0

Kind of an old post but thought this might be useful. this Python Script is kind of a "duct-tape" method for doing this. It is limited to 20 fields but could easily be added to in order to allow it to run for however many fields your data has. The script is designed to be run as a script tool, so you would need to setup parameters within ArcCatalog. The ...


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


-1

I WAS LOOKING TO CREATE LEGIT DONUTS, PERFECTLY ROUND BUFFERS. IF YOU USE THE MULTIRING BUFFER TOOL AND SELECT DISSOLVE ALL. YOU CAN THEN DELETE THE SMALLER OF THE 2 BUFFERS LEAVING A PERFECT DONUT.


6

With 10.2 and above, you can use the Add Geometry Attributes tool to add a field with the length of the features. The tool lets you specify the coordinate system you want to use, in case it is different from the dataset's system. With 10.0, you should work in ArcMap: set the coordinate system of the data frame to WGS 1984 UTM 32N add a field to your ...


-1

This appears to be a really old thread but I recently ran into this same issue using ArcMap 10.3 basic. I ran the tool using python within ArcMap and it worked but the tool from the tool box was not working. Here is an arcpy code: arcpy.env.workspace = r'ENTER WORKSPACE PATH' arcpy.LayerToKML_conversion('INPUTFILENAME.lyr', 'OUTPUTFILENAME.kmz')


2

Just use the ArcGIS raster calculator with a CON statement. CON(("h2005" - "h2015") >= 30, 1, 0) This will result in a binary raster where [1] represents differences of >= 30m and [0] no change at this threshold. And yes, set your analysis environment for extent and snap raster.


0

Came across this recently. This has solved the issue of deleting all of the features in a .sde connection. If you only want to clear specific features, you can use .remove() on the featureClasses list, or create your own list. arcpy.env.workspace = r'path to sde connection of the sde database' featureClasses = arcpy.ListFeatureClasses() for fc in ...


1

I wrote this script to perform the same functionality as the split tool. If you're splitting a large feature class you may want to change the copy features for something else. The feature class I split was small. import arcpy, os arcpy.env.workspace = "" list = [] #Input the values you would normally split by or populate this using another method input = ...


0

Yes it is little difficult to create grid in meters using WGS-84 Here is workflow which works fine for me. First create a polygon shape file which contains a bounding box of raster. Now re-project this this shape file to a projected coordinate system. Selection of projected coordinate system depends on the area where you are working, if you are not sure ...


0

Having not seen these answers before, I used a workaround method - after running the 'near' function, I exported the data as a CSV before running the next 'near' function - so at the end I had one .csv for each two-way comparison I was interested in, and then copy-pasted those columns into one database. Export process: Go into the attribute table, drop down ...


2

In ArcMap, if you are doing a limited number of features, you could edit the features using the Reshape Feature tool and the Trace tool. First, start editing the layer and select the feature you want to snap to the other one. Then pick the Reshape Feature tool from the Editor toolbar. Choose a point inside the selected polygon to start, and then use the ...


1

If you only have a few of these to do, AND you are actually wanting to make the 3 features into one ... My suggested workflow is to do it in an edit session (in ArcMap). Just create a new feature and draw it like the one you drew in red +/-. Then select the new polygon and the other polygons that you want to merge and choose "Merge" in the Editor menu. If ...


4

In ArcGIS, you should be able to use the Integrate tool to snap these features together (I am pretty sure it will work on a single feature class). You should BE SURE TO MAKE A COPY OF YOUR DATA before running this tool, though, as the Integrate tool modifies the input data directly (you are not writing to a new output). You could however get around this ...


0

I downloaded 10.3 recently and had the same problem. My solution was to do the following: Customize Toolbars Click "Labeling" toolbar On the labeling toolbar, click the drop-down arrow next to labeling. Scroll down to Use Maplex Label Engine and click to turn it off. It will give you a screen prompt asking are you sure you want to turn it off, click ...


0

if IPolyLine was used. you have to only set zAware to true to solve this problem. Dim newSegCollection As ISegmentCollection = New Polyline Dim zAware As IZAware = CType(newSegCollection, IZAware) zAware.ZAware = True then you can set z for FromPoint and ToPoint for each line in your IPolyLine shape. and if you want to set same z for all lines in ...


0

What you are asking can be achieved in model builder, you need to create a sub-model. Also your current logic fails as you end up overwriting everything. I discuss that later. The scenario as you describe is this: So your master model would be this: The Sub model would be this: Iterate Features must have recursive ticked on to get to the ...


0

Possible solution, however you should provide a lot more detail in your question if you really want to narrow things down (license level available, formats of the data involved, what else you have besides parcel polygons, etc.): Buffer street centerlines by something more than the width of the road. This may require multiple centerline selections and ...


0

I can only suggest a simple method that will give an approximate on average; yet if you are looking for the exact percentage reduction of area this would not work - but might guide your thoughts towards a coding solution. This method is based, like others have suggested, on negative input to the buffer tool. However it also involves adjustment to the the ...


2

Try layering the TOC something like this (disregarding the label layers) and then use Map to KML: Districts: empty fill, white lines 1pt Constituencies: empty file, black lines 2pt Full Area (run dissolve tool on one of the above layers): red fill, blue outline 3pt It's especially useful to have separate layers because you can toggle them in GE. If you ...


0

I went to the same problem. After checking each layer's coordinate systems, I found out that the problem exists due to the difference in coordinate system. Just simply make sure the layer has the same coordinate with other layers, so the labels will be then displayed.


0

If you've deleted the service from the "Services" panel in AGS and any relevant folders from the Server Dirtectories which were not deleted, you will need to re-start your instance of server. I have previously come across this problem and seen other people post about similar problems in the past. I'm afraid I do not have the links to forum posts I have ...


1

In general, the question of overlap (does Feature 1 cover Feature 2 or not) can be answered by looking at the feature extent. This is the case whether you're working with a raster and a polygon, two sets of polygons, two rasters, etc. If these four criteria, then Feature 1 covers Feature 2: XMin1 < XMin2 XMax1 > XMax2 YMin1 < YMin2 YMax1 > YMax2 ...


3

An ArcGIS Desktop add-in will probably meet your requirements. With an add-in you ship a single compressed file as opposed to a folder structure that includes your source code.


5

A standard, modern approach to address this issue, create a web service that contains your proprietary knowledge. Your tool then calls the web service. Any local code can be cracked open. All you can do is make the process more difficult. Python is not the tool to use to keep your proprietary knowledge secret.



Top 50 recent answers are included