jazzband / geojson

Python bindings and utilities for GeoJSON
https://pypi.python.org/pypi/geojson/
BSD 3-Clause "New" or "Revised" License
898 stars 120 forks source link

geometry module level default precision control #177

Closed joe-jordan closed 2 years ago

joe-jordan commented 2 years ago

Authored by @rogerlew , with their permission I am submitting as a pull request.

Resolves #135

This allows projects to set the default precision that they need, in such a way that it works with geojson.base.GeoJSON.to_instance (i.e. when parsing a large JSON tree of objects using factories, without calling individual constructors.)

IQGeo is submitting this pull request because we are unable to upgrade beyond 2.4 without this fix.