phpgeo
phpgeo copied to clipboard
Simple Yet Powerful Geo Library for PHP
This library provides a class to calculate relative directions between two points (cardinal direction). I don't know about the history of this feature but from a user point of view,...
Can you please explain the line: ```Warning: The calculation gives wrong results if the polygons has points on both sides of the 180/-180 degrees meridian.``` Maybe you can give a...
It would be nice to have a method in the `Polygon` class, which computes and returns the center of all coordinates. Is this something you would be interested in? See...
Hi, I was doing a little bit of domain research for a side project of mine, and I noticed your library: it looks nice! :) While reading the code, I...
Want to Simplify a GPX track, which includes not only lat+lon but also timestamps and other properties. After simplification, I want to retain these additional properties (most likely only the...
This feature would be great to help debug and visualize the calculated distance Maybe something like `->geFromPoint()` ?
Would it make sense to loosen the checks for lat -90..90 and lng -180..180 by building a "enable-wrap" option? > The world is round. It does not end at the...
``` if ($distanceMax > $this->tolerance) { $lineSplitFirst = array_slice($line, 0, $index); $lineSplitSecond = array_slice($line, $index, $lineSize); $resultsSplit1 = $this->douglasPeucker($lineSplitFirst); $resultsSplit2 = $this->douglasPeucker($lineSplitSecond); array_pop($resultsSplit1); return array_merge($resultsSplit1, $resultsSplit2); } ``` I think...
Would be good to have support of GeoJSON as input data, eg. integration with [jmikola/geojson](https://github.com/jmikola/geojson) could do the trick.