What is the easiest way to obtain MeshRegion
objects from CountryData
that I can use in geographic computations?
For example, this does not work for me:
reg = DiscretizeGraphics @ CountryData[Entity["Country", "UnitedStates"], "Polygon"];
RegionBounds[reg]
(* {{-2.75903*10^6, 1.7744*10^6}, {-5.70806*10^6, -3.48795*10^6}, {2.69158*10^6, 4.8185*10^6}} *)
I want to get mesh regions like the hardcoded USA region in the "Applications" section in RegionMember
's function page. (I.e. such mesh objects for other countries.)
With the referenced hardcoded region object, reg
, we get:
RegionBounds[reg]
(* {{-124.733, -66.9498}, {25.1246, 49.3845}} *)