63 if (2 == (
newln->dims =
gln->dims)) {
69 for (i = 0; i < np; i++) {
80 for (i = 0; i < np; i++) {
121 if (2 == (
newln->dims =
gln->dims)) {
128 for (i = 0; i <
targp; i++) {
129 if (i ==
targp - 1) {
147 for (i = 0; i <
targp; i++) {
148 if (i ==
targp - 1) {
178 for (n = 0; n <
gln->npts - 1; n++) {
239 gv->fastlines =
gv->lines;
278 prev =
gv->fastlines = copy_line(
gln);
285 G_debug(3,
"Decimated lines have %d points.",
int G_debug(int, const char *,...) __attribute__((format(printf
float GS_P2distance(float *, float *)
Calculate distance in plane.
float GS_distance(float *, float *)
Calculate distance.
#define TFAST_PTS
target number of desired points to represent entire file
#define MFAST_LNS
max number of lines desired
float gv_line_length(geoline *gln)
Get line width.
int gln_num_points(geoline *gln)
Get number of line vertices.
int gv_num_points(geovect *gv)
Get number of points in vector.
int gv_decimate_lines(geovect *gv)
Decimate line.
OGSF header file (structures)