MCPcopy Create free account
hub / github.com/PDAL/PDAL / json

Method json

pdal/Geometry.cpp:336–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336std::string Geometry::json(double precision) const
337{
338 CPLStringList aosOptions;
339 std::string p(std::to_string((int)precision));
340 aosOptions.SetNameValue("COORDINATE_PRECISION", p.data());
341
342 char* json = OGR_G_ExportToJsonEx(gdal::toHandle(m_geom.get()),
343 aosOptions.List());
344 std::string output(json);
345 OGRFree(json);
346 return output;
347}
348
349
350void Geometry::clear()

Callers 3

TESTFunction · 0.80
extractMetadataMethod · 0.80
doneMethod · 0.80

Calls 3

toHandleFunction · 0.85
dataMethod · 0.45
getMethod · 0.45

Tested by 1

TESTFunction · 0.64