<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi All, <br>
<br>
A few vital stats before getting to the problem. <br>
<br>
OS: Windows Vista <br>
GDAL Version: GDAL 1.5.0<br>
<br>
The problem I am currently encountering is this. I have a VMAP
datasource, and when I try to open it via FWTools and the following
command. <br>
<br>
ogrinfo -ro gltp:/vrf/C:/Path_To_dataource. OGR opens fine the
datasource as expected an reports layers / families in the file WHICH
is Great. <br>
<br>
The problem is. In our application when I attempt to open the VMAP file
in code, via the following. <br>
<br>
OGRDataSource* pOGRDataSource =
OGRSFDriverRegistrar::Open(strDataSourceName.c_str());<br>
<br>
Where strDataSourceName = gltp:/vrf/C:/Path_To_dataource<br>
<br>
The pointer to the data source is ALWAYS null! I've checked and
rechecked that the paths' are the same. <br>
<br>
What I want to do is. Open the datasource in code, take the pointer to
the data source, get all of the layers that are presented via ogrinfo.
and give them back to the user as to which layer to open in the VMAP
datasource. <br>
<br>
Any light someone could shed no this would be greatly appreciated.<br>
<br>
Cheers<br>
Chris Howell<br>
Software Engineer<br>
the PYXIS innovation -<i>Common Ground for Digital Earth<br>
</i>Kingston, Ontario <br>
w: <a class="moz-txt-link-abbreviated" href="http://www.pyxisinnovation.com">www.pyxisinnovation.com</a><br>
p:613-389-6619<br>
</body>
</html>