diff --git a/src/main.cpp b/src/main.cpp index bea1db9..824e1a0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -165,15 +165,6 @@ void write_output_file(std::vector cellmaps, const char *filepath) } GDALClose( poDS ); - /* - OGRDataSourceH datasource = OGR_Dr_CreateDataSource(OGRGetDriverByName("GeoJSON"), "contour.geojson", new char*); - OGRSpatialReference reference_system = cellmap->reference_system; - OGRLayerH layer = OGR_DS_CreateLayer(datasource, "contour", &reference_system, wkbLineString25D, new char*); - - auto feature = OGR_F_Create(OGR_L_GetLayerDefn(static_cast(layer))); - - OGRGeometryH geometry = OGR_G_CreateGeometry(wkbLineString25D); - */ } int main(int argc, const char* argv[]) @@ -183,22 +174,10 @@ int main(int argc, const char* argv[]) std::cout << "x: " << map.width << " y: " << map.height << "\n"; std::cout << "max: " << map.max << " min: " << map.min << "\n"; - + map.blur(0.8); auto cellmap = produce_cellmap(&map, 40); - /* - for (int y = 0; y < cellmap.height; y++) - { - for (int x = 0; x < cellmap.width; x++) - { - if (cellmap.get_cell(x, y) && cellmap.get_cell(x, y)!=15) { - std::cout << x << ","<< y << "=" << cellmap.get_cell(x, y) << " "; - } - } - //std::cout << "\n"; - } - */ auto cellmaps = vector_cellmap(&map, 5); write_output_file(cellmaps, "out.geojson");