<?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: Creating feature class with unknown coordinate system - XML definition in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34119#M66</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It isn't particularly wise to leave the coordinate system undefined. Using an impossibly large &lt;BR /&gt;spatial reference does more harm than good, and origin and scale parameters cannot be&lt;BR /&gt;adjusted later with the coordsys.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am aware that it is far from ideal to create a feature class with an unknown spatial reference,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but the FGDB API seems to allow it, and ArcCatalog allows it as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am intending that the spatial reference will be defined later, within ArcCatalog, since at this stage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish to avoid having to develop an entire spatial reference selection/editing mechanism - that is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what ArcGIS does, and I have no wish to duplicate it at this stage!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FGDB API samples XMLSamples dir even includes a sample XML table def FC_Unknown_PolygonMin.xml which is supposed to have the minimal required spatial reference info,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this fails when called with CreateTable (General function failure (-2147467259)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried constructing a feature class in ArcCatalog with undefined spatial reference, then exported the schema as XML, and used that as the basis for my XML used in CreateTable. This is the basis for my create-chris1.xml table def. However, I am still missing something, as ArcCatalog does not fully recognise the new feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 08:01:43 GMT</pubDate>
    <dc:creator>ChrisMorgan1</dc:creator>
    <dc:date>2011-07-14T08:01:43Z</dc:date>
    <item>
      <title>Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34114#M61</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create feature classes with an unknown coordinate system using the FGDB API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature classes appear to create OK, and I can add features, but I then get drawing errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in Arcmap, and errors in ArcCatalog if I try to copy/paste the feature class or export it as XML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me what I am missing from my XML feature class definition? Please see attached XML feature class definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 09:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34114#M61</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-12T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34115#M62</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some additional information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my sample code to create an empty feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;int main()
{
&amp;nbsp; fgdbError hr;
&amp;nbsp; wstring&amp;nbsp;&amp;nbsp; errorText;

&amp;nbsp; // create geodatabase
&amp;nbsp; Geodatabase geodatabase;
&amp;nbsp; if ((hr = CreateGeodatabase(L"c:\\testing.gdb", geodatabase)) != S_OK) {
 wcout &amp;lt;&amp;lt; "Geodatabase create error" &amp;lt;&amp;lt; endl;
 ErrorInfo::GetErrorDescription(hr, errorText);
 wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
 return -1;
&amp;nbsp; }

&amp;nbsp; // load XML table def
&amp;nbsp; string tableDef;
&amp;nbsp; string defLine;
&amp;nbsp; ifstream defFile("C:\\create-chris1.xml");
&amp;nbsp; while (getline(defFile,defLine))
&amp;nbsp;&amp;nbsp; tableDef.append(defLine+"\n");
&amp;nbsp; defFile.close();

&amp;nbsp; // create table from XML def
&amp;nbsp; Table table;
&amp;nbsp; if ((hr = geodatabase.CreateTable(tableDef,L"",table)) != S_OK) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "CreateTable error" &amp;lt;&amp;lt; endl;
 ErrorInfo::GetErrorDescription(hr, errorText);
 wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
 return -1;
&amp;nbsp; }

&amp;nbsp; if ((hr = geodatabase.CloseTable(table)) != S_OK) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "CloseTable error" &amp;lt;&amp;lt; endl;
 ErrorInfo::GetErrorDescription(hr, errorText);
 wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
 return -1;
&amp;nbsp; }

