Commit Graph

12879 Commits

Author SHA1 Message Date
Benjamin Thurm
a19e992a5b Run files via shell commands for Win compatibility 2014-02-26 09:53:56 +01:00
Tim Schaub
667f4278b3 Merge pull request #1748 from tschaub/roughly
Fix test failures on Chrome 33.  The trig functions in V8 have changed, and are may change again (see https://code.google.com/p/v8/issues/detail?id=3006 for the full story).  As a result, we no longer rely on Vincenty for antipodal distance calculations (not recommended anyway), and we use a very low precision match for testing cosine distance on a sphere.
2014-02-25 15:39:31 -07:00
Tom Payne
69addbca87 Merge pull request #1749 from twpayne/windows-newlines
Generate proper line endings on Windows
2014-02-25 22:26:54 +01:00
Tom Payne
face69cda9 Remove reference to stale build/src/external/src/types.js target 2014-02-25 22:16:45 +01:00
Tom Payne
d0c83c74d2 Update to the latest version of pake 2014-02-25 22:02:35 +01:00
Bart van den Eijnden
a78b25cdca Merge pull request #1760 from bartvde/gmlfix2
Get rid of unneccessary if else statements in the GML format (r=@ahocevar)
2014-02-25 20:14:13 +01:00
Bart van den Eijnden
a2c01b1090 Get rid of unneccessary if else statements in the GML format 2014-02-25 19:58:15 +01:00
Bart van den Eijnden
c945768e0e Merge pull request #1752 from bartvde/gml-rewrite
Add format for reading GML v3 (r=@ahocevar)
2014-02-25 19:30:56 +01:00
Bart van den Eijnden
28b12e1b28 Remove unused ol.format.GML.NAMESPACE_URIS_ 2014-02-25 19:13:20 +01:00
Bart van den Eijnden
272a3762d6 Make sure function naming convention is consistent 2014-02-25 18:53:30 +01:00
Bart van den Eijnden
182eba5890 Use goog.isDef where possible 2014-02-25 17:41:14 +01:00
Bart van den Eijnden
7d02c4a371 Handle undefined value at readGeometryFromNode instead 2014-02-25 17:28:36 +01:00
Bart van den Eijnden
46a6f96032 Handle that ol.xml.pushParseAndPop can return undefined 2014-02-25 17:25:14 +01:00
Bart van den Eijnden
8d623d765a Do not create parsers in wfs namespace if not needed 2014-02-25 17:11:24 +01:00
Bart van den Eijnden
6256bf1989 Add feature id (fid) parsing 2014-02-25 16:28:10 +01:00
Bart van den Eijnden
98368a554d Use ol.xml.pushParseAndPop instead 2014-02-25 14:58:16 +01:00
Tom Payne
63e5ec9020 Merge pull request #1756 from twpayne/clean-up-preload
Move preload default value to where it is used
2014-02-25 14:51:22 +01:00
Bart van den Eijnden
346aa730e5 Merge pull request #5 from ahocevar/gml-context
Always use a context for GML parsing
2014-02-25 14:48:10 +01:00
ahocevar
71e1dc9f45 Always use a context for GML parsing
The context is at the bottom of the object stack. All entry
points to parsing (#readGeometryFromNode(),
#readFeaturesFromNode()) set up the context now, and parsers
always access the context at index 0 of the objectStack.
2014-02-25 14:33:20 +01:00
Bart van den Eijnden
679b152852 Add srsName info at index 0 in the stack 2014-02-25 13:58:19 +01:00
Bart van den Eijnden
08e2ccb59a Handle srsName better 2014-02-25 13:22:15 +01:00
Bart van den Eijnden
cbe71fefd0 Merge pull request #4 from ahocevar/gml-stack
Use stack instead of recursion
2014-02-25 09:45:10 +01:00
ahocevar
b4454535f7 Use stack instead of recursion for features
This also allows us to work without a local copy of the
namespace URIs.
2014-02-25 09:34:38 +01:00
Tim Schaub
bfc42ffa62 More realistic precision for cosine distance results
Chris Veness' discussion of using the spherical law of cosines (http://www.movable-type.co.uk/scripts/latlong.html) suggests it gives well-conditioned results "around 1 metre" in JavaScript (this assumes a sphere with 6,371km radius).

In Chrome 33, Math.pow(Math.cos(Math.PI / 4), 2) yields 0.4999999999999999.  When we take the arccosine of twice this, we get something significantly different than zero.  Multiplying by 6371 means we can't assert that this is within 1e-9 of zero.
2014-02-24 15:54:17 -07:00
Tim Schaub
ac83bb78f1 More repeated test cases 2014-02-24 15:02:30 -07:00
Tim Schaub
b01e90b942 Removing repeated test cases 2014-02-24 14:59:18 -07:00
Tim Schaub
7f1a13361b Remove antipodal test cases
The Vincenty formula can fail to converge for antipodal points (see http://en.wikipedia.org/wiki/Vincenty's_formulae#Nearly_antipodal_points), so those test cases are removed.  These tests fail with the latest V8 due to optimization of trig functions with lookup tables.  For example, Math.cos(Math.PI / 2) is no longer calculated based on the value of Math.PI / 2 (which is different than the actual value of π / 2).  Instead, values close to multiples of π / 2 are determined to be 0 (which is arguably what you want).  Previously the tests were relying on very small numbers being returned in this case.
2014-02-24 14:53:00 -07:00
Tim Schaub
2537fb4574 Fixing test failure on Chrome 33 2014-02-24 14:53:00 -07:00
Tom Payne
8c665c0bb1 Move preload property default value into ol.renderer.Layer#manageTilePyramid 2014-02-24 21:26:11 +01:00
Bart van den Eijnden
0a71b5bbaa Rename NAMESPACE_URIS_ to namespaceURIs_ 2014-02-24 16:59:08 +01:00
Bart van den Eijnden
d2c88c1ea3 Use readFeatureFromNode instead 2014-02-24 16:49:35 +01:00
Bart van den Eijnden
0a93bb38f8 Copy NAMESPACE_URIS_ array to the instance 2014-02-24 16:01:15 +01:00
Tom Payne
53d9335282 Merge pull request #1753 from oterral/fix_typo
Fix option name zoomInTipLabel
2014-02-24 15:37:47 +01:00
oterral
7e842b0850 Fix option name zoomInTipLabel 2014-02-24 15:26:13 +01:00
Bart van den Eijnden
831d233874 Move parseGeometry workaround into the tests 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
a095d41ac4 Add support for axis orientation 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
7145179c30 Port over more test cases 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
dd8d69f976 Call setGeometryName on the feature 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
b2885217df Add feature parsing from WFS FeatureCollection 2014-02-24 15:25:54 +01:00
Bart van den Eijnden
796e7be623 Add preliminary read support for features 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
54426133ab Add test case for gml:LinearRing 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
9e44e79789 Add support for gml:MultiSurface 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
e479bd142f Add gml:MultiCurve support 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
086828ba14 Add support for gml:MultiPolygon 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
a484452207 Add support for gml:MultiLineString 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
aa4d798dc7 Add gml:MultiPoint parsing 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
95bbb849bb Deal with srsDimension 2014-02-24 15:25:53 +01:00
Bart van den Eijnden
877d5a445e Add parser for gml:Envelope 2014-02-24 15:25:52 +01:00
Bart van den Eijnden
85fe1bf737 Add parsing for gml:Curve 2014-02-24 15:25:52 +01:00
Bart van den Eijnden
e845d6558c Add parsing for gml:Surface 2014-02-24 15:25:52 +01:00