read_shape

read_shape(spec)[source]

Parse shape from WKT, or bounds, or .wkt or .wkb file.

Parameters

spec (str) – a string specifying either ‘minx,miny,maxx,maxy’, or a WKT text, or a filename pointing to a .wkt or .wkb file.

Return type

Polygon