共用方式為


DbSpatialServices.GeometryFromGml 方法 (String, Int32)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

根據指定的地理標記語言 (GML) 值和座標系統識別項 (SRID),建立新的 DbGeometry 值。

命名空間:  System.Data.Entity.Spatial
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Gml")> _
Public MustOverride Function GeometryFromGml ( _
    geometryMarkup As String, _
    coordinateSystemId As Integer _
) As DbGeometry
'用途
Dim instance As DbSpatialServices 
Dim geometryMarkup As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeometry 

returnValue = instance.GeometryFromGml(geometryMarkup, _
    coordinateSystemId)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")]
public abstract DbGeometry GeometryFromGml(
    string geometryMarkup,
    int coordinateSystemId
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Gml")]
public:
virtual DbGeometry^ GeometryFromGml(
    String^ geometryMarkup, 
    int coordinateSystemId
) abstract
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml")>]
abstract GeometryFromGml : 
        geometryMarkup:string * 
        coordinateSystemId:int -> DbGeometry
public abstract function GeometryFromGml(
    geometryMarkup : String, 
    coordinateSystemId : int
) : DbGeometry

參數

  • geometryMarkup
    類型:System.String
    包含幾何值之地理標記語言 (GML) 表示的字串。

傳回值

類型:System.Data.Entity.Spatial.DbGeometry
新的 DbGeometry 值,由具有指定之座標系統識別項 (SRID) 的 GML 值所定義。

請參閱

參考

DbSpatialServices 類別

GeometryFromGml 多載

System.Data.Entity.Spatial 命名空間