ProfileOptions Profile::toProfileOptions() const { ProfileOptions op; op.srsString() = getSRS()->getHorizInitString(); op.vsrsString() = getSRS()->getVertInitString(); op.bounds()->xMin() = _extent.xMin(); op.bounds()->yMin() = _extent.yMin(); op.bounds()->xMax() = _extent.xMax(); op.bounds()->yMax() = _extent.yMax(); op.numTilesWideAtLod0() = _numTilesWideAtLod0; op.numTilesHighAtLod0() = _numTilesHighAtLod0; return op; }