Test implementation of geo interface
====================================

  >>> from shapely.geometry import asShape

  >>> d = {"type": "Point", "coordinates": (0.0, 0.0)}
  >>> shape = asShape(d)
  >>> shape.geom_type
  'Point'
  >>> tuple(shape.coords)
  ((0.0, 0.0),)


Test implementation of geo interface
====================================

  >>> from shapely.geometry import asShape

  Adapt a dictionary

  >>> d = {"type": "Point", "coordinates": (0.0, 0.0)}
  >>> shape = asShape(d)
  >>> shape.geom_type
  'Point'
  >>> tuple(shape.coords)
  ((0.0, 0.0),)

  Adapt an object that implements the geo protocol

  >>> class GeoThing(object):
  ...     def __init__(self, d):
  ...         self.__geo_interface__ = d

  >>> shape = None
  >>> thing = GeoThing({"type": "Point", "coordinates": (0.0, 0.0)})
  >>> shape = asShape(thing)
  >>> shape.geom_type
  'Point'
  >>> tuple(shape.coords)
  ((0.0, 0.0),)


Test for objects that implement the geo interface
Test for objects that implement the geo interface

git-svn-id: 30e8e193f18ae0331cc1220771e45549f871ece9@773 b426a367-1105-0410-b9ff-cdf4ab011145
