<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2014/10/24 18:49, Andre Joost wrote:<br>
    </div>
    <blockquote cite="mid:544A832F.4070803@nurfuerspam.de" type="cite">+100
      from me if you promise to build a QGIS plugin for the purpose ;-)
      <br>
    </blockquote>
    Well, I'm not building a plugin - but rather a bash script, both to
    keep it simple, and to further my knowledge.<br>
    <br>
    So,<br>
    My script is working insofar as I am getting a VRT that QGIS (v2.5.0
    rev b43d131 and gdal/ogr 1.11.0) loads, <u>but it comes in with
      zero elements.</u><br>
    For guidance I am using <a class="moz-txt-link-freetext" href="http://www.gdal.org/drv_vrt.html">http://www.gdal.org/drv_vrt.html</a><br>
    <br>
    I have tried wrapping each SHP file in it's own <OGRVRTLayer
    name:shpname>, and below is the version having a global
    OGRVRTLayer name.<br>
    <br>
    <blockquote type="cite"><tt><OGRVRTDataSource></tt><tt><br>
      </tt><tt>  <OGRVRTLayer name="River"></tt><tt><br>
      </tt><tt>    <SrcDataSource>ESRI
        Shapefile:2730/2730_RIVER_LINE_2006_06.shp</SrcDataSource></tt><tt><br>
      </tt><tt>    <relativeToVRT>1</relativeToVRT></tt><tt><br>
      </tt><tt>   
        <SrcLayer>2730_RIVER_LINE_2006_06</SrcLayer></tt><tt><br>
      </tt><tt>    <ExtentXMin>30.000000</ExtentXMin></tt><tt><br>
      </tt><tt>    <ExtentYMin>-28.000037</ExtentYMin></tt><tt><br>
      </tt><tt>    <ExtentXMax>31.000000</ExtentXMax></tt><tt><br>
      </tt><tt>    <ExtentYMax>-27.000000</ExtentYMax></tt><tt><br>
      </tt><tt>    <SrcDataSource>ESRI
        Shapefile:2731/2731_RIVER_LINE_2006_04.shp</SrcDataSource></tt><tt><br>
      </tt><tt>    <relativeToVRT>1</relativeToVRT></tt><tt><br>
      </tt><tt>   
        <SrcLayer>2731_RIVER_LINE_2006_04</SrcLayer></tt><tt><br>
      </tt><tt>    <ExtentXMin>31.000000</ExtentXMin></tt><tt><br>
      </tt><tt>    <ExtentYMin>-28.000000</ExtentYMin></tt><tt><br>
      </tt><tt>    <ExtentXMax>32.250000</ExtentXMax></tt><tt><br>
      </tt><tt>    <ExtentYMax>-27.000000</ExtentYMax></tt><tt><br>
      </tt><tt>    <SrcDataSource>ESRI
        Shapefile:2732/2732_RIVER_LINE_2006_04.shp</SrcDataSource></tt><tt><br>
      </tt><tt>    <relativeToVRT>1</relativeToVRT></tt><tt><br>
      </tt><tt>   
        <SrcLayer>2732_RIVER_LINE_2006_04</SrcLayer></tt><tt><br>
      </tt><tt>    <ExtentXMin>32.000000</ExtentXMin></tt><tt><br>
      </tt><tt>    <ExtentYMin>-28.000000</ExtentYMin></tt><tt><br>
      </tt><tt>    <ExtentXMax>32.819133</ExtentXMax></tt><tt><br>
      </tt><tt>    <ExtentYMax>-27.000000</ExtentYMax></tt><tt><br>
      </tt><tt>  </OGRVRTLayer></tt><tt><br>
      </tt><tt></OGRVRTDataSource></tt><br>
    </blockquote>
    <br>
    Can someone please give me some pointers as to what is incorrect or
    missing in my VRT file?<br>
    TIA,<br>
    Zoltan<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 

===========================================
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:    +27-86-6115323     <a class="moz-txt-link-abbreviated" href="http://www.geograph.co.za">www.geograph.co.za</a>
===========================================</pre>
  </body>
</html>