Files
openlayers/test/spec/ol/format
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
..
2013-12-10 15:35:50 +01:00
2016-07-14 11:13:39 +00:00
2014-03-26 14:59:08 +01:00
2015-02-11 13:24:23 +01:00
2016-12-14 13:42:47 +01:00
2017-01-02 23:03:03 +01:00
2016-08-08 09:58:11 -06:00
2017-02-08 13:29:26 +01:00
2016-12-15 17:18:53 +01:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2016-08-08 09:58:11 -06:00
2017-03-21 10:15:32 -04:00
2016-12-14 13:42:47 +01:00
2016-08-08 09:58:11 -06:00