Support deprecated coordinates element for GML3+ formats
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @module ol/format/GML3
|
* @module ol/format/GML3
|
||||||
*/
|
*/
|
||||||
|
import GML2 from './GML2.js';
|
||||||
import GMLBase, {GMLNS} from './GMLBase.js';
|
import GMLBase, {GMLNS} from './GMLBase.js';
|
||||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||||
import LineString from '../geom/LineString.js';
|
import LineString from '../geom/LineString.js';
|
||||||
@@ -1032,6 +1033,7 @@ GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS = {
|
|||||||
'http://www.opengis.net/gml': {
|
'http://www.opengis.net/gml': {
|
||||||
'pos': makeReplacer(GML3.prototype.readFlatPos),
|
'pos': makeReplacer(GML3.prototype.readFlatPos),
|
||||||
'posList': makeReplacer(GML3.prototype.readFlatPosList),
|
'posList': makeReplacer(GML3.prototype.readFlatPosList),
|
||||||
|
'coordinates': makeReplacer(GML2.prototype.readFlatCoordinates),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @module ol/format/GML32
|
* @module ol/format/GML32
|
||||||
*/
|
*/
|
||||||
|
import GML2 from './GML2.js';
|
||||||
import GML3 from './GML3.js';
|
import GML3 from './GML3.js';
|
||||||
import GMLBase from './GMLBase.js';
|
import GMLBase from './GMLBase.js';
|
||||||
import {makeArrayPusher, makeChildAppender, makeReplacer} from '../xml.js';
|
import {makeArrayPusher, makeChildAppender, makeReplacer} from '../xml.js';
|
||||||
@@ -41,6 +42,7 @@ GML32.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS = {
|
|||||||
'http://www.opengis.net/gml/3.2': {
|
'http://www.opengis.net/gml/3.2': {
|
||||||
'pos': makeReplacer(GML3.prototype.readFlatPos),
|
'pos': makeReplacer(GML3.prototype.readFlatPos),
|
||||||
'posList': makeReplacer(GML3.prototype.readFlatPosList),
|
'posList': makeReplacer(GML3.prototype.readFlatPosList),
|
||||||
|
'coordinates': makeReplacer(GML2.prototype.readFlatCoordinates),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user