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

Method setSpatialReference

pdal/Geometry.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221
222void Geometry::setSpatialReference(const SpatialReference& srs)
223{
224 OGRSpatialReference *oSrs;
225
226 if (!srs.valid())
227 oSrs = new OGRSpatialReference();
228 else
229 oSrs = new OGRSpatialReference(srs.getWKT().data());
230 m_geom->assignSpatialReference(oSrs);
231 oSrs->Release();
232}
233
234
235SpatialReference Geometry::getSpatialReference() const

Callers

nothing calls this directly

Calls 3

getWKTMethod · 0.80
validMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected