Closed bmcbride closed 11 years ago
Yep. Lets leave no precision by default but allow it to be passed in.
Sent from a mobile device
On Feb 27, 2013, at 2:59 PM, Bryan McBride notifications@github.com wrote:
Hey Jason,
PostGIS sets a default decimal precision of 15 for the ST_AsGeoJSON function: http://www.postgis.org/docs/ST_AsGeoJSON.html. Would it make sense to set a "geomPrecision" option for the providers that utilize PostGIS to reduce the file transfer size? I've tested with bumping it down to 6 without any noticeable difference in geometry and a smaller file size. This should improve performance. If you agree, I can put together a pull request.
BRYAN
— Reply to this email directly or view it on GitHub.
Hey Jason,
PostGIS sets a default decimal precision of 15 for the ST_AsGeoJSON function: http://www.postgis.org/docs/ST_AsGeoJSON.html. Would it make sense to set a "geomPrecision" option for the providers that utilize PostGIS to reduce the file transfer size? I've tested with bumping it down to 6 without any noticeable difference in geometry and a smaller file size. This should improve performance. If you agree, I can put together a pull request.
BRYAN