<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 31, 2013 at 3:23 PM, Carl Godkin <span dir="ltr"><<a href="mailto:cgodkin@gmail.com" target="_blank">cgodkin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>On Wed, Jul 31, 2013 at 2:35 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<div class="im">
<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><br></div></blockquote></div></div>
<div><br></div><div>I wonder if there is a way to determine if a .gdb is using a custom coordinate system so we can make a sensible error message.</div><div><br></div><div>I find that in ArcGIS Explorer, selecting the "Source Data" on the "Properties" dialog lists the Coordinate System by name followed by a number in parentheses.  From the datasets I've tried, if the number in parentheses is zero, then it's apparently custom.  Otherwise it the ESRI coordinate system number.  I don't suppose anyone knows of a way to get at this information from the FileGDB API, do they?  I will investigate further if no one replies.  </div>

<div></div></div></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Just to finish this conversation up...</div><div class="gmail_extra"><br></div><div class="gmail_extra">A little investigation in the FileGDB API dev kit shows that getting the coordinate system from a "Feature Class" object requires loading the table first.  But since the Geodatabase::OpenTable() call itself fails, I of course can't proceed to check the spatial reference which comes (indirectly) from the table.  So I'll just have to be satisfied with the "Invalid function arguments" call.  Maybe ESRI will improve this on their end one day.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I found that others are having this problem and have made the same suggestion on the ArcGIS forum:</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<a href="http://forums.arcgis.com/threads/54210-fail-to-open-table-with-2147024809-(invalid-function-arguments)-return-code">http://forums.arcgis.com/threads/54210-fail-to-open-table-with-2147024809-(invalid-function-arguments)-return-code</a><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,</div><div class="gmail_extra"><br></div><div class="gmail_extra">carl</div><div class="gmail_extra"><br></div></div>