diff --git a/src/ol/parser/ogc/gml.js b/src/ol/parser/ogc/gml.js index 58c4842be3..688802f3c7 100644 --- a/src/ol/parser/ogc/gml.js +++ b/src/ol/parser/ogc/gml.js @@ -490,23 +490,19 @@ goog.inherits(ol.parser.ogc.GML, ol.parser.XML); /** - * Constants for regExes. - * @enum {RegExp} + * @return {string?} Axis orientation. */ -ol.parser.ogc.GML.regExes = { - epsg: new RegExp('(http:\/\/www\.opengis\.net\/gml\/srs\/epsg.xml#|' + - 'urn:x-ogc:def:crs:EPSG:)', 'i') +ol.parser.ogc.GML.prototype.getAxisOrientation = function() { + return goog.isDef(this.axisOrientation_) ? this.axisOrientation_ : 'enu'; }; /** - * @return {string?} Axis orientation of the data that is currently being - * parsed. + * @return {string?} SRS name. */ -ol.parser.ogc.GML.prototype.getAxisOrientation = function() { - return goog.isDef(this.axisOrientation_) ? - this.axisOrientation_ : this.axisOrientation; -}; +ol.parser.ogc.GML.prototype.getSrsName = function() { + return this.srsName_; +} /** diff --git a/src/ol/proj/epsg4326projection.js b/src/ol/proj/epsg4326projection.js index 3a3ee01396..7257255143 100644 --- a/src/ol/proj/epsg4326projection.js +++ b/src/ol/proj/epsg4326projection.js @@ -44,7 +44,9 @@ ol.proj.EPSG4326.PROJECTIONS = [ new ol.proj.EPSG4326('EPSG:4326', 'neu'), new ol.proj.EPSG4326('urn:ogc:def:crs:EPSG:6.6:4326', 'neu'), new ol.proj.EPSG4326('urn:ogc:def:crs:OGC:1.3:CRS84'), - new ol.proj.EPSG4326('urn:ogc:def:crs:OGC:2:84') + new ol.proj.EPSG4326('urn:ogc:def:crs:OGC:2:84'), + new ol.proj.EPSG4326('http://www.opengis.net/gml/srs/epsg.xml#4326', 'neu'), + new ol.proj.EPSG4326('urn:x-ogc:def:crs:EPSG:4326', 'neu') ];