Openlayers 3 OpenLayers 3:3D WKT点

Openlayers 3 OpenLayers 3:3D WKT点,openlayers-3,Openlayers 3,我的SQL数据库中有一些SQLGeometrics,它们表示点并包含一个Z坐标 只要我使用ol.format.WKT().readFeature('POINT(1 2 3)'),{…}我就会得到以下错误: Error: Unexpected `445.332` at position 29 in `POINT (600000.631 200000.848 445.332)` at ol.format.WKT.Parser.prototype.parsePointText_ (http://

我的SQL数据库中有一些SQLGeometrics,它们表示点并包含一个Z坐标

只要我使用
ol.format.WKT().readFeature('POINT(1 2 3)'),{…}
我就会得到以下错误:

Error: Unexpected `445.332` at position 29 in `POINT (600000.631 200000.848 445.332)`
   at ol.format.WKT.Parser.prototype.parsePointText_ (http://localhost:33464/app/lib/openLayers/ol-debug.js:94728:3)
   at ol.format.WKT.Parser.prototype.parseGeometry_ (http://localhost:33464/app/lib/openLayers/ol-debug.js:94687:7)
   at ol.format.WKT.Parser.prototype.parse (http://localhost:33464/app/lib/openLayers/ol-debug.js:94663:3)
   at ol.format.WKT.prototype.parse_ (http://localhost:33464/app/lib/openLayers/ol-debug.js:94287:3)
   at ol.format.WKT.prototype.readGeometryFromText (http://localhost:33464/app/lib/openLayers/ol-debug.js:94368:3)
   at ol.format.WKT.prototype.readFeatureFromText (http://localhost:33464/app/lib/openLayers/ol-debug.js:94307:3)
   at ol.format.TextFeature.prototype.readFeature (http://localhost:33464/app/lib/openLayers/ol-debug.js:84053:3)
现在我不介意OpenLayers无法处理3D坐标,但我能告诉它忽略第三个值而不是引发错误吗?

您必须使用POINTZ()而不是POINT(),因为它是3D的