Functions

Functions

boolvec * cntr_read (const char *filename, const char *cntrname, int col1=1, int col2=2, int col3=3, const char *delimiters=" \t", int skip_lines=0, int grow_by=250)
 
boolvec * cntr_load (const char *filename, const char *cntrname=NULL)
 
boolvec * cntr_write (const char *filename, const char *cntr_name="*", const char *delimiter="\t")
 
boolvec * cntr_save (const char *filename, const char *cntr_name="*")
 
boolvec * cntr_load_shp (const char *filename, const char *cntrname="*", const char *zfield=NULL)
 
boolvec * cntr_load_bln (const char *filename, const char *cntrname="*")
 
boolvec * cntr_save_shp (const char *filename, const char *cntr_name="*")
 
boolvec * cntr_save_bln (const char *filename, const char *cntr_name="*")
 

Detailed Description

Function Documentation

boolvec* surfit::cntr_load ( const char *  filename,
const char *  cntrname = NULL 
)
Tcl syntax:
cntr_load filename "cntrname"
Description:
reads countour named 'cntrname' from surfit datafile
Example:
cntr_load "C:\\my_cntr.dat" "my_cntr"
bool cntr_load_bln ( const char *  filename,
const char *  cntrname = "*" 
)
Tcl syntax:
cntr_load_bln filename "cntrname"
Description:
loads contour named "cntrname" from BLN file. Loads all contours if no "cntrname" specified.
Implemented in library:
libsurfit_io
bool cntr_load_shp ( const char *  filename,
const char *  cntrname = "*",
const char *  zfield = NULL 
)
Tcl syntax:
cntr_load_shp filename "cntrname" "zfield"
Description:
reads countour named 'cntrname' from ERSI shape file. Loads all contours if no "cntrname" specified. If zfield is specified, then reads contours with constant value from attribute named "zfield"
Example:
cntr_load_shp "C:\\my_cntr.shp" "my_cntr"
Implemented in library:
libsurfit_io
boolvec* surfit::cntr_read ( const char *  filename,
const char *  cntrname,
int  col1 = 1,
int  col2 = 2,
int  col3 = 3,
const char *  delimiters = " \t",
int  skip_lines = 0,
int  grow_by = 250 
)
Tcl syntax:
cntr_read filename "cntrname" columns col1 col2 col3 "delimiters" skip_lines
Description:
reads contour from formatted text file
Parameters
filenamename of formatted text file
cntrnamename for contour object
col1column with X coordinates
col2column with Y coordinates
col3colimn with Z values
delimitersdelimiter between columns. May be " ", "\t", "," or other symbols
skip_linesnumber of lines to skip header
grow_by=250
Example:
cntr_read "C:\\my_cntr.txt" "my_cntr"
boolvec* surfit::cntr_save ( const char *  filename,
const char *  cntr_name = "*" 
)
Tcl syntax:
cntr_save filename cntr_name
Description:
saves contour to surfit datafile
Example:
cntr_save "C:\\my_cntr.dat" "my_cntr"
bool cntr_save_bln ( const char *  filename,
const char *  cntr_name = "*" 
)
Tcl syntax:
cntr_save_bln "filename" cntr_name
Description:
saves cntre to BLN file
Parameters
filenamename for BLN file
cntr_namecontour name
Example
cntr_save_bln "C:\\cntr.bln" my_cntr
Implemented in library:
libsurfit_io
bool cntr_save_shp ( const char *  filename,
const char *  cntr_name = "*" 
)
Tcl syntax:
cntr_save_shp "filename" cntr_name
Description:
saves contour to ESRI shape file
Example:
cntr_save_shp "C:\\my_cntr.shp" "my_cntr"
Implemented in library:
libsurfit_io
boolvec* surfit::cntr_write ( const char *  filename,
const char *  cntr_name = "*",
const char *  delimiter = "\t" 
)
Tcl syntax:
cntr_write filename cntr_name "delimiter"
Description:
saves contour to formatted text file.
Example:
cntr_write "C:\\my_cntr.txt" "my_cntr"



surfit: gridding and contouring software.