Skip to content

Commit

Permalink
modify code for connectdown
Browse files Browse the repository at this point in the history
  • Loading branch information
nazmussazib committed Nov 20, 2015
1 parent 158b0fa commit 66b593f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ConnectDown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,12 @@ int connectdown(char *pfile, char *wfile, char *ad8file, char *outletshapefile,
OGR_G_SetPoint_2D(hGeometrysh, 0, x, y);
OGR_F_SetGeometry( hFeaturesh, hGeometrysh );
OGR_G_DestroyGeometry(hGeometrysh);
if( OGR_L_CreateFeature( hLayersh, hFeaturesh ) != OGRERR_NONE )
{
printf( " warning: Failed to create feature in shapefile.\n" );
//exit( 1 );
}

OGR_F_Destroy( hFeaturesh );


Expand Down Expand Up @@ -769,6 +775,11 @@ int connectdown(char *pfile, char *wfile, char *ad8file, char *outletshapefile,
OGR_G_SetPoint_2D(hGeometryshmoved, 0, x, y);
OGR_F_SetGeometry( hFeatureshmoved, hGeometryshmoved );
OGR_G_DestroyGeometry(hGeometryshmoved);
if( OGR_L_CreateFeature( hLayershmoved, hFeatureshmoved ) != OGRERR_NONE )
{
printf( " warning: Failed to create feature in shapefile.\n" );
//exit( 1 );
}
OGR_F_Destroy( hFeatureshmoved );


Expand Down

0 comments on commit 66b593f

Please sign in to comment.