Closed akidee closed 12 years ago
would be great! thanks!
Do you consider it important to use the precision model in JSON? I would prefer a simple toJSON(decimalPlaces, bbox?) method that hides a GeoJSONWriter class that is not wrapped by a JS object.
There it is ( #1 ): https://github.com/kashif/node-geos/pull/16
Thanks Andreas! We will review it and merge it soon.
@booo Any feedback on this?
I just commented on the pull request. I try too merge this as soon as possible.
As I mentioned in the pull request I would prefer a GeoJSONWriter
class with some functions to change the state/output of the write
or toGeoJSON
function. I can understand that people would like to have some kind of shortcut. So we should also provide a function toGeoJSON
for the Geometry
.
I can implement it.