Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Project shapefile returns blank output

$
0
0
Pretty simple here, hopefully the solution is obvious to the community.

1. make event layer
2. export event layer to shapefile
3. re-project shapefile

Code:

InterpolationCSV = "path-to-csv"
XCoord = "Long"
YCoord = "Lat"
ZValue = "Result"
WorkingDirectory = "path-to-wd"

spRefWGS84 = "path-to-prj"
spRefSPN = "path-to-prj"

arcpy.MakeXYEventLayer_management(InterpolationCSV, XCoord, YCoord, "outXY_Layer", spRefWGS84)
arcpy.FeatureClassToFeatureClass_conversion("outXY_Layer", WorkingDirectory, "processpoints.shp")
arcpy.Project_management(WorkingDirectory + "processpoints.shp", WorkingDirectory + "processpoints2.shp", spRefSPN)

This yields a blank output for processpoints2.shp, no matter where I run it, without error.

Any suggestions would be appreciated.

Thanks,

Viewing all articles
Browse latest Browse all 2485

Trending Articles