<?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 Easy way to remove collars from GeoTIFF of USGS Topo? in Imagery and Remote Sensing Questions</title>
    <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226501#M163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have downloaded a lot of GeoTiffs of historical topo maps from the USGS (&lt;SPAN style="color: #006621; background-color: #ffffff; font-size: 14px;"&gt;&lt;A href="https://ngmdb.usgs.gov/topoview)"&gt;https://ngmdb.usgs.gov/topoview)&lt;/A&gt;&amp;nbsp;a&lt;/SPAN&gt;t the 1:24000 scale. I am wanting to Mosaic these together to eventually clip to watershed boundaries, however the white collars on the outside are proving to be a headache. I have not been able to find a solid answer on these forums or anywhere else on the internet of how exactly to remove the collars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an answer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Oct 2017 21:18:55 GMT</pubDate>
    <dc:creator>SeanWineland</dc:creator>
    <dc:date>2017-10-28T21:18:55Z</dc:date>
    <item>
      <title>Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226501#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have downloaded a lot of GeoTiffs of historical topo maps from the USGS (&lt;SPAN style="color: #006621; background-color: #ffffff; font-size: 14px;"&gt;&lt;A href="https://ngmdb.usgs.gov/topoview)"&gt;https://ngmdb.usgs.gov/topoview)&lt;/A&gt;&amp;nbsp;a&lt;/SPAN&gt;t the 1:24000 scale. I am wanting to Mosaic these together to eventually clip to watershed boundaries, however the white collars on the outside are proving to be a headache. I have not been able to find a solid answer on these forums or anywhere else on the internet of how exactly to remove the collars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an answer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 21:18:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226501#M163</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-10-28T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226502#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;page not found error&lt;/P&gt;&lt;P&gt;I don't imagine that it is as simple as clipping the collar.&amp;nbsp; That would only be useful if the tiles matched at the edge when clipped.&amp;nbsp; I suspect that there is some rotation and perhaps some overlap?&lt;/P&gt;&lt;P&gt;Perhaps you can provide some details as to whether there is overlap in the adjoining sheets and whether you can convert the 'collar' to nodata for use in a Con statement (details later)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 22:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226502#M164</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-28T22:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226503#M165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "n" and "g" the the beginning of the URL are switched, it should be this:&amp;nbsp;&lt;A class="link-bare" href="https://ngmdb.usgs.gov/topoview/" title="https://ngmdb.usgs.gov/topoview/"&gt;https://ngmdb.usgs.gov/topoview/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just download 2 adjacent tiles and see what you mean there is overlap since the maps include all the legend and metadata too:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381787_pastedImage_2.png" style="width: 620px; height: 240px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you could script a solution with Python. In the xml file of the data you will see information on the boundng box of the actual data:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/381797_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Which corresponds to the map (looking at a corner):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/381798_pastedImage_4.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could for each TIFF read the bounding box from the xml data and apply an &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/extract-by-rectangle.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/extract-by-rectangle.htm"&gt;Extract by Rectangle—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; to get the part you are interested in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 23:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226503#M165</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-28T23:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226504#M166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In additional, you would have to transform the decimal degrees from the bounding box&amp;nbsp; to&amp;nbsp;North_American_1927_Polyconic, since the tiles&amp;nbsp;have projected coordinates. See the worldfile (tfw):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381799_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the coordinate files (.prj)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Oct 2017 23:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226504#M166</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-28T23:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226505#M167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply! I have never used python before, I have only ever done simple geoprocessing in ArcMap. Where do I find the .xml&amp;nbsp;and .prj files and how would I do the transformation you are talking about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 00:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226505#M167</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-10-29T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226506#M168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so I figured out how to open the files and actually successfully executed the extract by rectangle in Python. However, the output is just blank. So im&amp;nbsp;thinking the bounding box coordinates are the extent of the whole image including the white collar? Not entirely sure. How would you successfully extract just the image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 01:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226506#M168</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-10-29T01:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226507#M169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to extract the rectangle correctly you would have to specify the rectangle using the coordinates of the TIFF (the projected coordinates and not the&amp;nbsp;geographic coordinates). To do this right you would have to project the decimal degrees found in the xml to the coordinate system "&lt;SPAN style="background-color: #ffffff;"&gt;North_American_1927_Polyconic&lt;/SPAN&gt;" (at least that is the coordinate system from the example tiles I downloaded). The challenge here might be the fact that this projected coordinate system is not a standard coordinate system recognized by ArcGIS as shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381802_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Now it seems to be aligning with the basemap if I use the first transformation offered to me:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/381812_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;... and some changes through the years in the flow of the river become clear:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/381813_pastedImage_3.png" style="width: 620px; height: 209px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have some time, I will see what I can come up with to process the data. This may take some time though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 15:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226507#M169</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-29T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226508#M170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you aren't picky about dates on the historical topos, this same information is available in the basemaps Esri provides, no collar issues. I would also look around local (state) websites, searching under the keyword "drg" for data stores of collar-clipped DRGs. It is extremely likely this has been done and the data is available for your area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 17:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226508#M170</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-29T17:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226509#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Clip_management tool may be a better choice. Especially since the edge of the quad is not a rectangle - it's a polygon - which you would to generate and supply to the tool to clip to the edge of the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 17:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226509#M171</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-29T17:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226510#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/242251" target="_blank"&gt;Sean Wineland&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried something out on a single TIFF, but I am a bit disappointed by the result, since a strip of white remains on the left side, probably since the coordinates may not have been transformed correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381814_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find below the code I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; tiff_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\TopoView\MA_Boston North_350031_1956_24000_geo.tif'&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; tiff_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\TopoView\tiff\MA350031.tif'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\GeoNet\TopoView\test.gdb\polygon_rectangle'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr_xml &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; trans &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NAD_1927_To_WGS_1984_3"&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; xml_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tiff_in &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".xml"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; prj_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tiff_in &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".prj"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sr_tif &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;prj_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; getRectanglePolygon&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xml_file&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_xml&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_tif&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; trans&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;polygon&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; rectangle_extent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{0} {1} {2} {3}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; polygon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMax&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Clip_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_raster&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;tiff_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; rectangle&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;rectangle_extent&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&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;&amp;nbsp;&amp;nbsp; out_raster&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;tiff_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; in_template_dataset&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;fc_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&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;&amp;nbsp;&amp;nbsp; nodata_value&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"256"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; clipping_geometry&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NONE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&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;&amp;nbsp;&amp;nbsp; maintain_clipping_extent&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"NO_MAINTAIN_EXTENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;getRectanglePolygon&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xml_file&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; trans&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dct_bounding &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; getBoundingCoords&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xml_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; createPolygonFromCoords&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dct_bounding&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; trans&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; polygon

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;getBoundingCoords&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xml_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_tags &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"westbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"eastbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"northbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"southbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; dct &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; open&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xml_file&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'r'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; line &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;replace&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; tag &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lst_tags&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&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; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; tag &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&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; val &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; getValue&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;line&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&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; dct&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;tag&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; val
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; dct

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;createPolygonFromCoords&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dct&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_in&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; trans&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dct&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"westbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xmax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dct&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"eastbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ymin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dct&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"southbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ymax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; dct&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"northbc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_pnt_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xmin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ymin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xmin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ymax&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&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&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xmax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ymax&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xmax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ymin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&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&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xmin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ymin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_pntg_in &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PointGeometry&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_in&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pnt &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lst_pnt_in&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_pntg_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pntg&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;projectAs&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sr_out&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; trans&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pntg &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lst_pntg_in&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst_pnt_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pntg&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;firstPoint &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; pntg &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; lst_pntg_out&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polygon&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lst_pnt_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sr_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;getValue&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;line&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; start_tag &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;{0}&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; end_tag &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;/{0}&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pos1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;find&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;start_tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pos2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;find&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;end_tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; line&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;pos1 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;start_tag&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;pos2&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; main&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could be place in a loop to run through the TIFF files you have, but first the possible shift in coordinates should be examined and corrected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226510#M172</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T11:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226511#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curtis,&lt;/P&gt;&lt;P&gt;Thank you so much for this information, I found DRG (.sid) files for the whole state I am working with. Any idea of how to mosaic these together? I will post another thread in this forum asking the same question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all so much for your help! &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt;‌ as well even though I might not be using the Python Script you came up with I appreciate all your help as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226511#M173</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-10-30T02:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226512#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest not mosaicking them together (Mosaic To New Raster could do this in theory) but instead add them to a referenced Mosaic dataset so you can keep them in their zippy tiny compressed .sid format and yet display them seamlessly. Much more efficient way to deal with a large collection of rasters like that. Once they are loaded to a Mosaic Dataset you can clip out what you want (if you must) with the Clip_management tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226512#M174</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-30T02:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226513#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't mosaic sid files together in ArcMap... if memory serves you need FME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226513#M175</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-30T02:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226514#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow that would be a pain, so I guess you'd have to Copy Raster them to another format and then mosaic them. Another argument to leave them as they are in .sid and use a mosaic dataset to display them together on the fly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226514#M176</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-30T02:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226515#M177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;have you looked at the historical USGS topo maps available as free services through ArcGIS Online?&amp;nbsp; (&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;ArcGIS Online subscription required)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=40109482569c4bcc873dfa7fec7c167e"&gt;http://www.arcgis.com/home/item.html?id=40109482569c4bcc873dfa7fec7c167e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are tens of thousands of maps mosaicked and ready to use, at different scales and from different dates...&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="381860" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381860_pastedImage_3.png" style="width: 620px; height: 478px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.arcgis.com/home/item.html?id=40109482569c4bcc873dfa7fec7c167e" title="http://www.arcgis.com/home/item.html?id=40109482569c4bcc873dfa7fec7c167e"&gt;http://www.arcgis.com/home/item.html?id=40109482569c4bcc873dfa7fec7c167e&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.arcgis.com%2Fhome%2Fitem.html%3Fid%3Dbe337c042cd4476e9ba29d4c0e26b5fb" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=be337c042cd4476e9ba29d4c0e26b5fb&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many more&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="381861" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/381861_pastedImage_6.png" style="width: 620px; height: 297px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="381862" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/381862_pastedImage_7.png" style="width: 620px; height: 264px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to create your own mosaic, I'd use a Mosaic Dataset, and define the seamline for each map using the extents of the map area (inside the "collar"), then mosaic method = seamlines will hide all the collars.&amp;nbsp; This will be a &lt;STRONG&gt;dynamic&lt;/STRONG&gt; mosaic, allowing you to expose the collar of any selected map if desired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to output a new file, my first question is "Are you sure?", but you can export or cache the dynamic mosaic to persist a static image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://esriurl.com/ImageManagement"&gt;http://esriurl.com/ImageManagement&lt;/A&gt;&amp;nbsp;--&amp;gt; look for the Scanned Maps workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 06:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226515#M177</guid>
      <dc:creator>CodyBenkelman</dc:creator>
      <dc:date>2017-10-30T06:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226516#M178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cody, I tried the link to the historical maps database but it did not work, i tried to sign in and it told me that I was not a member of this organization. Is it possible to run raster analysis on these basemaps? (supervised classification?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226516#M178</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-10-31T19:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226517#M179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies.&amp;nbsp; When I inserted those links, I edited the visible text but didn't realize the hyperlinks were still going to an internal AGOL organization.&amp;nbsp; Please try them again - they should be accessible to anyone with an ArcGIS Online account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, maps are not suitable input to classification.&amp;nbsp; Image classification is intended for imagery, not the thematic representation you'd find in a map.&amp;nbsp; I've never heard of anyone attempting it, but I'm confident you won't get results that make any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separate from the issue of mosaicking maps and removing the collars, or accessing image services, perhaps we can help you better if you explain your objectives, and ideas on how you're planning to approach the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cody B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226517#M179</guid>
      <dc:creator>CodyBenkelman</dc:creator>
      <dc:date>2017-10-31T19:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226518#M180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, I do not have an arcgis online subscription anyways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My objectives are to somehow calculate the area of historical strip mining within individual watershed boundaries (I have shapefiles of watershed boundaries, and historical topo map files (DRG's). But this is proving to be quite difficult in every aspect. The DRG files I have downloaded are (.sid) files so I had to transform them into .tiff files to work with them. I'm currently trying to mosaic them together but this process has been running for 4 days now and I'm just really not sure if what I'm doing will work out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My professor thinks I can clip the mosiac to each watershed boundary and then run a supervised classification on the clipped image to extract areas of strip mining and non-strip mining, then perform a raster to vector on that image to calculate the area of strip mining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice on how to achieve this goal would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226518#M180</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-11-03T13:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226519#M181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like overkill, unless you are doing dozens of years.&amp;nbsp; you have ruled out the obvious solution of digitizing the areas manually?&amp;nbsp; Human-ware would easily skip the collars and remove the 'errers' associated with doing a classification.&amp;nbsp; The eye is better than the machine in many cases and it least it would get you going forward and you can fill in the fuzzy process gaps later &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 13:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226519#M181</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-03T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove collars from GeoTIFF of USGS Topo?</title>
      <link>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226520#M182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not ruled it out, was just hoping to automate the process given that I have 67 individual watersheds I need to do this for. I guess I can go with digitizing to get started. If I union the digitized polygons with the watershed boundary would this allow me to calculate the percentage of area within the watershed covered by mining?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/imagery-and-remote-sensing-questions/easy-way-to-remove-collars-from-geotiff-of-usgs/m-p/226520#M182</guid>
      <dc:creator>SeanWineland</dc:creator>
      <dc:date>2017-11-03T15:33:47Z</dc:date>
    </item>
  </channel>
</rss>

