<?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: GeoPackage layer name adds 'main.' prefix in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1083899#M43885</link>
    <description>&lt;P&gt;I don't think so, this is a SQLite feature (Geopackages are based on SQLite).&lt;/P&gt;&lt;P&gt;SQLite supports the ability to "attach" other databases to a single database connection. The first database opened before you attach other databases, is called "main" (there is also "temp" for temporary stuff) by default:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlite.org/lang_attach.html" target="_self"&gt;https://www.sqlite.org/lang_attach.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The database names ("main" or another "&amp;lt;YOUR_ATTACHED_DATABASE_NAME&amp;gt;") are essentially treated as database "schema" names by SQLite.&lt;/P&gt;&lt;P&gt;ArcGIS seems to inherit this structure (and I think for good reasons).&lt;/P&gt;&lt;P&gt;Since SQLite databases are here to stay in ArcGIS, especially now ESRI also introduced the SQLite based "Mobile Geodatabase" data format, I suggest you start adjusting your arcpy scripts to handle this, rather than trying to avoid this.&lt;/P&gt;&lt;P&gt;This will likely be the only viable option in the long run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 12:37:31 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2021-07-29T12:37:31Z</dc:date>
    <item>
      <title>GeoPackage layer name adds 'main.' prefix</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1083852#M43879</link>
      <description>&lt;P&gt;When I add a layer from a GeoPackage (which was created using arcpy), ArcGIS Pro gives the layer a prefix of 'main.' which doesn't look great but can also mess with my arcpy tools due to the invalid '.' character.&lt;/P&gt;&lt;P&gt;Is there a way of avoiding this prefix being added to the layer name?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 07:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1083852#M43879</guid>
      <dc:creator>ToyotaT18</dc:creator>
      <dc:date>2021-07-29T07:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: GeoPackage layer name adds 'main.' prefix</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1083899#M43885</link>
      <description>&lt;P&gt;I don't think so, this is a SQLite feature (Geopackages are based on SQLite).&lt;/P&gt;&lt;P&gt;SQLite supports the ability to "attach" other databases to a single database connection. The first database opened before you attach other databases, is called "main" (there is also "temp" for temporary stuff) by default:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlite.org/lang_attach.html" target="_self"&gt;https://www.sqlite.org/lang_attach.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The database names ("main" or another "&amp;lt;YOUR_ATTACHED_DATABASE_NAME&amp;gt;") are essentially treated as database "schema" names by SQLite.&lt;/P&gt;&lt;P&gt;ArcGIS seems to inherit this structure (and I think for good reasons).&lt;/P&gt;&lt;P&gt;Since SQLite databases are here to stay in ArcGIS, especially now ESRI also introduced the SQLite based "Mobile Geodatabase" data format, I suggest you start adjusting your arcpy scripts to handle this, rather than trying to avoid this.&lt;/P&gt;&lt;P&gt;This will likely be the only viable option in the long run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 12:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1083899#M43885</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2021-07-29T12:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: GeoPackage layer name adds 'main.' prefix</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1084315#M43923</link>
      <description>&lt;P&gt;Thanks Marco, yeah I'll look into accommodating this, either through the use of arcpy.ValidateTableName, or by renaming the layer when adding to the map.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 01:16:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/geopackage-layer-name-adds-main-prefix/m-p/1084315#M43923</guid>
      <dc:creator>ToyotaT18</dc:creator>
      <dc:date>2021-07-30T01:16:16Z</dc:date>
    </item>
  </channel>
</rss>

