[gdal-dev] ArcGIS 10 and GIO driver
Jason Roberts
jason.roberts at duke.edu
Mon Aug 30 09:26:55 EDT 2010
Matt,
Donno if you are still working on this problem (I've been on vacation) but
here is one possibility.
If the GIO driver uses ArcObjects, it might need to call this new
"LoadVersion" function before making any other ArcObjects calls. I had a
C++/ATL ArcObjects program that worked fine with 9.x but did not work with
10 until I did this:
// Before making any ArcObjects calls, use IArcGISVersion::LoadVersion
to
// load the ArcGIS runtime from the ArcGIS Desktop 10.0 product
// installation. This is a new requirement introduced in ArcGIS 10.0.
ArcGISVersionLib::IArcGISVersionPtr
ipVer(__uuidof(ArcGISVersionLib::VersionManager));
VARIANT_BOOL succeeded;
HRESULT hr = ipVer->LoadVersion(ArcGISVersionLib::esriArcGISDesktop,
L"10.0", &succeeded);
if (FAILED(hr))
{
fprintf(stderr, "ERROR:
IArcGISVersion::LoadVersion(ArcGISVersionLib::esriArcGISDesktop, L\"10.0\",
...) failed with error 0x%08X. Check that ArcGIS Desktop 10.0 is properly
installed.\n", hr);
return hr;
}
You can find more info on this new requirement by googling "ArcGIS 10
LoadVersion" (without quotes).
Good luck,
Jason
-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Gregory, Matthew
Sent: Wednesday, August 18, 2010 2:38 PM
To: 'gdal-dev at lists.osgeo.org'
Subject: [gdal-dev] ArcGIS 10 and GIO driver
Hi all,
I know this is likely not to get a lot of attention, given that the GIO
driver is currently unsupported and I'm guessing the issue is on the ArcGIS
side. But I'll give it a try anyway ...
I build GDAL from SVN trunk and had included the (old) GIO driver for
ArcInfo output grid support. At ArcInfo 9.x, this worked well (albeit
without projection support). However, now that I've installed ArcInfo 10,
I'm getting license errors on simple utilities like gdal_translate, e.g.
d:\matt>gdal_translate -of GIO dem.tif test_dem
Input file size is 100, 100
Warning 1: GIO driver only supports Float32, and Int32 datasets, not
Int16 as requested for test_dem. Treating as Int32.
0Unauthorized license
The DLL aigridio.dll is still at the expected location
(C:\ArcGIS\arcexe10x\bin) which is in my PATH and I haven't had any license
issues otherwise (through Workstation, ArcMap, etc.). Has anybody else run
into this (unlikely) scenario?
Thanks for any help,
matt
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list