PageRenderTime 3ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
Python | 30 lines | 15 code | 5 blank | 10 comment | 0 complexity | aa84c6b5ab3fa7490ccaa72fc79b1917 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. """
  2. This module contains all of the GEOS ctypes function prototypes. Each
  3. prototype handles the interaction between the GEOS library and Python
  4. via ctypes.
  5. """
  6. # Coordinate sequence routines.
  7. from django.contrib.gis.geos.prototypes.coordseq import create_cs, get_cs, \
  8. cs_clone, cs_getordinate, cs_setordinate, cs_getx, cs_gety, cs_getz, \
  9. cs_setx, cs_sety, cs_setz, cs_getsize, cs_getdims
  10. # Geometry routines.
  11. from django.contrib.gis.geos.prototypes.geom import from_hex, from_wkb, from_wkt, \
  12. create_point, create_linestring, create_linearring, create_polygon, create_collection, \
  13. destroy_geom, get_extring, get_intring, get_nrings, get_geomn, geom_clone, \
  14. geos_normalize, geos_type, geos_typeid, geos_get_srid, geos_set_srid, \
  15. get_dims, get_num_coords, get_num_geoms, \
  16. to_hex, to_wkb, to_wkt
  17. # Miscellaneous routines.
  18. from django.contrib.gis.geos.prototypes.misc import *
  19. # Predicates
  20. from django.contrib.gis.geos.prototypes.predicates import geos_hasz, geos_isempty, \
  21. geos_isring, geos_issimple, geos_isvalid, geos_contains, geos_crosses, \
  22. geos_disjoint, geos_equals, geos_equalsexact, geos_intersects, \
  23. geos_intersects, geos_overlaps, geos_relatepattern, geos_touches, geos_within
  24. # Topology routines
  25. from django.contrib.gis.geos.prototypes.topology import *