|
POST
|
Create list to hold rows to be written later Create "previous" variable Enter into a Search Cursor Compare current code (from search cursor) to previous value (in previous variable) If different, add to list Replace previous value with current code Move to next row Create an Insert Cursor For each value in list, write a new row using insert cursor
... View more
09-16-2014
12:59 PM
|
1
|
0
|
2412
|
|
POST
|
Your best course of action would be (always?) to use an appropriate projection for your project that covers the entire study area and preserves the main measurements of interest (area, distance, or angle). I'm not familiar with European projections, but I would guess that something like Europe Albers Equal Area Conic would be a good starting point. Figure out the unit of measurement and go from there.
... View more
09-16-2014
12:40 PM
|
1
|
1
|
2427
|
|
POST
|
Untested, but I would try:
print lyrlist[0].dataSource
Or, loop through your list of layers, changing the index number, instead of [0].
... View more
09-15-2014
05:15 PM
|
0
|
0
|
895
|
|
POST
|
You can change date label format in the label expression. VBScript:
DateValue([date])
Here are the VBScript Date functions. Likewise, search for Python date functions.
... View more
09-15-2014
04:39 PM
|
3
|
2
|
8768
|
|
POST
|
My suggestion is to convert your polygon grid to lines, select and buffer each set of lines separately, merge it all together, and erase.
... View more
09-12-2014
02:21 PM
|
0
|
1
|
1404
|
|
POST
|
We need more information on what you are trying to achieve, but to get the ball rolling, you can use a negative distance to "buffer within a polygon."
... View more
09-12-2014
01:24 PM
|
0
|
3
|
1404
|
|
POST
|
Chris, you would concatenate the original featureclass name with the new suffix. newName = str(fc) + '_1045'
... View more
09-10-2014
01:08 PM
|
0
|
0
|
7682
|
|
POST
|
There's an example here. If that doesn't help, what are you trying?
... View more
09-09-2014
02:08 PM
|
0
|
3
|
2046
|
|
POST
|
Not sure what the fastest way to do it would be, but you can join the two feature classes together based on PID and select/export (or do something else) based on the difference in the fields.
... View more
09-09-2014
01:59 PM
|
0
|
5
|
2046
|
|
POST
|
My previous reply assumed you were using vector data, which would be easier. I've never done it, but this knowledge article seems to outline how to achieve something similar with raster data.
... View more
09-08-2014
03:52 PM
|
1
|
0
|
1480
|
|
POST
|
You can do this with Data Driven Pages. Your index layer (which would normally be a set of polygons covering different areas) would be 40 copies of the same polygon, each with a different value in a column, denoting species. Merge your 40 different layers into one layer, with a column denoting species. After setting up the data driven pages to show a page for each species, set a Page Definition Query so that only the features in your species layer with a species value matching the current index are shown.
... View more
09-08-2014
03:37 PM
|
2
|
2
|
1480
|
|
POST
|
What is the error message, if any? Edit: the above script works perfectly fine for me, as it is.
... View more
09-08-2014
08:52 AM
|
0
|
1
|
2078
|
|
POST
|
Hmmm it works for me. Imagine I have only two points A and B that are coincident. Run Spatial Join using the points as both Target and Join features, and JOIN_ONE_TO_MANY as the join operation. You now have 4 points, with all of the columns from the Target feature (including a column for street name) and all of the columns from the Join features (including its street name). The four features are: A joined to A, A joined to B, B joined to A, and B joined to B. Only one of these will have a Target_FID greater than Join_FID. This is the only point you want to keep (i.e. select all of the points with Target_FID < Join_FID, and delete them). You now have one feature with two fields, each with a street name.
... View more
09-03-2014
02:32 PM
|
0
|
2
|
3410
|
|
POST
|
How did this happen? Did you just change the mxd file extension in Windows Explorer? If so, change it back. If not, please provide more details, because I've never heard of such a thing.
... View more
09-02-2014
03:22 PM
|
0
|
0
|
860
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-30-2013 02:22 PM | |
| 1 | 04-12-2011 11:19 AM | |
| 1 | 09-17-2021 09:43 AM | |
| 1 | 04-04-2012 12:05 PM | |
| 2 | 07-16-2020 11:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-15-2023
12:11 AM
|