DbGeography.FromGml 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| FromGml(String) |
根據指定的地理標記語言(GML)值建立新 DbGeography 值。 |
| FromGml(String, Int32) |
根據指定的地理標記語言(GML)值與座標系統識別碼(SRID)建立新 DbGeography 值。 |
FromGml(String)
根據指定的地理標記語言(GML)值建立新 DbGeography 值。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public static System.Data.Entity.Spatial.DbGeography FromGml(string geographyMarkup);
static member FromGml : string -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String) As DbGeography
參數
- geographyMarkup
- String
一個包含地理標記語言(GML)表示地理值的字串。
傳回
一個由 GML 值定義的新 DbGeography 值,預設地理座標系統識別碼(SRID)( DefaultCoordinateSystemId )。
- 屬性
適用於
FromGml(String, Int32)
根據指定的地理標記語言(GML)值與座標系統識別碼(SRID)建立新 DbGeography 值。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Gml")]
public static System.Data.Entity.Spatial.DbGeography FromGml(string geographyMarkup, int coordinateSystemId);
static member FromGml : string * int -> System.Data.Entity.Spatial.DbGeography
Public Shared Function FromGml (geographyMarkup As String, coordinateSystemId As Integer) As DbGeography
參數
- geographyMarkup
- String
一個包含地理標記語言(GML)表示地理值的字串。
- coordinateSystemId
- Int32
新 DbGeography 值應使用的座標系統識別碼。
傳回
由 GML 值定義的新 DbGeography 值,並附上指定的座標系統識別碼。
- 屬性