Declared in module gview
class GvShape: def gview.GvShape.__init__(self, _obj=None, type=1) def gview.GvShape.add_node(self, x, y, z=0, ring=0) # Add a node. def gview.GvShape.get_node(self, node=0, ring=0) # Fetch a node (point) as a tuple. def gview.GvShape.get_nodes(self, ring=0) # Get number of nodes. def gview.GvShape.get_properties(self) # Get GvShape properties (attributes) as a dictionary. def gview.GvShape.get_rings(self) def gview.GvShape.get_type(self) # Get shape type. def gview.GvShape.set_node(self, x, y, z=0, node=0, ring=0) # Set a node. def gview.GvShape.set_property(self, name, value) # Set a GvShape property.
Vector feature class for GvShapes/GvShapesLayer
Add a node.
Note that the ring will be created if not already in existance. The index of the newly created node is returned.
Fetch a node (point) as a tuple.
The node is returned as an (x,y,z) tuple. None is returned if the requested node is out of range.
Get number of nodes.
Note that the returned number of nodes will be zero for non-existent rings.
Get GvShape properties (attributes) as a dictionary.
The properties are returned as a Python dictionary. Note that changes to this dictionary are not applied back to the GvShape.
None
Get number of rings.
Get shape type.
The returned integer will match one of gview.GVSHAPE_POINT, gview.GVSHAPE_LINE or gview.GVSHAPE_AREA.
Set a node.
Note that the node and ring will be created if not already in existance.
Set a GvShape property.
|