def segmentize_geometry(geometry, segmentize_value):
if geometry.geom_type != "<STR_LIT>":<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>return Polygon(<EOL>LinearRing([<EOL>p<EOL>for l in map(<EOL>lambda x: LineString([x[<NUM_LIT:0>], x[<NUM_LIT:1>]]),<EOL>zip(geometry.exterior.coords[:-<NUM_LIT:1>], geometry.exterior.coords[<NUM_LIT:1>:])<EOL>)<EOL>for p in [<EOL>l.interpolate(segmentize_value * i).coords[<NUM_LIT:0>]<EOL>for i in range(int(l.length / segmentize_value))<EOL>] + [l.coords[<NUM_LIT:1>]]<EOL>])<EOL>)<EOL>
Segmentize Polygon outer ring by segmentize value.

Just Polygon geometry type supported.

Parameters
----------
geometry : ``shapely.geometry``
segmentize_value: float

Returns
-------
geometry : ``shapely.geometry``