Situated in South Asia, Bangladesh, before it became an independent state, was the eastern province of Pakistan, known as East Bengal and, later, as East Pakistan. Bangladesh is slightly smaller than the state of Iowa with a total area of 144,000 sq km (55,598 sq mi), extending 767 km (477 mi) SSE – NNW and 429 km (267 mi) ENE – WSW . Bangladesh is bordered in the W , N , and E by India, on the SE by Myanmar (Burma), and on the S by the Bay of Bengal, with a total boundary length of 4,246 km (2,638 mi). A border demarcation agreement was signed with Myanmar in May 1979. Demarcation of the marine boundary with India remains unresolved. Bangladesh's capital city, Dhaka, is located near the center of the country.