Changes between Version 4 and Version 5 of GSoC/CAPI_PrecisionModel
- Timestamp:
- Mar 17, 2014, 9:57:46 AM (10 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 fixed-precision model.18 fixed = f ixed_model(scale=1.0, offset=(0.0, 0.0))17 # make a geometry factory using a fixed-precision model. 18 fixed = factory(fixed_model(scale=1.0, offset=(0.0, 0.0))) 19 19 20 20 # make a point snapped to a fixed-precision grid. 21 p = Point(0, 0, model=fixed)21 p = Point(0, 0, factory=fixed) 22 22 23 23 # make a float-precision point.