I am attemption to Union two shapefiles. I made sure both shapefiles have the same defined coordinates before trying to Union and I am still getting and empty output generated warning. I found on google that some people had the same issue and after repairing Geometry it worked for them. That did not work out for me.
Does anyone have any potential solutions on how I can achieve this Union operation successfully or have any insight on why this operation completes but generates an empty output.
I have two large shapefiles that I was trying to intersect. I was limited by my computational constraints, so I gave it the classic attempt of divide and conquer. I split shapefile 1 into two shapefiles 1a and 1b. Intersected them with Shapefile 2. Now I am trying to Union the two intersects together.
You managed to 'simplify' your problem into something quite different from your second explanation. That second explanation may be a bit oversimplified too. Your pseudo code does not make your workflow much clearer. This forum is not really a good place to gloss over 'details'.
for example: Why are you unioning the subfiles of Shapefile1? Where does Shapefile2 come in? is outfeatures always "X.shp"? I assume you realize that there is a difference between outfeatures and outFeatures ? why does a for loop start up between two union operations?
No one can guess any of this. Post your real code, and put it between code tags (the '#' button on the editor toolbar).
Be all that as it may...
If you have concerns about geometry issues, I suggest converting the shape files to file geodatabase feature classes and then running check or repair geometry. Shapefiles can be depressingly tolerant of internal faults.
I assume your output is important, I asked if there was any output from the first stage(s) (that is, in the "two intersects" you were trying to union, as per your first post).