Condividi tramite


Metodo SqlSpatialServices.GeographyPolygonFromText

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Crea un nuovo valore poligono DbGeography in base al valore WKT e all'identificatore del sistema di coordinate (SRID) specificati.

Spazio dei nomi:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

Sintassi

'Dichiarazione
Public Overrides Function GeographyPolygonFromText ( _
    polygonWellKnownText As String, _
    coordinateSystemId As Integer _
) As DbGeography
'Utilizzo
Dim instance As SqlSpatialServices 
Dim polygonWellKnownText As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeography 

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

Parametri

  • polygonWellKnownText
    Tipo: System.String
    Stringa che contiene una rappresentazione WKT del valore geografico.
  • coordinateSystemId
    Tipo: System.Int32
    Identificatore del sistema di coordinate che deve essere utilizzato dal nuovo valore DbGeography.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeography
Nuovo valore DbGeography definito dal valore WKT con l'identificatore del sistema di coordinate specificato (DefaultCoordinateSystemId).

Vedere anche

Riferimento

SqlSpatialServices Classe

Spazio dei nomi System.Data.Entity.SqlServer