适用于:
<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。
答案 0 :(得分:0)
尝试注册等效投影(确保您之前已定义EPSG:25832),例如:
ol.proj.addEquivalentProjections([ol.proj.get(‘EPSG:25832'), new ol.proj.Projection({code: 'urn:ogc:def:crs:EPSG:25832'})])