Bart van den Eijnden
bb16820ab0
add exports for WKT
2013-05-16 15:44:31 +02:00
Bart van den Eijnden
bf8c12d9f7
Add WKT parser.
...
Add a parser (read/write) for OGC Well-Known-Text (WKT). It deals with
geometries only, not with features, mostly because WKT can only contain a
single geometry (or geometry collection). This can later on be used to
serialize and deserialize geometries in ol3.
2013-05-16 15:29:39 +02:00
ahocevar
cde4ef435c
Adding another option
2013-05-16 15:14:38 +02:00
ahocevar
1929403cda
Do not extend the instance with options
2013-05-16 14:37:40 +02:00
Bart van den Eijnden
e8ed1674ea
do not specify the source projection in ol.parser.ReadFeaturesOptions anymore
2013-05-15 15:34:11 +02:00
Bart van den Eijnden
2ad3ee6f99
incorporate review from @ahocevar
2013-05-15 14:50:37 +02:00
Bart van den Eijnden
5ad4734c24
GML parser.
...
This adds a parser (read/write) for GML v2 and v3. GML v3 is limited to the
simple features profile of GML 3.1.1, just like OpenLayers 2 was. This will
be the basis for the WFS parser, but it only makes sense to continue this work
once feature modification (insert, update, delete) is in place in ol3. So the
WFS parser will be another pull request.
2013-05-14 20:12:05 +02:00
Tom Payne
b2987d3054
Merge pull request #643 from twpayne/fix-dispose
...
Fix dispose
2013-04-23 05:20:05 -07:00
ahocevar
f681a99ce0
Merge pull request #638 from ahocevar/kml-options
...
KML rendering in advanced compilation mode. r=@bartvde
2013-04-23 00:09:26 -07:00
ahocevar
c16b941909
Exporting KML parser options
...
This is necessary because application developers need to be able
to configure the KML parser.
2013-04-22 22:37:20 +02:00
Tom Payne
d8357ae932
Fix use of dispose in ol.parser.KML
2013-04-22 17:14:31 +02:00
Bart van den Eijnden
feb6c4c2d7
Add AsyncStringFeatureParser and use plain
...
XMLHttpRequest in the KML example
Since the content-type on github.io is application/octet-stream we need
to implement an Async string based parser interface in the KML parser.
Also use plain XmlHttpRequest in the example instead of jQuery Ajax since
the vector-features example also uses that.
2013-04-22 16:45:33 +02:00
Tom Payne
b2cc0c9bd8
Use ii instead of len for array length cache for consistency
2013-04-20 11:34:49 +02:00
Tom Payne
f81658f542
Port parsers to new extents
2013-04-19 10:03:36 +02:00
Bart van den Eijnden
8cc70f35d9
use goog.global, restructure to have ol.parser.KML instead of ol.parser.ogc.KML
2013-04-10 10:17:28 +02:00
Bart van den Eijnden
ed9861317f
Add a parser for reading and writing KML.
...
This adds ol.parser.ogc.KML which can be used to read and write KML documents.
NetworkLinks are retrieved asynchronously.
Current caveats of the implementation are:
* LabelStyle not yet implemented. Missing support in renderers.
* When using shared structures the parser needs to be configured with
dimension 2.
* We need a better way to disable fill, currently we use opacity as a
workaround.
* We cannot really roundtrip documents, since some of the info is not
preserved in the ol structures. But we can write out most of the important
info.
2013-04-09 15:34:03 +02:00
Tom Payne
a6a60149f1
Merge pull request #494 from twpayne/use-goog-base
...
Use Closure type identification functions
2013-04-08 10:16:52 -07:00
Tom Payne
f1cc5b87da
Fix whitespace errors in JavaScript source
2013-04-08 13:25:01 +02:00
Tom Payne
7a2ad8c506
Use Closure type identification functions
2013-04-07 12:31:54 +02:00
Tom Payne
ec77455c14
Be more consistent with parser options
2013-04-06 20:44:23 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Tom Payne
8b5367c947
Use Infinity instead of Number.POSITIVE_INFINITY
2013-03-22 11:34:44 +01:00
Bruno Binet
c1db1cd491
Use correct namespaceURI for WGS84BoundingBox reader
...
(closes #356 )
2013-03-20 14:39:14 +01:00
ahocevar
fad036aa53
Merge branch 'master' of github.com:openlayers/ol3 into vector
...
Conflicts:
src/objectliterals.exports
2013-03-12 08:39:16 +01:00
Tom Payne
a0b1d74bb5
Merge pull request #337 from Turbo87/polyline
...
Added ol.parser.polyline module
2013-03-11 13:55:04 -07:00
Tobias Bieniek
1172e58a50
polyline: Replaced "new Array()" by "[]"
2013-03-11 21:41:32 +01:00
Tobias Bieniek
0df5b4cad2
polyline: Improved decoding loops to be more robust
2013-03-11 20:32:25 +01:00
Bruno Binet
dc440a6604
Ensure supportedCRS property won't be renamed
...
this property was renamed when using wmts parser when built with
ADVANCED_OPTIMIZATIONS
2013-03-11 10:42:37 +01:00
Tobias Bieniek
8a34eaa4a4
polyline: Removed extra space in encodeFloats() function
2013-03-10 20:46:29 +01:00
Tobias Bieniek
6f08122398
polyline: Used new *Deltas() functions in *FlatCoordinates()
2013-03-10 20:45:12 +01:00
Tobias Bieniek
aef15947c8
polyline: Added encode/decodeDeltas() functions
2013-03-10 20:44:34 +01:00
Tobias Bieniek
02707401a3
polyline: Added encode/decodeFloats() functions
2013-03-10 20:04:54 +01:00
Tobias Bieniek
cbdaf1035d
polyline: Added encode/decodeSignedIntegers() functions
2013-03-10 19:05:14 +01:00
Tobias Bieniek
78278798bb
polyline: Added encode/decodeUnsignedIntegers() functions
2013-03-10 18:48:49 +01:00
Tobias Bieniek
395942fe8c
polyline: Only declare i variable once
...
Javascript only has function-wide scoping...
2013-03-10 16:33:44 +01:00
Tobias Bieniek
8bf6627354
polyline: Renamed variables to camelCase convention
2013-03-10 16:28:29 +01:00
Tobias Bieniek
76fc372a14
polyline: Added missing parenthesis for one-line statements
2013-03-10 16:24:30 +01:00
Tobias Bieniek
ea227419a3
polyline: Added encode/decodeFlatCoordinates() functions
2013-03-10 01:25:59 +01:00
Tobias Bieniek
04d764f4f3
polyline: Added encode/decodeFloat() functions
2013-03-09 23:17:29 +01:00
Tobias Bieniek
e802cc3d56
polyline: Added decodeSigned/UnsignedInteger() functions
2013-03-09 22:40:07 +01:00
Tobias Bieniek
36923d6688
Added basic ol.parser.polyline module
...
This module will contain the low-level functions for Google's "Encoded
Polyline" algorithm.
2013-03-09 22:19:59 +01:00
ahocevar
389b8d14d7
Support GeoJSON as parsed object
...
With this change, we can programmatically create
GeoJSONFeatureCollection objects programmatically, without
reading a GeoJSON file.
2013-03-08 16:25:23 +01:00
Tim Schaub
4422e3e73b
Merge branch 'master' of github.com:openlayers/ol3 into vector
2013-03-07 23:10:06 -07:00
Tim Schaub
b28a1efec6
Export GeoJSON parser
2013-03-07 10:26:15 -07:00
Bart van den Eijnden
1f510d893f
Merge pull request #282 from bartvde/wms1_0_0
...
add WMS GetCapabilities 1.0.0 parser (=r@elemoine)
2013-03-07 05:06:13 -08:00
Bart van den Eijnden
0dab671072
add WMS 1.0.0 parsing to false by default
2013-03-07 13:53:26 +01:00
Tom Payne
afcbec469a
Rename ol.projection.getFromCode to ol.projection.get
2013-03-07 13:29:39 +01:00
Bruno Binet
382022bdb5
Add defaultNamespaceURI and errorProperty properties for WMTS.
...
Thanks @bartvde.
2013-03-06 02:20:10 +01:00
Bart van den Eijnden
dfcdf75449
add WMS 1.0.0 parser
2013-03-05 13:26:04 +01:00