Personal tools
gvSIG Desktop
gvSIG Desktop

Cached time 11/21/13 23:32:54 Clear cache and reload

 

class Table

Represents gvsig TableDocument It is able to manage its own data set

  • features([expresion]): Return table features set
    • param expresion: (Optional) Filter to apply to the feature set to select determinates features that match with expression
    • type expresion: string
    • return: FeatureSet
  • edit(): Set data store in edition mode
  • append(values): Create a new feature from given values and insert it in the feature set
    • param values: dictionary with name property value or list named params
    • type values: dict
  • updateSchema(schema): Update table data definition with schema.
    • param schema: Modified table schema
    • type schema: Editable Schema
  • update(feature): Update exist feature in the layer featureSet
    • param feature: Feature to modify in data set
    • type feature: Feature
  • getSchema(): Return layer schema definition
  • commit(): Finish layer edition
  • abort(): Cancel layer edition
  • getSelection(): Return layer features selected set

class Layer

Represents gvsig view layer . Also is able to manage its own data set

  • features([expresion]): Return layer features set
    • param expresion: (Optional) Filter to apply to the feature set to select determinates features that match with expression
    • type expresion: string
    • return: FeatureSet
  • edit(): Set data store in edition mode
  • append(values): Create a new feature from given values and insert it in the feature set
    • param values: dictionary with name property value or list named params
    • type values: dict
  • updateSchema(schema): Update table data definition with schema.
    • param schema: Modified table schema
    • type schema: Editable Schema
  • update(editableFeature): Update exist feature in the layer featureSet
    • param editableFeature: editableFeature
    • type editableFeature: Java editableFeature
  • getSchema(): Return layer schema definition
  • commit(): Finish layer edition
  • abort(): Cancel layer edition
  • getSelection(): Return layer features selected set (FeatureSet)
  • getTypeVectorLayer(): Return layer geometry type.

class FeatureSet

Return Layer/Table set of features

  • getCount(): Return set number of ocurrences

class Feature

Represents layer/table feature data

  • geometry(): Return feature default geometry
  • getValues(): Return dictionary with key name property and value of the feature attributes
  • edit(): Return editable feature instance #FIXME

class Schema

Layer/table feature definition

  • append(name, type[, size][, default]): Adds property to feature properties definition.
    • param name: Feature property name
    • type name: String
    • param type: Feature property type
    • type name: String
    • param size: Feature property size
    • type size: int
    • param default: Feature property default value
    • return: new atribute
  • get(name, default=None): Looks for property name named and if not find it return default. Return a feature attribute descriptor that contains information about one of the attributes in a feature, such as its name, data type or precision.
    • param name: Property name
    • type name: string
    • param default: Return value if not find property name
    • type value: Object
    • return: AttributeDescriptor
  • modify(): set definition in edition mode to add new properties
  • getCopy(): Return schema copy

Vectorial data util functions

  • createSchema([schema]): Return layer definition. If schema is not None the definition is used to create new schema
    • param schema: (Optional)
    • type: schema: Schema
  • createShape(definition, filename, geometryType[, CRS]): Create a new shape layer. If CRS is not defined will use "wsg84"
    • param definition: layer data definition
    • type definition: Schema
    • param filename: absolute path for shape files.
    • type filename: string
    • param geometryType: geometry type for shape
    • type geometryType: string
    • param CRS: Projection name
    • type CRS: string
    • return: new shape layer
    • rtype: Layer
  • createDBF(definition, DbfFile[, CRS]): Create a new dbf file that could be added to the gvSIG project as a TableDocument
    • param definition: layer data definition
    • type definition: Schema
    • param DbfFile: absolute path for shape files.
    • type DbfFile: string
    • param geometryType: geometry type for shape
    • type geometryType: string
    • return: new dbf
    • rtype: Table

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: