diff --git a/src/ol/format/gml/gml2format.js b/src/ol/format/gml/gml2format.js index 30179f6b6b..8255e28fa7 100644 --- a/src/ol/format/gml/gml2format.js +++ b/src/ol/format/gml/gml2format.js @@ -64,7 +64,9 @@ ol.format.GML2.prototype.readFlatCoordinates_ = function(node, objectStack) { var axisOrientation = 'enu'; if (containerSrs) { var proj = ol.proj.get(containerSrs); - axisOrientation = proj.getAxisOrientation(); + if (proj) { + axisOrientation = proj.getAxisOrientation(); + } } var coords = s.split(/[\s,]+/); // The "dimension" attribute is from the GML 3.0.1 spec.