MCPcopy Create free account
hub / github.com/OSGeo/gdal / clear

Method clear

ogr/ogrspatialreference.cpp:275–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void OGRSpatialReference::Private::clear()
276{
277 proj_assign_context(m_pj_crs, getPROJContext());
278 proj_destroy(m_pj_crs);
279 m_pj_crs = nullptr;
280
281 delete m_poRoot;
282 m_poRoot = nullptr;
283 m_bNodesChanged = false;
284
285 m_wktImportWarnings.clear();
286 m_wktImportErrors.clear();
287
288 m_pj_crs_modified_during_demote = false;
289 m_pjType = PJ_TYPE_UNKNOWN;
290 m_osPrimeMeridianName.clear();
291 m_osAngularUnits.clear();
292 m_osLinearUnits.clear();
293
294 bNormInfoSet = FALSE;
295 dfFromGreenwich = 1.0;
296 dfToMeter = 1.0;
297 dfToDegrees = 1.0;
298 m_dfAngularUnitToRadian = 0.0;
299
300 m_bMorphToESRI = false;
301 m_bHasCenterLong = false;
302
303 m_coordinateEpoch = 0.0;
304}
305
306void OGRSpatialReference::Private::setRoot(OGR_SRSNode *poRoot)
307{

Callers 5

ClearMethod · 0.45
SetGeogCSMethod · 0.45
CopyGeogCSFromMethod · 0.45
SetFromUserInputMethod · 0.45
FindBestMatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected