Condividi tramite


Metodo DbSpatialServices.GeographyCollectionFromText

[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 della raccolta DbGeography in base al valore WKT e all'identificatore del sistema di coordinate (SRID).

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

Sintassi

'Dichiarazione
Public MustOverride Function GeographyCollectionFromText ( _
    geographyCollectionWellKnownText As String, _
    coordinateSystemId As Integer _
) As DbGeography
'Utilizzo
Dim instance As DbSpatialServices 
Dim geographyCollectionWellKnownText As String 
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeography 

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

Parametri

  • geographyCollectionWellKnownText
    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

DbSpatialServices Classe

Spazio dei nomi System.Data.Entity.Spatial