Tag Info

New answers tagged

0

1) feature vertices to points to get some points along your stream (if you don't have ArcInfo, you can use ET Geowizard) 2) extract value to point ta extract the value of the DEM for each point.


0

One solution would be to use the tool Select Layer by Location (Data Management). With nothing selected, run that tool from the Search or Catalog tab. Set the Input Feature Layer to your polygon layer and choose completely_within as your Relationship. This should select all of the donut holes. With those selected, run the tool again, still choosing your ...


1

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


1

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:


1

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


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.


1

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


0

This issue was caused by this line of code: IFeatureClassDescription fcDesc = new FeatureClassDescriptionClass(); I should have created that object within the ServerContext. In my code sample above I created the feature class description outside the serverContext and used it to create a feature class in a feature dataset that was created within the ...


0

Is it feasible to just manually edit the vertices and remove the self intersections? I do this a lot (using QGIS because it seems to be less picky about this issue). QGIS also has a 'Check Geometry' tool that will show you where all the self intersections are. I know you said you're running arc but this might be a helpful approach if nothing else is ...


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


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


0

You did not specify you licence, but if you have ArcInfo you can do this easily using "polygon to line" Polygon boundaries are split at nodes in the output line feature class. The right and left polygon FIDS are written in the output line feature class. These IDs can be used to associate polygon attributes with each side of a line in the ...


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


0

You state that your error message has a "#" in it and the only line that has these is: Input_Features = masque +" #;"+os.path.join(pathOutputConversion, infile)+" #" Try this instead? Input_Features = masque +";"+os.path.join(pathOutputConversion, infile)


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



Top 50 recent answers are included