1 instantiation of DbGeography
System.Data.Entity (1)
System\Data\Spatial\DbSpatialServices.cs (1)
63return new DbGeography(spatialServices, providerValue);
535 references to DbGeography
System.Data.Entity (527)
System\Data\Common\CommandTrees\AbstractExpressions.cs (3)
532/// Creates a <see cref="DbExpression"/> that represents the specified <see cref="DbGeography"/> value, which may be null. 536public static DbExpression FromGeography(DbGeography value) 545public static implicit operator DbExpression(DbGeography value)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
274var geography = e.Value as DbGeography;
System\Data\Common\Internal\Materialization\Shaper.cs (1)
607public DbGeography GetGeographyColumnValue(int ordinal)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (8)
81typeDefaultMap[PrimitiveTypeKind.Geography] = DbGeography.FromText("POINT EMPTY"); 82typeDefaultMap[PrimitiveTypeKind.GeographyPoint] = DbGeography.FromText("POINT EMPTY"); 83typeDefaultMap[PrimitiveTypeKind.GeographyLineString] = DbGeography.FromText("LINESTRING EMPTY"); 84typeDefaultMap[PrimitiveTypeKind.GeographyPolygon] = DbGeography.FromText("POLYGON EMPTY"); 85typeDefaultMap[PrimitiveTypeKind.GeographyMultiPoint] = DbGeography.FromText("MULTIPOINT EMPTY"); 86typeDefaultMap[PrimitiveTypeKind.GeographyMultiLineString] = DbGeography.FromText("MULTILINESTRING EMPTY"); 87typeDefaultMap[PrimitiveTypeKind.GeographyMultiPolygon] = DbGeography.FromText("MULTIPOLYGON EMPTY"); 88typeDefaultMap[PrimitiveTypeKind.GeographyCollection] = DbGeography.FromText("GEOMETRYCOLLECTION EMPTY");
System\Data\Metadata\Edm\PrimitiveType.cs (1)
175return typeof(DbGeography);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (2)
136else if (typeof(System.Data.Spatial.DbGeography).IsAssignableFrom(clrType)) 214primitiveTypes[(int)PrimitiveTypeKind.Geography] = CreatePrimitiveType(typeof(DbGeography), PrimitiveTypeKind.Geography);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (9)
172InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Geography], PrimitiveTypeKind.Geography, EdmConstants.Geography, typeof(DbGeography)); 173InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyPoint], PrimitiveTypeKind.GeographyPoint, EdmConstants.GeographyPoint, typeof(DbGeography)); 174InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyLineString], PrimitiveTypeKind.GeographyLineString, EdmConstants.GeographyLineString, typeof(DbGeography)); 175InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyPolygon], PrimitiveTypeKind.GeographyPolygon, EdmConstants.GeographyPolygon, typeof(DbGeography)); 176InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPoint], PrimitiveTypeKind.GeographyMultiPoint, EdmConstants.GeographyMultiPoint, typeof(DbGeography)); 177InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiLineString], PrimitiveTypeKind.GeographyMultiLineString, EdmConstants.GeographyMultiLineString, typeof(DbGeography)); 178InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyMultiPolygon], PrimitiveTypeKind.GeographyMultiPolygon, EdmConstants.GeographyMultiPolygon, typeof(DbGeography)); 179InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeographyCollection], PrimitiveTypeKind.GeographyCollection, EdmConstants.GeographyCollection, typeof(DbGeography)); 474DbGeography.DefaultCoordinateSystemId));
System\Data\Objects\DataClasses\StructuralObject.cs (6)
1479/// <see cref="System.Data.Spatial.DbGeography"/> value to be checked. 1490protected internal static System.Data.Spatial.DbGeography SetValidValue(System.Data.Spatial.DbGeography value, bool isNullable, string propertyName) 1507/// <see cref="System.Data.Spatial.DbGeography"/> value to be checked. 1515protected internal static System.Data.Spatial.DbGeography SetValidValue(System.Data.Spatial.DbGeography value, bool isNullable)
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
262if (parameterType != typeof(System.Data.Spatial.DbGeography) && parameterType != typeof(System.Data.Spatial.DbGeometry))
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (86)
47(method.DeclaringType == typeof(System.Data.Spatial.DbGeography) || method.DeclaringType == typeof(System.Data.Spatial.DbGeometry)), 56(method.DeclaringType == typeof(System.Data.Spatial.DbGeography) || method.DeclaringType == typeof(System.Data.Spatial.DbGeometry)), 64yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromText(default(string))); 65yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromText(default(string), default(int))); 66yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.PointFromText(default(string), default(int))); 67yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.LineFromText(default(string), default(int))); 68yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.PolygonFromText(default(string), default(int))); 69yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPointFromText(default(string), default(int))); 70yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiLineFromText(default(string), default(int))); 71yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPolygonFromText(default(string), default(int))); 72yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.GeographyCollectionFromText(default(string), default(int))); 73yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromBinary(default(byte[]), default(int))); 74yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromBinary(default(byte[]))); 75yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.PointFromBinary(default(byte[]), default(int))); 76yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.LineFromBinary(default(byte[]), default(int))); 77yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.PolygonFromBinary(default(byte[]), default(int))); 78yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPointFromBinary(default(byte[]), default(int))); 79yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiLineFromBinary(default(byte[]), default(int))); 80yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPolygonFromBinary(default(byte[]), default(int))); 81yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.GeographyCollectionFromBinary(default(byte[]), default(int))); 82yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromGml(default(string))); 83yield return GetStaticMethod(() => System.Data.Spatial.DbGeography.FromGml(default(string), default(int))); 84yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsBinary()); 85yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsGml()); 86yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsText()); 87yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.SpatialEquals(default(System.Data.Spatial.DbGeography))); 88yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Disjoint(default(System.Data.Spatial.DbGeography))); 89yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Intersects(default(System.Data.Spatial.DbGeography))); 90yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Buffer(default(double))); 91yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Distance(default(System.Data.Spatial.DbGeography))); 92yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Intersection(default(System.Data.Spatial.DbGeography))); 93yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Union(default(System.Data.Spatial.DbGeography))); 94yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Difference(default(System.Data.Spatial.DbGeography))); 95yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.SymmetricDifference(default(System.Data.Spatial.DbGeography))); 96yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.ElementAt(default(int))); 97yield return GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.PointAt(default(int))); 144result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromText(default(string))), "GeographyFromText"); 145result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromText(default(string), default(int))), "GeographyFromText"); 146result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.PointFromText(default(string), default(int))), "GeographyPointFromText"); 147result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.LineFromText(default(string), default(int))), "GeographyLineFromText"); 148result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.PolygonFromText(default(string), default(int))), "GeographyPolygonFromText"); 149result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPointFromText(default(string), default(int))), "GeographyMultiPointFromText"); 150result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiLineFromText(default(string), default(int))), "GeographyMultiLineFromText"); 151result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPolygonFromText(default(string), default(int))), "GeographyMultiPolygonFromText"); 152result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.GeographyCollectionFromText(default(string), default(int))), "GeographyCollectionFromText"); 153result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromBinary(default(byte[]), default(int))), "GeographyFromBinary"); 154result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromBinary(default(byte[]))), "GeographyFromBinary"); 155result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.PointFromBinary(default(byte[]), default(int))), "GeographyPointFromBinary"); 156result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.LineFromBinary(default(byte[]), default(int))), "GeographyLineFromBinary"); 157result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.PolygonFromBinary(default(byte[]), default(int))), "GeographyPolygonFromBinary"); 158result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPointFromBinary(default(byte[]), default(int))), "GeographyMultiPointFromBinary"); 159result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiLineFromBinary(default(byte[]), default(int))), "GeographyMultiLineFromBinary"); 160result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.MultiPolygonFromBinary(default(byte[]), default(int))), "GeographyMultiPolygonFromBinary"); 161result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.GeographyCollectionFromBinary(default(byte[]), default(int))), "GeographyCollectionFromBinary"); 162result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromGml(default(string))), "GeographyFromGml"); 163result.Add(GetStaticMethod(() => System.Data.Spatial.DbGeography.FromGml(default(string), default(int))), "GeographyFromGml"); 164result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsBinary()), "AsBinary"); 165result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsGml()), "AsGml"); 166result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.AsText()), "AsText"); 167result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.SpatialEquals(default(System.Data.Spatial.DbGeography))), "SpatialEquals"); 168result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Disjoint(default(System.Data.Spatial.DbGeography))), "SpatialDisjoint"); 169result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Intersects(default(System.Data.Spatial.DbGeography))), "SpatialIntersects"); 170result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Buffer(default(double))), "SpatialBuffer"); 171result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Distance(default(System.Data.Spatial.DbGeography))), "Distance"); 172result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Intersection(default(System.Data.Spatial.DbGeography))), "SpatialIntersection"); 173result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Union(default(System.Data.Spatial.DbGeography))), "SpatialUnion"); 174result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.Difference(default(System.Data.Spatial.DbGeography))), "SpatialDifference"); 175result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.SymmetricDifference(default(System.Data.Spatial.DbGeography))), "SpatialSymmetricDifference"); 176result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.ElementAt(default(int))), "SpatialElementAt"); 177result.Add(GetInstanceMethod((System.Data.Spatial.DbGeography geo) => geo.PointAt(default(int))), "PointAt");
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (31)
48(property.DeclaringType == typeof(System.Data.Spatial.DbGeography) || property.DeclaringType == typeof(System.Data.Spatial.DbGeometry)), 55yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.CoordinateSystemId); 56yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.SpatialTypeName); 57yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Dimension); 58yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.IsEmpty); 59yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.ElementCount); 60yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Latitude); 61yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Longitude); 62yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Elevation); 63yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Measure); 64yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Length); 65yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.StartPoint); 66yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.EndPoint); 67yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.IsClosed); 68yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.PointCount); 69yield return GetProperty((System.Data.Spatial.DbGeography geo) => geo.Area); 100result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.CoordinateSystemId), "CoordinateSystemId"); 101result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.SpatialTypeName), "SpatialTypeName"); 102result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Dimension), "SpatialDimension"); 103result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.IsEmpty), "IsEmptySpatial"); 104result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.ElementCount), "SpatialElementCount"); 105result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Latitude), "Latitude"); 106result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Longitude), "Longitude"); 107result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Elevation), "Elevation"); 108result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Measure), "Measure"); 109result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Length), "SpatialLength"); 110result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.StartPoint), "StartPoint"); 111result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.EndPoint), "EndPoint"); 112result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.IsClosed), "IsClosedSpatial"); 113result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.PointCount), "PointCount"); 114result.Add(GetProperty((System.Data.Spatial.DbGeography geo) => geo.Area), "Area");
System\Data\Objects\SqlClient\SqlSpatialFunctions.cs (15)
35public static System.Data.Spatial.DbGeography PointGeography(System.Double? latitude, System.Double? longitude, System.Int32? spatialReferenceId) 44public static System.String AsTextZM(System.Data.Spatial.DbGeography geographyValue) 53public static System.Data.Spatial.DbGeography BufferWithTolerance(System.Data.Spatial.DbGeography geographyValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative) 62public static System.Double? EnvelopeAngle(System.Data.Spatial.DbGeography geographyValue) 71public static System.Data.Spatial.DbGeography EnvelopeCenter(System.Data.Spatial.DbGeography geographyValue) 80public static System.Boolean? Filter(System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography geographyOther) 89public static System.Boolean? InstanceOf(System.Data.Spatial.DbGeography geographyValue, System.String geometryTypeName) 99public static System.Int32? NumRings(System.Data.Spatial.DbGeography geographyValue) 108public static System.Data.Spatial.DbGeography Reduce(System.Data.Spatial.DbGeography geographyValue, System.Double? tolerance) 117public static System.Data.Spatial.DbGeography RingN(System.Data.Spatial.DbGeography geographyValue, System.Int32? index)
System\Data\Spatial\DbGeography.cs (61)
70/// Creates a new <see cref="DbGeography"/> value based on the specified well known binary value. 73/// <returns>A new DbGeography value as defined by the well known binary value with the default geography coordinate system identifier (SRID)(<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 75public static DbGeography FromBinary(byte[] wellKnownBinary) 82/// Creates a new <see cref="DbGeography"/> value based on the specified well known binary value and coordinate system identifier (SRID). 89public static DbGeography FromBinary(byte[] wellKnownBinary, int coordinateSystemId) 96/// Creates a new <see cref="DbGeography"/> line value based on the specified well known binary value and coordinate system identifier (SRID). 103public static DbGeography LineFromBinary(byte[] lineWellKnownBinary, int coordinateSystemId) 110/// Creates a new <see cref="DbGeography"/> point value based on the specified well known binary value and coordinate system identifier (SRID). 117public static DbGeography PointFromBinary(byte[] pointWellKnownBinary, int coordinateSystemId) 124/// Creates a new <see cref="DbGeography"/> polygon value based on the specified well known binary value and coordinate system identifier (SRID). 131public static DbGeography PolygonFromBinary(byte[] polygonWellKnownBinary, int coordinateSystemId) 138/// Creates a new <see cref="DbGeography"/> MultiLine value based on the specified well known binary value and coordinate system identifier (SRID). 149public static DbGeography MultiLineFromBinary(byte[] multiLineWellKnownBinary, int coordinateSystemId) 156/// Creates a new <see cref="DbGeography"/> MultiPoint value based on the specified well known binary value and coordinate system identifier (SRID). 167public static DbGeography MultiPointFromBinary(byte[] multiPointWellKnownBinary, int coordinateSystemId) 174/// Creates a new <see cref="DbGeography"/> MultiPolygon value based on the specified well known binary value and coordinate system identifier (SRID). 183public static DbGeography MultiPolygonFromBinary(byte[] multiPolygonWellKnownBinary, int coordinateSystemId) 190/// Creates a new <see cref="DbGeography"/> collection value based on the specified well known binary value and coordinate system identifier (SRID). 197public static DbGeography GeographyCollectionFromBinary(byte[] geographyCollectionWellKnownBinary, int coordinateSystemId) 208/// Creates a new <see cref="DbGeography"/> value based on the specified Geography Markup Language (GML) value. 211/// <returns>A new DbGeography value as defined by the GML value with the default geography coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 214public static DbGeography FromGml(string geographyMarkup) 221/// Creates a new <see cref="DbGeography"/> value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). 229public static DbGeography FromGml(string geographyMarkup, int coordinateSystemId) 240/// Creates a new <see cref="DbGeography"/> value based on the specified well known text value. 243/// <returns>A new DbGeography value as defined by the well known text value with the default geography coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 245public static DbGeography FromText(string wellKnownText) 252/// Creates a new <see cref="DbGeography"/> value based on the specified well known text value and coordinate system identifier (SRID). 259public static DbGeography FromText(string wellKnownText, int coordinateSystemId) 266/// Creates a new <see cref="DbGeography"/> line value based on the specified well known text value and coordinate system identifier (SRID). 273public static DbGeography LineFromText(string lineWellKnownText, int coordinateSystemId) 280/// Creates a new <see cref="DbGeography"/> point value based on the specified well known text value and coordinate system identifier (SRID). 287public static DbGeography PointFromText(string pointWellKnownText, int coordinateSystemId) 294/// Creates a new <see cref="DbGeography"/> polygon value based on the specified well known text value and coordinate system identifier (SRID). 301public static DbGeography PolygonFromText(string polygonWellKnownText, int coordinateSystemId) 308/// Creates a new <see cref="DbGeography"/> MultiLine value based on the specified well known text value and coordinate system identifier (SRID). 319public static DbGeography MultiLineFromText(string multiLineWellKnownText, int coordinateSystemId) 326/// Creates a new <see cref="DbGeography"/> MultiPoint value based on the specified well known text value and coordinate system identifier (SRID). 337public static DbGeography MultiPointFromText(string multiPointWellKnownText, int coordinateSystemId) 344/// Creates a new <see cref="DbGeography"/> MultiPolygon value based on the specified well known text value and coordinate system identifier (SRID). 353public static DbGeography MultiPolygonFromText(string multiPolygonWellKnownText, int coordinateSystemId) 360/// Creates a new <see cref="DbGeography"/> collection value based on the specified well known text value and coordinate system identifier (SRID). 367public static DbGeography GeographyCollectionFromText(string geographyCollectionWellKnownText, int coordinateSystemId) 383/// Gets the dimension of the given <see cref="DbGeography"/> value or, if the value is a collections, the largest element dimension. 437public bool SpatialEquals(DbGeography other) 449public bool Disjoint(DbGeography other) 461public bool Intersects(DbGeography other) 477public DbGeography Buffer(double? distance) 492public double? Distance(DbGeography other) 504public DbGeography Intersection(DbGeography other) 516public DbGeography Union(DbGeography other) 528public DbGeography Difference(DbGeography other) 540public DbGeography SymmetricDifference(DbGeography other) 561public DbGeography ElementAt(int index) 606public DbGeography StartPoint { get { return this.spatialSvcs.GetStartPoint(this); } } 611public DbGeography EndPoint { get { return this.spatialSvcs.GetEndPoint(this); } } 633public DbGeography PointAt(int index)
System\Data\Spatial\DbGeographyWellKnownValue.cs (1)
14/// A data contract serializable representation of a <see cref="DbGeography"/> value.
System\Data\Spatial\DbSpatialDataReader.cs (2)
19/// When implemented in derived types, reads an instance of <see cref="DbGeography"/> from the column at the specified column ordinal. 23public abstract DbGeography GetGeography(int ordinal);
System\Data\Spatial\DbSpatialServices.cs (142)
55/// <param name="spatialServices">The spatial services instance that the returned <see cref="DbGeography"/> value will depend on for its implementation of spatial functionality.</param> 57/// <returns>A new <see cref="DbGeography"/> instance that contains the specified <paramref name="providerValue"/> and uses the specified <paramref name="spatialServices"/> as its spatial implementation</returns> 59protected static DbGeography CreateGeography(DbSpatialServices spatialServices, object providerValue) 67/// Creates a new <see cref="DbGeography"/> value based on a provider-specific value that is compatible with this spatial services implementation. 73public abstract DbGeography GeographyFromProviderValue(object providerValue); 76/// Creates a provider-specific value compatible with this spatial services implementation based on the specified well known <see cref="DbGeography"/> representation. 84/// Creates an instance of <see cref="DbGeographyWellKnownValue"/> that represents the specified <see cref="DbGeography"/> value using one or both of the standard well known spatial formats. 90public abstract DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue); 95/// Creates a new <see cref="DbGeography"/> value based on the specified well known binary value. 98/// <returns>A new DbGeography value as defined by the well known binary value with the default DbGeography coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 100public abstract DbGeography GeographyFromBinary(byte[] wellKnownBinary); 103/// Creates a new <see cref="DbGeography"/> value based on the specified well known binary value and coordinate system identifier (SRID). 107/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 110public abstract DbGeography GeographyFromBinary(byte[] wellKnownBinary, int coordinateSystemId); 113/// Creates a new <see cref="DbGeography"/> line value based on the specified well known binary value and coordinate system identifier (SRID). 117/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 120public abstract DbGeography GeographyLineFromBinary(byte[] lineWellKnownBinary, int coordinateSystemId); 123/// Creates a new <see cref="DbGeography"/> point value based on the specified well known binary value and coordinate system identifier (SRID). 127/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 130public abstract DbGeography GeographyPointFromBinary(byte[] pointWellKnownBinary, int coordinateSystemId); 133/// Creates a new <see cref="DbGeography"/> polygon value based on the specified well known binary value and coordinate system identifier (SRID). 137/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 140public abstract DbGeography GeographyPolygonFromBinary(byte[] polygonWellKnownBinary, int coordinateSystemId); 143/// Creates a new <see cref="DbGeography"/> multiline value based on the specified well known binary value and coordinate system identifier (SRID). 147/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 154public abstract DbGeography GeographyMultiLineFromBinary(byte[] multiLineWellKnownBinary, int coordinateSystemId); 157/// Creates a new <see cref="DbGeography"/> multipoint value based on the specified well known binary value and coordinate system identifier (SRID). 161/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 168public abstract DbGeography GeographyMultiPointFromBinary(byte[] multiPointWellKnownBinary, int coordinateSystemId); 171/// Creates a new <see cref="DbGeography"/> multipolygon value based on the specified well known binary value and coordinate system identifier (SRID). 175/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 180public abstract DbGeography GeographyMultiPolygonFromBinary(byte[] multiPolygonWellKnownBinary, int coordinateSystemId); 183/// Creates a new <see cref="DbGeography"/> collection value based on the specified well known binary value and coordinate system identifier (SRID). 187/// <returns>A new DbGeography value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 190public abstract DbGeography GeographyCollectionFromBinary(byte[] geographyCollectionWellKnownBinary, int coordinateSystemId); 197/// Creates a new <see cref="DbGeography"/> value based on the specified well known text value. 200/// <returns>A new DbGeography value as defined by the well known text value with the default DbGeography coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 202public abstract DbGeography GeographyFromText(string wellKnownText); 205/// Creates a new <see cref="DbGeography"/> value based on the specified well known text value and coordinate system identifier (SRID). 209/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 212public abstract DbGeography GeographyFromText(string wellKnownText, int coordinateSystemId); 215/// Creates a new <see cref="DbGeography"/> line value based on the specified well known text value and coordinate system identifier (SRID). 219/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 222public abstract DbGeography GeographyLineFromText(string lineWellKnownText, int coordinateSystemId); 225/// Creates a new <see cref="DbGeography"/> point value based on the specified well known text value and coordinate system identifier (SRID). 229/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 232public abstract DbGeography GeographyPointFromText(string pointWellKnownText, int coordinateSystemId); 235/// Creates a new <see cref="DbGeography"/> polygon value based on the specified well known text value and coordinate system identifier (SRID). 239/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 242public abstract DbGeography GeographyPolygonFromText(string polygonWellKnownText, int coordinateSystemId); 245/// Creates a new <see cref="DbGeography"/> multiline value based on the specified well known text value and coordinate system identifier (SRID). 249/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 256public abstract DbGeography GeographyMultiLineFromText(string multiLineWellKnownText, int coordinateSystemId); 259/// Creates a new <see cref="DbGeography"/> multipoint value based on the specified well known text value and coordinate system identifier (SRID). 263/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 270public abstract DbGeography GeographyMultiPointFromText(string multiPointWellKnownText, int coordinateSystemId); 273/// Creates a new <see cref="DbGeography"/> multipolygon value based on the specified well known text value and coordinate system identifier (SRID). 277/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 282public abstract DbGeography GeographyMultiPolygonFromText(string multiPolygonWellKnownText, int coordinateSystemId); 285/// Creates a new <see cref="DbGeography"/> collection value based on the specified well known text value and coordinate system identifier (SRID). 289/// <returns>A new DbGeography value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 292public abstract DbGeography GeographyCollectionFromText(string geographyCollectionWellKnownText, int coordinateSystemId); 299/// Creates a new <see cref="DbGeography"/> value based on the specified Geography Markup Language (GML) value. 302/// <returns>A new DbGeography value as defined by the GML value with the default DbGeography coordinate system identifier (SRID) (<see cref="DbGeography.DefaultCoordinateSystemId"/>).</returns> 305public abstract DbGeography GeographyFromGml(string geographyMarkup); 308/// Creates a new <see cref="DbGeography"/> value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). 316public abstract DbGeography GeographyFromGml(string geographyMarkup, int coordinateSystemId); 329public abstract int GetCoordinateSystemId(DbGeography geographyValue); 332/// Gets the dimension of the given <see cref="DbGeography"/> value or, if the value is a collections, the largest element dimension. 335/// <returns>The dimension of <paramref name="geographyValue"/>, or the largest element dimension if <see cref="DbGeography"/> is a collection.</returns> 338public abstract int GetDimension(DbGeography geographyValue); 347public abstract string GetSpatialTypeName(DbGeography geographyValue); 356public abstract bool GetIsEmpty(DbGeography geographyValue); 363/// Gets the well known text representation of the given <see cref="DbGeography"/> value. This value should include only the Longitude and Latitude of points. 369public abstract string AsText(DbGeography geographyValue); 372/// Gets the well known text representation of the given <see cref="DbGeography"/> value, including Longitude, Latitude, Elevation (Z) and Measure (M) for points. 378public virtual string AsTextIncludingElevationAndMeasure(DbGeography geographyValue) 384/// Gets the well known binary representation of the given <see cref="DbGeography"/> value. 390public abstract byte[] AsBinary(DbGeography geographyValue); 394/// Generates the Geography Markup Language (GML) representation of this <see cref="DbGeography"/> value. 401public abstract string AsGml(DbGeography geographyValue); 408/// Determines whether the two given <see cref="DbGeography"/> values are spatially equal. 415public abstract bool SpatialEquals(DbGeography geographyValue, DbGeography otherGeography); 418/// Determines whether the two given <see cref="DbGeography"/> values are spatially disjoint. 425public abstract bool Disjoint(DbGeography geographyValue, DbGeography otherGeography); 428/// Determines whether the two given <see cref="DbGeography"/> values spatially intersect. 435public abstract bool Intersects(DbGeography geographyValue, DbGeography otherGeography); 442/// Creates a geography value representing all points less than or equal to <paramref name="distance"/> from the given <see cref="DbGeography"/> value. 449public abstract DbGeography Buffer(DbGeography geographyValue, double distance); 452/// Computes the distance between the closest points in two <see cref="DbGeography"/> values. 459public abstract double Distance(DbGeography geographyValue, DbGeography otherGeography); 462/// Computes the intersection of two <see cref="DbGeography"/> values. 469public abstract DbGeography Intersection(DbGeography geographyValue, DbGeography otherGeography); 472/// Computes the union of two <see cref="DbGeography"/> values. 479public abstract DbGeography Union(DbGeography geographyValue, DbGeography otherGeography); 482/// Computes the difference of two <see cref="DbGeography"/> values. 489public abstract DbGeography Difference(DbGeography geographyValue, DbGeography otherGeography); 492/// Computes the symmetric difference of two <see cref="DbGeography"/> values. 499public abstract DbGeography SymmetricDifference(DbGeography geographyValue, DbGeography otherGeography); 506/// Returns the number of elements in the given <see cref="DbGeography"/> value, if it represents a geography collection. 512public abstract int? GetElementCount(DbGeography geographyValue); 515/// Returns an element of the given <see cref="DbGeography"/> value, if it represents a geography collection. 522public abstract DbGeography ElementAt(DbGeography geographyValue, int index); 529/// Returns the Latitude coordinate of the given <see cref="DbGeography"/> value, if it represents a point. 535public abstract double? GetLatitude(DbGeography geographyValue); 538/// Returns the Longitude coordinate of the given <see cref="DbGeography"/> value, if it represents a point. 544public abstract double? GetLongitude(DbGeography geographyValue); 547/// Returns the elevation (Z coordinate) of the given <see cref="DbGeography"/> value, if it represents a point. 553public abstract double? GetElevation(DbGeography geographyValue); 556/// Returns the M (Measure) coordinate of the given <see cref="DbGeography"/> value, if it represents a point. 562public abstract double? GetMeasure(DbGeography geographyValue); 569/// Returns a nullable double value that indicates the length of the given <see cref="DbGeography"/> value, which may be null if the value does not represent a curve. 575public abstract double? GetLength(DbGeography geographyValue); 578/// Returns a <see cref="DbGeography"/> value that represents the start point of the given DbGeography value, which may be null if the value does not represent a curve. 584public abstract DbGeography GetStartPoint(DbGeography geographyValue); 587/// Returns a <see cref="DbGeography"/> value that represents the end point of the given DbGeography value, which may be null if the value does not represent a curve. 593public abstract DbGeography GetEndPoint(DbGeography geographyValue); 596/// Returns a nullable Boolean value that whether the given <see cref="DbGeography"/> value is closed, which may be null if the value does not represent a curve. 602public abstract bool? GetIsClosed(DbGeography geographyValue); 609/// Returns the number of points in the given <see cref="DbGeography"/> value, if it represents a linestring or linear ring. 615public abstract int? GetPointCount(DbGeography geographyValue); 618/// Returns a point element of the given <see cref="DbGeography"/> value, if it represents a linestring or linear ring. 625public abstract DbGeography PointAt(DbGeography geographyValue, int index); 632/// Returns a nullable double value that indicates the area of the given <see cref="DbGeography"/> value, which may be null if the value does not represent a surface. 638public abstract double? GetArea(DbGeography geographyValue);
System\Data\Spatial\DefaultSpatialServices.cs (72)
68private static ReadOnlySpatialValues CheckCompatible(DbGeography geographyValue) 98public override DbGeography GeographyFromProviderValue(object providerValue) 111public override DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue) 120public override DbGeography GeographyFromBinary(byte[] geographyBinary) 123ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(DbGeography.DefaultCoordinateSystemId, textValue: null, binaryValue: geographyBinary, gmlValue: null); 127public override DbGeography GeographyFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 134public override DbGeography GeographyLineFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 140public override DbGeography GeographyPointFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 146public override DbGeography GeographyPolygonFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 152public override DbGeography GeographyMultiLineFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 158public override DbGeography GeographyMultiPointFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 165public override DbGeography GeographyMultiPolygonFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 171public override DbGeography GeographyCollectionFromBinary(byte[] geographyBinary, int spatialReferenceSystemId) 181public override DbGeography GeographyFromText(string geographyText) 184ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(DbGeography.DefaultCoordinateSystemId, textValue: geographyText, binaryValue: null, gmlValue: null); 188public override DbGeography GeographyFromText(string geographyText, int spatialReferenceSystemId) 195public override DbGeography GeographyLineFromText(string geographyText, int spatialReferenceSystemId) 201public override DbGeography GeographyPointFromText(string geographyText, int spatialReferenceSystemId) 207public override DbGeography GeographyPolygonFromText(string geographyText, int spatialReferenceSystemId) 213public override DbGeography GeographyMultiLineFromText(string geographyText, int spatialReferenceSystemId) 219public override DbGeography GeographyMultiPointFromText(string geographyText, int spatialReferenceSystemId) 226public override DbGeography GeographyMultiPolygonFromText(string geographyText, int spatialReferenceSystemId) 232public override DbGeography GeographyCollectionFromText(string geographyText, int spatialReferenceSystemId) 242public override DbGeography GeographyFromGml(string geographyMarkup) 245ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(DbGeography.DefaultCoordinateSystemId, textValue: null, binaryValue: null, gmlValue: geographyMarkup); 249public override DbGeography GeographyFromGml(string geographyMarkup, int spatialReferenceSystemId) 260public override int GetCoordinateSystemId(DbGeography geographyValue) 267public override int GetDimension(DbGeography geographyValue) 272public override string GetSpatialTypeName(DbGeography geographyValue) 277public override bool GetIsEmpty(DbGeography geographyValue) 286public override string AsText(DbGeography geographyValue) 293public override byte[] AsBinary(DbGeography geographyValue) 300public override string AsGml(DbGeography geographyValue) 311public override bool SpatialEquals(DbGeography geographyValue, DbGeography otherGeography) 316public override bool Disjoint(DbGeography geographyValue, DbGeography otherGeography) 321public override bool Intersects(DbGeography geographyValue, DbGeography otherGeography) 330public override DbGeography Buffer(DbGeography geographyValue, double distance) 335public override double Distance(DbGeography geographyValue, DbGeography otherGeography) 340public override DbGeography Intersection(DbGeography geographyValue, DbGeography otherGeography) 345public override DbGeography Union(DbGeography geographyValue, DbGeography otherGeography) 350public override DbGeography Difference(DbGeography geographyValue, DbGeography otherGeography) 355public override DbGeography SymmetricDifference(DbGeography geographyValue, DbGeography otherGeography) 365public override int? GetElementCount(DbGeography geographyValue) 370public override DbGeography ElementAt(DbGeography geographyValue, int index) 379public override double? GetLatitude(DbGeography geographyValue) 384public override double? GetLongitude(DbGeography geographyValue) 389public override double? GetElevation(DbGeography geographyValue) 394public override double? GetMeasure(DbGeography geographyValue) 403public override double? GetLength(DbGeography geographyValue) 408public override DbGeography GetEndPoint(DbGeography geographyValue) 413public override DbGeography GetStartPoint(DbGeography geographyValue) 418public override bool? GetIsClosed(DbGeography geographyValue) 427public override int? GetPointCount(DbGeography geographyValue) 432public override DbGeography PointAt(DbGeography geographyValue, int index) 441public override double? GetArea(DbGeography geographyValue)
System\Data\SqlClient\IDbSpatialValue.cs (7)
16/// Adapter interface to make working with instances of <see cref="DbGeometry"/> or <see cref="DbGeography"/> easier. 39/// Returns an instance of <see cref="IDbSpatialValue"/> that wraps the specified <see cref="DbGeography"/> value. 44internal static IDbSpatialValue AsSpatialValue(this DbGeography geographyValue) 71private readonly DbGeography value; 73internal DbGeographyAdapter(DbGeography geomValue) 78private TResult NullIfNotImplemented<TResult>(Func<DbGeography, TResult> accessor) 91private int? NullIfNotImplemented(Func<DbGeography, int> accessor)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
474private static readonly DbExpression defaultGeographySridExpression = DbExpressionBuilder.Constant(DbGeography.DefaultCoordinateSystemId);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
987AppendSpatialConstant(result, ((DbGeography)e.Value).AsSpatialValue());
System\Data\SqlClient\SqlProviderServices.cs (2)
420DbGeography geographyValue = value as DbGeography;
System\Data\SqlClient\SqlSpatialDataReader.cs (1)
35public override DbGeography GetGeography(int ordinal)
System\Data\SqlClient\SqlSpatialServices.cs (4)
111public override DbGeography GeographyFromProviderValue(object providerValue) 156public override DbGeographyWellKnownValue CreateWellKnownValue(DbGeography geographyValue) 242public override string AsTextIncludingElevationAndMeasure(DbGeography geographyValue) 295private object ConvertToSqlValue(DbGeography geographyValue, string argumentName)
System\Data\SqlClient\SqlSpatialServices.Generated.cs (66)
29public override System.Data.Spatial.DbGeography GeographyFromText(string geographyText) 36public override System.Data.Spatial.DbGeography GeographyFromText(string geographyText, int srid) 43public override System.Data.Spatial.DbGeography GeographyPointFromText(string pointText, int srid) 50public override System.Data.Spatial.DbGeography GeographyLineFromText(string lineText, int srid) 57public override System.Data.Spatial.DbGeography GeographyPolygonFromText(string polygonText, int srid) 64public override System.Data.Spatial.DbGeography GeographyMultiPointFromText(string multiPointText, int srid) 71public override System.Data.Spatial.DbGeography GeographyMultiLineFromText(string multiLineText, int srid) 78public override System.Data.Spatial.DbGeography GeographyMultiPolygonFromText(string multiPolygonText, int srid) 85public override System.Data.Spatial.DbGeography GeographyCollectionFromText(string geographyCollectionText, int srid) 92public override System.Data.Spatial.DbGeography GeographyFromBinary(byte[] geographyBytes, int srid) 99public override System.Data.Spatial.DbGeography GeographyFromBinary(byte[] geographyBytes) 106public override System.Data.Spatial.DbGeography GeographyPointFromBinary(byte[] pointBytes, int srid) 113public override System.Data.Spatial.DbGeography GeographyLineFromBinary(byte[] lineBytes, int srid) 120public override System.Data.Spatial.DbGeography GeographyPolygonFromBinary(byte[] polygonBytes, int srid) 127public override System.Data.Spatial.DbGeography GeographyMultiPointFromBinary(byte[] multiPointBytes, int srid) 134public override System.Data.Spatial.DbGeography GeographyMultiLineFromBinary(byte[] multiLineBytes, int srid) 141public override System.Data.Spatial.DbGeography GeographyMultiPolygonFromBinary(byte[] multiPolygonBytes, int srid) 148public override System.Data.Spatial.DbGeography GeographyCollectionFromBinary(byte[] geographyCollectionBytes, int srid) 155public override System.Data.Spatial.DbGeography GeographyFromGml(string geographyGml) 162public override System.Data.Spatial.DbGeography GeographyFromGml(string geographyGml, int srid) 169public override int GetCoordinateSystemId(System.Data.Spatial.DbGeography geographyValue) 177public override string GetSpatialTypeName(System.Data.Spatial.DbGeography geographyValue) 185public override int GetDimension(System.Data.Spatial.DbGeography geographyValue) 193public override byte[] AsBinary(System.Data.Spatial.DbGeography geographyValue) 201public override string AsGml(System.Data.Spatial.DbGeography geographyValue) 209public override string AsText(System.Data.Spatial.DbGeography geographyValue) 217public override bool GetIsEmpty(System.Data.Spatial.DbGeography geographyValue) 225public override bool SpatialEquals(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 234public override bool Disjoint(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 243public override bool Intersects(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 252public override System.Data.Spatial.DbGeography Buffer(System.Data.Spatial.DbGeography geographyValue, double distance) 260public override double Distance(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 269public override System.Data.Spatial.DbGeography Intersection(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 278public override System.Data.Spatial.DbGeography Union(System.Data.Spatial.DbGeography geographyValue1, System.Data.Spatial.DbGeography geographyValue2) 287public override System.Data.Spatial.DbGeography Difference(System.Data.Spatial.DbGeography geometryValue1, System.Data.Spatial.DbGeography geometryValue2) 296public override System.Data.Spatial.DbGeography SymmetricDifference(System.Data.Spatial.DbGeography geometryValue1, System.Data.Spatial.DbGeography geometryValue2) 305public override int? GetElementCount(System.Data.Spatial.DbGeography geographyValue) 313public override System.Data.Spatial.DbGeography ElementAt(System.Data.Spatial.DbGeography geographyValue, int nValue) 321public override double? GetLatitude(System.Data.Spatial.DbGeography geographyValue) 329public override double? GetLongitude(System.Data.Spatial.DbGeography geographyValue) 337public override double? GetElevation(System.Data.Spatial.DbGeography geographyValue) 345public override double? GetMeasure(System.Data.Spatial.DbGeography geographyValue) 353public override double? GetLength(System.Data.Spatial.DbGeography geographyValue) 361public override System.Data.Spatial.DbGeography GetStartPoint(System.Data.Spatial.DbGeography geographyValue) 369public override System.Data.Spatial.DbGeography GetEndPoint(System.Data.Spatial.DbGeography geographyValue) 377public override bool? GetIsClosed(System.Data.Spatial.DbGeography geographyValue) 385public override int? GetPointCount(System.Data.Spatial.DbGeography geographyValue) 393public override System.Data.Spatial.DbGeography PointAt(System.Data.Spatial.DbGeography geographyValue, int nValue) 401public override double? GetArea(System.Data.Spatial.DbGeography geographyValue)
System\Data\SqlClient\SqlTypesAssembly.cs (2)
387internal string GeographyAsTextZM(DbGeography geographyValue) 418internal object ConvertToSqlTypesGeography(DbGeography geographyValue)
System.Web.DynamicData (2)
DynamicData\FieldTemplateFactory.cs (1)
89_typesFallBacks[typeof(DbGeography)] = typeof(string);
DynamicData\MetaColumn.cs (1)
338if (ColumnType == typeof(DbGeography)) return true;
System.Web.Entity (6)
System\Data\WebControls\EntityDataSourceUtil.cs (6)
530DbGeography geographyResult; 536else if (type.IsAssignableFrom(typeof(DbGeography)) && TryParseGeography(s, out geographyResult)) 585private static bool TryParseGeography(string stringValue, out DbGeography result) 587return TryParseGeo<DbGeography>(stringValue, (geometryText, srid) => DbGeography.FromText(geometryText, srid), out result); 614Debug.Assert(typeof(DbGeography).IsAssignableFrom(typeof(T)) || typeof(DbGeometry).IsAssignableFrom(typeof(T)), "This method should be called only for spatial type");