Permalink
Browse files

less spread out

  • Loading branch information...
1 parent eb9f834 commit 36c7a83b2a36d34cdf262666d382f1243ad01ab6 Calvin Metcalf committed Oct 8, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 Install/esri2open/topojson/topology.py
@@ -77,7 +77,6 @@ def start(self):
[self.kx,self.ky]=make_ks(self.quantization,self.bounds.x0,self.bounds.x1,self.bounds.y0,self.bounds.y1)
self.quant = Quantize(self.bounds.x0,self.bounds.y0,self.kx,self.ky,self.system.distance)
self.clock = Clock(self.system.ring_area)
- polygon = lambda poly:map(self.ln.line_closed,poly)
#Convert features to geometries, and stitch together arcs.
class Topo(Types):
def __init__(self,ln,id_func,property_transform):
@@ -101,7 +100,7 @@ def FeatureCollection(self,collection):
def GeometryCollection(self,collection):
collection['geometries'] = map(self.geometry,collection['geometries'])
def MultiPolygon(self,multiPolygon):
- multiPolygon['arcs'] = map(polygon,multiPolygon['coordinates'])
+ multiPolygon['arcs'] = map(poly:map(self.ln.line_closed,poly),multiPolygon['coordinates'])
def Polygon(self,polygon):
polygon['arcs'] = map(self.ln.line_closed,polygon['coordinates'])
def MultiLineString(self,multiLineString):

0 comments on commit 36c7a83

Please sign in to comment.