Question: Time left Based on the following code, which statement is correct? fron shapely-geometry import Point, LineString, Polygon det getLength(obj): if obj.geon_type=='LineString: return obj.length elif obj.geon_type=='Polygon:

Time left Based on the following code, which statement is correct? fron shapely-geometry import Point, LineString, Polygon det getLength(obj): if obj.geon_type=='LineString": return obj.length elif obj.geon_type=='Polygon": return obj.exterior.length else: print("Error: LineString or Polygon geometries required!") 11=LineString ([(,e),(0,1))) p=Polygon ([(0,0),(0,1),(1,0))) print(getlength(11)) print(getLength(p)) print(getLength(Point(2, 2))) Select one: O a. getLength(obj) is a function that takes either a Shapely's LineString or Polygon -object as input. The Function checks the type of the input and returns the length of the line if input is LineString and length of the exterior ring if input is Polygon. If something else is passed to the function, it tells the user "Error: LineString or Polygon geometries are required!!!". b. getlength(obj) is a function that takes either a Shape's LineString or Polygon -object as input. The Function checks the type of the input and returns the length of the line if input is LineString and length of the exterior ring if input is Polygon. If something else is passed to the function, it tells the user "Error: LineString or Polygon geometries required!". OC getLength(obj) is a function that takes either a Shapely's Polyline or Polygon-object as input. The Function checks the type of the input and returns the length of the line if input is LineString and length of the exterior ring if input is Polygon. If something else is passed to the function it tells the user "Error LineString or Polygon geometries required
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
