Tag Info

Hot answers tagged

4

Thanks for your script Alex, very nice! I saw a small issue, since relies on several geoprocessing tools that run for each row: Create Table > Add Field > Cursor to Insert Rows > Bearing Distance To Line > Append > Delete Table > Delete Lines >>> Reiterate for next row. It took 10 secs per feature for me. Since, I needed to process around 18,000 features ...


4

I think that the error isn't with the data so much as with the symbology of the first tile. That is, it has to be in the way that the tile is being rendered with a colour ramp. The reason I say this is that I downloaded the data you linked to and displayed the tiles in a different software package and this is what I got: You'll notice that the 'Error' ...


3

There is a tool in the free and open-source (GNU GPL licensed) GIS Whitebox Geospatial Analysis Tools that can identify the flowpath from any point or collection of points specified either as a ShapeFile or as a categorical raster. The tool is called Trace Downslope Flowpaths: The tool takes a D8 flow pointer (flow directions) grid as an input, which ...


3

EDIT Sept. 1, 2014: I have modified the code so that it would work with any field of any type where the typical blank values for each respective type are replaced. Testing for Null values is done first and separate from other tests, since a Null will cause any of the other conditional statements to throw an error. I left out a test for a blank currency ...


3

It's likely the result of a topological error in the original vector file. If borders don't align perfectly, and remember that in most vector formats coordinates are stored to a very high level of precision, then errors will result in the dissolve output. This is the most common problem when running Dissolve operations. They can usually be fixed with a ...


3

The short answer is you can't produce a clipped sid image in ArcGIS 10, the format is proprietary. But you should be able to produce a clipped jpeg 2000 (jp2) which is similar. A typical sid compression is 20 to 1. In ArcGIS to get the equivalent compression on a jp2 you would use 5 in the Environment - Raster Storage form compression quality box. (That ...


3

Python add-ins are new to 10.1. So your 9.3 user won't be able to use one. If he decides to migrate to 10.1 or higher (wouldn't be a bad thing after all, 9.3 is not supported for a while): Add-ins are stored in your user's profile (...\My Documents\ArcGIS\AddIns). I don't think you can use/find the add-in if you didn't install it on your machine. But if ...


3

In the requester's mxd, if you go to the Customize drop-down and then select Customize Mode (This is in 10.1. I can't remember if 9.3 was exactly the same, but either way look for Customize Mode somewhere), and then right-click on the button in the toolbar do you get the option to View Source? At 9.3 you could make buttons that fired VBA which in turn fired ...


3

It is unclear why you don't want to use the extract by mask option. The only other way I know of is to set the mask through the environment settings: ArcGIS Help 10.1 - Mask (Environment setting).


2

I know this is an old question but I like to look at the ArcToolbox History folder. It is a more complete picture of what you are doing - ie it will show you all the inputs and outputs for building a Service Definition file not just GP tools used. C:\Users\[USERNAME]\AppData\Roaming\ESRI\Desktop[VERSION#]\ArcToolbox\History


2

For those who want to do this in 10.2, this modification of above worked for me: # Import system modules import sys import string import os import arcgisscripting # Create the Geoprocessor object gp = arcgisscripting.create(10.2) # Load required toolboxes... gp.AddToolbox("C:/Program Files (x86)/arcgis/Desktop10.2/ArcToolbox/Toolboxes/Data Management ...


2

As of ArcGIS 10.2.1 for Desktop, you can use Alter Fields (Data Management) with an Advanced level license to: to rename fields or rename field aliases for any geodatabase table or feature class The same tool became available to Basic and Standard level licenses at ArcGIS 10.2.2 for Desktop.


2

From my collection of ArcGis 9.3 python scripts: import arcgisscripting gp = arcgisscripting.create(9.3) Shape_A = "c:\\some\\path\\to\\shapefile.shp" Shape_B = "c:\\some\\other\\path\\other_shapefile.shp" Intersection = "c:\\output\\path\\output.shp" gp.Intersect_analysis(Shape_A + ";" + Shape_B,Intersection,"ALL","#","INPUT") You will need to change ...


2

In a similar case, I used a linear feature derived from the polygons on the top, and the polygons feature below. Then, you can symbolize your lines accordingly, whereas the polygons borders (the outline color in ArcMap) can be set to no color.


2

I just went to the Online Help where, at the end of the Advanced PDF features page it says: Note: PDF Map Georeference export functionality is not present in the initial ArcGIS 9.3 installation. It must be enabled via installation of a free general patch on top of 9.3, available from http://support.esri.com, entitled "ArcGIS (Desktop, Engine, ...


2

In ArcScan, (even with v9.3) there are a whole load of tolerances to fiddle with, including a "gap closure tolerance". Have you fiddled with these? See ArcScan - batch vectorization In some cases you will have to resort to cleaning these gaps manually.


2

Have a look at generalization tools such as Expand, Shrink, Boundary Clean and Thin. A combination of these tools should help. For instance Expand followed by Thin in your case should join many of the gaps. What is achievable will depend on how poor your data are. An alternative which could help if you are finding too frequent merger of small areas is to ...


2

To Mosaic non georeferenced images using ArcMap may not be possible at all. I Suggest you use online base-maps if you know the locality of the images, look for duplicate points from the image and an online base-map then use those values to first georeference so that you can Mosaic


1

I found the solution thaks to : ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect) Code correction : ITopologicalOperator4 topoOperateur = ((IClone)secteurPsr.Shape).Clone() as ITopologicalOperator4; IGeometry geomPsr = ((IClone)currentPsr.Value.Shape).Clone(); IPolyline polylinePsr = geomPsr ...


