<?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: Output extent blowout from warp from file in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198867#M1208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion Dan.&amp;nbsp; I've tried adding the cell size.&amp;nbsp; There is still some issue.&amp;nbsp; I will recheck the other parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2016 02:36:20 GMT</pubDate>
    <dc:creator>JM5</dc:creator>
    <dc:date>2016-11-15T02:36:20Z</dc:date>
    <item>
      <title>Output extent blowout from warp from file</title>
      <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198863#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to register a set of images (epsg4326) to a projected reference image epsg32755.&amp;nbsp; I have already tried Reproject in ArcMap 10.4, but the features do not line up well, so I think a Warp will be needed.&amp;nbsp; As there is a set of files, I wanted to use python to process them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 21 gcp pairs for the files, saved to a text file from the Georeferencing tool.&amp;nbsp; Example of the python script given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The warp does seem to work OK in aligning the features, but my columns and rows blow out from the original 680, 765 to a massive 19615, 30096, i.e. the result image contains a lot of no data pixels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried changing the transformation, setting extent, but can not figure out how to fix the problem.&lt;/P&gt;&lt;P&gt;Any suggestions?&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;#--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def warp_file(inFile,outFile,GCPfile):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\nStarting process"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&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; # layer extent taken from T3 p030 image&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.env.extent = arcpy.Extent(145.5059494, -17.0246642, 145.6570454, -17.1946472)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.extent = arcpy.Extent(341121.25, 8117106.25, 357061.25, 8098416.25)&lt;/P&gt;&lt;P&gt;&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; arcpy.WarpFromFile_management(inFile,outFile,GCPfile,"POLYORDER2","NEAREST")&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; arcpy.Warp_management(inFile,outFile,GCPfile,"POLYORDER3","NEAREST")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception as e:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Unknown Error {0}".format(str(e))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198863#M1204</guid>
      <dc:creator>JM5</dc:creator>
      <dc:date>2016-11-14T09:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Output extent blowout from warp from file</title>
      <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198864#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to define the extent and cell size in the Environments. &amp;nbsp;Is suspect that the cell size defaulted to 1. &amp;nbsp;The extent needs to be the new extent that you want&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/warp-from-file.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/warp-from-file.htm"&gt;Warp From File—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is in the fine print&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 10:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198864#M1205</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-11-14T10:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Output extent blowout from warp from file</title>
      <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198865#M1206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You said...&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff;"&gt;"I want to register a set of images (epsg4326)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;That's GCS_WGS84. Firstly, you should always try to geo-reference a map / image into the coordinate system&amp;nbsp;it is actually IN. So, why are you not geo-referencing these directly into Lat/Long.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;And, are you actually sure that the imagery is in fact in this coordinate system?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;You also seem to have the extent well established (to 8 decimals)? So, are these images already geo-referenced?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If so, you just need to Project_management to UTM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;And both sides are WGS84 based so you should not need any transformation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 13:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198865#M1206</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-14T13:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Output extent blowout from warp from file</title>
      <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198866#M1207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the imagery has got a meaningful extent, which it seems to have, but no spatial referencing information, then it probably has a world file, but the spatial reference is not set. So simply define it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 13:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198866#M1207</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2016-11-14T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Output extent blowout from warp from file</title>
      <link>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198867#M1208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion Dan.&amp;nbsp; I've tried adding the cell size.&amp;nbsp; There is still some issue.&amp;nbsp; I will recheck the other parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 02:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/output-extent-blowout-from-warp-from-file/m-p/198867#M1208</guid>
      <dc:creator>JM5</dc:creator>
      <dc:date>2016-11-15T02:36:20Z</dc:date>
    </item>
  </channel>
</rss>

