Skip to content

Commit

Permalink
Print the input of GEOSUnaryUnion_r to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Algunenano committed Oct 8, 2019
1 parent b54786f commit a81133b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion capi/geos_ts_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2196,8 +2196,13 @@ extern "C" {
if(0 == handle->initialized) {
return NULL;
}

#include <iostream>
#include <fstream>
try {
ofstream myfile;
myfile.open ("geos_geometry.txt");
myfile << g->toString();
myfile.close();
GeomPtr g3(g->Union());
g3->setSRID(g->getSRID());
return g3.release();
Expand Down

0 comments on commit a81133b

Please sign in to comment.