Changes between Version 4 and Version 5 of GSoC/CAPI_PrecisionModel
 Timestamp:
 Mar 17, 2014 9:57:46 AM (4 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

GSoC/CAPI_PrecisionModel
v4 v5 12 12 13 13 {{{ 14 from shapely.geometry import Point 14 from shapely.geometry import Point, factory 15 15 from shapely.precision import fixed_model 16 16 17 # make a fixedprecision model.18 fixed = f ixed_model(scale=1.0, offset=(0.0, 0.0))17 # make a geometry factory using a fixedprecision model. 18 fixed = factory(fixed_model(scale=1.0, offset=(0.0, 0.0))) 19 19 20 20 # make a point snapped to a fixedprecision grid. 21 p = Point(0, 0, model=fixed)21 p = Point(0, 0, factory=fixed) 22 22 23 23 # make a floatprecision point.