topoquantization on top of prequantization gives error
Closed this issue · 0 comments
mattijn commented
Currently in master, the following gives an error:
import topojson
import geopandas
data = geopandas.read_file(geopandas.datasets.get_path("naturalearth_lowres"))
tp = topojson.Topology(data, prequantize=True)
tp.topoquantize(True).to_alt()
/Users/mattijnvanhoek/topojson/topojson/ops.py:503: RuntimeWarning: divide by zero encountered in double_scalars kx = 1 / ((quant_factor - 1) / (x1 - x0)) /Users/mattijnvanhoek/topojson/topojson/ops.py:504: RuntimeWarning: divide by zero encountered in double_scalars ky = 1 / ((quant_factor - 1) / (y1 - y0))