Commit Graph

298 Commits

Author SHA1 Message Date
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
Frédéric Junod f4bf92a488 Merge pull request #6614 from adube/filter-write-util-method
Filter write util method
2017-03-21 16:28:04 +01:00
Alexandre Dubé 827fabc849 Apply reviewer's comments 2017-03-21 10:15:32 -04:00
Frederic Junod 7aa6d6350a Fix closing tag in gml tests 2017-03-21 14:55:41 +01:00
Alexandre Dubé ef1033dffc Test for ol.format.WFS.writerFilter method 2017-03-21 09:19:07 -04:00
Julien Enselme ecafa44196 Add support for WFS 1.0.0 to ol.format.WFS#writeTransaction
- Add a version property to olx.format.WFSWriteTransactionOptions to set
the WFS protocol version to use
- Use the specified version to use the correct schema and version in the
GML request
- Use the version to select the proper GML serializer
2017-03-21 10:59:28 +01:00
Julien Enselme fec279c460 Add GML2 serializer for MultiSurface and MultiPolygon 2017-02-17 16:57:45 +01:00
Julien Enselme 579ec3955e Add GML2 MultiLineString serialiazer 2017-02-17 16:50:54 +01:00
Julien Enselme 650837b207 Add GML2 serializer for MultiPoint 2017-02-17 16:39:48 +01:00
Julien Enselme f8c6863fa7 Add GML2 serializer for Point 2017-02-17 16:28:52 +01:00
Julien Enselme dd90c90819 Add GML2 serializer for Surface and Polygon
- Adapt the code from ol.format.GML3.
- Create utility function to create coordinates nodes with proper
attributes
2017-02-17 16:23:16 +01:00
Julien Enselme 21394826b6 Add GML2 serializer for Curve and LineString
Adapt the code from ol.format.GML3.
2017-02-17 15:48:10 +01:00
Thomas Chandelle 998e1705fa Small XML error in KML test 2017-02-08 13:29:26 +01:00
tsauerwein 85fa61a046 Make ol.format.filter.or/and accept n conditions 2017-01-17 10:40:02 +01:00
Andreas Hocevar 7424ee91e3 Remove the '3' from OpenLayers 2017-01-02 23:03:03 +01:00
Andreas Hocevar 4f5a4ca031 Set geometry name properly 2016-12-15 17:18:53 +01:00
Frederic Junod 392cbcc138 Enforces spacing around commas 2016-12-14 13:42:47 +01:00
Frederic Junod 1478cadb18 Consistent spacing between keys and values in object literal
Related to https://github.com/openlayers/eslint-config-openlayers/pull/9
2016-12-14 12:10:47 +01:00
Tim Schaub 1f742da046 Merge pull request #6196 from raiyni/ExtendedData
KML ExtendedData Export
2016-12-09 10:41:33 -07:00
Tim Schaub 679fe298aa Dedicated module for transforms cache 2016-12-04 10:09:32 -08:00
Ron Young fdff4c5c7c export ExtendedData tests 2016-12-01 21:11:13 -06:00
Bart van den Eijnden d47e5aed10 Merge pull request #6052 from oterral/teo_dflt_style
Remove the use of ol.format.KML.DEFAULT_IMAGE_SCALE_MULTIPLIER_ when …
2016-11-28 09:38:10 +01:00
Tobias Sauerwein 0e95905c6f Merge pull request #5590 from thhomas/kml-region-extendeddata
Kml format: improved support for region and extendeddata
2016-11-25 09:33:46 +01:00
Bart van den Eijnden 3e31ff113b Merge pull request #5589 from thhomas/wmts-tilematrixlimits
Wmts tilematrixlimits
2016-11-24 10:14:25 +01:00
Thomas Tilak 1f04a0aad9 adds TileMatrixSetLimits to WMTS format reader
enhance wmtstilegrid to use it when building matrixId and resolution arrays
2016-11-23 18:50:24 +01:00
Thomas Tilak d2e3017088 improve kml parsing of <Region> and <ExtendedData> tags 2016-11-23 17:46:04 +01:00
Roman Zoller f56b2c8a75 Set GeometryLayout correctly when reading GPX
Fixes #6148
2016-11-22 10:42:11 +01:00
Olle Markljung f436f2d5e2 Adds support for M, Z and ZM WKT formatting 2016-11-15 21:04:56 +01:00
Andreas Hocevar 3656529252 Fix GeoJSON writeGeometry tests 2016-11-03 14:44:04 +01:00
oterral a28576d2b9 Remove the use of ol.format.KML.DEFAULT_IMAGE_SCALE_MULTIPLIER_ when it's not wanted 2016-11-03 11:11:53 +01:00
greenkeeperio-bot 71ebed07bf chore(package): update eslint to version 3.9.1
https://greenkeeper.io/
2016-11-01 11:51:06 +01:00
oterral f369ea2e29 Set constants of KML format even if a default style is provided 2016-10-28 14:53:44 +02:00
Frederic Junod 61fcc4a326 Only test ol.format.MVT if ArrayBuffer.isView is supported 2016-10-20 12:18:23 +02:00
Tim Schaub 100c42e671 Use https for services.arcgisonline.com 2016-10-16 00:25:47 -06:00
Tim Schaub 0d686fe88b Corrected test description 2016-10-11 13:55:37 -06:00
Tim Schaub 309b2145cf Allow readFeature and readFeatures to be called with geometries 2016-10-10 13:31:19 -06:00
Tim Schaub 4b6e907f69 Accept feature projection in GeoJSON constructor 2016-09-26 22:56:07 -06:00
Frederic Junod 78af52d62d Rename ol.format.ogc.filter namespace to ol.format.filter 2016-09-21 08:35:49 +02:00
Tobias Sauerwein edfbbc4b40 Merge pull request #5800 from tsauerwein/filter-upper-lower
Wrap values in <Literal> for InBetween filter
2016-08-29 10:00:35 +02:00
tsauerwein 7128e86e3c Wrap values in <Literal> 2016-08-29 09:34:52 +02:00
Andreas Hocevar 5d00edfc1d Merge pull request #5745 from tamarmot/4316_goog_object_clone_cleanup
removed dependencies on goog.object.clone and fixed placemark rendering
2016-08-28 12:16:45 +02:00
Andreas Hocevar 2e7b8dbbca Compare URLs in an IE compatible way 2016-08-26 17:03:21 +02:00
Tamar Cohen e0d75555c5 updates to not depend on closure library; improvements on styles for KML placemarks 2016-08-18 16:00:29 -07:00
Tim Schaub 5643d3ec77 Missing requires in tests 2016-08-12 10:53:49 -06:00
Tim Schaub c203f6a841 Remove unused requires from tests 2016-08-08 09:58:11 -06:00
Tim Schaub ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Tim Schaub feb7713225 Remove lint 2016-08-07 13:28:19 -06:00
Tim Schaub e8205a8293 Rename format tests for consistency 2016-08-07 10:49:10 -06:00
Andreas Hocevar 6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
cpsTinK 18101ad0e2 Refactor AND Fixed description Intersects and Within filters into ol.format.wfs 2016-08-03 15:42:46 +04:00