def map_coords(func, obj):
def tuple_func(coord):<EOL><INDENT>return (func(coord[<NUM_LIT:0>]), func(coord[<NUM_LIT:1>]))<EOL><DEDENT>return map_tuples(tuple_func, obj)<EOL>
Returns the mapped coordinates from a Geometry after applying the provided
function to each dimension in tuples list (ie, linear scaling).

:param func: Function to apply to individual coordinate values
independently
:type func: function
:param obj: A geometry or feature to extract the coordinates from.
:type obj: Point, LineString, MultiPoint, MultiLineString, Polygon,
MultiPolygon
:return: The result of applying the function to each dimension in the
array.
:rtype: list
:raises ValueError: if the provided object is not GeoJSON.