DK11 for Java | tatukgis.jdk.TGIS_LayerVector.CreateShape | Overloads | Constructors | Fields | Methods | Properties | Events
Creates a new shape and makes it editable
// Java public TGIS_Shape CreateShape( TGIS_ShapeType _type, TGIS_DimensionType _dim );
// Oxygene public function CreateShape( _type : TGIS_ShapeType; _dim : TGIS_DimensionType ) : TGIS_Shape;
Name | Type | Description |
---|---|---|
_type | TGIS_ShapeType | type of shape to be created; it must be a type supported by the layer; if TGIS_ShapeType.Unknown, then the default shape type will be created |
_dim | TGIS_DimensionType | dimension; it must be a type supported by the layer |
Type | Description |
---|---|
TGIS_Shape | Newly created shape or nil |
Use this method to create a new shape. Depending on _type param, a different shape will be created. If the shape type is not supported by the layer, nil is returned. Otherwise an editable shape is returned.
To create a shape, simply create a new layer, or choose an existing layer and use CreateShape method with a proper shape type as a param.