MCPcopy Create free account
hub / github.com/OSGeo/PROJ / createVerticalCRS

Function createVerticalCRS

test/unit/test_operationfactory.cpp:4084–4097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4082// ---------------------------------------------------------------------------
4083
4084static VerticalCRSNNPtr createVerticalCRS() {
4085 PropertyMap propertiesVDatum;
4086 propertiesVDatum.set(Identifier::CODESPACE_KEY, "EPSG")
4087 .set(Identifier::CODE_KEY, 5101)
4088 .set(IdentifiedObject::NAME_KEY, "Ordnance Datum Newlyn");
4089 auto vdatum = VerticalReferenceFrame::create(propertiesVDatum);
4090 PropertyMap propertiesCRS;
4091 propertiesCRS.set(Identifier::CODESPACE_KEY, "EPSG")
4092 .set(Identifier::CODE_KEY, 5701)
4093 .set(IdentifiedObject::NAME_KEY, "ODN height");
4094 return VerticalCRS::create(
4095 propertiesCRS, vdatum,
4096 VerticalCS::createGravityRelatedHeight(UnitOfMeasure::METRE));
4097}
4098
4099// ---------------------------------------------------------------------------
4100

Callers 2

TESTFunction · 0.70
createBoundVerticalCRSFunction · 0.70

Calls 1

setMethod · 0.80

Tested by

no test coverage detected