[Solved] Buffering for Situs Address
I have taken the code found on another post which allows selection of a parcel; user input for buffer amount; buffers the parcel; selects the features, highlights and allows a report to be generated on the selected parcels for mailing labels. This works for me on my maps. The problem is that the Address layer for SITUS addresses is in the centroid of the parcel and if the buffer only catches a portion of a parcel that doesn't include the center, then the address layer isn't selected for the situs label.
If I manually do this on my map, I would buffer the selected parcels ZERO (0) feet using the Address layer. Select all the addresses from the Results tabs and add them to the Selection list. ( I have found out that buffer Task in workflow doesn't like a buffer of 0 (zero) feet!)
I want to take the SelectedParcels from the working workflow and query the address layer based on those selected parcels and add the addresses to the selected list so that mailing labels can be created based on that layer.
I have tried a variety of ways, but haven't been successful in the results being exactly the addresses for those parcels only.
Anyone have suggestion to try?
-
Figured it out. Using the workflow code from another posting to buffer the parcels from a click on the map, Once you have the BUFFEREDPARCELS feature set in the workflow you can use the UNIONTASK to create the new resulting geometry of those parcels. Then Use that Geometry in a QUERYTASK for the Address layer, followed by SELECTFEATURES from the address layer. Now I can send Situs labels based on the addresses for all parcels selected even though the Centroid of the parcel where the address layer point is not contained in the actual buffer zone.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar