django1/django/contrib/gis/geos/__init__.py

21 lines
771 B
Python
Raw Normal View History

"""
The GeoDjango GEOS module. Please consult the GeoDjango documentation
for more details: https://docs.djangoproject.com/en/dev/ref/contrib/gis/geos/
"""
2015-06-16 02:07:31 +08:00
from .collections import ( # NOQA
GeometryCollection, MultiLineString, MultiPoint, MultiPolygon,
)
from .error import GEOSException # NOQA
from .factory import fromfile, fromstr # NOQA
2015-06-16 02:07:31 +08:00
from .geometry import GEOSGeometry, hex_regex, wkt_regex # NOQA
from .io import WKBReader, WKBWriter, WKTReader, WKTWriter # NOQA
from .libgeos import geos_version, geos_version_info # NOQA
2015-06-16 02:07:31 +08:00
from .linestring import LinearRing, LineString # NOQA
from .point import Point # NOQA
from .polygon import Polygon # NOQA
try:
HAS_GEOS = geos_version_info()['version'] >= '3.3.0'
except ImportError:
HAS_GEOS = False