Spatial Data Answers#
Part 1#
Note: these answers are incomplete
Bounding boxes#
Use google maps or another mapping application to get the approximate bounds of Venezuela. Express the bounds as
minx
,miny
,maxx
,maxy
.
Using the points
minx
,miny
,maxx
,maxy
write coordinates of the form longitude, latitude for each of the corners of a bounding box:
Upper left corner:
Upper right corner:
Lower left corner:
Lower right corner:
CRS and Map Projections#
3a) You open a datafile and the unit of the coordinates is kilometers. Is the CRS geographic or projected?
3b) You open a datafile and the unit of the coordinates is degrees. Is the CRS geographic or projected?
You open a file and see in the metadata that the EPSG code is 4326. Find that reference system in on www.epsg.io. What is the unit of that coordinate system? What area of the world does that system cover (what are the bounds)?
UTM Grids#
What is the EPSG code of the UTM grid zone that covers Los Angeles?
List any of the UTM grid zones that intersect Australia.
In “regular” degree latitude and longitude coordinate systems the latitude spans from -90 to 90 and longitude spans from -180 to 180. What is the minimum and maximum values of latitude and longitude in a UTM grid zone?
minimum latitude -
maximum latitude -
minimum longitude -
maximum longitude -
Where is the UTM grid zone the widest? Why is that?
What are the approximate coordinates of the colored locations on the utm grids?
green:
red:
orange:
purple:
shapely
#
Create a shapely point object to represent your current location.
Create a triangle that is a shapely polygon object.
Use the minimum and maximum x/y values of Venezuela from the first question to create a shapely bounding box. Calculate the area of that box. What are the units of the output?
The following bit of code loads the california geojson into a python dictionary. Use shapely to convert that json to a shapely object.
import json
with open('../data/california.geojson') as f:
ca_geom_json = json.load(f)
from shapely.geometry import shape
ca_geom = shape(ca_geom_json['geometry'])
First take the difference between the california shapely object from the previous question and the
second_polygon
shape. Then take the union of those two objects. Calculate the difference in area between the two results.
from shapely.geometry import box
second_polygon = box(-123, 33, -113, 40)
second_polygon - ca_geom
Buffer the calfornia shapely object by 0.6 degrees. Take the difference between the buffered california object and the
second_polygon
polygon.
Part 2#
Question 1#
A) There are 60 UTM grid zones that cover the globe. How many degrees wide is each grid zone?
B) California is in UTM zone 10 and Maine reaches UTM zone 19. How many degrees longitude does the contiguous United States span?
C) How wide is a grid zone at the equator? How wide is it at the poles? Why is there a difference?
Question 2#
I tell you I have am interested in the UTM grid point with easting value 9500 km and northing value 505 km. What is wrong? What is likely my error?
Question 3#
Load the geojson of California with the code below:
import json
with open('../data/california.geojson') as f:
ca_geom_json = json.load(f)
ca_geom_json
{'_id': 'california',
'type': 'Feature',
'properties': {'name': 'California',
'abbreviation': 'CA',
'capital': 'Sacramento',
'city': 'Los Angeles',
'population': 38332521,
'area': 423968,
'waterarea': 20502,
'landarea': 403466,
'houseseats': 53,
'statehood': '1850-09-09',
'group': 'US States'},
'geometry': {'coordinates': [[[[-120.248484, 33.999329],
[-120.247393, 34.001911],
[-120.238657, 34.007592],
[-120.230001, 34.010136],
[-120.221287, 34.010367],
[-120.208478, 34.005655],
[-120.19578, 34.004284],
[-120.167306, 34.008219],
[-120.151663, 34.018126],
[-120.147647, 34.024831],
[-120.140362, 34.025974],
[-120.135853, 34.026087],
[-120.115058, 34.019866],
[-120.090182, 34.019806],
[-120.073609, 34.024477],
[-120.062778, 34.031161],
[-120.061953, 34.033976],
[-120.057637, 34.03734],
[-120.055107, 34.037729],
[-120.043259, 34.035806],
[-120.044004, 34.02482],
[-120.047798, 34.021227],
[-120.050382, 34.013331],
[-120.048926, 34.009898],
[-120.046575, 34.000002],
[-120.041311, 33.994507],
[-120.025653, 33.985553],
[-120.011123, 33.979894],
[-120.003815, 33.979547],
[-119.984316, 33.983948],
[-119.978876, 33.983081],
[-119.979913, 33.969623],
[-119.976857, 33.956693],
[-119.971141, 33.950401],
[-119.97026, 33.944359],
[-119.973691, 33.942481],
[-120.00096, 33.941554],
[-120.017715, 33.936366],
[-120.046881, 33.919597],
[-120.048315, 33.917625],
[-120.048611, 33.915775],
[-120.049682, 33.914563],
[-120.077793, 33.908886],
[-120.098601, 33.907853],
[-120.105489, 33.90428],
[-120.109137, 33.899129],
[-120.121817, 33.895712],
[-120.168974, 33.91909],
[-120.179049, 33.927994],
[-120.18984, 33.947703],
[-120.192339, 33.950266],
[-120.198602, 33.952211],
[-120.200085, 33.956904],
[-120.209372, 33.972376],
[-120.224461, 33.989059],
[-120.248484, 33.999329]]],
[[[-119.789798, 34.05726],
[-119.770729, 34.055051],
[-119.766081, 34.05537],
[-119.763688, 34.057155],
[-119.755521, 34.056716],
[-119.739472, 34.049299],
[-119.726437, 34.047908],
[-119.712576, 34.043265],
[-119.704628, 34.037681],
[-119.686507, 34.019805],
[-119.637742, 34.013178],
[-119.619343, 34.016468],
[-119.612226, 34.021256],
[-119.604287, 34.031561],
[-119.608798, 34.035245],
[-119.609239, 34.03735],
[-119.59324, 34.049625],
[-119.57341, 34.05011],
[-119.5667, 34.053452],
[-119.529603, 34.041155],
[-119.52064, 34.034262],
[-119.52177, 34.032247],
[-119.532413, 34.024949],
[-119.538847, 34.023988],
[-119.542449, 34.021082],
[-119.54828, 34.009819],
[-119.547072, 34.005469],
[-119.554472, 33.99782],
[-119.560464, 33.99553],
[-119.575636, 33.996009],
[-119.5902, 33.989712],
[-119.596877, 33.988611],
[-119.619082, 33.987228],
[-119.621117, 33.98899],
[-119.64771, 33.987786],
[-119.662825, 33.985889],
[-119.69011, 33.972225],
[-119.706952, 33.969178],
[-119.712363, 33.965422],
[-119.714696, 33.961439],
[-119.721206, 33.959583],
[-119.742966, 33.963877],
[-119.750438, 33.963759],
[-119.758141, 33.959212],
[-119.795938, 33.962929],
[-119.842748, 33.97034],
[-119.873358, 33.980375],
[-119.877057, 33.985757],
[-119.883033, 34.000802],
[-119.884896, 34.008814],
[-119.882531, 34.011674],
[-119.876916, 34.023527],
[-119.876329, 34.032087],
[-119.892821, 34.045529],
[-119.916216, 34.058351],
[-119.923337, 34.069361],
[-119.919155, 34.07728],
[-119.912857, 34.077508],
[-119.89113, 34.072856],
[-119.857304, 34.071298],
[-119.825865, 34.059794],
[-119.818742, 34.052997],
[-119.807825, 34.052127],
[-119.789798, 34.05726]]],
[[[-120.46258, 34.042627],
[-120.440248, 34.036918],
[-120.418768, 34.052093],
[-120.415287, 34.05496],
[-120.411314, 34.052869],
[-120.403613, 34.050442],
[-120.396188, 34.050187],
[-120.390906, 34.051994],
[-120.374211, 34.062658],
[-120.368813, 34.06778],
[-120.368584, 34.071214],
[-120.370176, 34.074907],
[-120.368278, 34.076465],
[-120.362251, 34.073056],
[-120.354982, 34.059256],
[-120.36029, 34.05582],
[-120.358608, 34.050235],
[-120.346946, 34.046576],
[-120.331161, 34.049097],
[-120.319032, 34.041979],
[-120.313175, 34.036576],
[-120.302122, 34.023574],
[-120.304543, 34.021171],
[-120.317052, 34.018837],
[-120.347706, 34.020114],
[-120.35532, 34.017914],
[-120.35793, 34.015029],
[-120.375143, 34.018775],
[-120.409368, 34.032198],
[-120.415225, 34.032245],
[-120.419021, 34.028949],
[-120.427408, 34.025425],
[-120.454134, 34.028081],
[-120.459635, 34.031537],
[-120.465329, 34.038448],
[-120.46258, 34.042627]]],
[[[-119.543842, 33.280329],
[-119.532941, 33.284728],
[-119.528141, 33.284929],
[-119.50504, 33.272829],
[-119.48278, 33.263973],
[-119.465717, 33.259239],
[-119.458466, 33.254661],
[-119.429559, 33.228167],
[-119.444269, 33.21919],
[-119.464725, 33.215432],
[-119.476029, 33.21552],
[-119.500684, 33.220569],
[-119.511659, 33.223027],
[-119.517514, 33.226737],
[-119.545872, 33.233406],
[-119.564971, 33.24744],
[-119.565641, 33.250029],
[-119.566014, 33.252639],
[-119.570642, 33.257729],
[-119.578942, 33.278628],
[-119.562042, 33.271129],
[-119.555242, 33.273429],
[-119.547642, 33.280328],
[-119.543842, 33.280329]]],
[[[-119.422972, 34.004368],
[-119.427589, 34.006445],
[-119.437734, 34.01],
[-119.441116, 34.012426],
[-119.441226, 34.014075],
[-119.433912, 34.015975],
[-119.421376, 34.015012],
[-119.411317, 34.008005],
[-119.396251, 34.005918],
[-119.389983, 34.006099],
[-119.366591, 34.016785],
[-119.357462, 34.015919],
[-119.376396, 34.010551],
[-119.391551, 34.002505],
[-119.414528, 34.004994],
[-119.422972, 34.004368]]],
[[[-118.524531, 32.895488],
[-118.535823, 32.90628],
[-118.551134, 32.945155],
[-118.560887, 32.957891],
[-118.573522, 32.969183],
[-118.586928, 33.008281],
[-118.596037, 33.015357],
[-118.606559, 33.01469],
[-118.605534, 33.030999],
[-118.594033, 33.035951],
[-118.57516, 33.033961],
[-118.569013, 33.029151],
[-118.564445, 33.024914],
[-118.564527, 33.018637],
[-118.559171, 33.006291],
[-118.540069, 32.980933],
[-118.529228, 32.970921],
[-118.496811, 32.933847],
[-118.485288, 32.923545],
[-118.479039, 32.920363],
[-118.460623, 32.90951],
[-118.446771, 32.895424],
[-118.369984, 32.839273],
[-118.353504, 32.821962],
[-118.356541, 32.817311],
[-118.36053, 32.819921],
[-118.379968, 32.824545],
[-118.387375, 32.825327],
[-118.394565, 32.823978],
[-118.401268, 32.820338],
[-118.425634, 32.800595],
[-118.42943, 32.805429],
[-118.428372, 32.806872],
[-118.44492, 32.820593],
[-118.476074, 32.841754],
[-118.487908, 32.84459],
[-118.496298, 32.851572],
[-118.506902, 32.868503],
[-118.508095, 32.871321],
[-118.507193, 32.876264],
[-118.524641, 32.893175],
[-118.524531, 32.895488]]],
[[[-118.500212, 33.449592],
[-118.499669, 33.447879],
[-118.48557, 33.446213],
[-118.477646, 33.448392],
[-118.445812, 33.428907],
[-118.423576, 33.427258],
[-118.382037, 33.409883],
[-118.370323, 33.409285],
[-118.368301, 33.40711],
[-118.365094, 33.388374],
[-118.32446, 33.348782],
[-118.316083, 33.342928],
[-118.310213, 33.335795],
[-118.303174, 33.320264],
[-118.305084, 33.310323],
[-118.316787, 33.301137],
[-118.325244, 33.299075],
[-118.343249, 33.305234],
[-118.360332, 33.31533],
[-118.374768, 33.320065],
[-118.402941, 33.320901],
[-118.440047, 33.318638],
[-118.456309, 33.32182],
[-118.465368, 33.326056],
[-118.481886, 33.344123],
[-118.48877, 33.356649],
[-118.482609, 33.369914],
[-118.478465, 33.38632],
[-118.484949, 33.412131],
[-118.48875, 33.419826],
[-118.503952, 33.424234],
[-118.515914, 33.422417],
[-118.516267, 33.425075],
[-118.52323, 33.430733],
[-118.53738, 33.434608],
[-118.558715, 33.433419],
[-118.563442, 33.434381],
[-118.570927, 33.439351],
[-118.575901, 33.448261],
[-118.593969, 33.467198],
[-118.601185, 33.469853],
[-118.60403, 33.47654],
[-118.603375, 33.478098],
[-118.598783, 33.477939],
[-118.585936, 33.473819],
[-118.54453, 33.474119],
[-118.530702, 33.468071],
[-118.500212, 33.449592]]],
[[[-122.418698, 37.852717],
[-122.434403, 37.852434],
[-122.443302, 37.855448],
[-122.446316, 37.861046],
[-122.438565, 37.868367],
[-122.430958, 37.872242],
[-122.421439, 37.869969],
[-122.421341, 37.869946],
[-122.41847, 37.861764],
[-122.41847, 37.852721],
[-122.418698, 37.852717]]],
[[[-123.013916, 37.700355],
[-123.013897, 37.704478],
[-123.012194, 37.706749],
[-123.004489, 37.706262],
[-123.00019, 37.702937],
[-122.997189, 37.697909],
[-123.000677, 37.690203],
[-123.005543, 37.689392],
[-123.011464, 37.691907],
[-123.014303, 37.696205],
[-123.013916, 37.700355]]],
[[[-122.3785, 37.826505],
[-122.377879, 37.830648],
[-122.369941, 37.832137],
[-122.363244, 37.823951],
[-122.358779, 37.814278],
[-122.362661, 37.807577],
[-122.372422, 37.811301],
[-122.37267, 37.81651],
[-122.3785, 37.826505]]],
[[[-124.065521, 41.464739],
[-124.066057, 41.470258],
[-124.075917, 41.501757],
[-124.081427, 41.511228],
[-124.081987, 41.547761],
[-124.092404, 41.553615],
[-124.101123, 41.569192],
[-124.101403, 41.578524],
[-124.097385, 41.585251],
[-124.100961, 41.602499],
[-124.114413, 41.616768],
[-124.116037, 41.628849],
[-124.120225, 41.640354],
[-124.135552, 41.657307],
[-124.139354, 41.671652],
[-124.138373, 41.678881],
[-124.143479, 41.709284],
[-124.147412, 41.717955],
[-124.154246, 41.728801],
[-124.164716, 41.740126],
[-124.17739, 41.745756],
[-124.185363, 41.739351],
[-124.19104, 41.736079],
[-124.194953, 41.736778],
[-124.203843, 41.747035],
[-124.23972, 41.7708],
[-124.242288, 41.772034],
[-124.248704, 41.771459],
[-124.255994, 41.783014],
[-124.245027, 41.7923],
[-124.230678, 41.818681],
[-124.219592, 41.846432],
[-124.208439, 41.888192],
[-124.203402, 41.940964],
[-124.204948, 41.983441],
[-124.211605, 41.99846],
[-124.100921, 41.996956],
[-124.100216, 41.996842],
[-124.087827, 41.996891],
[-124.086661, 41.996869],
[-123.821472, 41.995473],
[-123.624554, 41.999837],
[-123.518075, 42.000436],
[-123.501997, 42.000527],
[-123.498896, 42.000474],
[-123.49883, 42.000525],
[-123.347562, 41.999108],
[-123.230764, 42.003845],
[-123.230762, 42.003845],
[-123.154908, 42.008036],
[-123.045254, 42.003049],
[-123.001152, 42.003],
[-122.634739, 42.004858],
[-122.501135, 42.00846],
[-122.378193, 42.009518],
[-122.289533, 42.007764],
[-122.289527, 42.007764],
[-122.161328, 42.007637],
[-122.160438, 42.007637],
[-122.156666, 42.007384],
[-122.155408, 42.007429],
[-122.001119, 42.004017],
[-121.708199, 42.000815],
[-121.705045, 42.000766],
[-121.689159, 42.000584],
[-121.675348, 42.000351],
[-121.580865, 41.998668],
[-121.52025, 41.997983],
[-121.44754, 41.997169],
[-121.43961, 41.99708],
[-121.434977, 41.997022],
[-121.376101, 41.997026],
[-121.360253, 41.99668],
[-121.340517, 41.99622],
[-121.335734, 41.996518],
[-121.334385, 41.996655],
[-121.154347, 41.996352],
[-121.035195, 41.993323],
[-120.879481, 41.993781],
[-120.693941, 41.993676],
[-120.692219, 41.993677],
[-120.326005, 41.993122],
[-120.286424, 41.993058],
[-119.999168, 41.99454],
[-119.999866, 41.183974],
[-119.999358, 40.873101],
[-119.999232, 40.867454],
[-119.999231, 40.865899],
[-119.995926, 40.499901],
[-119.996155, 40.321838],
[-119.996155, 40.32125],
[-119.996182, 40.263532],
[-119.996183, 40.262461],
[-119.997124, 40.126363],
[-119.997234, 40.091591],
[-119.997175, 40.077245],
[-119.997291, 40.071803],
[-120.000607, 39.780779],
[-120.000502, 39.779956],
[-120.001319, 39.72242],
[-120.001319, 39.722416],
[-120.003116, 39.445113],
[-120.003117, 39.445045],
[-120.005318, 39.316479],
[-120.00532, 39.31635],
[-120.005413, 39.313848],
[-120.005414, 39.313345],
[-120.005743, 39.228664],
[-120.005746, 39.22521],
[-120.004504, 39.165599],
[-120.003402, 39.112687],
[-120.002461, 39.067489],
[-120.001014, 38.999574],
[-119.904315, 38.933324],
[-119.587679, 38.714734],
[-119.587066, 38.714345],
[-119.585437, 38.713212],
[-119.494183, 38.649852],
[-119.494022, 38.649734],
[-119.450612, 38.619964],
[-119.450623, 38.619965],
[-119.328498, 38.534648],
[-119.156863, 38.414743],
[-119.125982, 38.39317],
[-118.746598, 38.124926],
[-118.428581, 37.895613],
[-118.039798, 37.615273],
[-118.039849, 37.615245],
[-117.832726, 37.464929],
[-117.500909, 37.220282],
[-117.166187, 36.970862],
[-117.000895, 36.847694],
[-116.488233, 36.459097],
[-116.097216, 36.158346],
[-116.093601, 36.155805],
[-115.912858, 36.015359],
[-115.892975, 35.999967],
[-115.84608, 35.963596],
[-115.689302, 35.842003],
[-115.648029, 35.809629],
[-115.647683, 35.809358],
[-115.647202, 35.808995],
[-115.406079, 35.618613],
[-115.404537, 35.617605],
[-115.393996, 35.609344],
[-115.391535, 35.607271],
[-115.388866, 35.605171],
[-115.303743, 35.538207],
[-115.271342, 35.51266],
[-115.225273, 35.475907],
[-115.160599, 35.424313],
[-115.160068, 35.424129],
[-115.146788, 35.413662],
[-115.145813, 35.413182],
[-114.92548, 35.237054],
[-114.925381, 35.237039],
[-114.80503, 35.140284],
[-114.804249, 35.139689],
[-114.633013, 35.002085],
[-114.62919, 34.991887],
[-114.629015, 34.986148],
[-114.630877, 34.907263],
[-114.636725, 34.889107],
[-114.635176, 34.875003],
[-114.633051, 34.869971],
[-114.552682, 34.766871],
[-114.465607, 34.69226],
[-114.452547, 34.653494],
[-114.339627, 34.451435],
[-114.264317, 34.401329],
[-114.199482, 34.361373],
[-114.176909, 34.349306],
[-114.138282, 34.30323],
[-114.131489, 34.260387],
[-114.133264, 34.258462],
[-114.164476, 34.251667],
[-114.225861, 34.201774],
[-114.244191, 34.179625],
[-114.312592, 34.144453],
[-114.321618, 34.138093],
[-114.366521, 34.118575],
[-114.390565, 34.110084],
[-114.401352, 34.111652],
[-114.411681, 34.110031],
[-114.420499, 34.103466],
[-114.43338, 34.088413],
[-114.435429, 34.079727],
[-114.434949, 34.037784],
[-114.438266, 34.022609],
[-114.46361, 33.993431],
[-114.499883, 33.961789],
[-114.518434, 33.917518],
[-114.525539, 33.838614],
[-114.523365, 33.80612],
[-114.50434, 33.756381],
[-114.494197, 33.707922],
[-114.496489, 33.696901],
[-114.519113, 33.688473],
[-114.523959, 33.685879],
[-114.530348, 33.679245],
[-114.540617, 33.591412],
[-114.5403, 33.580615],
[-114.535965, 33.569154],
[-114.535664, 33.568788],
[-114.558898, 33.531819],
[-114.594534, 33.495059],
[-114.622918, 33.456561],
[-114.627125, 33.433554],
[-114.665278, 33.415358],
[-114.721233, 33.396912],
[-114.700103, 33.341045],
[-114.672088, 33.258499],
[-114.67536, 33.185489],
[-114.679359, 33.159519],
[-114.687074, 33.142196],
[-114.696829, 33.131209],
[-114.706175, 33.105335],
[-114.707819, 33.091102],
[-114.675104, 33.047532],
[-114.62387, 33.02872],
[-114.606282, 33.025703],
[-114.589778, 33.026228],
[-114.584765, 33.028231],
[-114.578287, 33.035375],
[-114.571653, 33.036624],
[-114.523578, 33.030961],
[-114.516912, 33.026871],
[-114.511343, 33.023455],
[-114.468605, 32.971649],
[-114.46289, 32.905797],
[-114.465715, 32.87942],
[-114.465715, 32.879191],
[-114.496284, 32.822326],
[-114.496827, 32.822119],
[-114.615733, 32.729427],
[-114.615585, 32.728446],
[-114.65826, 32.733799],
[-114.65884, 32.73383],
[-114.677091, 32.736218],
[-114.678632, 32.736614],
[-114.719633, 32.718763],
[-115.465164, 32.6671],
[-115.875842, 32.636424],
[-116.106159, 32.618328],
[-116.390091, 32.59602],
[-117.118865, 32.534661],
[-117.124862, 32.534156],
[-117.133363, 32.575625],
[-117.132963, 32.597054],
[-117.136664, 32.618754],
[-117.139464, 32.627054],
[-117.159865, 32.660652],
[-117.168866, 32.671952],
[-117.180366, 32.681652],
[-117.192967, 32.687751],
[-117.196767, 32.688851],
[-117.213068, 32.687751],
[-117.223868, 32.683051],
[-117.236239, 32.671353],
[-117.246069, 32.669352],
[-117.255169, 32.700051],
[-117.25757, 32.72605],
[-117.25537, 32.745449],
[-117.25257, 32.752949],
[-117.25497, 32.786948],
[-117.26107, 32.803148],
[-117.280971, 32.822247],
[-117.28217, 32.839547],
[-117.28117, 32.843047],
[-117.27387, 32.851447],
[-117.26497, 32.848947],
[-117.26067, 32.852647],
[-117.25617, 32.859447],
[-117.25167, 32.874346],
[-117.25447, 32.900146],
[-117.26047, 32.931245],
[-117.262547, 32.939542],
[-117.28077, 33.012343],
[-117.29337, 33.034642],
[-117.309771, 33.07454],
[-117.315278, 33.093504],
[-117.328359, 33.121842],
[-117.359484, 33.164231],
[-117.362572, 33.168437],
[-117.39148, 33.202762],
[-117.401926, 33.213598],
[-117.445583, 33.268517],
[-117.469794, 33.296417],
[-117.50565, 33.334063],
[-117.547693, 33.365491],
[-117.571722, 33.378988],
[-117.59588, 33.386629],
[-117.607905, 33.406317],
[-117.631682, 33.430528],
[-117.645582, 33.440728],
[-117.645592, 33.440733],
[-117.684584, 33.461927],
[-117.689284, 33.460155],
[-117.691984, 33.456627],
[-117.691384, 33.454028],
[-117.715349, 33.460556],
[-117.726486, 33.483427],
[-117.761387, 33.516326],
[-117.784888, 33.541525],
[-117.801288, 33.546324],
[-117.814188, 33.552224],
[-117.840289, 33.573523],
[-117.87679, 33.592322],
[-117.89979, 33.599622],
[-117.927091, 33.605521],
[-117.940591, 33.620021],
[-117.957114, 33.629466],
[-118.000593, 33.654319],
[-118.029694, 33.676418],
[-118.064895, 33.711018],
[-118.088896, 33.729817],
[-118.101097, 33.734117],
[-118.116703, 33.743549],
[-118.132698, 33.753217],
[-118.1569, 33.760317],
[-118.1755, 33.763617],
[-118.180831, 33.763072],
[-118.187701, 33.749218],
[-118.1837, 33.736118],
[-118.181367, 33.717367],
[-118.207476, 33.716905],
[-118.258687, 33.703741],
[-118.277208, 33.707091],
[-118.297104, 33.708319],
[-118.317205, 33.712818],
[-118.354705, 33.732317],
[-118.360505, 33.736817],
[-118.385006, 33.741417],
[-118.396606, 33.735917],
[-118.411211, 33.741985],
[-118.428407, 33.774715],
[-118.423407, 33.782015],
[-118.405007, 33.800215],
[-118.394376, 33.804289],
[-118.394307, 33.804315],
[-118.391507, 33.815415],
[-118.392107, 33.840915],
[-118.412708, 33.883913],
[-118.44241, 33.940312],
[-118.460611, 33.969111],
[-118.482729, 33.995912],
[-118.484212, 33.99771],
[-118.502813, 34.015509],
[-118.519514, 34.027509],
[-118.543115, 34.038508],
[-118.569235, 34.04164],
[-118.603572, 34.039048],
[-118.609652, 34.036424],
[-118.668358, 34.038887],
[-118.67543, 34.037479],
[-118.679366, 34.033255],
[-118.706215, 34.029383],
[-118.732391, 34.032743],
[-118.744952, 34.032103],
[-118.783433, 34.021543],
[-118.787094, 34.019545],
[-118.805114, 34.001239],
[-118.821579, 34.013959],
[-118.84038, 34.027527],
[-118.854653, 34.034215],
[-118.896159, 34.039207],
[-118.928048, 34.045847],
[-118.938081, 34.043383],
[-118.944887, 34.04534],
[-118.954722, 34.048167],
[-118.977751, 34.059822],
[-118.99698, 34.065943],
[-119.004644, 34.066231],
[-119.037494, 34.083111],
[-119.069959, 34.09047],
[-119.088536, 34.09831],
[-119.098216, 34.099334],
[-119.109784, 34.094566],
[-119.130169, 34.100102],
[-119.159554, 34.119653],
[-119.18864, 34.139005],
[-119.20314, 34.144505],
[-119.211241, 34.144905],
[-119.216441, 34.146105],
[-119.227743, 34.161728],
[-119.237142, 34.175804],
[-119.257043, 34.213304],
[-119.265927, 34.234609],
[-119.270144, 34.252903],
[-119.278644, 34.266902],
[-119.290945, 34.274902],
[-119.302131, 34.272761],
[-119.313034, 34.275689],
[-119.337475, 34.290576],
[-119.349187, 34.304383],
[-119.370356, 34.319486],
[-119.37578, 34.321118],
[-119.388249, 34.317398],
[-119.390449, 34.318198],
[-119.42777, 34.353016],
[-119.431066, 34.355297],
[-119.435888, 34.355839],
[-119.461036, 34.374064],
[-119.472678, 34.375628],
[-119.478265, 34.377197],
[-119.510655, 34.386295],
[-119.536957, 34.395495],
[-119.559459, 34.413395],
[-119.616862, 34.420995],
[-119.638864, 34.415696],
[-119.648664, 34.417396],
[-119.671866, 34.416096],
[-119.688167, 34.412497],
[-119.684666, 34.408297],
[-119.691749, 34.403154],
[-119.709067, 34.395397],
[-119.729369, 34.395897],
[-119.74547, 34.402898],
[-119.785871, 34.415997],
[-119.794771, 34.417597],
[-119.835771, 34.415796],
[-119.853771, 34.407996],
[-119.873971, 34.408795],
[-119.925227, 34.433931],
[-119.956433, 34.435288],
[-119.971951, 34.444641],
[-120.008077, 34.460447],
[-120.038828, 34.463434],
[-120.050682, 34.461651],
[-120.088591, 34.460208],
[-120.097212, 34.461809],
[-120.118411, 34.469927],
[-120.141165, 34.473405],
[-120.183505, 34.470372],
[-120.225498, 34.470587],
[-120.238002, 34.468098],
[-120.25777, 34.467451],
[-120.283001, 34.468354],
[-120.295051, 34.470623],
[-120.299169, 34.469731],
[-120.301822, 34.467077],
[-120.341369, 34.458789],
[-120.441975, 34.451512],
[-120.451425, 34.447094],
[-120.471376, 34.447846],
[-120.47661, 34.475131],
[-120.480372, 34.481059],
[-120.490523, 34.490075],
[-120.511421, 34.522953],
[-120.524776, 34.531291],
[-120.581293, 34.556959],
[-120.608355, 34.556656],
[-120.612005, 34.553564],
[-120.622575, 34.554017],
[-120.637805, 34.56622],
[-120.645739, 34.581035],
[-120.640244, 34.604406],
[-120.625127, 34.634489],
[-120.60197, 34.692095],
[-120.60045, 34.70464],
[-120.601672, 34.709721],
[-120.614852, 34.730709],
[-120.62632, 34.738072],
[-120.637415, 34.755895],
[-120.62297, 34.7933],
[-120.616296, 34.816308],
[-120.609898, 34.842751],
[-120.610266, 34.85818],
[-120.616325, 34.866739],
[-120.639283, 34.880413],
[-120.642212, 34.894145],
[-120.647328, 34.901133],
[-120.662889, 34.901183],
[-120.670835, 34.904115],
[-120.648905, 34.974393],
[-120.63999, 35.002963],
[-120.63357, 35.033085],
[-120.629931, 35.061515],
[-120.629583, 35.078362],
[-120.630957, 35.101941],
[-120.635787, 35.123805],
[-120.644311, 35.139616],
[-120.651134, 35.147768],
[-120.662475, 35.153357],
[-120.667994, 35.15203],
[-120.675074, 35.153061],
[-120.686974, 35.160708],
[-120.698906, 35.171192],
[-120.704203, 35.173206],
[-120.714185, 35.175998],
[-120.734231, 35.178472],
[-120.74887, 35.177795],
[-120.754823, 35.174701],
[-120.756862, 35.169208],
[-120.756086, 35.160459],
[-120.760492, 35.15971],
[-120.778998, 35.168897],
[-120.786076, 35.177666],
[-120.805258, 35.184973],
[-120.846674, 35.204429],
[-120.856047, 35.206487],
[-120.873046, 35.225688],
[-120.89679, 35.247877],
[-120.896876, 35.25399],
[-120.889354, 35.277819],
[-120.87957, 35.294184],
[-120.8672, 35.327154],
[-120.862684, 35.346776],
[-120.862133, 35.360763],
[-120.866099, 35.393045],
[-120.869209, 35.403276],
[-120.884757, 35.430196],
[-120.896862, 35.442243],
[-120.907937, 35.449069],
[-120.946546, 35.446715],
[-120.950742, 35.44802],
[-120.955863, 35.453743],
[-120.969436, 35.460197],
[-120.976122, 35.459028],
[-121.003359, 35.46071],
[-121.025621, 35.484598],
[-121.05308, 35.50753],
[-121.059913, 35.509671],
[-121.101595, 35.548814],
[-121.126027, 35.593058],
[-121.133556, 35.600455],
[-121.143561, 35.606046],
[-121.166712, 35.635399],
[-121.188897, 35.643138],
[-121.195291, 35.640734],
[-121.251034, 35.656641],
[-121.272322, 35.666711],
[-121.284973, 35.674109],
[-121.289794, 35.689428],
[-121.296473, 35.696824],
[-121.304583, 35.701794],
[-121.314632, 35.71331],
[-121.315786, 35.75252],
[-121.324918, 35.769347],
[-121.332449, 35.783106],
[-121.346363, 35.795183],
[-121.356737, 35.804187],
[-121.388053, 35.823483],
[-121.406823, 35.844623],
[-121.413146, 35.855316],
[-121.426955, 35.860103],
[-121.439584, 35.86695],
[-121.462264, 35.885618],
[-121.461227, 35.896906],
[-121.463452, 35.904416],
[-121.472435, 35.91989],
[-121.4862, 35.970348],
[-121.503112, 36.000299],
[-121.51159, 36.006598],
[-121.531876, 36.014368],
[-121.553716, 36.019798],
[-121.569612, 36.021539],
[-121.574602, 36.025156],
[-121.590395, 36.050363],
[-121.589183, 36.053775],
[-121.592853, 36.065062],
[-121.606845, 36.072065],
[-121.618672, 36.087767],
[-121.622009, 36.099695],
[-121.629634, 36.114452],
[-121.680145, 36.165818],
[-121.717176, 36.195146],
[-121.779851, 36.227407],
[-121.797059, 36.234211],
[-121.806979, 36.232907],
[-121.813734, 36.234235],
[-121.826425, 36.24186],
[-121.835785, 36.250748],
[-121.83935, 36.260478],
[-121.851967, 36.277831],
[-121.874797, 36.289064],
[-121.888491, 36.30281],
[-121.894714, 36.317806],
[-121.892917, 36.340428],
[-121.905446, 36.358269],
[-121.902669, 36.363901],
[-121.901813, 36.381879],
[-121.903195, 36.393603],
[-121.905657, 36.398206],
[-121.914378, 36.404344],
[-121.917463, 36.414809],
[-121.91474, 36.42589],
[-121.9255, 36.453918],
[-121.937205, 36.472488],
[-121.9416, 36.485602],
[-121.939216, 36.496896],
[-121.938763, 36.506423],
[-121.943678, 36.511802],
[-121.944666, 36.521861],
[-121.928769, 36.523147],
[-121.925937, 36.525173],
[-121.932508, 36.559935],
[-121.942533, 36.566435],
[-121.949659, 36.567602],
[-121.95146, 36.564009],
[-121.957335, 36.564482],
[-121.972594, 36.57337],
[-121.978592, 36.580488],
[-121.970427, 36.582754],
[-121.941666, 36.618059],
[-121.938551, 36.633908],
[-121.93643, 36.636746],
[-121.929666, 36.636959],
[-121.923866, 36.634559],
[-121.890164, 36.609259],
[-121.889064, 36.601759],
[-121.886764, 36.601459],
[-121.871364, 36.604559],
[-121.860604, 36.611136],
[-121.842263, 36.630059],
[-121.831995, 36.644856],
[-121.825052, 36.657207],
[-121.814462, 36.682858],
[-121.807062, 36.714157],
[-121.805643, 36.750239],
[-121.788278, 36.803994],
[-121.791544, 36.815186],
[-121.809363, 36.848654],
[-121.810552, 36.850648],
[-121.827664, 36.879353],
[-121.862266, 36.931552],
[-121.880167, 36.950151],
[-121.894667, 36.961851],
[-121.906468, 36.96895],
[-121.930069, 36.97815],
[-121.93947, 36.97805],
[-121.95167, 36.97145],
[-121.972771, 36.954151],
[-121.975871, 36.954051],
[-121.983896, 36.958727],
[-122.012373, 36.96455],
[-122.023373, 36.96215],
[-122.027174, 36.95115],
[-122.050122, 36.948523],
[-122.066421, 36.948271],
[-122.079356, 36.950783],
[-122.105976, 36.955951],
[-122.140578, 36.97495],
[-122.155078, 36.98085],
[-122.186879, 37.00345],
[-122.20618, 37.013949],
[-122.252181, 37.059448],
[-122.260481, 37.072548],
[-122.284882, 37.101747],
[-122.292974, 37.107318],
[-122.306139, 37.116383],
[-122.313907, 37.118161],
[-122.322971, 37.11546],
[-122.330463, 37.115338],
[-122.337071, 37.117382],
[-122.338856, 37.120854],
[-122.337085, 37.130795],
[-122.337833, 37.135936],
[-122.344029, 37.144099],
[-122.359791, 37.155574],
[-122.36179, 37.163593],
[-122.367085, 37.172817],
[-122.37927, 37.181128],
[-122.390599, 37.182988],
[-122.397065, 37.187249],
[-122.405073, 37.195791],
[-122.407181, 37.219465],
[-122.408982, 37.225258],
[-122.415822, 37.232839],
[-122.419113, 37.24147],
[-122.418452, 37.248521],
[-122.411686, 37.265844],
[-122.401323, 37.337009],
[-122.40085, 37.359225],
[-122.409258, 37.374805],
[-122.423286, 37.392542],
[-122.443687, 37.435941],
[-122.445987, 37.461541],
[-122.452087, 37.48054],
[-122.467888, 37.49814],
[-122.472388, 37.50054],
[-122.476443, 37.498768],
[-122.482351, 37.496187],
[-122.485888, 37.494641],
[-122.486749, 37.49439],
[-122.487139, 37.494277],
[-122.493789, 37.492341],
[-122.494429, 37.49269],
[-122.499289, 37.495341],
[-122.516689, 37.52134],
[-122.519533, 37.537302],
[-122.516589, 37.544939],
[-122.514789, 37.546139],
[-122.513688, 37.552239],
[-122.518088, 37.576138],
[-122.517187, 37.590637],
[-122.501386, 37.599637],
[-122.496786, 37.612136],
[-122.494085, 37.644035],
[-122.496784, 37.686433],
[-122.502427, 37.708133],
[-122.506483, 37.723731],
[-122.509397, 37.748841],
[-122.511983, 37.77113],
[-122.514483, 37.780829],
[-122.50531, 37.788312],
[-122.492883, 37.787929],
[-122.485783, 37.790629],
[-122.478083, 37.810828],
[-122.470336, 37.808671],
[-122.463793, 37.804653],
[-122.425942, 37.810979],
[-122.407452, 37.811441],
[-122.398139, 37.80563],
[-122.385323, 37.790724],
[-122.375854, 37.734979],
[-122.370094, 37.732331],
[-122.367697, 37.734943],
[-122.365478, 37.734621],
[-122.356784, 37.729505],
[-122.361749, 37.71501],
[-122.370411, 37.717572],
[-122.391374, 37.708331],
[-122.39319, 37.707531],
[-122.387626, 37.67906],
[-122.374291, 37.662206],
[-122.3756, 37.652389],
[-122.37789, 37.650425],
[-122.387381, 37.648462],
[-122.386072, 37.637662],
[-122.365455, 37.626208],
[-122.35531, 37.615736],
[-122.358583, 37.611155],
[-122.370364, 37.614427],
[-122.373309, 37.613773],
[-122.378545, 37.605592],
[-122.360219, 37.592501],
[-122.317676, 37.590865],
[-122.315385, 37.587265],
[-122.315713, 37.583666],
[-122.305895, 37.575484],
[-122.262698, 37.572866],
[-122.251898, 37.566321],
[-122.244372, 37.55814],
[-122.242832, 37.557136],
[-122.236323, 37.552891],
[-122.225135, 37.545594],
[-122.214264, 37.538505],
[-122.196593, 37.537196],
[-122.194957, 37.522469],
[-122.168449, 37.504143],
[-122.155686, 37.501198],
[-122.149632, 37.502671],
[-122.140142, 37.507907],
[-122.130979, 37.503652],
[-122.127706, 37.500053],
[-122.116112, 37.505386],
[-122.111344, 37.50758],
[-122.111998, 37.528851],
[-122.128688, 37.560594],
[-122.133924, 37.562885],
[-122.137524, 37.567467],
[-122.144396, 37.581866],
[-122.147014, 37.588411],
[-122.145378, 37.600846],
[-122.14636, 37.607391],
[-122.152905, 37.640771],
[-122.163049, 37.667933],
[-122.170904, 37.676114],
[-122.179085, 37.680041],
[-122.197411, 37.692804],
[-122.203971, 37.697769],
[-122.213774, 37.698695],
[-122.221628, 37.705567],
[-122.246826, 37.72193],
[-122.255989, 37.735674],
[-122.257953, 37.739601],
[-122.257134, 37.745001],
[-122.252226, 37.747619],
[-122.244938, 37.750294],
[-122.242638, 37.753744],
[-122.253753, 37.761218],
[-122.264101, 37.764667],
[-122.275408, 37.76735],
[-122.286139, 37.769458],
[-122.293996, 37.770416],
[-122.304345, 37.774632],
[-122.318909, 37.77904],
[-122.329159, 37.783173],
[-122.33079, 37.78383],
[-122.330963, 37.786035],
[-122.331748, 37.796052],
[-122.33555, 37.799538],
[-122.335675, 37.799652],
[-122.333711, 37.809797],
[-122.323567, 37.823214],
[-122.317676, 37.826814],
[-122.306222, 37.827469],
[-122.303931, 37.830087],
[-122.301313, 37.847758],
[-122.310477, 37.873938],
[-122.309986, 37.892755],
[-122.313258, 37.89701],
[-122.313496, 37.897211],
[-122.32373, 37.905845],
[-122.33453, 37.908791],
[-122.35711, 37.908791],
[-122.362346, 37.904209],
[-122.367582, 37.903882],
[-122.378709, 37.905191],
[-122.385908, 37.908136],
[-122.389181, 37.9101],
[-122.39049, 37.922535],
[-122.395071, 37.927117],
[-122.401289, 37.928426],
[-122.413725, 37.937262],
[-122.417371, 37.943513],
[-122.430087, 37.963115],
[-122.42976, 37.965405],
[-122.415361, 37.963115],
[-122.411761, 37.960497],
[-122.408383, 37.957544],
[-122.399832, 37.956009],
[-122.367582, 37.978168],
[-122.361905, 37.989991],
[-122.363001, 37.994375],
[-122.366928, 37.998458],
[-122.368891, 38.007948],
[-122.367909, 38.01253],
[-122.363655, 38.014166],
[-122.359493, 38.009941],
[-122.340093, 38.003694],
[-122.331912, 38.00533],
[-122.321112, 38.012857],
[-122.315549, 38.013511],
[-122.300823, 38.010893],
[-122.283478, 38.022674],
[-122.262861, 38.0446],
[-122.262861, 38.051473],
[-122.266669, 38.06007],
[-122.273006, 38.07438],
[-122.282824, 38.082889],
[-122.301804, 38.105142],
[-122.314567, 38.115287],
[-122.366273, 38.141467],
[-122.39638, 38.149976],
[-122.403514, 38.150624],
[-122.40358, 38.15063],
[-122.409798, 38.136231],
[-122.439577, 38.116923],
[-122.450377, 38.116269],
[-122.454958, 38.118887],
[-122.484411, 38.11496],
[-122.489974, 38.112014],
[-122.490727, 38.109755],
[-122.491283, 38.108087],
[-122.489974, 38.096961],
[-122.486702, 38.090088],
[-122.483757, 38.071762],
[-122.492265, 38.056381],
[-122.499465, 38.032165],
[-122.497828, 38.019402],
[-122.494556, 38.015148],
[-122.481466, 38.007621],
[-122.462812, 38.003367],
[-122.452995, 37.996167],
[-122.448413, 37.988313],
[-122.448413, 37.984713],
[-122.456595, 37.978823],
[-122.462485, 37.981441],
[-122.471975, 37.981768],
[-122.488665, 37.966714],
[-122.490302, 37.964751],
[-122.490302, 37.959188],
[-122.487684, 37.948716],
[-122.480484, 37.945443],
[-122.479175, 37.941516],
[-122.48572, 37.937589],
[-122.499465, 37.939225],
[-122.503064, 37.936607],
[-122.503064, 37.928753],
[-122.493574, 37.921881],
[-122.486375, 37.921881],
[-122.478193, 37.918608],
[-122.471975, 37.910427],
[-122.472303, 37.902573],
[-122.458558, 37.894064],
[-122.448413, 37.89341],
[-122.43925, 37.88392],
[-122.438268, 37.880974],
[-122.45005, 37.871157],
[-122.462158, 37.868866],
[-122.474266, 37.874429],
[-122.480811, 37.873448],
[-122.483429, 37.868866],
[-122.483102, 37.863957],
[-122.476536, 37.832812],
[-122.476473, 37.832513],
[-122.479151, 37.825428],
[-122.47986, 37.825641],
[-122.483483, 37.826728],
[-122.492474, 37.82484],
[-122.505383, 37.822128],
[-122.522836, 37.824717],
[-122.523585, 37.824828],
[-122.537285, 37.830328],
[-122.548986, 37.836227],
[-122.561487, 37.851827],
[-122.584289, 37.859227],
[-122.60129, 37.875126],
[-122.627113, 37.88608],
[-122.639977, 37.897349],
[-122.656519, 37.904519],
[-122.678474, 37.906604],
[-122.682171, 37.90645],
[-122.693569, 37.901171],
[-122.70264, 37.89382],
[-122.727297, 37.904626],
[-122.732898, 37.920225],
[-122.736898, 37.925825],
[-122.754606, 37.935527],
[-122.766138, 37.938004],
[-122.783244, 37.951334],
[-122.791739, 37.969422],
[-122.797405, 37.976657],
[-122.821383, 37.996735],
[-122.856573, 38.016717],
[-122.882114, 38.025273],
[-122.939711, 38.031908],
[-122.956811, 38.02872],
[-122.972378, 38.020247],
[-122.981776, 38.009119],
[-122.982386, 38.004274],
[-122.980147, 38.000831],
[-122.976764, 37.99568],
[-122.97439, 37.992429],
[-123.024066, 37.994878],
[-123.020562, 37.999544],
[-123.016303, 38.001691],
[-123.011533, 38.003438],
[-122.99242, 38.041758],
[-122.960889, 38.112962],
[-122.952086, 38.138562],
[-122.949074, 38.15406],
[-122.949626, 38.164041],
[-122.953629, 38.17567],
[-122.965408, 38.187113],
[-122.96637, 38.198514],
[-122.968112, 38.202428],
[-122.991953, 38.233185],
[-122.993959, 38.237602],
[-122.993235, 38.239686],
[-122.987149, 38.237538],
[-122.968569, 38.242879],
[-122.967203, 38.250691],
[-122.977082, 38.267902],
[-122.986319, 38.273164],
[-122.994603, 38.283096],
[-122.997106, 38.289458],
[-123.002911, 38.295708],
[-123.004122, 38.297012],
[-123.024333, 38.310573],
[-123.038742, 38.313576],
[-123.051061, 38.310693],
[-123.053476, 38.305722],
[-123.052021, 38.302246],
[-123.053504, 38.299385],
[-123.058239, 38.298355],
[-123.063671, 38.302178],
[-123.074684, 38.322574],
[-123.068437, 38.33521],
[-123.068265, 38.359865],
[-123.085572, 38.390525],
[-123.103706, 38.415541],
[-123.122379, 38.437314],
[-123.128825, 38.450418],
[-123.145325, 38.459422],
[-123.166428, 38.474947],
[-123.202277, 38.494314],
[-123.249797, 38.511045],
[-123.287156, 38.540223],
[-123.297151, 38.543452],
[-123.331899, 38.565542],
[-123.343338, 38.590008],
[-123.349612, 38.596805],
[-123.371876, 38.607235],
[-123.379303, 38.621953],
[-123.398166, 38.647044],
[-123.40301, 38.649449],
[-123.405663, 38.656729],
[-123.43272, 38.687131],
[-123.441774, 38.699744],
[-123.461291, 38.717001],
[-123.490021, 38.732213],
[-123.514784, 38.741966],
[-123.525152, 38.753801],
[-123.533535, 38.768408],
[-123.541837, 38.776764],
[-123.571987, 38.798189],
[-123.579856, 38.802835],
...]]],
'type': 'MultiPolygon'}}
A) Look at the properties
for the geojson. What is the population of California?
B) Convert the geometry to a shapely object
C) What is the center of the state of California?
Google suggestion: “shapely center of polygon” or here
D) What is the area of California? What is the unit of the output?
Question 4#
The area in degrees isn’t super useful. It would be much nicer to get the area in square meters or kilometers, but to do that we would need a coordinate system that uses meters or kilometers. To get there we will need to project or convert our crs from our geographic CRS to a projected one.
A) We define CRSs with a library called pyproj
like so:
start_proj = 'epsg:4326'
Define an output projection with a UTM grid that covers an area you want to look at.
end_proj = 'epsg:32611'
B) We then define a transformation object. Notice it gives you a nice description of the applicable bounds.
from pyproj import Transformer
Transformer.from_crs(start_proj, end_proj, always_xy=True)
<Concatenated Operation Transformer: pipeline>
Description: axis order change (2D) + UTM zone 11N
Area of Use:
- name: World
- bounds: (-180.0, -90.0, 180.0, 90.0)
# assign it to a variable
t = Transformer.from_crs(start_proj, end_proj, always_xy=True).transform
Pick a point (in crs epsg:4326) within the area of the UTM grid that you chose. Create a shapely object out of that point, then convert it to UTM by running:
transform(TRANSFORMER, SHAPELY_POINT)
where TRANSFORMER
is the varible t
defined in the previous cell and SHAPELY_POINT
is your point.
What is the value of your coordinates in UTM?
from shapely.ops import transform
from shapely.geometry import Point
point = Point(-119, 25)
from shapely.geometry import Point
list(transform(t, point).coords)
[(298154.04648156743, 2766436.9838963742)]
D) Use the same syntax as part C to transform the entire california polygon from epsg:4326 to utm coordinates. Print out the coordinates of the centroid to confirm that the output object is using UTM coordinates. What is the unit of this coordinate?
transform(t, ca_geom)
utm_ca_geom = transform(t, ca_geom)
list(utm_ca_geom.centroid.coords)
[(280133.3928214021, 4119105.0419881507)]
E) What is the area of California in square km? Look up the actual area of California is sq km to make sure you are (approximately) correct.
utm_ca_geom.area / 1000000 # divide by 1000000 to convert from sq meters to sq km
410522.72578375007