SE_fileinfo_set_type |
Sets the external file type
LONG SE_fileinfo_set_type (SE_FILEINFO fileinfo, LONG file_type, CHAR *feat_class);
fileinfo | The SE_FILEINFO handle |
file_type | The external file type |
feat_class | The spatial column name if the target is a layer |
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
At this time only the SE_FILEINFO_OBJECT_TYPE_EXPORT_FMT is supported. The other two external file types, SE_FILEINFO_OBJECT_TYPE_SHAPEFILE and SE_FILEINFO_OBJECT_TYPE_COVERAGE, may be supported in the future.
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.
SE_SUCCESS
SE_FAILURE
SE_INVALID_ALTER_OPERATION
SE_INVALID_FILEINFO_OBJECT
SE_INVALID_FILEINFO_OBJECT_TYPE
SE_INVALID_PARAM_VALUE
SE_INVALID_POINTER
SE_NET_FAILURE
SE_SDE_NOT_STARTED