Commit Graph

119 Commits

Author SHA1 Message Date
Bart van den Eijnden
ae1e660ab4 Add geometry parsing for point, line, polygon 2014-02-24 15:25:52 +01:00
ahocevar
28d0d82253 Merge pull request #1716 from ahocevar/gpx-write
Write support for ol.format.GPX
2014-02-24 14:23:16 +01:00
ahocevar
bb38771096 No magic for namespace URI 2014-02-24 14:13:41 +01:00
ahocevar
7b56abdac7 Get rid of compiler warnings 2014-02-23 01:50:59 +01:00
ahocevar
696425af36 Documentation and cleanup 2014-02-21 22:49:33 +01:00
ahocevar
480a6a85ba Add trk serialization for ol.format.GPX 2014-02-21 20:27:04 +01:00
ahocevar
791cb2415b Simplify annotations 2014-02-21 20:22:44 +01:00
ahocevar
1354d8ce78 Added rte serialization for ol.format.GPX 2014-02-21 16:55:48 +01:00
Tom Payne
1d2c88efb9 Merge pull request #1717 from twpayne/binary-format
Add ol.format.Binary
2014-02-21 12:27:13 +01:00
Bart van den Eijnden
9bade5ce87 Implement setPolygons on ol.geom.MultiPolygon 2014-02-21 11:28:18 +01:00
oterral
0a6390fb21 Add anchorOrigin option in ol.style.Icon 2014-02-21 09:09:59 +01:00
ahocevar
b4043398eb Added wpt serialization for ol.format.GPX 2014-02-21 07:18:42 +01:00
ahocevar
45860f4552 Framework for serializing structures to XML
This adds several helper functions for serializing to XML:

* ol.xml.serialize: Counterpart to ol.xml.parse. By splitting
  the serialization process up into a node factory and a node
  writer, note writers can easily be used for different
  namespaces.

* ol.xml.pushSerializeAndPop: Counterpart to
  ol.xml.pushParseAndPop.

* ol.xml.makeStructureNS: Works like ol.xml.createParsersNS,
  but works for arbitrary structures.

* ol.xml.makeChildAppender: If the top item of the stack has
  the new ol.xml.NodeStackItem type, this helper function
  can be used to create a serializer that appends the current
  node to its designated parent.

* ol.xml.makeChildNodeFactory: Creates a node factory which
  produces child nodes from an array of node names which are
  passed to ol.xml.serialize.

* ol.xml.makeSequence: A convenience function for creating
  xsd:sequence structures. Takes an object literal and an
  ordered list of the keys, and returns an array that can be
  passed as values to ol.xml.serialize.

* ol.xml.makeSimpleTypeWriter: Using e.g. the new write*TextNode
  functions from ol.format.XSD, this function creates a node
  writer that writes simple type nodes for values like strings
  or numbers.

