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

Method getSpatialReference

pdal/Geometry.cpp:235–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234
235SpatialReference Geometry::getSpatialReference() const
236{
237 SpatialReference srs;
238
239 if (srsValid())
240 {
241 char *buf;
242 const char *options[] = { "FORMAT=WKT2", nullptr };
243 m_geom->getSpatialReference()->exportToWkt(&buf, options);
244 srs.set(buf);
245 CPLFree(buf);
246 }
247 return srs;
248}
249
250
251BOX3D Geometry::bounds() const

Callers 15

createSpatialFiltersMethod · 0.80
initializeMethod · 0.80
filterBoundsMethod · 0.80
TESTFunction · 0.80
fileHasSrsFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
checkReadersMethod · 0.80
processMethod · 0.80
getFileInfoMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

setMethod · 0.45

Tested by 9

TESTFunction · 0.64
fileHasSrsFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64