diff --git a/src/streamnet.cpp b/src/streamnet.cpp index df3e023c..5118c53e 100644 --- a/src/streamnet.cpp +++ b/src/streamnet.cpp @@ -124,10 +124,10 @@ void createStreamNetShapefile(char *streamnetsrc,char *streamnetlyr,OGRSpatialRe if(strlen(streamnetlyr)==0){ char *streamnetlayername; streamnetlayername=getLayername(streamnetsrc); // get layer name if the layer name is not provided - hLayer1= OGR_DS_CreateLayer( hDS1,streamnetlayername,hSRSraster, wkbMultiLineString, NULL );} + hLayer1= OGR_DS_CreateLayer( hDS1,streamnetlayername,hSRSraster, wkbLineString, NULL );} else { - hLayer1= OGR_DS_CreateLayer( hDS1,streamnetlyr,hSRSraster, wkbMultiLineString, NULL ); }// provide same spatial reference as raster in streamnetshp file + hLayer1= OGR_DS_CreateLayer( hDS1,streamnetlyr,hSRSraster, wkbLineString, NULL ); }// provide same spatial reference as raster in streamnetshp file if( hLayer1 == NULL ) { printf( "warning: Layer creation failed.\n" ); @@ -337,14 +337,14 @@ int reachshape(long *cnet,float *lengthd, float *elev, float *area, double *poin //creating geometry using OGR - geometry = OGR_G_CreateGeometry( wkbMultiLineString ); + //geometry = OGR_G_CreateGeometry( wkbMultiLineString );// want Linestring line = OGR_G_CreateGeometry( wkbLineString ); - for(j=0; j<(np-1); j++) { + for(j=0; j