Files
openlayers/test/spec/ol
Julien Enselme 3a5de5483c Fix the parsing of flat coordinates in GML2 for 3D geometies
The code used to rely on the dimension. However, the dimension can only
be read from a GML3 document. This caused, for 3D geometries:
- An assertion error to be raised since the flatCoordinates list
contains more than 3 elements: "Assertion failed: flatCoordinates should
have a length of 3" The value of flatCoordinates for a 3D point was
something like `[2586394, 1232407, 0, 731, NaN, 0]`
- The value of the Z coordinates to be incorrect and always set to 0

This patch simplifies and correct the parsing of the coordinates:
- Don't parse groups of coords and the coordonates at the same time.
- Detect the dimension for the coordinates.
- If the Z coordinate exists, its value is used, otherwise, we use 0.
- Correct the presentation of test data to make it work with the new
parser.
- Add a test for a 3D point.
2017-03-31 10:46:27 +02:00
..
2016-06-08 08:36:58 +02:00
2016-08-08 09:58:11 -06:00
2016-08-12 10:53:48 -06:00
2016-08-08 09:58:11 -06:00
2016-12-14 13:42:47 +01:00
2016-08-08 10:22:28 -06:00
2016-08-08 09:58:11 -06:00
2017-01-04 11:19:47 +01:00
2016-12-04 12:44:04 -08:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2016-08-12 10:53:47 -06:00
2017-01-28 16:08:23 +01:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2016-06-23 22:06:35 +12:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2016-12-14 13:42:47 +01:00
2016-12-20 13:07:00 -07:00
2017-01-01 20:37:52 -07:00
2016-09-01 23:13:00 -06:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2016-08-12 10:53:48 -06:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2017-01-01 20:37:52 -07:00
2016-08-08 09:58:11 -06:00