# Tag Info

5

You could look at using some open source options. QGIS is a great source, but if you do not want to have a second GIS application, I would look at using OGR. You can look for OGRGUI, or download the suite of GDAL tools (OSGeo4W).

5

gp.AddToolbox(path_to_tbx) gp is a arcgisscripting object, as you suspected. The ESRI docs: here.

5

4

Give GDAL/OGR a try - open source - ogr2ogr: ogr2ogr -f 'ESRI Shapefile' output.shp input.kml

4

You can use the Geometry object which is available even in 9.3. The .pdf file for Geoprocessor model in 9.3 The code sample: rows = gp.SearchCursor("D:/St_Johns/data.gdb/roads") row = rows.Next() while row: print row.Type Alternative way is to use Describe method where you could use ShapeType: import arcgisscripting gp = ...

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 are some fundamental differences between MapInfo's styling and ArcGIS's. Most importantly, MapInfo styles features per-feature in a style string (it's a weird encoding, including a funny representation of RGB in a single int value). ArcGIS styles things in a MapInfo 'thematic', which really means, in categories (that's a over-simplification, as there ...

3

You can use the following webpage to add basemaps to 9.3. Esri Basemap Layers If you click the Open link under each layer you can either save as a layer file or open in ArcGIS desktop

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

If I understand your question, you would like to get attributes from the the black dots into the color dots. What if you used the near tool to get the OID of the nearest black dot to each color dot? Then do a join based on this OID to get whatever attributes you like from the black dots into the color dots. Try the generate near table tool. Calculates ...

3

You can get it this way: row.GetValue("your_shape_field_name").GetPart().z And here you can get more information and a complete example from the ArcGIS Desktop Help.

3

As far as I know, which may not be very far, you can't do that. An mxd is a separate document from the data it contains. Many CAD programs can use shapefiles, although again you wouldn't get symbology. For text, try converting it to annotation and maybe that will export to CAD. Do this on a copy of your data. I'm more used to bringing CAD into Arc than Arc ...

3

A solution to this is discussed on the ESRI forum here: Every planar surface has a simple formula, Jesse, in the form (something)*x + (something else)*y + (constant). In the Raster Calculator, x is $$XMap and y is$$YMap. The trick is figuring out the coefficients. Often you want to specify a plane in terms of its slope (s), aspect (a), ...

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

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

First, you need to get your locations on the map (add XY event layer if you don't already have a shapefile) Then, you can use "extract value to point" in order to extract the values that have interpolated. Finally, you can export your attribute values to ascii file

2

I hope following function will help you. Just pass the mxd path and query string to the function and it will open the mxd with Def queries on three layers. def mxd_Select(mxd_Path, Qry_str): def sql_Cosm(str): # cosmatic string for proper sql commond. cosm_Strg = '' for str in str.split(","): # for sql cosmatic if cosm_Strg ...

2

Instead of: rows = gp.UpdateCursor(input) row = rows.Next() while row: expression = 3 row.SetValue( field , expression) row = rows.Next() Try rows = gp.UpdateCursor(input) for row in iter(rows.next, None): expression = 3 row.SetValue(field, expression) rows.updateRow(row) Basically you ...

2

the answer is : it depends. But usually this is not possible because the tfwx file is only an approximation of the precise transformation using an affine transformation. The transformation is written in the aux.xml file. More details in the arcGIS doc if the transformation cannot be expressed as a world file, Update Georeference writes the ...

2

with a categorical raster data, you can build the raster attribute table of your raster. Once this is done, open your table (right click on the layer) and you will see the count of the pixels. Multiply by the area of your pixels and you have a good approximation of the area of each class.

2

I'm sorry, actually with 9.3 you can't edit the tool's abstract in the tool side panel with the page editor, so you can only use plain text. You can use the page editor for most items of the tool's help page, see Entering topics in the Documentation Editor. Apologies for the confusion, I haven't used 9.3 for years, by the way it's not supported anymore. ...

2

The problem is not with the bus routes data, it's with your other shape files. They appear to be TIGER data, which is not distributed in a Projected coordinate system. At some point, the prj files for those three shapes has been corrupted, altered, or deleted. Perhaps you used the Define Projection tool on those shapes and set them to UTM 15N when you should ...

2

if you have ArcInfo, you could use "polygon to line" to have topological arcs. Based on the attribute table, you can select the lines which do not have values of -1 in the left or right. Then you select the polygons that intersect those lines and you invert the selection. Another solution is to use the dissolve tool (no multipart polygons). Then a spatial ...

2

There are two things in that zip file: the "raw" raster data koppen_ics a layer file The layer file is just a pointer to the original data, with additional information about symbology (in this case, providing short text names for the various climate zones). Layer files are useful for saving a set of layers and symbology, but they can't be used if the ...

2

Walter: the HUD data uses ID's for the blockgroups (BLKGRP) with single quotes around them... the TIGER blockgroup ID's (GEOID) do not have single quotes: I would say that you should create a new column using Excel / Open Office to truncate the first and last values from the field into the new column...but I can't remember how to do that right now!!! ...

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

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

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.

1

I think the error is being caused because you are altering the schema of the output table after the InsertCursor is already open. Try splitting your script into two different loops: one that adds the fields to your output table (sorry I missed that part previously), create your InsertCursor and then a final loop that calculates the values and appends them ...

1

I think your issue is that you are joining paths with a single backslash (and putting a space after it). In python, the backslash is an escape character. Use forward slashes "/" or os.path.join to join paths (can also use raw string notation, i.e r'c:\Temp' but that doesn't work with single backslashes). You also have a space after the file extension in ...

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