pihmRasterLIBS/streamSegmentationShp.cpp File Reference

#include <stdio.h>
#include "lsm.h"
#include "./../pihmLIBS/shapefil.h"

Include dependency graph for streamSegmentationShp.cpp:

Go to the source code of this file.

Defines

#define MAX   8

Functions

int streamSegmentationShp (char *rivFile, char *fdrFile, char *rivShpFile, char *rivDbfFile)
void streamGenShp (float **riv, short **fdr, int i, int j)
void findIJShp (short **fdr, int i, int j, int *mIJ)
int findCellShp (float **riv, short **fdr, int i, int j, int(*cell)[2])
int getNumPts (float **riv, int nx, int ny)

Variables

int old1Fdr
int old2Fdr
double * ptx
double * pty
double * ptz
int nVertices
int numPts
SHPHandle shp
DBFHandle dbf
SHPObjectobj
int Att
int recordNum


Define Documentation

#define MAX   8

Definition at line 6 of file streamSegmentationShp.cpp.


Function Documentation

int findCellShp ( float **  riv,
short **  fdr,
int  i,
int  j,
int *  cell[2] 
)

Definition at line 201 of file streamSegmentationShp.cpp.

References findIJShp().

Referenced by streamGenShp(), and streamSegmentationShp().

Here is the call graph for this function:

void findIJShp ( short **  fdr,
int  i,
int  j,
int *  mIJ 
)

Definition at line 180 of file streamSegmentationShp.cpp.

Referenced by findCellShp(), and streamSegmentationShp().

int getNumPts ( float **  riv,
int  nx,
int  ny 
)

Definition at line 228 of file streamSegmentationShp.cpp.

Referenced by streamSegmentationShp().

void streamGenShp ( float **  riv,
short **  fdr,
int  i,
int  j 
)

Definition at line 94 of file streamSegmentationShp.cpp.

References bndbox, csize, dbf, DBFWriteIntegerAttribute(), findCellShp(), MAX, obj, shp, SHPCreateSimpleObject(), SHPT_ARC, SHPWriteObject(), and slope.

Referenced by streamSegmentationShp().

Here is the call graph for this function:

int streamSegmentationShp ( char *  rivFile,
char *  fdrFile,
char *  rivShpFile,
char *  rivDbfFile 
)

Definition at line 28 of file streamSegmentationShp.cpp.

References bndbox, csize, dbf, DBFAddField(), DBFClose(), DBFCreate(), dir, dx, dy, elev, filetype, findCellShp(), findIJShp(), FTInteger, getNumPts(), gridread(), MAX, mval, nx, ny, RPFLTDTYPE, RPSHRDTYPE, shp, SHPClose(), SHPCreate(), SHPT_ARC, slope, and streamGenShp().

Referenced by StreamPolyLineDlg::run().

Here is the call graph for this function:


Variable Documentation

int Att

Definition at line 22 of file streamSegmentationShp.cpp.

DBFHandle dbf

Definition at line 20 of file streamSegmentationShp.cpp.

Referenced by addFID(), addSOrder(), addToFromNode(), calDownSegment(), catchmentPoly(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), rivFileDlg::run(), attFileDlg::run(), simplifyPolySHP(), splitLineAtVertices(), streamGenShp(), and streamSegmentationShp().

int numPts

Definition at line 18 of file streamSegmentationShp.cpp.

int nVertices

Definition at line 17 of file streamSegmentationShp.cpp.

Referenced by polygonToPolyline().

SHPObject* obj

Definition at line 21 of file streamSegmentationShp.cpp.

Referenced by addToFromNode(), catchmentPoly(), generateShape(), mergeFeatures(), attFileDlg::run(), simplifyPolySHP(), splitLineAtVertices(), and streamGenShp().

int old1Fdr

Definition at line 14 of file streamSegmentationShp.cpp.

int old2Fdr

Definition at line 14 of file streamSegmentationShp.cpp.

double* ptx

Definition at line 16 of file streamSegmentationShp.cpp.

Referenced by catchmentPoly().

double * pty

Definition at line 16 of file streamSegmentationShp.cpp.

Referenced by catchmentPoly().

double * ptz

Definition at line 16 of file streamSegmentationShp.cpp.

Referenced by catchmentPoly().

int recordNum

Definition at line 23 of file streamSegmentationShp.cpp.

Referenced by catchmentPoly().

SHPHandle shp

Definition at line 19 of file streamSegmentationShp.cpp.

Referenced by addSOrder(), addToFromNode(), catchmentPoly(), extractRiver4mTIN(), generateShape(), mergeFeatures(), polygonToPolyline(), attFileDlg::run(), simplifyPolySHP(), splitLineAtVertices(), streamGenShp(), and streamSegmentationShp().


Generated on Sun Aug 5 17:34:58 2007 for PIHMgis by  doxygen 1.5.2