POST
|
Hi Neil, The client requires a separate table of attributes for each record in the point file. For each point, data needs to be extracted from a number of separate raster files to provide a record of all the raster attributes for that point, hence the need to break up the point data. Thanks, Mark
... View more
06-03-2019
06:09 AM
|
0
|
2
|
2958
|
POST
|
Hi Luke, Thanks for this suggestion. I was not aware of this tool, but it looks like it will be of help. Kind regards, Mark
... View more
06-03-2019
06:03 AM
|
0
|
0
|
2958
|
POST
|
Hi Egge-Jan, Thanks very much. I will look up that link. Kind regards, Mark
... View more
05-28-2019
08:17 AM
|
0
|
0
|
2958
|
POST
|
Hi Joe, Thanks very much for your help. I did wonder about a select statement but the example code I looked at did not seem to use one - obviously I was looking at the wrong thing! I will apply your suggestions. Thanks again, Mark
... View more
05-28-2019
08:15 AM
|
0
|
0
|
2958
|
POST
|
Dear Forum Members, I need to create a separate feature class from each record in a shapefile (i.e. each row in original shapefile needs to be a new feature class in its own right). I need to name each new feature class by its ID number from the AWS_ID field in the original shapefile See Python script below: 1.#Import required modules 2.import arcpy, os, traceback 3.from arcpy import env 4. 5.env.workspace = r"C:\temp\" 6.env. overwriteOutput = True 7. 8.# Script arguments 9.awsInput = r"C:\Temp\AWS.shp" 10.awsName = "AWS_ID" # Field in AWS.shp to be used as name for output shpfile 11.cursor = arcpy.SearchCursor(awsInput) 12. 13.for aws in cursor: 14. awsID = aws.getValue(awsName) 15. awsName = "{}_AWS".format(aws) 16. arcpy.CopyFeatures_management(awsInput, r"C:\Temp\DataExtract_Work.gdb\awsName", "0", "0", "0") (NB. line numbers will affect indentation!) I have tried to get it working by a) searching the arcpy help - source of line 11, SearchCursor b) reviewing Esri online Python courses I have done - source of line 15 c) viewing online video tutorials on ModelBuilder iteration Before I added lines 14,15 but ran line 16,the script ran but either overwrote all but the last record or added all the records as per the original shapefile. Currently I get a RuntimeError: ERROR 999999, referring to line 14. Prior to adding lines 15-16, and having a print aws.getValue(aws) statement, it printed out each ID number on a separate line. Question 1. Where have I messed up? Question 2. Does one have to first create a list if one is only using a single feature class/shapefile as the input? Any help will be appreciated. Kind regards, Mark
... View more
05-28-2019
06:12 AM
|
0
|
12
|
3952
|
POST
|
Hi Dan, Thanks for this. I could not get it to work in Pro (bitmap would not load for some reason?) but it worked fine in Desktop. I am also not sure why these help files did not appear when I ran a search on this topic, but obviously did not use the right keywords. Anyway, sorted now, thanks again. Mark
... View more
12-14-2018
03:12 AM
|
0
|
0
|
685
|
POST
|
I have a set of scanned maps as .bmp files. These maps have no georeferencing, grids or any CRS data associated with them, and very few geographic features that can be used to georeference these maps. I can locate the approximate location manually, but there are polygon areas on these maps I need to georeference for a project. I was hoping to use a rubber-sheeting method to get these maps georeferenced as best I could but can't get the .bmp image to show up on the ArcMap mxd that has the base layer I want to align it with. Any ideas?? Thanks very much
... View more
12-13-2018
12:04 AM
|
0
|
2
|
787
|
POST
|
Hi Melita, Thanks again! That is a really useful resource, but one I was unaware of despite 20 years of working with Esri software. Obviously I have not been paying attention 😞 I was helping someone else with this query, so at least 2 of us have learnt something new. Really appreciate that! Thanks very much. Mark
... View more
02-18-2018
11:52 PM
|
1
|
0
|
2548
|
POST
|
Thanks so much Melita! That worked. How can I see the parameters of the built-in Esri transformation files, eg. Arc_1950_To_WGS_1984_5? Thanks again
... View more
02-16-2018
10:44 PM
|
0
|
2
|
2548
|
POST
|
I have a Lidar-derived DEM in a GCS_Arc1950 projection with the D_Arc1950 datum. Full details: PROJCS['GCS_ARC1950',GEOGCS['GCS_Arc_1950',DATUM['D_Arc_1950',SPHEROID['Clarke_1880',6378249.144808011,293.4663076556253]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['false_easting',500000.0],PARAMETER['false_northing',10000000.0],PARAMETER['central_meridian',33.0],PARAMETER['scale_factor',0.9996],PARAMETER['latitude_of_origin',0.0],UNIT['Meter',1.0]] I need to transform it to WGS_1984_UTM_Zone_36S. I used the standard ArcGIS 10.5 Project Raster tool and applied the default ArcGIS transformation file Arc_1950_To_WGS_1984_5. However, it failed, giving an "ERROR 000151: The geotransformation (s) is not valid". I have also tried creating a custom transformation file using the published parameters for the Malawi Arc 1950 Datum to WGS84 (Mugnier CJ, 2011, PERS) but got the same ERROR message. Because the Arc1950 is based on the Cape Datum, I tried defining its projection as a Cape Datum, and transform it using the standard Cape to WGS84 transformation. That worked! I did this simply to see if I would receive the same error message. The source data is in a FGDB When reviewing the Geoprocessing Results info, under Environments, it lists the Geographic Transformation as NAD1927 to NAD1983 NADCON. However in my Environment Settings are as follows: I assume the NADCON setting is some sort of default value and does not influence the actual processing??? Where does it come from? What am I missing?? Thanks very much.
... View more
02-16-2018
01:36 AM
|
1
|
4
|
5330
|
POST
|
I am using the Hydrology tools (Flow Direction; Flow Accumulation etc.) to create a stream network from a 1m Lidar-derived raster DEM. The area has a railway running through it, with large embankments that have culverts under them to allow water flow upstream of the embankments to flow through downstream. However, the DEM does not recognise these culverts and converts the embankments to "dam walls", creating an incorrect streamflow network upstream of the embankments. Any ideas on how to overcome this? Thanks very much.
... View more
02-22-2016
02:53 AM
|
0
|
1
|
2105
|
POST
|
Hi Curtis, Thanks so much - you are a star. Your suggestions worked! I made the output type Double, and added the Float parameter. It did not work initially, but then I saw that there were still " " quotes around the Value parameter in the expression. Once I removed those it all ran! Thanks again for your input.
... View more
10-26-2014
05:45 AM
|
0
|
0
|
729
|
POST
|
HI Dan, I went through the help file and applied the Variable process as best as I understood it but I have not managed to get it right - see below: I have also attached a PDF. I cannot seem to get Raster Calculator to read the value it needs to run in the formula. Any help would be greatly appreciated. Kind regards, Mark
... View more
10-23-2014
01:37 PM
|
0
|
2
|
729
|
POST
|
I have a point feature class with three elevation value fields (High; Medium; Low - calculated from a previous process), which I need to use as inputs in Raster Calculator, with the following expression: "DEM" <= Low elevation value in point FC above. This calculation needs to be repeated for each elevation value (i.e. High; Medium; Low). Question: How can I input these field values into the Raster Calculator in ModelBuilder? The Help File mentions using Variables, but I don't know how to do this! Any guidance will be gratefully received. Thanks very much.
... View more
10-23-2014
12:14 PM
|
0
|
4
|
4308
|
Title | Kudos | Posted |
---|---|---|
1 | 02-18-2018 11:52 PM | |
1 | 02-16-2018 01:36 AM |
Online Status |
Offline
|
Date Last Visited |
07-28-2023
02:51 PM
|