mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed unused prototypes for deprecated GEOS functions.
This commit is contained in:
parent
b94d99af5b
commit
2d18c60fbb
@ -10,11 +10,10 @@ from django.contrib.gis.geos.prototypes.coordseq import ( # NOQA
|
|||||||
)
|
)
|
||||||
from django.contrib.gis.geos.prototypes.geom import ( # NOQA
|
from django.contrib.gis.geos.prototypes.geom import ( # NOQA
|
||||||
create_collection, create_empty_polygon, create_linearring,
|
create_collection, create_empty_polygon, create_linearring,
|
||||||
create_linestring, create_point, create_polygon, destroy_geom, from_hex,
|
create_linestring, create_point, create_polygon, destroy_geom, geom_clone,
|
||||||
from_wkb, from_wkt, geom_clone, geos_get_srid, geos_normalize,
|
geos_get_srid, geos_normalize, geos_set_srid, geos_type, geos_typeid,
|
||||||
geos_set_srid, geos_type, geos_typeid, get_dims, get_extring, get_geomn,
|
get_dims, get_extring, get_geomn, get_intring, get_nrings, get_num_coords,
|
||||||
get_intring, get_nrings, get_num_coords, get_num_geoms, to_hex, to_wkb,
|
get_num_geoms,
|
||||||
to_wkt,
|
|
||||||
)
|
)
|
||||||
from django.contrib.gis.geos.prototypes.misc import * # NOQA
|
from django.contrib.gis.geos.prototypes.misc import * # NOQA
|
||||||
from django.contrib.gis.geos.prototypes.predicates import ( # NOQA
|
from django.contrib.gis.geos.prototypes.predicates import ( # NOQA
|
||||||
|
@ -68,16 +68,6 @@ class StringFromGeom(GEOSFuncFactory):
|
|||||||
|
|
||||||
# ### ctypes prototypes ###
|
# ### ctypes prototypes ###
|
||||||
|
|
||||||
# Deprecated creation routines from WKB, HEX, WKT
|
|
||||||
from_hex = BinConstructor('GEOSGeomFromHEX_buf')
|
|
||||||
from_wkb = BinConstructor('GEOSGeomFromWKB_buf')
|
|
||||||
from_wkt = GeomOutput('GEOSGeomFromWKT', [c_char_p])
|
|
||||||
|
|
||||||
# Deprecated output routines
|
|
||||||
to_hex = BinOutput('GEOSGeomToHEX_buf')
|
|
||||||
to_wkb = BinOutput('GEOSGeomToWKB_buf')
|
|
||||||
to_wkt = StringFromGeom('GEOSGeomToWKT')
|
|
||||||
|
|
||||||
# The GEOS geometry type, typeid, num_coordinates and number of geometries
|
# The GEOS geometry type, typeid, num_coordinates and number of geometries
|
||||||
geos_normalize = IntFromGeom('GEOSNormalize')
|
geos_normalize = IntFromGeom('GEOSNormalize')
|
||||||
geos_type = StringFromGeom('GEOSGeomType')
|
geos_type = StringFromGeom('GEOSGeomType')
|
||||||
|
Loading…
Reference in New Issue
Block a user