这是indexloc提供的服务,不要输入任何密码
Skip to content

zoom level 0 not supported in tippecanoe GeoJSON extension #701

@boblannon

Description

@boblannon

Context:

Using tippecanoe@1.31.0 and tippecanoe@1.32.9, I ran < geo_stats.geojson tippecanoe -z10 -fo /tmp/stats.mbtiles where geo_stats.geojson contains features with tippecanoe.minzoom: 0.

Expected Behavior

Should have been processed without error, as it did in tippecanoe@1.27.9.

Actual behavior

Raises:

For layer 0, using name "stats"
standard input: Expected integer zoom level in "tippecanoe" GeoJSON extension, not 0
events.js:183
      throw er; // Unhandled 'error' event
      ^

My best guess

#604 introduced an isnormal check on zoom levels specified in the tippecanoe GeoJSON extension. According to the the C++ docs, however, isnormal(0) evaluates to false. Is it possible that isfinite is the test we're looking for, here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions