Functions

Functions

boolvec * pnts_load (const char *filename, const char *pntsname=NULL)
 
boolvec * pnts_read (const char *filename, const char *pntsname=NULL, int col1=1, int col2=2, int col3=3, int col4=0, const char *delimiter=" \t", int skip_lines=0, int grow_by=250)
 
boolvec * pnts_save (const char *filename, const char *points_name="*")
 
boolvec * pnts_write (const char *filename, const char *points_name="*", const char *delimiter="\t")
 
boolvec * pnts_load_shp (const char *filename, const char *pntsname="*", const char *param="VALUE")
 
boolvec * pnts_save_shp (const char *filename, const char *points_name="*")
 

Detailed Description

Function Documentation

boolvec* surfit::pnts_load ( const char *  filename,
const char *  pntsname = NULL 
)
Tcl syntax:
pnts_load filename "pntsname"
Description:
reads points named 'pntsname' from surfit datafile
Example:
pnts_load "C:\\my_points.dat" "my_points"
bool pnts_load_shp ( const char *  filename,
const char *  pntsname = "*",
const char *  param = "VALUE" 
)
Tcl syntax:
pnts_load_shp filename "pntsname" "param"
Description:
reads points from ESRI shape file and names them "pntsname"
Example:
pnts_load_shp "C:\\my_points.shp" "my_points" "VALUE"
Implemented in library:
libsurfit_io
boolvec* surfit::pnts_read ( const char *  filename,
const char *  pntsname = NULL,
int  col1 = 1,
int  col2 = 2,
int  col3 = 3,
int  col4 = 0,
const char *  delimiter = " \t",
int  skip_lines = 0,
int  grow_by = 250 
)
Tcl syntax:
pnts_read filename "pntsname" col1 col2 col3 col4 "delimiter" skip_lines grow_by
Description:
reads points from formatted text file
Parameters
filenamename of formatted text file
pntsnamename for points object
col1column with X coordinates
col2column with Y coordinates
col3colimn with Z values
col4column with names. If col4 equal to 0, then no names will be read
delimiterdelimiter between columns. May be " ", "\t", "," or other symbols
skip_linesnumber of lines to skip header
grow_by=250
Examples:
  • pnts_read "C:\\points.txt" "points" 1 2 3 0 " " 0
  • pnts_read "C:\\points_geq.txt" "points_geq" 1 2 3 3 " " 0
boolvec* surfit::pnts_save ( const char *  filename,
const char *  points_name = "*" 
)
Tcl syntax:
pnts_save "filename" points_name
Description:
saves points to surfit datafile
Example
pnts_save "C:\\points.dat" "my_points"
bool pnts_save_shp ( const char *  filename,
const char *  points_name = "*" 
)
Tcl syntax:
pnts_save_shp "filename" points_name
Description:
saves points to ESRI shapefile format
Example
pnts_save_shp "C:\\points.shp" "my_points"
Implemented in library:
libsurfit_io
boolvec* surfit::pnts_write ( const char *  filename,
const char *  points_name = "*",
const char *  delimiter = "\t" 
)
Tcl syntax:
pnts_write "filename" points_name "delimiter"
Description:
saves points to formatted text file



surfit: gridding and contouring software.