[gdal-dev] How do you remove the root AUTHORITY node from a
OGRSpatialReferenceH?
John Hayes
jhayes at lizardtech.com
Tue Sep 13 19:37:41 EDT 2011
Hi,
I need to remove the root AUTHORITY from a OGRSpatialReferenceH object. I could not find away to do it with the C API. Am I missing something?
I ended up doing the following:
OGR_SRSNode *root = static_cast<OGRSpatialReference *>(ref)->GetRoot();
root->DestroyChild(root->FindChild("AUTHORITY"));
I would prefer to use the C API. I was hoping something like OSRSetAuthority(ref, targetKey, NULL, 0) could be used.
Thanks,
-john
John Hayes
Senior Software Engineer
LizardTech
p: 206-652-5211
f: 206-652-0880
jhayes at lizardtech.com
www.lizardtech.com
Serve up your image data FAST with Express Server 7 now with support for MrSID Generation 4 (MG4™), the latest version of LizardTech’s MrSID format, which enables you to serve out specified bands from multi- and hyperspectral imagery and uses alpha-band transparency for better looking mosaics.
More information about the gdal-dev
mailing list