POST
|
I think you're missing a value for the (optional) template parameter in CreateFeaturecClass CreateFeatureClass_management (out_path, out_name, geometry_type, template, has_m, has_z, spatial_reference, config_keyword, spatial_grid_1, spatial_grid_2, spatial_grid_3)
... View more
05-17-2010
07:14 AM
|
0
|
0
|
546
|
POST
|
Are you not able to step though your code in debugging mode to see where your error occurs? Try breaking things down into smaller pieces, maybe CreateFeatureclass is falling over on something as simple as the a typo in the folder path
... View more
05-11-2010
02:19 AM
|
0
|
0
|
546
|
POST
|
What version of ArcGIS are you using (otherwise folks may provide helpful advice you can't implement)? Could you edit your post to wrap the code in a code tag so the indentation is visible. Can you step through the code in your code editor to see what line it falls over on?
... View more
05-10-2010
02:07 AM
|
0
|
0
|
546
|
POST
|
Where have the pre 2010 threads gone? Those 'archived' forums now only seem to contain around 14 posts each - all from this this year.
... View more
05-10-2010
01:58 AM
|
0
|
0
|
270
|
POST
|
Not sure if this is what you're after Outer loop though feature class to extract an attribute from specified field Use value to construct 'where' clause Inner loop selects features(s) in second feature class Selection syntax is assuming a string field in a shapefile and I'm using ArcGIS 9.2 import arcgisscripting
gp = arcgisscripting.create()
gp.OverwriteOutput = 1
fcPoly = "C:/test_polygons.shp"
fcPoint = "C:/test_points.shp"
myField = "TEST_FIELD"
gp.MakeFeatureLayer(fcPoint,"fcPoint_lyr")
outers = gp.SearchCursor(fcPoly)
outer = outers.Next()
# Print road name and road type
while outer:
myVal = outer.GetValue(myField)
strWhere = '"' + myField + '"' + " = '" + myVal + "'"
gp.SelectLayerbyAttribute_management("fcPoint_lyr", "NEW_SELECTION", strWhere)
inners = gp.SearchCursor("fcPoint_lyr")
inner = inners.Next()
while inner:
# do stuff here with the selected rows
inner = inners.Next()
outer = outers.Next()
print "done looping"
... View more
05-10-2010
01:55 AM
|
0
|
0
|
136
|
POST
|
Do you mean you have numeric fields and you want a proportional value in you ouput row, based on the area of the shape after clipping? Are you working with shapefiles or geodatabases? No idea, sorry. But I'd be very keen to hear the answer. MapInfo can perform a field calculation which works out the proportion of a numeric field based on interesecting shapes I can only think of adding a new shapearea field, then looping all numeric fields and recalculating them.
... View more
05-07-2010
03:01 AM
|
0
|
0
|
161
|
POST
|
Just been experimenting Create a 'background' shape, say a big rectangle bigger than the extent of you points Create a tin Use the tin to cut a hole in the background shape to create an 'outside' polyon Start editing the tin Select by location, select features in the tin layer that share an edge with the 'outside' polygon Delete those features Save and stop editing Should be left with a concave outlined shape Dissolve the individual triangular polygons to be left with a single polygon
... View more
04-23-2010
08:09 AM
|
0
|
0
|
549
|
POST
|
Try the Convex Hull function in ET Geowizards It's a great piece of software that includes functionality sadly lacking in ArcView 😄 ah, oops those post above weren't there when I started writing this post Have a look at the ET Create Tin function - you could assign all points the same height, then do a dissolve. You'll end up with a 3D shapefile but you can copy the resultant feature in a new 2D file. Edit: just realised that's still not going to work! You would though, end up with polygons that if deleted, would give you the outline you need. Just need to identify those polygons that have no neighbours on one side - some kind of topology check?
... View more
04-23-2010
06:49 AM
|
0
|
0
|
699
|
POST
|
I had a problem (in 9.2) with nulls and cursors in a python script. Basically, not possible to insert a null. I was getting the value from the row above being copied down instead - absolutely useless. Apparently a known bug, fixed for 9.4/10 and fixed with a service pack for 9.3 - no fix for 9.2 though. Just found this thread http://forums.esri.com/Thread.asp?c=93&f=1729&t=262236 The comment "Just some advice some might find useful: The code block option in the Calculate Field tool is nothing more than a gp update cursor in disguise" is interesting. Maybe it's the same problem.
... View more
04-22-2010
11:56 PM
|
0
|
0
|
185
|
POST
|
Have a look at the 'create station lines' tool in ET Geowizards. If you can create station lines at the end of each of your lines, you could use them to split a single buffer into square ended pieces.
... View more
04-22-2010
12:12 AM
|
0
|
0
|
1205
|
POST
|
There was a bug with the ListFeatureClasses method (introduced by a particular service pack) in 9.2 See here this thread in the old forums http://forums.esri.com/Thread.asp?c=93&f=1729&t=240535
... View more
04-21-2010
11:49 PM
|
1
|
0
|
4425
|
Title | Kudos | Posted |
---|---|---|
1 | 04-21-2010 11:49 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|