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
Alexandre Dubé
827fabc849
Apply reviewer's comments
2017-03-21 10:15:32 -04:00
Alexandre Dubé
8a5fb286b6
Add writeFilter method to WFS format
2017-03-21 08:57:15 -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
5f5c906129
Add GML2 serializer for Envelope
2017-02-17 17:00:09 +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
Julien Enselme
7f0ed44828
Boostrap GML2 serializers
...
- Add writeFeatureElement (copied and adapted from ol.format.GML3)
- Add writeGeometryElement (copied and adapted from ol.format.GML3)
- Add related constants (GEOMETRY_SERIALIZERS_, GEOMETRY_NODE_FACTORY_)
- Add empty serialization methods
2017-02-17 15:38:19 +01:00
Tim Schaub
f5aea97d3b
All @api annotations imply stability
2017-02-06 09:22:05 -07:00
Frederic Junod
5763e1d145
Remove unused goog.require
2017-02-03 12:40:53 +01:00
Guillaume Beraudo
1c353061fe
Consistently handle not implemented methods
2017-01-31 09:21:01 +01:00
Guillaume Beraudo
c9d33fb03a
Fix missing require
2017-01-30 17:18:30 +01:00
Frederic Junod
f72fd69ea6
Add empty ol.format.IGC.prototype.readGeometryFromText
2017-01-30 17:16:01 +01:00
Guillaume Beraudo
b54ea89395
Handle concrete classes with non implemented abstract methods
2017-01-30 17:16:01 +01:00
Frederic Junod
2713175e15
Add empty ol.format.OSMXML.prototype.write*
2017-01-30 17:16:01 +01:00
Frederic Junod
4289f0a686
Add empty ol.format.WMSGetFeatureInfo.prototype.write*
2017-01-30 17:16:01 +01:00
Frederic Junod
285349eced
Add empty ol.format.TopoJSON.prototype.write*
2017-01-30 17:16:01 +01:00
Frederic Junod
f8feaeb837
Add empty ol.format.IGC.prototype.write*
2017-01-30 17:16:01 +01:00
Frederic Junod
a0d80d17e0
Add ol.format.TopoJSON.readProjectionFromObject function
2017-01-30 17:16:01 +01:00
Frederic Junod
d59224f5eb
Add missing override and inheritDoc jsdoc tags
2017-01-30 17:16:01 +01:00
Frederic Junod
546fc97cd4
Add abstract tag at class level
2017-01-30 17:16:01 +01:00
tsauerwein
756417ee2c
Remove ol.format.filter.Logical
2017-01-19 09:20:29 +01:00
tsauerwein
85fa61a046
Make ol.format.filter.or/and accept n conditions
2017-01-17 10:40:02 +01:00
Frederic Junod
ed79048528
Use ol.geom.flat.deflate.coordinates to flatten array
2017-01-12 10:39:19 +01:00
Frederic Junod
a2f99f8e39
Correct spelling
2017-01-12 10:26:06 +01:00
Frederic Junod
4bef3f3f19
Remove unused ol.format.Feature.getExtensions function
2017-01-09 08:36:11 +01:00
Andreas Hocevar
7424ee91e3
Remove the '3' from OpenLayers
2017-01-02 23:03:03 +01:00
Tim Schaub
137cdc04c8
Remove ol.DEBUG
2017-01-01 20:37:52 -07:00
Tim Schaub
a303b2f6b0
Private enum for WKT token type
2016-12-27 13:22:55 -07:00
Tim Schaub
d353fb7dc9
Dedicated module for IGC altitude enum
2016-12-27 13:21:26 -07:00
Tim Schaub
02edf0ab24
Dedicated module for icon anchor units enum
2016-12-27 10:26:11 -07:00
Tim Schaub
cbe82913b4
Dedicated module for icon origin enum
2016-12-27 10:22:57 -07:00
Tim Schaub
ef04f466cd
Name modules more like their provide
2016-12-18 11:24:01 -07:00
Andreas Hocevar
4f5a4ca031
Set geometry name properly
2016-12-15 17:18:53 +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
Ron Young
85881082b0
use feature geometry in filter
2016-12-01 21:38:13 -06:00
Ron Young
aa08f88105
node factories, serializers, and writers for exporing ExtendedData
2016-12-01 21:10:07 -06:00
Ron Young
cde48521d0
add ol.format.XSD CDATA writer
2016-12-01 20:33:47 -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