|
POST
|
I just unzipped the .zip file on a clean machine. Are you using the 32bit or 64bit version of Windows 7? Are you using a local drive or a network drive?
... View more
08-10-2011
11:00 AM
|
0
|
0
|
1469
|
|
POST
|
Using a fresh install of the VS2008 version of the API I don't see any slowdown in any of the samples. I'm using a Windows 7.
... View more
08-10-2011
10:10 AM
|
0
|
0
|
1469
|
|
POST
|
How big is your file geodatabase? Have you seen the same behavior with the samples?
... View more
08-10-2011
09:44 AM
|
0
|
0
|
1469
|
|
POST
|
We haven't seen this issue. What environment (VS2008, VS2010, 32bit/64bit, Linux) are you using. How long of a lag are you seeing?
... View more
08-10-2011
09:32 AM
|
0
|
0
|
1469
|
|
POST
|
You need to add LoadOnlyMode and SetWriteLock/FreeWriteLock to your code. LoadOnlyMode shuts down index generation and SetWriteLock set a write lock. In ArcObjects a write lock is set when a insert cursor is opened and released when the cursor goes out of scope. Since we do not have a cursor we have to create a write lock on each insert. This slows things down. SetWriteLock opens a write lock until FreeWriteLock is called. When SetWriteLock is called the insert does not create a write lock as it knows that it has already been created. This improves insert (update and modify) performance greatly. I've modified your code. fgdbError hr;
wstring errorText;
// Open the geodatabase.
Geodatabase geodatabase;
if ((hr = OpenGeodatabase(L"F:/testData/Editing.gdb", geodatabase)) != S_OK)
{
wcout << "An error occurred while opening the geodatabase." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return ;
}
// Open the Cities table.
Table table;
if ((hr = geodatabase.OpenTable(L"\\Cities", table)) != S_OK)
{
wcout << "An error occurred while opening the table." << endl;
ErrorInfo::GetErrorDescription(hr, errorText);
wcout << errorText << "(" << hr << ")." << endl;
return ;
}
// Begin load only mode. This shuts off the update of all indexes.
table.LoadOnlyMode(true);
table.SetWriteLock();
Row cabazonRow;
PointShapeBuffer cabazonGeom;
Point* point;
for (int i = 0; i < 50000; i++)
{
// Create a new feature for Cabazon.
table.CreateRowObject(cabazonRow);
// Set the row's attributes.
cabazonRow.SetString(L"AREANAME", L"Cabazon");
cabazonRow.SetString(L"CLASS", L"town");
cabazonRow.SetInteger(L"POP2000", 2939); // 2007
// Create and assign a point geometry.
hr = cabazonGeom.Setup(shapePoint);
hr = cabazonGeom.GetPoint(point);
point->x = -116.78443;
point->y = 33.919902;
cabazonRow.SetGeometry(cabazonGeom);
hr = table.Insert(cabazonRow);
//// Store the row.
//if ((hr = table.Insert(cabazonRow)) != S_OK)
//{
// wcout << "An error occurred while inserting a row." << endl;
// ErrorInfo::GetErrorDescription(hr, errorText);
// wcout << errorText << "(" << hr << ")." << endl;
// return ;
//}
//else
//{
// wcout << "Inserted two strings, one integer and a point." << endl;
//}
}
// End load only mode. This updates of all indexes.
table.LoadOnlyMode(false);
table.FreeWriteLock();
... View more
08-10-2011
09:09 AM
|
0
|
0
|
952
|
|
POST
|
The primary purpose of 1.1 was the .NET wrapper. We were able to fix a bug with domain assignment but the spatial index issue was not fixed in 1.1.
... View more
08-09-2011
08:07 AM
|
0
|
0
|
2078
|
|
POST
|
The File Geodatabase API 1.1 is now available. It includes a .NET wrapper for VS2010 and some bug fixes. Check out the geodatabase blog for details: http://blogs.esri.com/Dev/blogs/geodatabase/default.aspx
... View more
08-08-2011
03:01 PM
|
0
|
6
|
4303
|
|
POST
|
We will be releasing a .NET Wrapper sometime in the next week or two. Watch the geodatabase blog for the announcement. http://blogs.esri.com/Dev/blogs/geodatabase/default.aspx
... View more
08-04-2011
01:54 PM
|
0
|
0
|
1660
|
|
POST
|
One possibility is that you are linking with /MT or /MTd instead of /MD or /MDd. This can result in the error that you are seeing.
... View more
08-04-2011
01:50 PM
|
0
|
0
|
589
|
|
POST
|
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.
... View more
07-15-2011
09:25 AM
|
0
|
0
|
2740
|
|
POST
|
The function list matches the C++ API. As Vince notes the API does not read or write shapefiles. You might want to look at http://arcscripts.esri.com/details.asp?dbid=17013 which provides a OCX and DLL for reading and writing shapefiles.
... View more
07-08-2011
01:34 PM
|
0
|
0
|
2255
|
|
POST
|
We hope to have it out no later than the end of July.
... View more
07-07-2011
10:53 AM
|
0
|
0
|
2255
|
|
POST
|
Take a look at http://forums.arcgis.com/threads/27985-A-possible-way-to-repair-some-File-Geodatabases Let me know if this works for you. Thank you for the detailed information. I will run through the same steps and see if I can reproduce the problem.
... View more
07-06-2011
12:16 PM
|
0
|
0
|
2238
|
|
POST
|
Try using an OLE DB provider or ODBC. http://advisor.intuit.com/practice_resources/articles/technology/article.aspx?file=rs_QODBC. http://advisor.intuit.com/practice_resources/articles/technology/article.aspx?file=rs_QODBC2
... View more
07-05-2011
01:16 PM
|
0
|
0
|
695
|
|
POST
|
"SYNC_ID" = UPPER('{6e6bca4b-fd5c-4de0-a97e-52ae96a9dfe7}') Will also work. This will be faster as it can use the index. LOWER("SYNC_ID") can't use the index.
... View more
06-21-2011
09:31 AM
|
0
|
0
|
1747
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-16-2013 09:31 AM | |
| 1 | 12-21-2016 08:14 AM | |
| 1 | 07-29-2016 08:34 AM | |
| 1 | 04-15-2015 09:20 AM | |
| 1 | 12-19-2016 04:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-24-2025
12:47 PM
|