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

Problem with Intersect_analysis

$
0
0
Hello,

I have a script that is to geocode addresses from a database, intersect the results with three boundary files and do a tabletotable conversion on the results. Below is the intersect statement I am using.

Code:

arcpy.Intersect_analysis([geocode_results, boundary1_shp, boundary2_shp, boundary3_shp], qResults, "ALL", "", "INPUT")
The statement is failing on qResults (e.g. creating the output of the intersect). It seams that no matter what I put there (file path or variable name), the compiler is appending ".shp.shp" to the file name which causes an invalid file error.

ERROR 000210: Cannot create output \\mydrive\ArcGIS\Default.gdb\qResults.shp.shp
ERROR 000354: The name contains invalid characters
Failed to execute (Intersect).

Any help, would be greatly appreciated.

Thanks,
Dan

Viewing all articles
Browse latest Browse all 2485

Trending Articles