<?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: geodabase file in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodabase-file/m-p/476108#M796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I can't give a working Java code, but in C# it looks like this (below). However, it won't create a file, the result is a folder. It is a totally empty GDB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MethodImpl(MethodImplOptions.AggressiveInlining)]&lt;BR /&gt; private static Geodatabase CreateFileGDB(string GDBPath)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;// Test the argument:&lt;/P&gt;&lt;P&gt;const string NameOfGDBPath = nameof(GDBPath);&lt;BR /&gt; if (string.IsNullOrWhiteSpace(GDBPath))&lt;BR /&gt; throw new ArgumentNullException(NameOfGDBPath, "Geodatabase path cannot be null; empty or whitespace-only string.");&lt;/P&gt;&lt;P&gt;DirectoryInfo directoryInfo = new DirectoryInfo(GDBPath);&lt;/P&gt;&lt;P&gt;if (!directoryInfo.Parent.Exists)&lt;BR /&gt; throw new DirectoryNotFoundException("The parent directory (" + directoryInfo.Parent.FullName + ") was not found!");&lt;/P&gt;&lt;P&gt;if (directoryInfo.Exists)&lt;BR /&gt; directoryInfo.Delete(true);&lt;/P&gt;&lt;P&gt;//Create the GDB:&lt;/P&gt;&lt;P&gt;return Geodatabase.Create(directoryInfo.FullName);&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2019 10:12:38 GMT</pubDate>
    <dc:creator>ÁkosHalmai</dc:creator>
    <dc:date>2019-01-08T10:12:38Z</dc:date>
    <item>
      <title>geodabase file</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodabase-file/m-p/476107#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to generate Geodabase file (not database but file on filesystem).&lt;/P&gt;&lt;P&gt;Can anyone advise how it can be done within a java application?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 02:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodabase-file/m-p/476107#M795</guid>
      <dc:creator>LeoRuss</dc:creator>
      <dc:date>2019-01-04T02:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: geodabase file</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodabase-file/m-p/476108#M796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I can't give a working Java code, but in C# it looks like this (below). However, it won't create a file, the result is a folder. It is a totally empty GDB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[MethodImpl(MethodImplOptions.AggressiveInlining)]&lt;BR /&gt; private static Geodatabase CreateFileGDB(string GDBPath)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;// Test the argument:&lt;/P&gt;&lt;P&gt;const string NameOfGDBPath = nameof(GDBPath);&lt;BR /&gt; if (string.IsNullOrWhiteSpace(GDBPath))&lt;BR /&gt; throw new ArgumentNullException(NameOfGDBPath, "Geodatabase path cannot be null; empty or whitespace-only string.");&lt;/P&gt;&lt;P&gt;DirectoryInfo directoryInfo = new DirectoryInfo(GDBPath);&lt;/P&gt;&lt;P&gt;if (!directoryInfo.Parent.Exists)&lt;BR /&gt; throw new DirectoryNotFoundException("The parent directory (" + directoryInfo.Parent.FullName + ") was not found!");&lt;/P&gt;&lt;P&gt;if (directoryInfo.Exists)&lt;BR /&gt; directoryInfo.Delete(true);&lt;/P&gt;&lt;P&gt;//Create the GDB:&lt;/P&gt;&lt;P&gt;return Geodatabase.Create(directoryInfo.FullName);&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 10:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodabase-file/m-p/476108#M796</guid>
      <dc:creator>ÁkosHalmai</dc:creator>
      <dc:date>2019-01-08T10:12:38Z</dc:date>
    </item>
  </channel>
</rss>

