fromWkid static method
- int wkid
Creates a unit given its well-known ID.
Parameters:
wkid
— The well-known ID of the unit.
Return Value: A unit. Depending on the well-known ID given, this may be a LinearUnit, AngularUnit, or AreaUnit.
Implementation
static Unit fromWkid(int wkid) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Unit_fromWKID(wkid, errorHandler);
});
return Unit._fromHandle(objectHandle)!;
}