SE_fileinfo_get_type

Returns the external file’s type

Usage syntax

LONG SE_fileinfo_get_type (const SE_FILEINFO fileinfo, LONG *file_type, CHAR *feat_class);

Parameters
fileinfo The SE_FILEINFO handle
file_type Whether the external file is a coverage, shapefile, or export file
feat_class The feature type; optional.
Description

SE_fileinfo_get_type returns the type of an external file. An external file can be a coverage, shapefile, or ArcSDE export format.

The file_type parameter values are:

SE_FILEINFO_OBJECT_TYPE_EXPORT_FMT
SE_FILEINFO_OBJECT_TYPE_SHAPEFILE
SE_FILEINFO_OBJECT_TYPE_COVERAGE

The feat_class parameter values depend on the external file type.

If the file is an export file, the values are: 

n   Nil shape

p   Point shape
s   Line shape (spaghetti)
l   Simple line shape
a   Area shape
A   Annotation
c   CAD
3   3-D
+   multipart
M   Measures

If the file is a shapefile, the values are:

   Arc
arcZ
arcM
point
pointZ
pointM
polygon
polygonZ
polygonM
multipoint
multipointZ
multipointM

If the file is a coverage, the values are:

   point
arc
polygon
node
annotation
route
region

The feature class type might have a subclass if needed, for example, route.bus71.

Returns

SE_SUCCESS
SE_FAILURE

SE_INVALID_FILEINFO_OBJECT

SE_INVALID_FILEINFO_OBJECT_TYPE

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_NET_FAILURE

SE_SDE_NOT_STARTED