Changes between Version 4 and Version 5 of GSoC/CAPI_PrecisionModel


Ignore:
Timestamp:
Mar 17, 2014 9:57:46 AM (5 years ago)
Author:
sgillies
Comment:

Use exampe of geometry factory passed instead of precision model

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/CAPI_PrecisionModel

    v4 v5  
    1212
    1313{{{
    14 from shapely.geometry import Point
     14from shapely.geometry import Point, factory
    1515from shapely.precision import fixed_model
    1616
    17 # make a fixed-precision model.
    18 fixed = fixed_model(scale=1.0, offset=(0.0, 0.0))
     17# make a geometry factory using a fixed-precision model.
     18fixed = factory(fixed_model(scale=1.0, offset=(0.0, 0.0)))
    1919
    2020# make a point snapped to a fixed-precision grid.
    21 p = Point(0, 0, model=fixed)
     21p = Point(0, 0, factory=fixed)
    2222
    2323# make a float-precision point.