Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h2. Name

*sfdatasource* --- Manage Simple Features Datasource

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#ffffaa}
*sfdatasource open <_filename_>&nbsp;**\[**readonly \|&nbsp;readwrite\]*

*sfdatasource getlayercount*

*sfdatasource getlayernames*


{panel}

h2. Description

Programmatically manage a project object of type *Simple Features Datasource.* The datasource must be the active project object, set using *project activate* or *project setpath*


h2. Arguments

*open*

{indent} Open given file in readonly or readwrite mode. The file must be a file supported by OGR.
{indent}
*getlayercount*
{indent}
Return number of layers.
{indent}


{color:#333333}{*}getlayernames{*}{color}
{indent}Return the layer names as a Tcl list.{indent}
{color:#333333}&nbsp;{color}



h2. See also


{pagebreak}