<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Combining polygons by date fields in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578248#M19152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to include the name and date attributes in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is being asked of me is to combine polygons into financial years, please see the example below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3451_example.jpg" style="width: 620px; height: 297px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 14:12:20 GMT</pubDate>
    <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
    <dc:date>2014-08-14T14:12:20Z</dc:date>
    <item>
      <title>Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578242#M19146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an interesting problem.&amp;nbsp; I have been asked to create a set of polygons using dates.&amp;nbsp; Below is an example table showing the data.&amp;nbsp; As you can see the table is sorted by start year.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have to do is generate a set of polygons each time the start year, month and day changes.&amp;nbsp; So the first polygon will just contain the first row of data.&amp;nbsp; The second polygon will contain both the first and second and so on.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also another element to this.&amp;nbsp; Each row of data has an end year, month and day.&amp;nbsp; If a row has an end year of 2300 then that row will stay in the output once it has been added.&amp;nbsp; If there is an end year that does not equal 2300 then that row will not be included in future versions of the output.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/3349_data.jpg"&gt;&lt;IMG alt="data.jpg" class="image-1 jive-image" height="234" src="https://community.esri.com/legacyfs/online/3349_data.jpg" style="width:764px; height: 234.1290322580645px;" width="764" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So is there anyone who can help?&amp;nbsp; I have about two hundred tables like the one above. Would like a model builder solution.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 14:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578242#M19146</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-12T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578243#M19147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a point I don't really get; when the end date of a record (current date you want to process) is not equal to 2300, BUT it is higher than the current date, should it be removed from the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems more logic to me if for each unique date in the StartDate you use all the records for which the start date is before the current date and the end date is after the current date and use those records to create the polygon. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I would probably use some Python code to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a unique sorted list of start dates&lt;/LI&gt;&lt;LI&gt;create a layer through the select by attributes&lt;/LI&gt;&lt;LI&gt;dissolve the polygons and create a new featureclass (or add it to an existing one if you want the new merged polygons to be stored in 1 featureclass)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there is still the issue of what to do with the attributes of the records you're merging...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're willing to post a piece of your data, I can have a look and see what code is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 18:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578243#M19147</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-12T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578244#M19148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your first question if the end year is not equal to 2300 but is higher than the current date, then it should be removed when it's end date is less than any of the start dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me how I upload a file so you can get to it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can discuss the attributes once you have the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 10:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578244#M19148</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-13T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578245#M19149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZIP the extract of your data (shapefile or FGBD), and use &lt;SPAN style="line-height: 1.5;"&gt;the "reply" option in this thread. In the editor in the upper right corner you will see a link "Use advanced editor", once in the advanced editor you will see in the lower right corner the possibility to attach a file.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 15:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578245#M19149</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-13T15:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578246#M19150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the zip file containing the shapefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 15:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578246#M19150</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-13T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578247#M19151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have included some Python code that created a new shapefile with the merged polygons. The attributes are still to be defined. In the code the processing date is assigned the the output date fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create two new columns that hold the start and end date as date (not as text).&lt;UL&gt;&lt;LI&gt;You can do this by adding the fields "DateFrom" and "DateTo" as date fields&lt;/LI&gt;&lt;LI&gt;Calculate the new fields and simply assign the field StartDate and EndDate to it&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason to do this is to simplify the syntax of the where clause used in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Change line 6 to point to your input shapefile&lt;/LI&gt;&lt;LI&gt;Change line 7 and 8 to hold the field names of the date fields (the newly added fields)&lt;/LI&gt;&lt;LI&gt;Change line 11 to point to a shapefile that will be created&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script will:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an empty output shapefile&lt;/LI&gt;&lt;LI&gt;Create a list of unique dates from the start date field&lt;/LI&gt;&lt;LI&gt;Loop through each date and create an expression (see lines 29 - 31). It will select all polygons with a start date less than of equal to the current date and&amp;nbsp; where the end dates are after the current date&lt;/LI&gt;&lt;LI&gt;On lines 35 - 42 the polygons that match the query will be merged into a single (multipart) polygon&lt;/LI&gt;&lt;LI&gt;On line 46 the polygon is written to the output shapefile&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14079556354923790" jivemacro_uid="_14079556354923790"&gt;
