POST
|
I get; Traceback (most recent call last): File "<module1>", line 23, in <module> RuntimeError: create table
... View more
09-02-2014
04:20 AM
|
0
|
0
|
754
|
POST
|
Hi Note that I’m starting with a pandas data frame (df) and converting it using “to_records” (although I have tried several methods like 'df.as_matrix()'; turbinesNPArray = df.to_records() dt = turbinesNPArray.dtype #(Note this returns: #[('index', '<i8'), ('TurbineID', '<f8'), ('X', '<f8'), ('Y', '<f8'), ('Z', '<f8'), ('HubH', '<f8'), ('RotorD', '<f8'), ('WGS84Lat', '<f8'), ('WGS84Long', '<f8'), ('OFFSETA', '<f8'), ('OFFSETB', '<f8')] #type turbinesNPArray:<class 'numpy.core.records.recarray'> outShapeFile = r"%s\%s.shp" %(rootPath + "Outputs", "outLayout_temp") arcpy.da.NumPyArrayToFeatureClass(turbinesNPArray, outShapeFile, ("TurbineID","X","Y","Z","HubH","RotorD","WGS84Lat","WGS84Long","OFFSETA", "OFFSETB"), self.spRef)
... View more
08-29-2014
06:26 AM
|
0
|
1
|
754
|
POST
|
Hi Well a shape file gets created but only has an index column - no other fields - see below. idfield 1 2 Thanks
... View more
08-29-2014
05:58 AM
|
0
|
0
|
754
|
POST
|
Hi I'm using arcmap 10.2 and have been trying in vain to get the numpyArrayToFeatureClass tool to work in a python script. It generates a shapefile but the output I get only ever has an index column - no other columns are output. When I use the code example here ArcGIS Help (10.2, 10.2.1, and 10.2.2) I get exactly the same problem. Can you please give me any indication where I am going wrong? Thanks Alastair
... View more
08-29-2014
01:31 AM
|
0
|
9
|
5622
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|