From 700ebb860a62a7152f2e6c0716084e55bd7ded80 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 13 Dec 2013 21:42:25 +0100 Subject: [PATCH 1/3] Don't assume EPSG:4326 in ol.format.Format --- src/ol/format/format.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/format/format.js b/src/ol/format/format.js index 18d924554d..4e3c0a055a 100644 --- a/src/ol/format/format.js +++ b/src/ol/format/format.js @@ -2,7 +2,6 @@ goog.provide('ol.format.Format'); goog.provide('ol.format.FormatType'); goog.require('goog.functions'); -goog.require('ol.proj'); /** @@ -65,9 +64,7 @@ ol.format.Format.prototype.readGeometry = goog.abstractMethod; * @param {Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. */ -ol.format.Format.prototype.readProjection = function(source) { - return ol.proj.get('EPSG:4326'); -}; +ol.format.Format.prototype.readProjection = goog.abstractMethod; /** From c86d7c40e2499035384e70b2d317f97a9c47e8ca Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 13 Dec 2013 21:42:38 +0100 Subject: [PATCH 2/3] Don't assume EPSG:4326 in ol.format.Text --- src/ol/format/textformat.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/format/textformat.js b/src/ol/format/textformat.js index 4db799da68..ca56d9c2e4 100644 --- a/src/ol/format/textformat.js +++ b/src/ol/format/textformat.js @@ -3,7 +3,6 @@ goog.provide('ol.format.Text'); goog.require('goog.asserts'); goog.require('ol.format.Format'); goog.require('ol.format.FormatType'); -goog.require('ol.proj'); @@ -101,9 +100,7 @@ ol.format.Text.prototype.readProjection = function(source) { * @protected * @return {ol.proj.Projection} Projection. */ -ol.format.Text.prototype.readProjectionFromText = function(text) { - return ol.proj.get('EPSG:4326'); -}; +ol.format.Text.prototype.readProjectionFromText = goog.abstractMethod; /** From d46d3a209ed0d5de2e09a4a20483ec87d5639452 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 13 Dec 2013 21:43:11 +0100 Subject: [PATCH 3/3] Don't assume EPSG:4326 in ol.format.XML --- src/ol/format/xmlformat.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ol/format/xmlformat.js b/src/ol/format/xmlformat.js index 8f32bcbeaf..2fd8ddbc54 100644 --- a/src/ol/format/xmlformat.js +++ b/src/ol/format/xmlformat.js @@ -4,7 +4,6 @@ goog.require('goog.asserts'); goog.require('goog.dom.xml'); goog.require('ol.format.Format'); goog.require('ol.format.FormatType'); -goog.require('ol.proj'); @@ -156,9 +155,7 @@ ol.format.XML.prototype.readProjection = function(source) { * @protected * @return {ol.proj.Projection} Projection. */ -ol.format.XML.prototype.readProjectionFromNode = function(node) { - return ol.proj.get('EPSG:4326'); -}; +ol.format.XML.prototype.readProjectionFromNode = goog.abstractMethod; /**