__init__.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. """Manipulation and analysis of geometric objects in the Cartesian plane."""
  2. # start delvewheel patch
  3. def _delvewheel_patch_1_11_1():
  4. import os
  5. if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'shapely.libs'))):
  6. os.add_dll_directory(libs_dir)
  7. _delvewheel_patch_1_11_1()
  8. del _delvewheel_patch_1_11_1
  9. # end delvewheel patch
  10. from shapely.lib import GEOSException
  11. from shapely.lib import Geometry
  12. from shapely.lib import geos_version, geos_version_string
  13. from shapely.lib import geos_capi_version, geos_capi_version_string
  14. from shapely.errors import setup_signal_checks
  15. from shapely._geometry import *
  16. from shapely.creation import *
  17. from shapely.constructive import *
  18. from shapely.predicates import *
  19. from shapely.measurement import *
  20. from shapely.set_operations import *
  21. from shapely.linear import *
  22. from shapely.coordinates import *
  23. from shapely.strtree import *
  24. from shapely.io import *
  25. from shapely._coverage import *
  26. # Submodule always needs to be imported to ensure Geometry subclasses are registered
  27. from shapely.geometry import (
  28. Point,
  29. LineString,
  30. Polygon,
  31. MultiPoint,
  32. MultiLineString,
  33. MultiPolygon,
  34. GeometryCollection,
  35. LinearRing,
  36. )
  37. from shapely import _version
  38. __version__ = _version.get_versions()["version"]
  39. setup_signal_checks()