&lt;P&gt;import arcpy, os&lt;/P&gt;
&lt;P&gt;from datetime import datetime&lt;/P&gt;
&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# change path to datasource&lt;/P&gt;
&lt;P&gt;fc = r"D:\Xander\GeoNet\MergePolsDate\Reserves_copy.shp"&lt;/P&gt;
&lt;P&gt;fld_start = "DateFrom" # create date field and fill it with content of StartDate&lt;/P&gt;
&lt;P&gt;fld_end = "DateTo" # create date field and fill it with content of EndDate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# output shape&lt;/P&gt;
&lt;P&gt;fc_out = r"D:\Xander\GeoNet\MergePolsDate\Reserves_merged.shp"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create empty output shapefile&lt;/P&gt;
&lt;P&gt;ws_path, fc_out_name = os.path.split(fc_out)&lt;/P&gt;
&lt;P&gt;arcpy.CreateFeatureclass_management(ws_path, fc_out_name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "POLYGON", fc, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;flds = ("SHAPE@", fld_start, fld_end)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create a unique list of dates from start date&lt;/P&gt;
&lt;P&gt;lst_dates = list(set([row[0] for row in arcpy.da.SearchCursor(fc, (fld_start))]))&lt;/P&gt;
&lt;P&gt;lst_dates.sort()&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# insert cursor to store features to new featureclass&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(fc_out, (flds)) as curs_out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # loop through list of unique dates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for date in lst_dates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create an expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression = "{0} &amp;lt;= date '{2}' AND {1} &amp;gt;= date '{2}'".format(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_start),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_end), date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create the searchcursor with the expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc, flds, where_clause=expression) as curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pol = row[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # first polygon is just the polygon"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = pol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # next polygons are added with union&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = polygon.union(pol)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert the feature into the output featureclass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # TODO: manage attributes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out.insertRow((polygon, row[1], row[1]))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of any doubts, just post a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 18:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578247#M19151</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-13T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578248#M19152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to include the name and date attributes in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is being asked of me is to combine polygons into financial years, please see the example below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3451_example.jpg" style="width: 620px; height: 297px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578248#M19152</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-14T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578249#M19153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your example I don't really understand the concept of a "financial year". To fill the EndDate columns with the value 31/21/2300 doesn't seem right, since polygons that expire before that date, but have an end date after the current processing date, are included too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to add the name and create a new column "OutputName" that holds the name and a date range. What is not very clear to me is this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For the first record in your Excel it seems that the current processing date is "31/03/1965". In the code I provided the first processing date will be "01/04/1962" which will create a name "Reserve A 01/04/1962 - 01/04/1962".&lt;/LI&gt;&lt;LI&gt;For the next record it will include those polygons for which the start date is before or on the current processing date ("07/06/1965") and the end date is on or after the current date. This will include also the first record, creating an overlap in range and an OutputName "Reserve A 01/04/1962 - 07/06/1965"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the first record in the sample shapefile has an end date of 31/21/2300 it will be included in all the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can explain a little more on what you are trying to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578249#M19153</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-14T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578250#M19154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for this.&amp;nbsp; Don't worry about the financial year, I can sort that out later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this example&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3445_example.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first version of the reserve is live between 01/04/1962 until 06/06/1965 as on the 07/06/1965 the reserve then includes both row 2 and 3 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes it easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you for your patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578250#M19154</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-14T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578251#M19155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14080326930008637 jive_text_macro" jivemacro_uid="_14080326930008637"&gt;
&lt;P&gt;import arcpy, os&lt;/P&gt;
&lt;P&gt;from datetime import datetime, timedelta&lt;/P&gt;
&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# change path to datasource&lt;/P&gt;
&lt;P&gt;fc = r"D:\Xander\GeoNet\MergePolsDate\Reserves_copy.shp"&lt;/P&gt;
&lt;P&gt;fld_start = "DateFrom" # create date field and fill it with content of StartDate&lt;/P&gt;
&lt;P&gt;fld_end = "DateTo" # create date field and fill it with content of EndDate&lt;/P&gt;
&lt;P&gt;fld_name = "Name"&lt;/P&gt;
&lt;P&gt;fld_outname = "OutputName" # output name&lt;/P&gt;
&lt;P&gt;len_outname = 75&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# output shape&lt;/P&gt;
&lt;P&gt;fc_out = r"D:\Xander\GeoNet\MergePolsDate\Reserves_merged3.shp"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create empty output shapefile&lt;/P&gt;
&lt;P&gt;ws_path, fc_out_name = os.path.split(fc_out)&lt;/P&gt;
&lt;P&gt;arcpy.CreateFeatureclass_management(ws_path, fc_out_name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "POLYGON", fc, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# add string field&lt;/P&gt;
&lt;P&gt;arcpy.AddField_management(fc_out, fld_outname, "TEXT", "", "", len_outname)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;flds = ("SHAPE@", fld_start, fld_end, fld_name)&lt;/P&gt;
&lt;P&gt;flds_out = ("SHAPE@", fld_start, fld_name, fld_outname)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# create a unique list of dates from start date&lt;/P&gt;
&lt;P&gt;lst_dates = list(set([row[0] for row in arcpy.da.SearchCursor(fc, (fld_start))]))&lt;/P&gt;
&lt;P&gt;lst_dates.sort()&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# insert cursor to store features to new featureclass&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(fc_out, (flds_out)) as curs_out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # loop through list of unique dates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for date in lst_dates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create an expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression = "{0} &amp;lt;= date '{2}' AND {1} &amp;gt;= date '{2}'".format(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_start),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_end), date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create the searchcursor with the expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc, flds, where_clause=expression) as curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pol = row[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = row[3] # take name of first polygon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # first polygon is just the polygon"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = pol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # next polygons are added with union&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = polygon.union(pol)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert the feature into the output featureclass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datefrom = date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_date = lst_dates.index(date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i_date + 1 &amp;gt; len(lst_dates) - 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateto = ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outname = "{0} {1} - {2}".format(name, datefrom.strftime('%Y/%m/%d'), dateto)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateto = lst_dates[i_date + 1] - timedelta(days=1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outname = "{0} {1} - {2}".format(name, datefrom.strftime('%Y/%m/%d'), dateto.strftime('%Y/%m/%d'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out.insertRow((polygon, row[1], name, outname))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will create the output column with the format from your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PS: If the answer responds you question mark the post as answered at the post that answered your question. If it was helpful, mark it as helpful. This way other forum users will be able to find useful content. More on GeoNet can be found here: &lt;/EM&gt;&lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Help&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 16:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578251#M19155</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-14T16:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578252#M19156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; It now does what I want it to do.&amp;nbsp; You are a star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 09:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578252#M19156</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-15T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578253#M19157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please then, mark one of Xander's answers as correct...currently the thread is still open&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 09:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578253#M19157</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-15T09:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578254#M19158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, how do I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578254#M19158</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-15T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578255#M19159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for each thread there should be a greenish star with test beside it saying "correct answer"&amp;nbsp; click on it for the thread that answered your question and NOT this one &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 10:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578255#M19159</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-15T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578256#M19160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad it worked for you. Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 12:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578256#M19160</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-15T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578257#M19161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one more thing.&amp;nbsp; How can I use your script to run against multiple input shapefiles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 15:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578257#M19161</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-18T15:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578258#M19162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is possible, but it might be necessary to know a little more on the folder structure where you have your input featureclasses and how you want to name the outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally a arcpy.ListFeatureclasses() can be used to get a list of featureclasses in the current workspace. In case they are in multiple folders and sub folders the arcpy.da.Walk() is better. Based on the input name, you can create an outputname (like for instance &lt;EM&gt;inputname&lt;/EM&gt;_merged).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current script can be rewritten as a function to process a single featureclass. This function will be called from the loop through the input featureclasses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Xander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 18:00:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578258#M19162</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-18T18:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578259#M19163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My shapefiles are currently in this folder C:\Users\PaulBritten\Desktop\tenure\All reserves&lt;/P&gt;&lt;P&gt;and the out put name would be as you suggest with the _merged at the end of the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will admit that I am not a python expert at all and have no idea how to amend/update the python script with any new functionality. Therefore would you mind amending your script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and sorry to be such a pain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 09:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578259#M19163</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-19T09:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578260#M19164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't worry, that what the forum is all about... to help one another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the code below. The majority is placed inside a function "MergePolygonsOnDate". The main function (lines 13 - 23) contains the logic for looping through your featureclasses. It will create a list of all the featureclasses in you workspace. Based on the input name it will create the new output names. On line 23 for each featureclass the "MergePolygonsOnDate" is called. I haven't tested the code, so if you run into problems, just post it and I'll have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14084742280629212" jivemacro_uid="_14084742280629212"&gt;
&lt;P&gt;#-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;# Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MergePolygonsOnDate_v3.py&lt;/P&gt;
&lt;P&gt;# Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Merge polygons on date range&lt;/P&gt;
&lt;P&gt;#&lt;/P&gt;
&lt;P&gt;# Author:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xbakker&lt;/P&gt;
&lt;P&gt;#&lt;/P&gt;
&lt;P&gt;# Created:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19/08/2014&lt;/P&gt;
&lt;P&gt;#-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;import arcpy, os&lt;/P&gt;
&lt;P&gt;from datetime import datetime, timedelta&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def main():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # specify the workspace&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ws = r"C:\Users\PaulBritten\Desktop\tenure\All reserves"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = ws&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_fc = arcpy.ListFeatureClasses()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in lst_fc:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name, ext = os.path.splitext(fc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = "{0}_merged{1}".format(name, ext)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MergePolygonsOnDate(os.path.join(ws, fc), os.path.join(ws, fc_out))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;def MergePolygonsOnDate(fc, fc_out):&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # change settings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_start = "DateFrom" # create date field and fill it with content of StartDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_end = "DateTo" # create date field and fill it with content of EndDate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_name = "Name"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fld_outname = "OutputName" # output name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; len_outname = 75&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create empty output shapefile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ws_path, fc_out_name = os.path.split(fc_out)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateFeatureclass_management(ws_path, fc_out_name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "POLYGON", fc, "SAME_AS_TEMPLATE", "SAME_AS_TEMPLATE", fc)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # add string field&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddField_management(fc_out, fld_outname, "TEXT", "", "", len_outname)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds = ("SHAPE@", fld_start, fld_end, fld_name)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds_out = ("SHAPE@", fld_start, fld_name, fld_outname)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create a unique list of dates from start date&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_dates = list(set([row[0] for row in arcpy.da.SearchCursor(fc, (fld_start))]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_dates.sort()&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert cursor to store features to new featureclass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.InsertCursor(fc_out, (flds_out)) as curs_out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # loop through list of unique dates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for date in lst_dates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create an expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expression = "{0} &amp;lt;= date '{2}' AND {1} &amp;gt;= date '{2}'".format(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_start),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddFieldDelimiters(fc, fld_end), date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create the searchcursor with the expression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc, flds, where_clause=expression) as curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in curs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pol = row[0]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = row[3] # take name of first polygon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # first polygon is just the polygon"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = pol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # next polygons are added with union&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = polygon.union(pol)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i += 1&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # insert the feature into the output featureclass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datefrom = date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_date = lst_dates.index(date)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if i_date + 1 &amp;gt; len(lst_dates) - 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateto = ""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outname = "{0} {1} - {2}".format(name, datefrom.strftime('%Y/%m/%d'), dateto)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dateto = lst_dates[i_date + 1] - timedelta(days=1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outname = "{0} {1} - {2}".format(name, datefrom.strftime('%Y/%m/%d'), dateto.strftime('%Y/%m/%d'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curs_out.insertRow((polygon, row[1], name, outname))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if __name__ == '__main__':&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 18:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578260#M19164</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-08-19T18:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combining polygons by date fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578261#M19165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked brilliantly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 11:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/combining-polygons-by-date-fields/m-p/578261#M19165</guid>
      <dc:creator>deleted-user-_78mlgGtbbzB</dc:creator>
      <dc:date>2014-08-20T11:13:11Z</dc:date>
    </item>
  </channel>
</rss>

