Select to view content in your preferred language

File Geodatabase API / FullExtent and RecordCount ¿?

851
3
01-24-2011 09:48 PM
ahuarte
Deactivated User
I am reading a FeatureLayer table using the C++ API.
Congratulations! I love this library 🙂

How I do to read the FullExtent and the RecordCount of the table?
Should I read whole table and manually calculate it?
But if it is very very big?

This does not work ...
  std:: wstring sqlStatement(L"SELECT COUNT(OBJECTID) AS __NUMRECS FROM Cities");

Could you publish this information in the following version of the API?


thanks in avance!
0 Kudos
3 Replies
LanceShipman
Esri Regular Contributor
How I do to read the FullExtent and the RecordCount of the table?
Should I read whole table and manually calculate it?
But if it is very very big?


Currently there is no way to read the FullExtent or the RecordCount of the table except by manually calculating it.

This does not work ...
  std:: wstring sqlStatement(L"SELECT COUNT(OBJECTID) AS __NUMRECS FROM Cities");

Could you publish this information in the following version of the API?


SELECT COUNT() is not supported by the file geodatabase. When it is we will add support to the API.

I will enter enhancements for both of these issues (to be included in a later release.)
0 Kudos
ahuarte
Deactivated User
Thanks for the reply.

I think 🙂 that 'COUNT()' is not necesary if exist a property 'RecordCount' in your 'Table' class.

Thank you vey much.
0 Kudos
LanceShipman
Esri Regular Contributor
GetRowCount and GetExtent will be in the next Beta code drop.
0 Kudos