次の方法で共有


DbSpatialServices.GeographyPointFromText メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定した既知のテキスト値と座標系識別子 (SRID) に基づいて、新しい DbGeography 点の値を作成します。

名前空間:  System.Data.Entity.Spatial
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustOverride Function GeographyPointFromText ( _
    pointWellKnownText As String, _
    coordinateSystemId As Integer _
) As DbGeography
'使用
Dim instance As DbSpatialServices 
Dim pointWellKnownText As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeography 

returnValue = instance.GeographyPointFromText(pointWellKnownText, _
    coordinateSystemId)
public abstract DbGeography GeographyPointFromText(
    string pointWellKnownText,
    int coordinateSystemId
)
public:
virtual DbGeography^ GeographyPointFromText(
    String^ pointWellKnownText, 
    int coordinateSystemId
) abstract
abstract GeographyPointFromText : 
        pointWellKnownText:string * 
        coordinateSystemId:int -> DbGeography
public abstract function GeographyPointFromText(
    pointWellKnownText : String, 
    coordinateSystemId : int
) : DbGeography

パラメーター

  • pointWellKnownText
    型 : System.String
    geography 値の既知のテキスト表現を含む文字列。
  • coordinateSystemId
    型 : System.Int32
    新しい DbGeography 値を使用する必要がある座標系の識別子。

戻り値

型 : System.Data.Entity.Spatial.DbGeography
指定された座標系識別子 (SRID) (DefaultCoordinateSystemId) を持つ既知のテキスト値によって定義される新しい DbGeography 値。

参照

参照

DbSpatialServices クラス

System.Data.Entity.Spatial 名前空間