gis.db.models.GeoQuerySet.snap_to_grid()

GeoQuerySet.snap_to_grid(*args, **kwargs)

Deprecated since version 1.9: Use the SnapToGrid function instead.

Snap all points of the input geometry to the grid. How the geometry is snapped to the grid depends on how many numeric (either float, integer, or long) arguments are given.

Number of Arguments Description
1 A single size to snap bot the X and Y grids to.
2 X and Y sizes to snap the grid to.
4 X, Y sizes and the corresponding X, Y origins.
doc_Django
2016-10-09 18:37:31
Comments
Leave a Comment

Please login to continue.