<div dir="ltr">Sorry, I misread the request.<div><br></div><div>In this case, if I have now understood correctly, you are opening the source before retrieving the layer.</div><div><br></div><div>That would then be everything up to the first '|'.</div><div><br></div><div>For a file-base source the full-filename with path.</div><div><br></div><div>For a Database-System such as PostGis the Connection-String to connect to the Database (with user/password-information).</div><div><br></div><div>---</div><div><br></div><div>After the connection has been made use GetName or GetLayer as needed from the information supplied after the first '|' to retrieve the layer.</div><div><br></div><div>When the Layer-Name is unique, GetName should be used</div><div>- for drivers such as GML and KML, where the Layer-Name may not be unique, Getlayer should be used</div><div><br></div><div><br></div><div>Mark</div><div><br></div></div>