<?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 Map Package Extent in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/map-package-extent/m-p/1233805#M4161</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have many maps with multiple data types, trying to generate map packages for delivery, and I need to clip the data to the map's extent. Arcpy seems to be able to achieve this functionality. However&amp;nbsp; I have tried setting the extent to DISPLAY/MINOF/MAXOF, but the results are not what I expect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please show me how to change the statement,&amp;nbsp; and set the range of the package to the XY range of the map or use a layer to clip?&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "C:/arcgis/ArcTutor/Editing"&lt;BR /&gt;arcpy.PackageMap_management('Exercise1.mxd', 'EditingExercise1.mpk', "PRESERVE", "CONVERT_ARCSDE", "DISPLAY", "ALL")&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/package-map.htm" target="_self"&gt;Package Map&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Extent&lt;BR /&gt;(Optional)&lt;BR /&gt;Specify the extent by manually entering the coordinates in the extent parameter using the format &lt;STRONG&gt;X-Min Y-Min X-Max Y-Max&lt;/STRONG&gt;. To use the extent of a specific layer, specify the layer name.&lt;/P&gt;&lt;P&gt;MAXOF—Union of inputs&lt;BR /&gt;MINOF—Intersection of inputs&lt;BR /&gt;DISPLAY—Same extent as current display&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;Layer&amp;gt; —Same extent as specified layer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In addition, I also found that the custom extent needs to be set when the clip layer is in a map. I wonder if there is any connection between the two.&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/clip-layers-in-a-map.htm" target="_self"&gt;Clip layers in a map&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 16:16:08 GMT</pubDate>
    <dc:creator>cuovecho</dc:creator>
    <dc:date>2022-11-21T16:16:08Z</dc:date>
    <item>
      <title>Map Package Extent</title>
      <link>https://community.esri.com/t5/arcmap-questions/map-package-extent/m-p/1233805#M4161</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have many maps with multiple data types, trying to generate map packages for delivery, and I need to clip the data to the map's extent. Arcpy seems to be able to achieve this functionality. However&amp;nbsp; I have tried setting the extent to DISPLAY/MINOF/MAXOF, but the results are not what I expect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please show me how to change the statement,&amp;nbsp; and set the range of the package to the XY range of the map or use a layer to clip?&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "C:/arcgis/ArcTutor/Editing"&lt;BR /&gt;arcpy.PackageMap_management('Exercise1.mxd', 'EditingExercise1.mpk', "PRESERVE", "CONVERT_ARCSDE", "DISPLAY", "ALL")&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/package-map.htm" target="_self"&gt;Package Map&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Extent&lt;BR /&gt;(Optional)&lt;BR /&gt;Specify the extent by manually entering the coordinates in the extent parameter using the format &lt;STRONG&gt;X-Min Y-Min X-Max Y-Max&lt;/STRONG&gt;. To use the extent of a specific layer, specify the layer name.&lt;/P&gt;&lt;P&gt;MAXOF—Union of inputs&lt;BR /&gt;MINOF—Intersection of inputs&lt;BR /&gt;DISPLAY—Same extent as current display&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;Layer&amp;gt; —Same extent as specified layer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In addition, I also found that the custom extent needs to be set when the clip layer is in a map. I wonder if there is any connection between the two.&lt;BR /&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/properties/clip-layers-in-a-map.htm" target="_self"&gt;Clip layers in a map&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 16:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/map-package-extent/m-p/1233805#M4161</guid>
      <dc:creator>cuovecho</dc:creator>
      <dc:date>2022-11-21T16:16:08Z</dc:date>
    </item>
  </channel>
</rss>

