 | CSHPCreate Method |
Create a new SHP object
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static CSHP Create(
string name,
int type
)
public static CSHP Create(
string name,
int type
)
Public Shared Function Create (
name As String,
type As Integer
) As CSHP
Public Shared Function Create (
name As String,
type As Integer
) As CSHP
public:
static CSHP^ Create(
String^ name,
int type
)
public:
static CSHP^ Create(
String^ name,
int type
)
static member Create :
name : string *
type : int -> CSHP
static member Create :
name : string *
type : int -> CSHP
Parameters
- name
- Type: SystemString
File name - type
- Type: SystemInt32
<define>SHP_GEOM_TYPE</define>
Return Value
Type:
CSHPSHP object
Remarks
The file name is used to create the various files. The
file type and extension are added:
e.g. "filename.shp",
"filename.dbf"
The following geometry types are currently supported:
Type Required geometry function.
<define>SHP_GEOM_TYPE_POINT</define> SetPoint_SHP
<define>SHP_GEOM_TYPE_ARC</define> SetArc_SHP
<define>SHP_GEOM_TYPE_POLYGON</define> SetPolygon_SHP
<define>SHP_GEOM_TYPE_POINTZ</define> SetPointZ_SHP
<define>SHP_GEOM_TYPE_ARCZ</define> SetArcZ_SHP
<define>SHP_GEOM_TYPE_POLYGONZ</define> SetPolygonZ_SHP
See Also