|
POST
|
The only thing I see from the listed command that won't work as a stand-alone script is the line: mxd = arcpy.mapping.MapDocument("CURRENT") The CURRENT keyword is not valid in a standalone script. Replacing this with a path to the MXD you want to you should not be a problem. If someone is going to revise the script, you should provide this person the data used in the process, the MXD, the Excel and Word templates including the macro's, etc.
... View more
12-15-2014
07:21 PM
|
0
|
3
|
2186
|
|
POST
|
When symbolizing a raster only the cell colors can be defined. You could convert your raster to polygons and apply the symbology you want.
... View more
12-15-2014
07:01 PM
|
0
|
1
|
1896
|
|
POST
|
Not entirely sure, but you can probably use the script in this post to get that result (although you are not looking for a floodplain): Determine Floodplain: Based on known flood level
... View more
12-15-2014
06:33 PM
|
0
|
0
|
1545
|
|
POST
|
If you assume that the water level rises with 0,005 meter/year and you want to know the level 1000 years ago, the level would be 5m below the current level. If you have depth information you could slice it with that level.
... View more
12-15-2014
02:33 PM
|
0
|
1
|
1410
|
|
POST
|
If you use the "Points to Line" tool to create lines from your points, there is an option "Line Field (optional)" that allows you to guide the creation of the lines. In case you have 1 animal and several dates, you can create a date field that will allow the creation of a line per date. If the output is written to a file geodatabase, the output will have a length field with the length of the line (if they are in projected coordinate system as Dan indicated before). In case you have more than 1 animal, create a field that concatenate the ID of the animal and the date and use that as Line Field. This will create a line per date per animal.
... View more
12-13-2014
03:02 PM
|
2
|
0
|
1718
|
|
POST
|
Below an example of getting the address without the part from the last space (using the Python parser): Formula (with "Address" being the name of the field that contains the address string): !Address![:!Address!.rfind(' ')] The result: If you can detect the part you want to exclude, it is easy. However if you want to obtain "123 Northwest" or "PO Box 3", there is no easy way to detect the parts you need or those you want to exclude. Kind regards, Xander
... View more
12-09-2014
03:07 PM
|
0
|
1
|
5551
|
|
POST
|
You could after creating the shapefile, use the Add XY tool to add the coordinates: arcpy.AddXY_management(in_features) Some other tips: Use syntax highlighting for your code to make it more readable. Curtis has a nice post on this: Posting Code blocks in the new GeoNet When creating a spatial reference you don't need to do this: WKID = 4326 # WGS-1984
sr = arcpy.SpatialReference()
sr.factoryCode = WKID
sr.create() rather do this: WKID = 4326 # WGS-1984
sr = arcpy.SpatialReference(WKID)
# or:
sr = arcpy.SpatialReference(4326) # WGS-1984 When you create the file path, I suppose you have a trailing slash at the end of the path. It is cleaner to do this: import os
out_fc = os.path.join(strFilePath, strShapeFileName) When assigning a boolean it is better to use a boolean: env.overwriteOutput = True # instead of env.overwriteOutput = 1 Kind regards, Xander
... View more
12-09-2014
02:48 PM
|
1
|
0
|
2516
|
|
POST
|
Does it help if you create an attribute index on that field?
... View more
12-03-2014
05:52 PM
|
1
|
1
|
1253
|
|
POST
|
Visually there are few lines, but each line consist of many features. I guess that is what you were referring to with "section". Angle is not provided yet... in what unit are the angles provided? Degrees? Are the angles geographic or arithmetic? What would be the field to hold the "scale" value? I'm still a little confused, if the sections (features) that make up a line are applied different scaling and rotation, the polyline (combination of the sections) will not make much sense (I think). What is the purpose of this process?
... View more
12-03-2014
03:17 PM
|
0
|
1
|
2352
|
|
POST
|
duplicate of: Help with Raster project site selection
... View more
12-03-2014
02:56 PM
|
0
|
0
|
810
|
|
POST
|
Cool! A sabbatical and being coached by William Huber. I'm getting a little jealous here.
... View more
12-03-2014
02:43 PM
|
1
|
0
|
4260
|
|
POST
|
If the feature has attributes about the rotation and translation, I suppose it doesn't really matter if it is a multipart or not, since the affine transformation will be applied to the entire feature. Right? But yeah, it would be nice to post a small part of you data or create some comparable dummy data so we can have a look at it.
... View more
12-03-2014
02:39 PM
|
0
|
4
|
4260
|
|
POST
|
I think in the December 2014 release some more templates are coming, but I'm not quite sure which ones.
... View more
12-03-2014
02:36 PM
|
0
|
2
|
2321
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-09-2020 09:26 AM | |
| 6 | 12-20-2019 08:41 AM | |
| 1 | 01-21-2020 07:21 AM | |
| 2 | 01-30-2020 12:46 PM | |
| 1 | 05-30-2019 08:24 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|