POST
|
Ha, now I see it. It's hard to read unformatted. So, it looks like you initially get an array of x,y values for the first part of the polygon with this: for pnt in inShape.getPart(polyIndex): Now you need to pull the the individual points from the array that is the first part of the first polygon record in your feature class. Think of multipart features.
... View more
10-03-2012
12:49 PM
|
0
|
0
|
597
|
POST
|
I don't see where 'pnt' is defined, so it can't have an attribute 'X'.
... View more
10-03-2012
12:28 PM
|
0
|
0
|
597
|
POST
|
I think if you are adding features from various sources into a single feature class, you only need one insert cursor running to handle the record insertion. The source files would require individual search cursors to pull the information to be added by the insert cursor. You would probably want some sort of loop to run through the input files that does the following: creates a search cursor, grabs some info, adds the gathered information via the insert cursor to your new feature class, and closes the search cursor. But like a previous post said, apparently you can't open multiple insert/update cursors without and edit session being open.
... View more
10-03-2012
12:03 PM
|
0
|
0
|
1330
|
POST
|
If you just want a string with the value: 'I am going {nuts}'.format(nuts= 'crazy over this') Try encapsulating it in double quotes like this: s = "'I am going {nuts}'.format(nuts= 'crazy over this')" Or you might need to somehow concatenate the string like this: s = 'I am going {wild} ' + '{nuts}'.format(nuts= 'crazy {nutty} over this') + ' for real!' print s 'I am going {wild} crazy {nutty} over this for real!'
... View more
10-03-2012
11:31 AM
|
0
|
0
|
5104
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|