| |
- decode(file)
- Stub function to decode a TopoJSON file into a list of features.
Not currently implemented, modeled on geojson.decode().
- diff_encode(line, transform)
- Differentially encode a shapely linestring or ring.
- encode(file, features, bounds)
- Encode a list of (WKB, property dict) features into a TopoJSON stream.
Also accept three-element tuples as features: (WKB, property dict, id).
Geometries in the features list are assumed to be unprojected lon, lats.
Bounds are given in geographic coordinates as (xmin, ymin, xmax, ymax).
- get_transform(bounds, size=512)
- Return a TopoJSON transform dictionary and a point-transforming function.
|