<div>That's the problem. is that using ogrinfo or ogr2ogr I can open the datasource on the command line just as was described.</div>
<div> </div>
<div> However trying to open the data source. in an application I am working on using syntax like this.</div>
<div> </div>
<div><font size="2">
<p>Driver* pDriver = OGRSFDriverRegistrar::Open( path to datasource ). </p>
<p>OGRLayer* pLayer = pDriver->GetOgrLayer(0) //Could have gotten one by name but for simplicity. </p>
<p>pLayer is != 0 //So I assume I am getting a valid layer back. </p>
<p>However when I try and get the features for this layer I always get the error 2 end of selection message. The reason my URI was in the format it was in my last post is that. </p>
<p>ogrdogdidatasource.cpp in gdal. Specifies when opening a vmap data source it needs to be in the format </p><font color="#008000" size="2">
<p>gltp://<hostname>/<format>/<path_to_dataset>[:<layer_name>:<Family>] ln 93 </p>
<p><font color="#000000">If open the URI in the format Martin suggested from the command line then it work and I get features out. But trying to do it progmatically as shown above I can't get any features out, which infact is the blocking issue here for me. </font></p>
<p><font color="#000000">Thanks for any kind help. </font></p>
<p><font color="#000000">Court</font></p>
<p><font color="#000000"></font> </p></font>
<p> </p>
<p> </p>
<p> </p>
<p> I get an opened data source and a pointer to the driver, from which I can then as for a layer. However when I try and </p></font><br><br></div>
<div class="gmail_quote">On Fri, Apr 25, 2008 at 5:38 PM, Martin Spott <<a href="mailto:Martin.Spott@mgras.net">Martin.Spott@mgras.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Martin Spott wrote:<br><br>> [...] and don't forget to put quotes around special characters.<br><br>
Sorry, I presume this counts only when running on the command line,<br><font color="#888888"><br>Martin.<br></font>
<div>
<div></div>
<div class="Wj3C7c">--<br> Unix _IS_ user friendly - it's just selective about who its friends are !<br>--------------------------------------------------------------------------<br>_______________________________________________<br>
gdal-dev mailing list<br><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br>