Remi Collet
46ac9391b3
Relax for aarch64
2024-09-25 15:31:57 +02:00
Derick Rethans
f299589ddd
Add tests and documentation for 'interpolate_linestring'
2024-03-05 15:27:07 +00:00
Derick Rethans
518bfc1a53
Add support for PHP 8/Drop support for PHP 5
2021-01-28 11:48:35 +00:00
Derick Rethans
0692cea174
Added rdp_simplify() test.
2019-01-08 11:32:01 +00:00
Derick Rethans
4565404714
Fixed #26 : Initial Bearing Calculation Error
2019-01-08 11:31:08 +00:00
Emir Beganovic
1c24b0b20a
Fix possible integer overflow in memory allocation with negative precision in geohash_encode
2018-01-26 12:02:17 +01:00
Derick Rethans
5fbedfdc60
Coding standards, and a new test
2017-12-29 12:03:37 +00:00
Emir Beganovic
6bd4087dfc
Add Geo Hashing functions geohash_encode and geohash_decode.
2017-12-29 12:03:37 +00:00
Derick Rethans
81c16b4331
Fixed issue #16 : Segfault on rdp_simplify for GeoJSON
2016-12-15 11:39:45 +00:00
Derick Rethans
8c45446f92
Fixed test case result
2015-12-04 18:22:53 +00:00
Nathaniel McHugh
79280772ec
Fix test
2014-10-06 20:50:33 +01:00
Derick Rethans
31fe8f4c15
We can't have one in km, and one in meters. Use the SI unit "meter" everywhere.
2014-02-19 16:01:18 +00:00
Derick Rethans
9e484dd3b5
Added KSP coordinates, and rename test.
2014-02-19 09:13:30 +00:00
Derick Rethans
c9481fd394
Added the initial_bearing() function.
2014-01-14 17:00:43 +00:00
Derick Rethans
68e10cbc60
Fixed tests and arginfo.
2014-01-14 17:00:24 +00:00
Derick Rethans
ccb575ce98
GeoJsonify the vincenty function.
2013-11-30 17:25:29 +00:00
Derick Rethans
db780b4cc9
Merge branch 'master' of github.com:php-geospatial/geospatial
...
Conflicts:
php_geospatial.h
2013-11-29 16:34:29 +00:00
Derick Rethans
85209cb930
General formatting changes and license headers.
2013-11-29 16:33:35 +00:00
Derick Rethans
34f73a5768
Use geojson for in- and output coordinate pairs
...
Also fix prototypes where necessary.
2013-11-29 16:33:35 +00:00
Nathaniel McHugh
c628cbebda
add vincenty function
2013-09-01 23:10:18 +01:00
Derick Rethans
b7f429277f
Merge branch 'master' of github.com:php-geospatial/geospatial
...
Conflicts:
geospatial.c
php_geospatial.h
2013-08-16 15:21:12 +01:00
Derick Rethans
5ce87c6be9
Added the fraction_along_gc_line() function.
...
This is the code behind http://drck.me/gc-a98 .
2013-08-16 14:32:01 +01:00
Derick Rethans
801eaecbd7
Move radius conversion out of the helper function, so we can use it for other things too.
2013-08-16 14:31:29 +01:00
Derick Rethans
d585b9dd03
Fixed comment.
2013-07-27 12:34:11 +01:00
Nathaniel McHugh
7557728882
round off some floats that caluculate differently on 32 bit
2013-01-03 09:44:25 +00:00
Nathaniel McHugh
51e609ce8a
* fix spacing in copyright notice
...
* add test for decimal minutes
* add test on prime meridian based on this photo http://upload.wikimedia.org/wikipedia/commons/a/a1/Garmin_GPS_at_Greenwich_Observatory.jpg
2012-11-21 12:26:38 +00:00
Nathaniel McHugh
ebeb425ed4
clean up names and prototypes
2012-11-07 22:52:03 +00:00
Nathaniel McHugh
49b3e9ccb6
add 2 new functions to convert co-ord formats
2012-11-03 10:45:57 +00:00
Nathaniel McHugh
1340ae890d
* move constants into structure and allow reverse helmert
2012-10-19 12:51:57 +01:00
Nathaniel McHugh
14d61d5c70
* better set up of constants
...
* more tests
2012-10-18 11:55:15 +01:00
Nathaniel McHugh
51c5910267
* apparently - height is correct
2012-10-14 14:54:12 +01:00
Nathaniel McHugh
b156736659
* trasform polar to cartesian co-ords
...
* transform caresian to polar co-ords
* clean up code of helmert a lot
* by combining output can transform between datums
* -1 error with height
* next step is to move these php functuons to C functions and create convert datum PHP function and wrappers
2012-10-14 14:42:26 +01:00
Nathaniel McHugh
2b54166ae2
* converts from polar to cartesian based on Airy 1830
...
* converts from cartesian to polar based on Airy 1830
* need to handle different ellipsoids
2012-10-11 12:50:55 +01:00
Nathaniel McHugh
8677e05bdf
first draft at a helmert transformation
2012-10-09 22:27:38 +01:00
Derick Rethans
b172396bff
Use a fixed precision for the tests.
2012-10-06 16:52:02 +01:00
Marcus Deglos
c21867203b
Added polar-separation test, which checks the optional radius parameter to the haversin function.
2012-10-05 15:07:03 -07:00
Marcus Deglos
62e02208e5
Corrected code-documentation with values for earth radii.
2012-10-05 14:58:01 -07:00
Marcus Deglos
38d8affced
Merge branch 'master' of github.com:php-geospatial/geospatial
2012-10-05 14:23:54 -07:00
Marcus Deglos
3d70405dd7
Updated test-result precision to match the expected result.
2012-10-05 14:23:27 -07:00
Michael Maclean
b912e58f8e
Remove default test from ext_skel
2012-10-05 22:21:31 +01:00
Marcus Deglos
82d96ba71e
Added a test which checks the distance between London and Edinburgh is correctly calculated.
2012-10-05 14:05:04 -07:00
Michael Maclean
761cf1fbac
Add implementation of haversine function
2012-10-05 21:40:30 +01:00
Ryan Mauger
433d1948af
Added a sample test taken from data on http://www.codecodex.com/wiki/Calculate_Distance_Between_Two_Points_on_a_Globe
2012-10-05 21:34:32 +01:00
Michael Maclean
d0f1416acf
Initial commit
2012-10-05 20:33:44 +01:00