tilezen / mapbox-vector-tile

Python package for encoding & decoding Mapbox Vector Tiles
MIT License
240 stars 47 forks source link

Documentation seems to be truncated #101

Closed larsclaussen closed 6 years ago

larsclaussen commented 6 years ago

The readme contains this part:

      (x0, y0, x_max, y_max) = tile_bounds.extent
      x_span = x_max - x0
      y_span = y_max - y0
      def xy_pairs():
          for x_merc, y_merc in line:
              yield (
                  int((x_merc - x0) * MVT_EXTENT / x_span),
                  int((y_merc - y0) * MVT_EXTENT / y_span),

The yield... statement is incomplete. Also the code that is calling xy_pairs() is missing.