1

As mentioned by @AlexTereshenkov installing a 64bit version of Python 2.7.3 with ArcGIS Desktop 9.3 is ill advised. If you uninstall ArcGIS Desktop and Python, and then let ArcGIS Desktop install Python for you I suspect you will be up and running within an hour. As you can see from the System Requirements for ArcGIS Desktop 9.3/9.3.1 the Python version ...


1

There are several ways to do this directly in ArcGIS, there is no need for 3rd party tools. One method is to use the Make XY Event Layer (Data Management) as was suggested in a comment. This help page provides good instructions on how to do this in ArcGIS: Adding x,y coordinate data as a layer


1

You could reproduce the toolbox yourself pretty trivially: the parameters are described in that documentation and the source for zip.py and unzip.py are both online.


1

Actually the problem is not really coming from the display properties. In fact, even changing the streched symbology I still have the same error. The error come from the reading of the data by arcgis. When opening a .asc with notepad, we can see that a default value is set for nodata. In my case the default value was : -9999 (see first picture below). I ...


1

Use a spatial join but a ONE TO MANY relationship. So if a square intersects say 3 hexagons then you get 3 squares back one for each hexagon. Then use the Summary statistics tool to group by square ID and select MAXIMUM hexagon area and first hexagon ID. This creates a table of square ID, maximum area of hexagon and hexagon ID. Then its a sequence of joins ...


1

If you're already familiar with the upstream trace tools, you should be able to apply the following steps: Create a constant raster. A constant value of zero is a convenient number. Subtract the elevation raster from the constant raster, leaving you with an inverse of the elevation raster. If you used a constant value of zero, your inverse raster is now a ...


1

For symptoms like these in shapefiles, or feature classes (of file or personal geodatabases), and as you have noted in a comment, the tool to use is Repair Geometry (Data Management) which is available at all license levels: Inspects each feature's geometry for problems and fixes the problems that are found. The Clean tool mentioned in the other ...


1

Seems like you have not initialized the list using New. Dim listofOIDS As New List(Of Integer)


1

You can do with arcgis project(Data Management) tool . It will convert from one coordinate system to any other. Go to arc tools and search for Project tool in Data management and give in put your vector file and give output coordinate system whatever you want based on your your requirements.


1

I noticed I could define the extent in the properties of the layer, export to layer file and then to .tif in ArcMap, so figured there would be a layer python command to make this in memory. Use "gp.MakeRasterLayer_managment" to make a temporary raster layer with the extent set to be the desired file extent. export the layer with gp.CopyRaster_management to ...


1

The single tool most suitable to your goal is Identity, which will cut up your A layer by your B layer and not leave any polygons based on the B layer that don't overlap A. However it requires an ArcInfo license. The next suggestion would be Union, which will return all polygons cut up by overlap. This will return not only the areas of common overlap ...



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