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

Method SetLocalCS

ogr/ogrspatialreference.cpp:5485–5505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5483 */
5484
5485OGRErr OGRSpatialReference::SetLocalCS(const char *pszName)
5486
5487{
5488 TAKE_OPTIONAL_LOCK();
5489
5490 if (d->m_pjType == PJ_TYPE_UNKNOWN ||
5491 d->m_pjType == PJ_TYPE_ENGINEERING_CRS)
5492 {
5493 d->setPjCRS(proj_create_engineering_crs(d->getPROJContext(), pszName));
5494 }
5495 else
5496 {
5497 CPLDebug("OGR",
5498 "OGRSpatialReference::SetLocalCS(%s) failed. "
5499 "It appears an incompatible object already exists.",
5500 pszName);
5501 return OGRERR_FAILURE;
5502 }
5503
5504 return OGRERR_NONE;
5505}
5506
5507/************************************************************************/
5508/* OSRSetLocalCS() */

Callers 14

importGeogCSFromXMLFunction · 0.80
OSRSetLocalCSFunction · 0.80
GetSpatialRefMethod · 0.80
CheckGeoSDEInfoMethod · 0.80
IdrisiGeoReference2WktFunction · 0.80
make_local_coordsysMethod · 0.80
ProcessMapinfoMethod · 0.80
OpenMethod · 0.80
gt_wkt_srs.cppFile · 0.80
HFAPCSStructToOSRFunction · 0.80

Calls 3

CPLDebugFunction · 0.85
setPjCRSMethod · 0.80
getPROJContextMethod · 0.80

Tested by 1