The following commits will be using this new framework for
implementing ol.format.GPX.writeFeatures, and prose
documentation with instructions based on what was said above
will be added.
2014-02-21 07:18:36 +01:00
Tom Payne
ef82965c0a Add ol.format.Binary 2014-02-17 17:44:28 +01:00
Tom Payne
399116ed82 Add binary support to ol.format.Format 2014-02-17 17:44:24 +01:00
Antoine Abt
a658435e38 Merge pull request #1705 from tonio/geojson_null_geometry
Allow GeoJSON features to have `null` geometries.
2014-02-17 08:23:05 +01:00
Antoine Abt
24ee4cb742 [GeoJSON] Add support for feature with null geometries 2014-02-14 15:12:16 +01:00
Tim Schaub
f4585331f2 Add setStyle and getStyle to ol.Feature
As with vector layers and feature overlays, feature style can be set by calling
setStyle.  Calling getStyle returns what was passed to setStyle.  Internally, we call getStyleFunction.
2014-02-13 10:25:17 -07:00
Frederic Junod
f06adff56c Add ol.format.XSD.readNonNegativeIntegerString function 2014-02-10 16:19:08 +01:00
Frederic Junod
f6629fae6c Add ol.format.XSD.readDecimalString function 2014-02-10 16:19:08 +01:00
Frederic Junod
e3deb03e71 Add ol.format.XSD.readBooleanString function 2014-02-10 16:19:08 +01:00
Tom Payne
0b4b6e2a75 Merge pull request #1639 from twpayne/kml-ie9
KML support for Internet Explorer
2014-02-05 14:23:07 +01:00
Hadrien Tulipe
b5fefc9ab3 Supprt parsing of kml:datetime (#1585)
This commit modifies the previous regex used to match following
datetimes:

- 2014
- 2014-02
- 2014-02-15

The new regex also matches dates that were matched by the previous
regex.

This commit also include a unit test for kml:dateTime parsing.
2014-02-04 22:36:42 +01:00
Tom Payne
91e9b82fe1 Use ol.xml.getLocalName in ol.format.KML 2014-02-04 22:20:45 +01:00
Tom Payne
17fba61bf2 Cope with undefined baseURI in ol.format.KML 2014-02-04 22:19:54 +01:00
Tom Payne
cd1355a699 Use ol.xml.isNode in ol.format.KML 2014-02-04 22:19:54 +01:00
Tom Payne
f22495871c Use ol.xml.isNode in ol.format.XML 2014-02-04 22:19:54 +01:00
Tom Payne
cd7df92891 Use ol.xml.isDocument in ol.format.KML 2014-02-04 22:19:53 +01:00
Tom Payne
99aa9f207d Use ol.xml.isDocument in ol.format.XML 2014-02-04 22:19:53 +01:00
Tom Payne
34e75e2653 Use ol.xml.load in ol.format.KML 2014-02-04 17:36:56 +01:00
Tom Payne
6f665c1280 Use ol.xml.load in ol.format.XML 2014-02-04 17:36:56 +01:00
Tom Payne
6e322bdf0b Don't fail when no featues are found in ol.format.TopoJSON 2014-02-03 19:01:24 +01:00
Tom Payne
26a81a05ce Add stability annotation to ol.format.TopoJSON 2014-02-03 14:59:14 +01:00
Tom Payne
608e3c43b1 Add stability annotation to ol.format.KML 2014-02-03 14:59:14 +01:00
Tom Payne
a603ad86e9 Add stability annotation to ol.format.IGC 2014-02-03 14:59:13 +01:00
Tom Payne
d033801a84 Add stability annotation to ol.format.GPX 2014-02-03 14:59:13 +01:00
Tom Payne
2dd6cfd651 Add stability annotation to ol.format.GeoJSON 2014-02-03 14:59:13 +01:00
Tom Payne
0a537d5e86 Improve type checking in ol.format.Polyline.decodeDeltas 2014-01-30 11:20:58 +01:00
oterral
63c321b980 Lets ol.style.Icon to define default values 2014-01-28 13:30:11 +01:00
Frederic Junod
295d4fbaa3 Use ol.format.XSD.readDecimal in ol.format.KML 2014-01-23 16:35:39 +01:00
Frederic Junod
271caef342 Better ol.format.XSD.* documentation 2014-01-23 16:35:38 +01:00
Frederic Junod
64ccfdc805 Add exponent support in ol.format.XSD.readDecimal 2014-01-23 16:14:55 +01:00
Frederic Junod
7b09e04001 Rename ol.format.KML.readscale_ to ol.format.KML.readScale_ 2014-01-23 16:14:55 +01:00
Frederic Junod
401acc77f3 Remove unneeded 'ms' param from Date.UTC function 2014-01-23 16:14:50 +01:00
Frederic Junod
9fe5eff865 Use ol.format.XSD.readBoolean in ol.format.KML 2014-01-23 10:55:02 +01:00
Frederic Junod
cb25267341 Add ol.format.XSD.readBoolean function 2014-01-23 10:54:40 +01:00
Frederic Junod
827ae44a5f Use ol.format.XSD.readString in ol.format.KML 2014-01-23 10:43:47 +01:00
Tim Schaub
b7ed585e31 Reminder to remove workaround when GeoServer GeoJSON issue is fixed
See #1566 and http://jira.codehaus.org/browse/GEOS-5996
2014-01-21 09:59:25 -07:00
Tom Payne
f9e0167b66 Parse out-of-spec CRSs generated by GeoServer 2014-01-21 16:02:02 +01:00
Tom Payne
ace6c1d098 Merge pull request #1556 from twpayne/export-topojson
Export ol.format.TopoJSON
2014-01-20 08:55:56 -08:00