app/django/contrib/gis/geos/prototypes/__init__.py
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     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 
       
     7 # Coordinate sequence routines.
       
     8 from django.contrib.gis.geos.prototypes.coordseq import create_cs, get_cs, \
       
     9     cs_clone, cs_getordinate, cs_setordinate, cs_getx, cs_gety, cs_getz, \
       
    10     cs_setx, cs_sety, cs_setz, cs_getsize, cs_getdims
       
    11 
       
    12 # Geometry routines.
       
    13 from django.contrib.gis.geos.prototypes.geom import from_hex, from_wkb, from_wkt, \
       
    14     create_point, create_linestring, create_linearring, create_polygon, create_collection, \
       
    15     destroy_geom, get_extring, get_intring, get_nrings, get_geomn, geom_clone, \
       
    16     geos_normalize, geos_type, geos_typeid, geos_get_srid, geos_set_srid, \
       
    17     get_dims, get_num_coords, get_num_geoms, \
       
    18     to_hex, to_wkb, to_wkt
       
    19 
       
    20 # Miscellaneous routines.
       
    21 from django.contrib.gis.geos.prototypes.misc import geos_area, geos_distance, geos_length
       
    22 
       
    23 # Predicates
       
    24 from django.contrib.gis.geos.prototypes.predicates import geos_hasz, geos_isempty, \
       
    25     geos_isring, geos_issimple, geos_isvalid, geos_contains, geos_crosses, \
       
    26     geos_disjoint, geos_equals, geos_equalsexact, geos_intersects, \
       
    27     geos_intersects, geos_overlaps, geos_relatepattern, geos_touches, geos_within
       
    28 
       
    29 # Topology routines
       
    30 from django.contrib.gis.geos.prototypes.topology import \
       
    31     geos_boundary, geos_buffer, geos_centroid, geos_convexhull, geos_difference, \
       
    32     geos_envelope, geos_intersection, geos_pointonsurface, geos_preservesimplify, \
       
    33     geos_simplify, geos_symdifference, geos_union, geos_relate