libpysal.cg.asShape¶
- libpysal.cg.asShape(obj)[source]¶
Returns a PySAL shape object from
obj
, which must support the__geo_interface__
.- Parameters:
- Returns:
- Raises:
TypeError
Raised when
obj
is not a supported shape.NotImplementedError
Raised when
geo_type
is not a supported type.