Commit Graph

310 Commits

Author SHA1 Message Date
Andreas Hocevar 7ecb2c0185 Add layerName and layers options to ol.source.TopoJSON 2017-05-20 16:48:42 +02:00
Frédéric Junod c61189121e Merge pull request #6786 from fredj/during_filter
Add ol.format.filter.during
2017-05-12 15:26:03 +02:00
Andreas Hocevar df72d7b20f Add getId() method for ol.render.Feature 2017-05-11 15:54:20 +02:00
Frederic Junod fcf9649ef9 Add ol.format.filter.during 2017-05-09 14:07:33 +02:00
Bart van den Eijnden 2486b25e5e Merge pull request #6556 from KlausBenndorf/kmlinsetpixel
Reading kml xunits/yunits insetPixels
2017-05-08 11:02:19 +02:00
Tim Schaub 3f973e6fa3 Allow single (non-default) import from dependencies 2017-05-02 15:04:20 -06:00
Tim Schaub 584d4f67bd Uppercase for PBF constructor 2017-05-02 15:04:20 -06:00
Frederic Junod b1f38ea0e8 Fix spelling 2017-04-24 08:58:19 +02:00
Julien Enselme e2af6b9d04 Rename the is3D option for WFS transaction into hasZ
This is more consistent with existing code.
2017-04-20 10:39:02 +02:00
Julien Enselme 870bc51ad9 Add an option to writeTransaction to support 3D geometries
Close #6630
2017-04-20 10:39:02 +02:00
Julien Enselme bb278df881 Don't append feature prefix twice in WFS requests
Some WFS servers like tinyOWS require the feature prefix to be in the
feature type for the feature to be found (eg `prefix:layer`).

The problem was, the prefix was always added to the feature type which
gave us a type name like `prefix:prefix:feature` or
`feature:prefix:feature`. The requests were then rejected by the WFS
server.

We now check if the feature type starts with the prefix. If it does, we
don't append it again. If it doesn't we do.
2017-04-20 10:32:39 +02:00
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
simonseyock c027b4d127 Reading kml xunits/yunits insetPixels 2017-03-04 12:24:51 +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