&amp;nbsp; // Close the geodatabase
&amp;nbsp; if ((hr = CloseGeodatabase(geodatabase)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while closing the geodatabase." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorInfo::GetErrorDescription(hr, errorText);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;
&amp;nbsp; }

&amp;nbsp; return 0;
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This creates the FGDB and feature class without any apparent errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, in ArcCatalog (10 SP2), I try to copy/paste the feature class, and receive this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to paste chris1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML being loaded could not be parsed. [physical name: CHRIS1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The item does not have a definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The XML being loaded could not be parsed. [physical name: CHRIS1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would appear to imply to me that my initial XML feature class definition is missing some required field. Help would be very much appreciated! Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34115#M62</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2021-12-10T21:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34116#M63</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The folks most likely to able to answer this are probably swamped with UC attendance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You might get quicker response by contacting Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks to me like you're missing the AliasName and ModelName tags within Field; though&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the XSD doesn't seem to require them, all the examples do include both.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 19:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34116#M63</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-07-13T19:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34117#M64</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had tried adding the AliasName and ModelName to each field, but it appears to make no difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my actual application I am attempting to create the XML dynamically, using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IXMLDomDocument, and I already have have a screen full of node.addChildElement(...) etc, so I'm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just trying to cut the XML down to the bare essentials.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll keep on experimenting. I can create correct feature classes if I already know the spatial reference, but the trouble is, I don't, The API does not seem to have any mechanism for choosing a valid one (a redistributable XML file of valid spatial references would be useful). I was planning to create feature classes with an undefined spatial reference, and then let the user define the spatial reference later using ArcCatalog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm still trying to find the minimum required XML for a feature class with an undefined spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 20:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34117#M64</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-13T20:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34118#M65</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It isn't particularly wise to leave the coordinate system undefined. Using an impossibly large &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spatial reference does more harm than good, and origin and scale parameters cannot be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;adjusted later with the coordsys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are several thousand "standard" coordinate systems, and an infinite number of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;potential spatial references. The Esri Projection Engine is used to define coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;systems; it is based on the EPSG reference standard. Samples of the most common&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;forms ship with every copy of ArcGIS. The projection gurus established a standard set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of parameters for each spatial reference used by ArcGIS, but any of them can (and really&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;should) be overridden to optimize performance for any particular dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree that the XML definition process leaves a lot to be desired, but coming from the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE side of the house, and knowing that the Projection Engine and Coordinate Reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;code represents nearly half of the ArcSDE functions, I can see how this could be a slippery&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;slope that could have delayed the FileGDB API delivery by years.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 01:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34118#M65</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-07-14T01:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34119#M66</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It isn't particularly wise to leave the coordinate system undefined. Using an impossibly large &lt;BR /&gt;spatial reference does more harm than good, and origin and scale parameters cannot be&lt;BR /&gt;adjusted later with the coordsys.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am aware that it is far from ideal to create a feature class with an unknown spatial reference,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but the FGDB API seems to allow it, and ArcCatalog allows it as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am intending that the spatial reference will be defined later, within ArcCatalog, since at this stage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish to avoid having to develop an entire spatial reference selection/editing mechanism - that is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what ArcGIS does, and I have no wish to duplicate it at this stage!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FGDB API samples XMLSamples dir even includes a sample XML table def FC_Unknown_PolygonMin.xml which is supposed to have the minimal required spatial reference info,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this fails when called with CreateTable (General function failure (-2147467259)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried constructing a feature class in ArcCatalog with undefined spatial reference, then exported the schema as XML, and used that as the basis for my XML used in CreateTable. This is the basis for my create-chris1.xml table def. However, I am still missing something, as ArcCatalog does not fully recognise the new feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 08:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34119#M66</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-14T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34120#M67</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, when you set out to use the FileGDB API to create new tables, you are choosing to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;take over ArcGIS' role in feature class creation.&amp;nbsp; Using generic parameters for table creation may &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be possible, but it's unlikely to generate high quality datasets -- if you don't know, at a minimum, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the spatial units being used and the range of possible values (and alter the spatial reference to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correspond to them) then I'd argue that it's not really worth the effort of loading the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the samples execute cleanly on the reference machines, so this should probably be your&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first line of inquiry with Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 18:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34120#M67</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-07-14T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34121#M68</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Unfortunately, when you set out to use the FileGDB API to create new tables, you are choosing to &lt;BR /&gt;take over ArcGIS' role in feature class creation.&amp;nbsp; Using generic parameters for table creation may &lt;BR /&gt;be possible, but it's unlikely to generate high quality datasets -- if you don't know, at a minimum, &lt;BR /&gt;the spatial units being used and the range of possible values (and alter the spatial reference to &lt;BR /&gt;correspond to them) then I'd argue that it's not really worth the effort of loading the data.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem I am having is that the XML definition for an undefined spatial reference in the sample XML seems to be incomplete, and will not create a valid feature class - even an empty one. If I can get a working definition of an undefined spatial reference, then I can adjust the range and tolerance accordingly. But, as I have said, the spatial reference will be set later, before the feature class in ever used, within the ArcGIS environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 08:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34121#M68</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-15T08:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34122#M69</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, let's try another tack. The unknown coordinate system turns out to be too much of a distraction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I now have an XML feature class definition with a defined spatial reference - see attachment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This creates an empty polyline-M feature class 'chris1'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code which successfully adds features to this feature class, but I have not included that here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, ArcCatalog still does not fully recognise this feature class as valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The features can be viewed, but when attempting to copy/paste the feature class in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcCatalog, I now get the error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to paste chris1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to create object class instance COM component&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to create object class instance COM component&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have concluded that my XML definition is still incomplete. What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 10:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34122#M69</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-15T10:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34123#M70</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have duplicated your issue and are debugging it. I will be on vacation next week, so I will not get back to you until the week of July the 25th.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 16:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34123#M70</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-07-15T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34124#M71</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;We have duplicated your issue and are debugging it. I will be on vacation next week, so I will not get back to you until the week of July the 25th.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply - it is always reassuring to at least have verification of the problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a good vacation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 16:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34124#M71</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-16T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34125#M72</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi - Thank you for your patience! I was able to get feature classes based on the referenced xml copy/pasting correctly by making a few minor changes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the Shape_Length field to the fieldset for the feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;Field xsi:type="esri:Field"&amp;gt;
 &amp;lt;Name&amp;gt;Shape_Length&amp;lt;/Name&amp;gt;
 &amp;lt;Type&amp;gt;esriFieldTypeDouble&amp;lt;/Type&amp;gt;
 &amp;lt;IsNullable&amp;gt;true&amp;lt;/IsNullable&amp;gt;
 &amp;lt;Length&amp;gt;8&amp;lt;/Length&amp;gt;
 &amp;lt;Precision&amp;gt;0&amp;lt;/Precision&amp;gt;
 &amp;lt;Scale&amp;gt;0&amp;lt;/Scale&amp;gt;
 &amp;lt;Required&amp;gt;true&amp;lt;/Required&amp;gt;
 &amp;lt;Editable&amp;gt;false&amp;lt;/Editable&amp;gt;
 &amp;lt;AliasName&amp;gt;Shape_Length&amp;lt;/AliasName&amp;gt;
 &amp;lt;ModelName&amp;gt;Shape_Length&amp;lt;/ModelName&amp;gt;
&amp;lt;/Field&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I added information on what the area and length field names are between the &amp;lt;HasSpatialIndex /&amp;gt; and &amp;lt;Extent /&amp;gt; tags. Note that there is no Shape_Area, but the empty tag needs to be there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;HasSpatialIndex&amp;gt;true&amp;lt;/HasSpatialIndex&amp;gt;
&amp;lt;AreaFieldName/&amp;gt;
&amp;lt;LengthFieldName&amp;gt;Shape_Length&amp;lt;/LengthFieldName&amp;gt;
&amp;lt;Extent xsi:nil="true"/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally I changed the CLSID from&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;CLSID&amp;gt;{86E3C61F-7D4E-48DF-8B2E-AF71CD0BCB61}&amp;lt;/CLSID&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;CLSID&amp;gt;{52353152-891A-11D0-BEC6-00805F7C4268}&amp;lt;/CLSID&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this gets you past this hurdle!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34125#M72</guid>
      <dc:creator>TomBreed</dc:creator>
      <dc:date>2021-12-10T21:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34126#M73</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Finally I changed the CLSID from&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;CLSID&amp;gt;{86E3C61F-7D4E-48DF-8B2E-AF71CD0BCB61}&amp;lt;/CLSID&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;CLSID&amp;gt;{52353152-891A-11D0-BEC6-00805F7C4268}&amp;lt;/CLSID&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Thomas, thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I now have a working XML definition - thanks! ArcCatalog copy/paste of an empty feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;created with this XML definition works without errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Shape_Length field does not seem to be required, but the CLSID value is crucial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But what is the deal with the CLSID value - is this a defined 'magic number' that I should always use? Do all feature classes have the same CLSID value in their definition? Is this defined/documented anywhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 07:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34126#M73</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-20T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34127#M74</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad I was able to help. You are correct in a sense that the CLSID is a magic number: COM uses it to identify what it needs to instantiate a COM object. In this specific case, the CLSID identifies what makes up the table: i.e. rows or features or something else. While the File GDB API is not COM based, ArcGIS is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as the File GDB API is concerned, you can safely use the CLSID of Feature as noted earlier in the thread and the CLSID for a row for non-spatial tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Features&amp;nbsp; - {52353152-891A-11D0-BEC6-00805F7C4268}&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Rows - {7A566981-C114-11D2-8A28-006097AFF44E}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 15:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34127#M74</guid>
      <dc:creator>TomBreed</dc:creator>
      <dc:date>2011-07-20T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating feature class with unknown coordinate system - XML definition</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34128#M75</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Features&amp;nbsp; - {52353152-891A-11D0-BEC6-00805F7C4268}&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Rows - {7A566981-C114-11D2-8A28-006097AFF44E}&lt;/PRE&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So any feature class that I create (points, lines or polygons), should use the first CLSID above,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and any standalone table that I create should use the second CLSID?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 15:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/creating-feature-class-with-unknown-coordinate/m-p/34128#M75</guid>
      <dc:creator>ChrisMorgan1</dc:creator>
      <dc:date>2011-07-20T15:36:05Z</dc:date>
    </item>
  </channel>
</rss>

