These procedures allow methods to be invoked on object references (i.e., pointers), without having to convert a reference into an object. A valid object reference is required; procedures check for valid object types.
General syntax:
objectRefProc $objectPtr args
Sample:
set map [mapscript::mapObj -args $mapFile]
set rectPtr [$map cget -extent]
set minx [mapscript::rectObjRef $rectPtr cget -minx]
set miny [mapscript::rectObjRef $rectPtr cget -miny]
Notes: each of the objectRef procedures is just a shortcut to invoke a SWIG generated method name.
mapscript::rectObjRef $rectPtr cget -minxis the same as:
mapscript::rectObj_minx_get $rectPtr
mapscript::getDBFNames DBFInfo_handle
getDBFNames returns a list of field names from a DBF file handle. The
DBFInfo_handle must be a valid DBFInfo handle returned from
the DBFInfo constructor.
mapscript::getDBFTypes DBFInfo_handle
getDBFTypes returns a list of field types and lengths from a DBF file handle.
The DBFInfo_handle must be a valid DBFInfo handle returned from
the DBFInfo constructor. Each list element is itself a list of field type
and field length. Valid field types are returned as: string,
integer, and double.
mapscript::getDBFValues DBFInfo_handle record_number
getDBFValues returns a list of field values from a DBF file handle. The
DBFInfo_handle must be a valid DBFInfo handle returned from
the DBFInfo constructor. Record_number is the record number of the
row to fetch.
mapscript::getDBFQueryInfo mapObj_pointer queryObj_pointer
getDBFQueryInfo returns a list of layer names and DBF record name-value
pairs from each layer that map query has generated. Multiple layer names /
DBF record name-value pairs may exist in the returned list.
mapObj_pointer and queryObj_pointer must be valid
mapObj and queryObj pointers.
See mapscript_wrap.html for the full Mapscript Tcl interface.
Note also that the Mapscript objects described in mapscript_wrap.html are defined in the mapscript namespace.
Tom Poindexter
tpoindex@nyx.net