Hot answers tagged arcgis-9.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.
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. ...
If you right-click on a script tool in ArcToolbox and select "Edit", it should bring up the Python script in IDLE. That being said, I don't know if that will be able to fix how the decimal point is represented within the ArcMap table (I've never worked much with localization). This StackOverflow question might get you further in the right direction.
The length of the string should not be a problem in your case. For Python the maximum string length is more than 2 Go in 32-bit (see here). As mentioned in the comment, each individual path in the concatenated string is limited in the Windows API (with some exceptions like the use of "\?\" for very long paths). The maximum length for a path is defined ...
If your ultimate aim is to remove all of the islands and if the island polygons have the same attributes and assuming you are using ArcGIS then you can use the Dissolve tool and bypass the need to select them: QGIS has a tool also called dissolve which will also allow you to select and attribute field to base the dissolve on:
I don't have the full picture (where does z1 come from and is it valid ? Is your shapefile a 3D shapefile ?), but for a start the use of two cursors does not seem to be necessary. while rowLine: #... feat = rowsPoint.NewRow() ptObj = gp.CreateObject('Point') ptObj.x = x1 ptObj.y = y1 ptObj.z = z1 feat.Shape = ptObj ...
You can use "writeGDAL" in the rgdal package. Use the "asc" extension to specify an ESRI ASCII raster format. require(rgdal) # Pull sp SpatialPixelsDataFrame kriging.pred <- kriging_result$krige_output # Write Kriging estimate and variance writeGDAL(kriging.pred["var1.pred"], "KrigingPred.asc") ...
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 ...
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