当 srsName 属性 包含投影旁边的更多信息时,无法解析 WFS 响应
Failed to parse the WFS response when the srsName property contains more info beside the projection
适用于:
<kms:geometri>
<gml:LineString srsName="EPSG:25832">
<gml:coordinates>718883.722,6193416.066 718847.441,6193419.519</gml:coordinates>
</gml:LineString>
</kms:geometri>
</kms:MatrikelSkel>
但不包括:
<kms:geometri>
<gml:LineString srsName="urn:ogc:def:crs:EPSG::25832">
<gml:coordinates>718883.722,6193416.066 718847.441,6193419.519</gml:coordinates>
</gml:LineString>
</kms:geometri>
</kms:MatrikelSkel>
我猜的原因是srcName。
尝试注册一个等效的投影(确保你之前定义了EPSG:25832)例如:
ol.proj.addEquivalentProjections([ol.proj.get(‘EPSG:25832'), new ol.proj.Projection({code: 'urn:ogc:def:crs:EPSG:25832'})])
适用于:
<kms:geometri>
<gml:LineString srsName="EPSG:25832">
<gml:coordinates>718883.722,6193416.066 718847.441,6193419.519</gml:coordinates>
</gml:LineString>
</kms:geometri>
</kms:MatrikelSkel>
但不包括:
<kms:geometri>
<gml:LineString srsName="urn:ogc:def:crs:EPSG::25832">
<gml:coordinates>718883.722,6193416.066 718847.441,6193419.519</gml:coordinates>
</gml:LineString>
</kms:geometri>
</kms:MatrikelSkel>
我猜的原因是srcName。
尝试注册一个等效的投影(确保你之前定义了EPSG:25832)例如:
ol.proj.addEquivalentProjections([ol.proj.get(‘EPSG:25832'), new ol.proj.Projection({code: 'urn:ogc:def:crs:EPSG:25832'})])