Re:Turf – A modular GIS engine written in JavaScript
by elinchrome on Wednesday December 24, 2014 @11:35AM
(#8793396)
In the demo wombats code, shouldn't 'miles' be in a constant somewhere? That seem messy.
[ Parent
| on HN ]
Re:Turf – A modular GIS engine written in JavaScript
by uptown on Wednesday December 24, 2014 @12:32PM
(#8793629)
The source has awareness of miles, kilometers, radians, and degrees as units of measure. Passing it in the demo is just specifying which one you're expecting results to use in its calculations.
Re:Turf – A modular GIS engine written in JavaScript
by maxerickson on Wednesday December 24, 2014 @01:09PM
(#8793820)
Does it just punt on miles<->longitude? I looked at the code some and don't see where it would ever deal with projections.
(jsts mentions coordinates systems in comments, but I don't where it ever does anything about them)
Re:Turf – A modular GIS engine written in JavaScript
by morganherlocker on Wednesday December 24, 2014 @03:26PM
(#8794415)
Wgs84 data is assumed for distance calculations. If you need to convert your data on the fly, I typically recommend proj4js.
Re:Turf – A modular GIS engine written in JavaScript
by ldng on Wednesday December 24, 2014 @05:00PM
(#8794681)
Maybe you could document that more explicitly. Basically defining the scope of the project and where to look for complementary tools like proj4js and rbush for instance.
Re:Turf – A modular GIS engine written in JavaScript
by maxerickson on Wednesday December 24, 2014 @04:11PM
(#8794552)
I'm talking about buffering and such, "1 mile" isn't a sensible measure in latlong. I didn't carefully analyze the code, so maybe I'm just missing something.