1 instantiation of DbGeometry
System.Data.Entity (1)
System\Data\Spatial\DbSpatialServices.cs (1)
657
return new
DbGeometry
(spatialServices, providerValue);
696 references to DbGeometry
System.Data.Entity (686)
System\Data\Common\CommandTrees\AbstractExpressions.cs (3)
551
/// Creates a <see cref="DbExpression"/> that represents the specified <see cref="
DbGeometry
"/> value, which may be null.
555
public static DbExpression FromGeometry(
DbGeometry
value)
564
public static implicit operator DbExpression(
DbGeometry
value)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
256
var
geometry = e.Value as
DbGeometry
;
System\Data\Common\Internal\Materialization\Shaper.cs (1)
612
public
DbGeometry
GetGeometryColumnValue(int ordinal)
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (8)
72
typeDefaultMap[PrimitiveTypeKind.Geometry] =
DbGeometry
.FromText("POINT EMPTY");
73
typeDefaultMap[PrimitiveTypeKind.GeometryPoint] =
DbGeometry
.FromText("POINT EMPTY");
74
typeDefaultMap[PrimitiveTypeKind.GeometryLineString] =
DbGeometry
.FromText("LINESTRING EMPTY");
75
typeDefaultMap[PrimitiveTypeKind.GeometryPolygon] =
DbGeometry
.FromText("POLYGON EMPTY");
76
typeDefaultMap[PrimitiveTypeKind.GeometryMultiPoint] =
DbGeometry
.FromText("MULTIPOINT EMPTY");
77
typeDefaultMap[PrimitiveTypeKind.GeometryMultiLineString] =
DbGeometry
.FromText("MULTILINESTRING EMPTY");
78
typeDefaultMap[PrimitiveTypeKind.GeometryMultiPolygon] =
DbGeometry
.FromText("MULTIPOLYGON EMPTY");
79
typeDefaultMap[PrimitiveTypeKind.GeometryCollection] =
DbGeometry
.FromText("GEOMETRYCOLLECTION EMPTY");
System\Data\Metadata\Edm\PrimitiveType.cs (1)
184
return typeof(
DbGeometry
);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (2)
140
else if (typeof(System.Data.Spatial.
DbGeometry
).IsAssignableFrom(clrType))
215
primitiveTypes[(int)PrimitiveTypeKind.Geometry] = CreatePrimitiveType(typeof(
DbGeometry
), PrimitiveTypeKind.Geometry);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (9)
180
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Geometry], PrimitiveTypeKind.Geometry, EdmConstants.Geometry, typeof(
DbGeometry
));
181
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryPoint], PrimitiveTypeKind.GeometryPoint, EdmConstants.GeometryPoint, typeof(
DbGeometry
));
182
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryLineString], PrimitiveTypeKind.GeometryLineString, EdmConstants.GeometryLineString, typeof(
DbGeometry
));
183
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryPolygon], PrimitiveTypeKind.GeometryPolygon, EdmConstants.GeometryPolygon, typeof(
DbGeometry
));
184
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPoint], PrimitiveTypeKind.GeometryMultiPoint, EdmConstants.GeometryMultiPoint, typeof(
DbGeometry
));
185
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiLineString], PrimitiveTypeKind.GeometryMultiLineString, EdmConstants.GeometryMultiLineString, typeof(
DbGeometry
));
186
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryMultiPolygon], PrimitiveTypeKind.GeometryMultiPolygon, EdmConstants.GeometryMultiPolygon, typeof(
DbGeometry
));
187
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.GeometryCollection], PrimitiveTypeKind.GeometryCollection, EdmConstants.GeometryCollection, typeof(
DbGeometry
));
451
DbGeometry
.DefaultCoordinateSystemId));
System\Data\Objects\DataClasses\StructuralObject.cs (6)
1524
/// <see cref="System.Data.Spatial.
DbGeometry
"/> value to be checked.
1535
protected internal static System.Data.Spatial.
DbGeometry
SetValidValue(System.Data.Spatial.
DbGeometry
value, bool isNullable, string propertyName)
1552
/// <see cref="System.Data.Spatial.
DbGeometry
"/> value to be checked.
1560
protected internal static System.Data.Spatial.
DbGeometry
SetValidValue(System.Data.Spatial.
DbGeometry
value, bool isNullable)
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
262
if (parameterType != typeof(System.Data.Spatial.DbGeography) && parameterType != typeof(System.Data.Spatial.
DbGeometry
))
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (112)
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
)),
98
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromText(default(string)));
99
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromText(default(string), default(int)));
100
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PointFromText(default(string), default(int)));
101
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.LineFromText(default(string), default(int)));
102
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PolygonFromText(default(string), default(int)));
103
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPointFromText(default(string), default(int)));
104
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiLineFromText(default(string), default(int)));
105
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPolygonFromText(default(string), default(int)));
106
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.GeometryCollectionFromText(default(string), default(int)));
107
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromBinary(default(byte[])));
108
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromBinary(default(byte[]), default(int)));
109
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PointFromBinary(default(byte[]), default(int)));
110
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.LineFromBinary(default(byte[]), default(int)));
111
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PolygonFromBinary(default(byte[]), default(int)));
112
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPointFromBinary(default(byte[]), default(int)));
113
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiLineFromBinary(default(byte[]), default(int)));
114
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPolygonFromBinary(default(byte[]), default(int)));
115
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.GeometryCollectionFromBinary(default(byte[]), default(int)));
116
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromGml(default(string)));
117
yield return GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromGml(default(string), default(int)));
118
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsBinary());
119
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsGml());
120
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsText());
121
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.SpatialEquals(default(System.Data.Spatial.
DbGeometry
)));
122
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Disjoint(default(System.Data.Spatial.
DbGeometry
)));
123
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Intersects(default(System.Data.Spatial.
DbGeometry
)));
124
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Touches(default(System.Data.Spatial.
DbGeometry
)));
125
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Crosses(default(System.Data.Spatial.
DbGeometry
)));
126
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Within(default(System.Data.Spatial.
DbGeometry
)));
127
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Contains(default(System.Data.Spatial.
DbGeometry
)));
128
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Overlaps(default(System.Data.Spatial.
DbGeometry
)));
129
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Relate(default(System.Data.Spatial.
DbGeometry
), default(string)));
130
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Buffer(default(double)));
131
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Distance(default(System.Data.Spatial.
DbGeometry
)));
132
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Intersection(default(System.Data.Spatial.
DbGeometry
)));
133
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Union(default(System.Data.Spatial.
DbGeometry
)));
134
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Difference(default(System.Data.Spatial.
DbGeometry
)));
135
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.SymmetricDifference(default(System.Data.Spatial.
DbGeometry
)));
136
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.ElementAt(default(int)));
137
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.PointAt(default(int)));
138
yield return GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.InteriorRingAt(default(int)));
178
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromText(default(string))), "GeometryFromText");
179
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromText(default(string), default(int))), "GeometryFromText");
180
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PointFromText(default(string), default(int))), "GeometryPointFromText");
181
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.LineFromText(default(string), default(int))), "GeometryLineFromText");
182
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PolygonFromText(default(string), default(int))), "GeometryPolygonFromText");
183
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPointFromText(default(string), default(int))), "GeometryMultiPointFromText");
184
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiLineFromText(default(string), default(int))), "GeometryMultiLineFromText");
185
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPolygonFromText(default(string), default(int))), "GeometryMultiPolygonFromText");
186
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.GeometryCollectionFromText(default(string), default(int))), "GeometryCollectionFromText");
187
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromBinary(default(byte[]))), "GeometryFromBinary");
188
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromBinary(default(byte[]), default(int))), "GeometryFromBinary");
189
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PointFromBinary(default(byte[]), default(int))), "GeometryPointFromBinary");
190
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.LineFromBinary(default(byte[]), default(int))), "GeometryLineFromBinary");
191
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.PolygonFromBinary(default(byte[]), default(int))), "GeometryPolygonFromBinary");
192
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPointFromBinary(default(byte[]), default(int))), "GeometryMultiPointFromBinary");
193
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiLineFromBinary(default(byte[]), default(int))), "GeometryMultiLineFromBinary");
194
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.MultiPolygonFromBinary(default(byte[]), default(int))), "GeometryMultiPolygonFromBinary");
195
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.GeometryCollectionFromBinary(default(byte[]), default(int))), "GeometryCollectionFromBinary");
196
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromGml(default(string))), "GeometryFromGml");
197
result.Add(GetStaticMethod(() => System.Data.Spatial.
DbGeometry
.FromGml(default(string), default(int))), "GeometryFromGml");
198
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsBinary()), "AsBinary");
199
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsGml()), "AsGml");
200
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.AsText()), "AsText");
201
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.SpatialEquals(default(System.Data.Spatial.
DbGeometry
))), "SpatialEquals");
202
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Disjoint(default(System.Data.Spatial.
DbGeometry
))), "SpatialDisjoint");
203
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Intersects(default(System.Data.Spatial.
DbGeometry
))), "SpatialIntersects");
204
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Touches(default(System.Data.Spatial.
DbGeometry
))), "SpatialTouches");
205
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Crosses(default(System.Data.Spatial.
DbGeometry
))), "SpatialCrosses");
206
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Within(default(System.Data.Spatial.
DbGeometry
))), "SpatialWithin");
207
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Contains(default(System.Data.Spatial.
DbGeometry
))), "SpatialContains");
208
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Overlaps(default(System.Data.Spatial.
DbGeometry
))), "SpatialOverlaps");
209
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Relate(default(System.Data.Spatial.
DbGeometry
), default(string))), "SpatialRelate");
210
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Buffer(default(double))), "SpatialBuffer");
211
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Distance(default(System.Data.Spatial.
DbGeometry
))), "Distance");
212
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Intersection(default(System.Data.Spatial.
DbGeometry
))), "SpatialIntersection");
213
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Union(default(System.Data.Spatial.
DbGeometry
))), "SpatialUnion");
214
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.Difference(default(System.Data.Spatial.
DbGeometry
))), "SpatialDifference");
215
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.SymmetricDifference(default(System.Data.Spatial.
DbGeometry
))), "SpatialSymmetricDifference");
216
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.ElementAt(default(int))), "SpatialElementAt");
217
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.PointAt(default(int))), "PointAt");
218
result.Add(GetInstanceMethod((System.Data.Spatial.
DbGeometry
geo) => geo.InteriorRingAt(default(int))), "InteriorRingAt");
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (51)
48
(property.DeclaringType == typeof(System.Data.Spatial.DbGeography) || property.DeclaringType == typeof(System.Data.Spatial.
DbGeometry
)),
70
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.CoordinateSystemId);
71
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.SpatialTypeName);
72
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Dimension);
73
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Envelope);
74
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsEmpty);
75
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsSimple);
76
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Boundary);
77
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsValid);
78
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ConvexHull);
79
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ElementCount);
80
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.XCoordinate);
81
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.YCoordinate);
82
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Elevation);
83
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Measure);
84
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Length);
85
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.StartPoint);
86
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.EndPoint);
87
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsClosed);
88
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsRing);
89
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.PointCount);
90
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Area);
91
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Centroid);
92
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.PointOnSurface);
93
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ExteriorRing);
94
yield return GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.InteriorRingCount);
115
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.CoordinateSystemId), "CoordinateSystemId");
116
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.SpatialTypeName), "SpatialTypeName");
117
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Dimension), "SpatialDimension");
118
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Envelope), "SpatialEnvelope");
119
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsEmpty), "IsEmptySpatial");
120
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsSimple), "IsSimpleGeometry");
121
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Boundary), "SpatialBoundary");
122
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsValid), "IsValidGeometry");
123
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ConvexHull), "SpatialConvexHull");
124
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ElementCount), "SpatialElementCount");
125
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.XCoordinate), "XCoordinate");
126
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.YCoordinate), "YCoordinate");
127
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Elevation), "Elevation");
128
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Measure), "Measure");
129
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Length), "SpatialLength");
130
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.StartPoint), "StartPoint");
131
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.EndPoint), "EndPoint");
132
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsClosed), "IsClosedSpatial");
133
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.IsRing), "IsRing");
134
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.PointCount), "PointCount");
135
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Area), "Area");
136
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.Centroid), "Centroid");
137
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.PointOnSurface), "PointOnSurface");
138
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.ExteriorRing), "ExteriorRing");
139
result.Add(GetProperty((System.Data.Spatial.
DbGeometry
geo) => geo.InteriorRingCount), "InteriorRingCount");
System\Data\Objects\SqlClient\SqlSpatialFunctions.cs (11)
128
public static System.Data.Spatial.
DbGeometry
PointGeometry(System.Double? xCoordinate, System.Double? yCoordinate, System.Int32? spatialReferenceId)
137
public static System.String AsTextZM(System.Data.Spatial.
DbGeometry
geometryValue)
146
public static System.Data.Spatial.
DbGeometry
BufferWithTolerance(System.Data.Spatial.
DbGeometry
geometryValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative)
155
public static System.Boolean? InstanceOf(System.Data.Spatial.
DbGeometry
geometryValue, System.String geometryTypeName)
164
public static System.Boolean? Filter(System.Data.Spatial.
DbGeometry
geometryValue, System.Data.Spatial.
DbGeometry
geometryOther)
173
public static System.Data.Spatial.
DbGeometry
MakeValid(System.Data.Spatial.
DbGeometry
geometryValue)
182
public static System.Data.Spatial.
DbGeometry
Reduce(System.Data.Spatial.
DbGeometry
geometryValue, System.Double? tolerance)
System\Data\Spatial\DbGeometry.cs (74)
70
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known binary value.
73
/// <returns>A new DbGeometry value as defined by the well known binary value with the default geometry coordinate system identifier (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
75
public static
DbGeometry
FromBinary(byte[] wellKnownBinary)
82
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known binary value and coordinate system identifier (SRID).
89
public static
DbGeometry
FromBinary(byte[] wellKnownBinary, int coordinateSystemId)
96
/// Creates a new <see cref="
DbGeometry
"/> line value based on the specified well known binary value and coordinate system identifier (SRID).
103
public static
DbGeometry
LineFromBinary(byte[] lineWellKnownBinary, int coordinateSystemId)
110
/// Creates a new <see cref="
DbGeometry
"/> point value based on the specified well known binary value and coordinate system identifier (SRID).
117
public static
DbGeometry
PointFromBinary(byte[] pointWellKnownBinary, int coordinateSystemId)
124
/// Creates a new <see cref="
DbGeometry
"/> polygon value based on the specified well known binary value and coordinate system identifier (SRID).
131
public static
DbGeometry
PolygonFromBinary(byte[] polygonWellKnownBinary, int coordinateSystemId)
138
/// Creates a new <see cref="
DbGeometry
"/> multi-line value based on the specified well known binary value and coordinate system identifier (SRID).
149
public static
DbGeometry
MultiLineFromBinary(byte[] multiLineWellKnownBinary, int coordinateSystemId)
156
/// Creates a new <see cref="
DbGeometry
"/> multi-point value based on the specified well known binary value and coordinate system identifier (SRID).
167
public static
DbGeometry
MultiPointFromBinary(byte[] multiPointWellKnownBinary, int coordinateSystemId)
174
/// Creates a new <see cref="
DbGeometry
"/> multi-polygon value based on the specified well known binary value and coordinate system identifier (SRID).
183
public static
DbGeometry
MultiPolygonFromBinary(byte[] multiPolygonWellKnownBinary, int coordinateSystemId)
190
/// Creates a new <see cref="
DbGeometry
"/> collection value based on the specified well known binary value and coordinate system identifier (SRID).
197
public static
DbGeometry
GeometryCollectionFromBinary(byte[] geometryCollectionWellKnownBinary, int coordinateSystemId)
208
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified Geography Markup Language (GML) value.
211
/// <returns>A new DbGeometry value as defined by the GML value with the default geometry coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
214
public static
DbGeometry
FromGml(string geometryMarkup)
221
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
229
public static
DbGeometry
FromGml(string geometryMarkup, int coordinateSystemId)
240
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known text value.
243
/// <returns>A new DbGeometry value as defined by the well known text value with the default geometry coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
245
public static
DbGeometry
FromText(string wellKnownText)
252
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known text value and coordinate system identifier (SRID).
259
public static
DbGeometry
FromText(string wellKnownText, int coordinateSystemId)
266
/// Creates a new <see cref="
DbGeometry
"/> line value based on the specified well known text value and coordinate system identifier (SRID).
273
public static
DbGeometry
LineFromText(string lineWellKnownText, int coordinateSystemId)
280
/// Creates a new <see cref="
DbGeometry
"/> point value based on the specified well known text value and coordinate system identifier (SRID).
287
public static
DbGeometry
PointFromText(string pointWellKnownText, int coordinateSystemId)
294
/// Creates a new <see cref="
DbGeometry
"/> polygon value based on the specified well known text value and coordinate system identifier (SRID).
301
public static
DbGeometry
PolygonFromText(string polygonWellKnownText, int coordinateSystemId)
308
/// Creates a new <see cref="
DbGeometry
"/> multi-line value based on the specified well known text value and coordinate system identifier (SRID).
319
public static
DbGeometry
MultiLineFromText(string multiLineWellKnownText, int coordinateSystemId)
326
/// Creates a new <see cref="
DbGeometry
"/> multi-point value based on the specified well known text value and coordinate system identifier (SRID).
337
public static
DbGeometry
MultiPointFromText(string multiPointWellKnownText, int coordinateSystemId)
344
/// Creates a new <see cref="
DbGeometry
"/> multi-polygon value based on the specified well known text value and coordinate system identifier (SRID).
353
public static
DbGeometry
MultiPolygonFromText(string multiPolygonWellKnownText, int coordinateSystemId)
360
/// Creates a new <see cref="
DbGeometry
"/> collection value based on the specified well known text value and coordinate system identifier (SRID).
367
public static
DbGeometry
GeometryCollectionFromText(string geometryCollectionWellKnownText, int coordinateSystemId)
385
public
DbGeometry
Boundary { get { return this.spatialSvcs.GetBoundary(this); } }
388
/// Gets the dimension of the given <see cref="
DbGeometry
"/> value or, if the value is a collection, the dimension of its largest element.
395
public
DbGeometry
Envelope { get { return this.spatialSvcs.GetEnvelope(this); } }
457
public bool SpatialEquals(
DbGeometry
other)
469
public bool Disjoint(
DbGeometry
other)
481
public bool Intersects(
DbGeometry
other)
493
public bool Touches(
DbGeometry
other)
505
public bool Crosses(
DbGeometry
other)
517
public bool Within(
DbGeometry
other)
529
public bool Contains(
DbGeometry
other)
541
public bool Overlaps(
DbGeometry
other)
555
public bool Relate(
DbGeometry
other, string matrix)
572
public
DbGeometry
Buffer(double? distance)
587
public double? Distance(
DbGeometry
other)
596
public
DbGeometry
ConvexHull { get { return this.spatialSvcs.GetConvexHull(this); } }
604
public
DbGeometry
Intersection(
DbGeometry
other)
616
public
DbGeometry
Union(
DbGeometry
other)
628
public
DbGeometry
Difference(
DbGeometry
other)
640
public
DbGeometry
SymmetricDifference(
DbGeometry
other)
661
public
DbGeometry
ElementAt(int index)
706
public
DbGeometry
StartPoint { get { return this.spatialSvcs.GetStartPoint(this); } }
711
public
DbGeometry
EndPoint { get { return this.spatialSvcs.GetEndPoint(this); } }
738
public
DbGeometry
PointAt(int index)
756
public
DbGeometry
Centroid { get { return this.spatialSvcs.GetCentroid(this); } }
761
public
DbGeometry
PointOnSurface { get { return this.spatialSvcs.GetPointOnSurface(this); } }
770
public
DbGeometry
ExteriorRing { get { return this.spatialSvcs.GetExteriorRing(this); } }
783
public
DbGeometry
InteriorRingAt(int index)
System\Data\Spatial\DbGeometryWellKnownValue.cs (1)
14
/// A data contract serializable representation of a <see cref="
DbGeometry
"/> value.
System\Data\Spatial\DbSpatialDataReader.cs (2)
26
/// When implemented in derived types, reads an instance of <see cref="
DbGeometry
"/> from the column at the specified column ordinal.
30
public abstract
DbGeometry
GetGeometry(int ordinal);
System\Data\Spatial\DbSpatialServices.cs (186)
649
/// <param name="spatialServices">The spatial services instance that the returned <see cref="
DbGeometry
"/> value will depend on for its implementation of spatial functionality.</param>
651
/// <returns>A new <see cref="
DbGeometry
"/> instance that contains the specified <paramref name="providerValue"/> and uses the specified <paramref name="spatialServices"/> as its spatial implementation</returns>
653
protected static
DbGeometry
CreateGeometry(DbSpatialServices spatialServices, object providerValue)
661
/// Creates a provider-specific value compatible with this spatial services implementation based on the specified well known <see cref="
DbGeometry
"/> representation.
669
/// Creates an instance of <see cref="DbGeometryWellKnownValue"/> that represents the specified <see cref="
DbGeometry
"/> value using one or both of the standard well known spatial formats.
675
public abstract DbGeometryWellKnownValue CreateWellKnownValue(
DbGeometry
geometryValue);
678
/// Creates a new <see cref="
DbGeometry
"/> value based on a provider-specific value that is compatible with this spatial services implementation.
684
public abstract
DbGeometry
GeometryFromProviderValue(object providerValue);
689
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known binary value.
692
/// <returns>A new DbGeometry value as defined by the well known binary value with the default DbGeometry coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
694
public abstract
DbGeometry
GeometryFromBinary(byte[] wellKnownBinary);
697
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known binary value and coordinate system identifier (SRID).
701
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
704
public abstract
DbGeometry
GeometryFromBinary(byte[] wellKnownBinary, int coordinateSystemId);
707
/// Creates a new <see cref="
DbGeometry
"/> line value based on the specified well known binary value and coordinate system identifier (SRID).
711
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
714
public abstract
DbGeometry
GeometryLineFromBinary(byte[] lineWellKnownBinary, int coordinateSystemId);
717
/// Creates a new <see cref="
DbGeometry
"/> point value based on the specified well known binary value and coordinate system identifier (SRID).
721
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
724
public abstract
DbGeometry
GeometryPointFromBinary(byte[] pointWellKnownBinary, int coordinateSystemId);
727
/// Creates a new <see cref="
DbGeometry
"/> polygon value based on the specified well known binary value and coordinate system identifier (SRID).
731
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
734
public abstract
DbGeometry
GeometryPolygonFromBinary(byte[] polygonWellKnownBinary, int coordinateSystemId);
737
/// Creates a new <see cref="
DbGeometry
"/> multiline value based on the specified well known binary value and coordinate system identifier (SRID).
741
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
748
public abstract
DbGeometry
GeometryMultiLineFromBinary(byte[] multiLineWellKnownBinary, int coordinateSystemId);
751
/// Creates a new <see cref="
DbGeometry
"/> multipoint value based on the specified well known binary value and coordinate system identifier (SRID).
755
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
762
public abstract
DbGeometry
GeometryMultiPointFromBinary(byte[] multiPointWellKnownBinary, int coordinateSystemId);
765
/// Creates a new <see cref="
DbGeometry
"/> multipolygon value based on the specified well known binary value and coordinate system identifier (SRID).
769
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
774
public abstract
DbGeometry
GeometryMultiPolygonFromBinary(byte[] multiPolygonWellKnownBinary, int coordinateSystemId);
777
/// Creates a new <see cref="
DbGeometry
"/> collection value based on the specified well known binary value and coordinate system identifier (SRID).
781
/// <returns>A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
784
public abstract
DbGeometry
GeometryCollectionFromBinary(byte[] geometryCollectionWellKnownBinary, int coordinateSystemId);
791
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known text value.
794
/// <returns>A new DbGeometry value as defined by the well known text value with the default DbGeometry coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
796
public abstract
DbGeometry
GeometryFromText(string wellKnownText);
799
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified well known text value and coordinate system identifier (SRID).
803
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
806
public abstract
DbGeometry
GeometryFromText(string wellKnownText, int coordinateSystemId);
809
/// Creates a new <see cref="
DbGeometry
"/> line value based on the specified well known text value and coordinate system identifier (SRID).
813
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
816
public abstract
DbGeometry
GeometryLineFromText(string lineWellKnownText, int coordinateSystemId);
819
/// Creates a new <see cref="
DbGeometry
"/> point value based on the specified well known text value and coordinate system identifier (SRID).
823
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
826
public abstract
DbGeometry
GeometryPointFromText(string pointWellKnownText, int coordinateSystemId);
829
/// Creates a new <see cref="
DbGeometry
"/> polygon value based on the specified well known text value and coordinate system identifier (SRID).
833
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
836
public abstract
DbGeometry
GeometryPolygonFromText(string polygonWellKnownText, int coordinateSystemId);
839
/// Creates a new <see cref="
DbGeometry
"/> multiline value based on the specified well known text value and coordinate system identifier (SRID).
843
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
850
public abstract
DbGeometry
GeometryMultiLineFromText(string multiLineWellKnownText, int coordinateSystemId);
853
/// Creates a new <see cref="
DbGeometry
"/> multipoint value based on the specified well known text value and coordinate system identifier (SRID).
857
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
864
public abstract
DbGeometry
GeometryMultiPointFromText(string multiPointWellKnownText, int coordinateSystemId);
867
/// Creates a new <see cref="
DbGeometry
"/> multipolygon value based on the specified well known text value and coordinate system identifier (SRID).
871
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
876
public abstract
DbGeometry
GeometryMultiPolygonFromText(string multiPolygonKnownText, int coordinateSystemId);
879
/// Creates a new <see cref="
DbGeometry
"/> collection value based on the specified well known text value and coordinate system identifier (SRID).
883
/// <returns>A new DbGeometry value as defined by the well known text value with the specified coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
886
public abstract
DbGeometry
GeometryCollectionFromText(string geometryCollectionWellKnownText, int coordinateSystemId);
893
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified Geography Markup Language (GML) value.
896
/// <returns>A new DbGeometry value as defined by the GML value with the default DbGeometry coordinate system identifier (SRID) (<see cref="
DbGeometry
.DefaultCoordinateSystemId"/>).</returns>
899
public abstract
DbGeometry
GeometryFromGml(string geometryMarkup);
902
/// Creates a new <see cref="
DbGeometry
"/> value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
910
public abstract
DbGeometry
GeometryFromGml(string geometryMarkup, int coordinateSystemId);
923
public abstract int GetCoordinateSystemId(
DbGeometry
geometryValue);
932
public abstract
DbGeometry
GetBoundary(
DbGeometry
geometryValue);
935
/// Gets the dimension of the given <see cref="
DbGeometry
"/> value or, if the value is a collections, the largest element dimension.
938
/// <returns>The dimension of <paramref name="geometryValue"/>, or the largest element dimension if <see cref="
DbGeometry
"/> is a collection.</returns>
941
public abstract int GetDimension(
DbGeometry
geometryValue);
944
/// Gets the envelope (minimum bounding box) of the given <see cref="
DbGeometry
"/> value, as a geometry value.
947
/// <returns>The envelope of <paramref name="geometryValue"/>, as a <see cref="
DbGeometry
"/> value.</returns>
950
public abstract
DbGeometry
GetEnvelope(
DbGeometry
geometryValue);
959
public abstract string GetSpatialTypeName(
DbGeometry
geometryValue);
968
public abstract bool GetIsEmpty(
DbGeometry
geometryValue);
977
public abstract bool GetIsSimple(
DbGeometry
geometryValue);
986
public abstract bool GetIsValid(
DbGeometry
geometryValue);
993
/// Gets the well known text representation of the given <see cref="
DbGeometry
"/> value, including only X and Y coordinates for points.
999
public abstract string AsText(
DbGeometry
geometryValue);
1002
/// Gets the well known text representation of the given <see cref="
DbGeometry
"/> value, including X coordinate, Y coordinate, Elevation (Z) and Measure (M) for points.
1008
public virtual string AsTextIncludingElevationAndMeasure(
DbGeometry
geometryValue)
1014
/// Gets the well known binary representation of the given <see cref="
DbGeometry
"/> value.
1020
public abstract byte[] AsBinary(
DbGeometry
geometryValue);
1024
/// Generates the Geography Markup Language (GML) representation of this <see cref="
DbGeometry
"/> value.
1031
public abstract string AsGml(
DbGeometry
geometryValue);
1038
/// Determines whether the two given <see cref="
DbGeometry
"/> values are spatially equal.
1045
public abstract bool SpatialEquals(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1048
/// Determines whether the two given <see cref="
DbGeometry
"/> values are spatially disjoint.
1055
public abstract bool Disjoint(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1058
/// Determines whether the two given <see cref="
DbGeometry
"/> values spatially intersect.
1065
public abstract bool Intersects(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1068
/// Determines whether the two given <see cref="
DbGeometry
"/> values spatially touch.
1075
public abstract bool Touches(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1078
/// Determines whether the two given <see cref="
DbGeometry
"/> values spatially cross.
1085
public abstract bool Crosses(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1088
/// Determines whether one <see cref="
DbGeometry
"/> value is spatially within the other.
1095
public abstract bool Within(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1098
/// Determines whether one <see cref="
DbGeometry
"/> value spatially contains the other.
1105
public abstract bool Contains(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1108
/// Determines whether the two given <see cref="
DbGeometry
"/> values spatially overlap.
1115
public abstract bool Overlaps(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1118
/// Determines whether the two given <see cref="
DbGeometry
"/> values are spatially related according to the
1127
public abstract bool Relate(
DbGeometry
geometryValue,
DbGeometry
otherGeometry, string matrix);
1134
/// Creates a geometry value representing all points less than or equal to <paramref name="distance"/> from the given <see cref="
DbGeometry
"/> value.
1141
public abstract
DbGeometry
Buffer(
DbGeometry
geometryValue, double distance);
1144
/// Computes the distance between the closest points in two <see cref="
DbGeometry
"/> values.
1151
public abstract double Distance(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1160
public abstract
DbGeometry
GetConvexHull(
DbGeometry
geometryValue);
1163
/// Computes the intersection of two <see cref="
DbGeometry
"/> values.
1170
public abstract
DbGeometry
Intersection(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1173
/// Computes the union of two <see cref="
DbGeometry
"/> values.
1180
public abstract
DbGeometry
Union(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1183
/// Computes the difference between two <see cref="
DbGeometry
"/> values.
1190
public abstract
DbGeometry
Difference(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1193
/// Computes the symmetric difference between two <see cref="
DbGeometry
"/> values.
1200
public abstract
DbGeometry
SymmetricDifference(
DbGeometry
geometryValue,
DbGeometry
otherGeometry);
1207
/// Returns the number of elements in the given <see cref="
DbGeometry
"/> value, if it represents a geometry collection.
1213
public abstract int? GetElementCount(
DbGeometry
geometryValue);
1216
/// Returns an element of the given <see cref="
DbGeometry
"/> value, if it represents a geometry collection.
1223
public abstract
DbGeometry
ElementAt(
DbGeometry
geometryValue, int index);
1230
/// Returns the X coordinate of the given <see cref="
DbGeometry
"/> value, if it represents a point.
1236
public abstract double? GetXCoordinate(
DbGeometry
geometryValue);
1239
/// Returns the Y coordinate of the given <see cref="
DbGeometry
"/> value, if it represents a point.
1245
public abstract double? GetYCoordinate(
DbGeometry
geometryValue);
1248
/// Returns the elevation (Z) of the given <see cref="
DbGeometry
"/> value, if it represents a point.
1254
public abstract double? GetElevation(
DbGeometry
geometryValue);
1257
/// Returns the M (Measure) coordinate of the given <see cref="
DbGeometry
"/> value, if it represents a point.
1263
public abstract double? GetMeasure(
DbGeometry
geometryValue);
1270
/// Returns a nullable double value that indicates the length of the given <see cref="
DbGeometry
"/> value, which may be null if the value does not represent a curve.
1276
public abstract double? GetLength(
DbGeometry
geometryValue);
1279
/// Returns a <see cref="
DbGeometry
"/> value that represents the start point of the given DbGeometry value, which may be null if the value does not represent a curve.
1285
public abstract
DbGeometry
GetStartPoint(
DbGeometry
geometryValue);
1288
/// Returns a <see cref="
DbGeometry
"/> value that represents the end point of the given DbGeometry value, which may be null if the value does not represent a curve.
1294
public abstract
DbGeometry
GetEndPoint(
DbGeometry
geometryValue);
1297
/// Returns a nullable Boolean value that whether the given <see cref="
DbGeometry
"/> value is closed, which may be null if the value does not represent a curve.
1303
public abstract bool? GetIsClosed(
DbGeometry
geometryValue);
1306
/// Returns a nullable Boolean value that whether the given <see cref="
DbGeometry
"/> value is a ring, which may be null if the value does not represent a curve.
1312
public abstract bool? GetIsRing(
DbGeometry
geometryValue);
1319
/// Returns the number of points in the given <see cref="
DbGeometry
"/> value, if it represents a linestring or linear ring.
1325
public abstract int? GetPointCount(
DbGeometry
geometryValue);
1328
/// Returns a point element of the given <see cref="
DbGeometry
"/> value, if it represents a linestring or linear ring.
1335
public abstract
DbGeometry
PointAt(
DbGeometry
geometryValue, int index);
1342
/// Returns a nullable double value that indicates the area of the given <see cref="
DbGeometry
"/> value, which may be null if the value does not represent a surface.
1348
public abstract double? GetArea(
DbGeometry
geometryValue);
1351
/// Returns a <see cref="
DbGeometry
"/> value that represents the centroid of the given DbGeometry value, which may be null if the value does not represent a surface.
1358
public abstract
DbGeometry
GetCentroid(
DbGeometry
geometryValue);
1361
/// Returns a <see cref="
DbGeometry
"/> value that represents a point on the surface of the given DbGeometry value, which may be null if the value does not represent a surface.
1367
public abstract
DbGeometry
GetPointOnSurface(
DbGeometry
geometryValue);
1374
/// Returns a <see cref="
DbGeometry
"/> value that represents the exterior ring of the given DbGeometry value, which may be null if the value does not represent a polygon.
1380
public abstract
DbGeometry
GetExteriorRing(
DbGeometry
geometryValue);
1383
/// Returns the number of interior rings in the given <see cref="
DbGeometry
"/> value, if it represents a polygon.
1389
public abstract int? GetInteriorRingCount(
DbGeometry
geometryValue);
1392
/// Returns an interior ring from the the given <see cref="
DbGeometry
"/> value, if it represents a polygon.
1399
public abstract
DbGeometry
InteriorRingAt(
DbGeometry
geometryValue, int index);
System\Data\Spatial\DefaultSpatialServices.cs (102)
82
private static ReadOnlySpatialValues CheckCompatible(
DbGeometry
geometryValue)
458
public override DbGeometryWellKnownValue CreateWellKnownValue(
DbGeometry
geometryValue)
465
public override
DbGeometry
GeometryFromProviderValue(object providerValue)
474
public override
DbGeometry
GeometryFromBinary(byte[] geometryBinary)
477
ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(
DbGeometry
.DefaultCoordinateSystemId, textValue: null, binaryValue: geometryBinary, gmlValue: null);
481
public override
DbGeometry
GeometryFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
488
public override
DbGeometry
GeometryLineFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
494
public override
DbGeometry
GeometryPointFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
500
public override
DbGeometry
GeometryPolygonFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
506
public override
DbGeometry
GeometryMultiLineFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
512
public override
DbGeometry
GeometryMultiPointFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
519
public override
DbGeometry
GeometryMultiPolygonFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
525
public override
DbGeometry
GeometryCollectionFromBinary(byte[] geometryBinary, int spatialReferenceSystemId)
535
public override
DbGeometry
GeometryFromText(string geometryText)
538
ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(
DbGeometry
.DefaultCoordinateSystemId, textValue: geometryText, binaryValue: null, gmlValue: null);
542
public override
DbGeometry
GeometryFromText(string geometryText, int spatialReferenceSystemId)
549
public override
DbGeometry
GeometryLineFromText(string geometryText, int spatialReferenceSystemId)
555
public override
DbGeometry
GeometryPointFromText(string geometryText, int spatialReferenceSystemId)
561
public override
DbGeometry
GeometryPolygonFromText(string geometryText, int spatialReferenceSystemId)
567
public override
DbGeometry
GeometryMultiLineFromText(string geometryText, int spatialReferenceSystemId)
573
public override
DbGeometry
GeometryMultiPointFromText(string geometryText, int spatialReferenceSystemId)
580
public override
DbGeometry
GeometryMultiPolygonFromText(string geometryText, int spatialReferenceSystemId)
586
public override
DbGeometry
GeometryCollectionFromText(string geometryText, int spatialReferenceSystemId)
596
public override
DbGeometry
GeometryFromGml(string geometryMarkup)
599
ReadOnlySpatialValues backingValue = new ReadOnlySpatialValues(
DbGeometry
.DefaultCoordinateSystemId, textValue: null, binaryValue: null, gmlValue: geometryMarkup);
603
public override
DbGeometry
GeometryFromGml(string geometryMarkup, int spatialReferenceSystemId)
614
public override int GetCoordinateSystemId(
DbGeometry
geometryValue)
621
public override
DbGeometry
GetBoundary(
DbGeometry
geometryValue)
626
public override int GetDimension(
DbGeometry
geometryValue)
631
public override
DbGeometry
GetEnvelope(
DbGeometry
geometryValue)
636
public override string GetSpatialTypeName(
DbGeometry
geometryValue)
641
public override bool GetIsEmpty(
DbGeometry
geometryValue)
646
public override bool GetIsSimple(
DbGeometry
geometryValue)
651
public override bool GetIsValid(
DbGeometry
geometryValue)
660
public override string AsText(
DbGeometry
geometryValue)
667
public override byte[] AsBinary(
DbGeometry
geometryValue)
674
public override string AsGml(
DbGeometry
geometryValue)
685
public override bool SpatialEquals(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
690
public override bool Disjoint(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
695
public override bool Intersects(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
700
public override bool Touches(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
705
public override bool Crosses(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
710
public override bool Within(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
715
public override bool Contains(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
720
public override bool Overlaps(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
725
public override bool Relate(
DbGeometry
geometryValue,
DbGeometry
otherGeometry, string matrix)
734
public override
DbGeometry
Buffer(
DbGeometry
geometryValue, double distance)
739
public override double Distance(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
744
public override
DbGeometry
GetConvexHull(
DbGeometry
geometryValue)
749
public override
DbGeometry
Intersection(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
754
public override
DbGeometry
Union(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
759
public override
DbGeometry
Difference(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
764
public override
DbGeometry
SymmetricDifference(
DbGeometry
geometryValue,
DbGeometry
otherGeometry)
773
public override int? GetElementCount(
DbGeometry
geometryValue)
778
public override
DbGeometry
ElementAt(
DbGeometry
geometryValue, int index)
787
public override double? GetXCoordinate(
DbGeometry
geometryValue)
792
public override double? GetYCoordinate(
DbGeometry
geometryValue)
797
public override double? GetElevation(
DbGeometry
geometryValue)
802
public override double? GetMeasure(
DbGeometry
geometryValue)
811
public override double? GetLength(
DbGeometry
geometryValue)
816
public override
DbGeometry
GetEndPoint(
DbGeometry
geometryValue)
821
public override
DbGeometry
GetStartPoint(
DbGeometry
geometryValue)
826
public override bool? GetIsClosed(
DbGeometry
geometryValue)
831
public override bool? GetIsRing(
DbGeometry
geometryValue)
840
public override int? GetPointCount(
DbGeometry
geometryValue)
845
public override
DbGeometry
PointAt(
DbGeometry
geometryValue, int index)
854
public override double? GetArea(
DbGeometry
geometryValue)
859
public override
DbGeometry
GetCentroid(
DbGeometry
geometryValue)
864
public override
DbGeometry
GetPointOnSurface(
DbGeometry
geometryValue)
873
public override
DbGeometry
GetExteriorRing(
DbGeometry
geometryValue)
878
public override int? GetInteriorRingCount(
DbGeometry
geometryValue)
883
public override
DbGeometry
InteriorRingAt(
DbGeometry
geometryValue, int index)
System\Data\SqlClient\IDbSpatialValue.cs (7)
16
/// Adapter interface to make working with instances of <see cref="
DbGeometry
"/> or <see cref="DbGeography"/> easier.
54
/// Returns an instance of <see cref="IDbSpatialValue"/> that wraps the specified <see cref="
DbGeometry
"/> value.
59
internal static IDbSpatialValue AsSpatialValue(this
DbGeometry
geometryValue)
141
private readonly
DbGeometry
value;
143
internal DbGeometryAdapter(
DbGeometry
geomValue)
148
private TResult NullIfNotImplemented<TResult>(Func<
DbGeometry
, TResult> accessor)
161
private int? NullIfNotImplemented(Func<
DbGeometry
, int> accessor)
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (1)
475
private static readonly DbExpression defaultGeometrySridExpression = DbExpressionBuilder.Constant(
DbGeometry
.DefaultCoordinateSystemId);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
991
AppendSpatialConstant(result, ((
DbGeometry
)e.Value).AsSpatialValue());
System\Data\SqlClient\SqlProviderServices.cs (2)
427
DbGeometry
geometryValue = value as
DbGeometry
;
System\Data\SqlClient\SqlSpatialDataReader.cs (1)
43
public override
DbGeometry
GetGeometry(int ordinal)
System\Data\SqlClient\SqlSpatialServices.cs (4)
190
public override
DbGeometry
GeometryFromProviderValue(object providerValue)
197
public override DbGeometryWellKnownValue CreateWellKnownValue(
DbGeometry
geometryValue)
247
public override string AsTextIncludingElevationAndMeasure(
DbGeometry
geometryValue)
305
private object ConvertToSqlValue(
DbGeometry
geometryValue, string argumentName)
System\Data\SqlClient\SqlSpatialServices.Generated.cs (96)
409
public override System.Data.Spatial.
DbGeometry
GeometryFromText(string geometryText)
416
public override System.Data.Spatial.
DbGeometry
GeometryFromText(string geometryText, int srid)
423
public override System.Data.Spatial.
DbGeometry
GeometryPointFromText(string pointText, int srid)
430
public override System.Data.Spatial.
DbGeometry
GeometryLineFromText(string lineText, int srid)
437
public override System.Data.Spatial.
DbGeometry
GeometryPolygonFromText(string polygonText, int srid)
444
public override System.Data.Spatial.
DbGeometry
GeometryMultiPointFromText(string multiPointText, int srid)
451
public override System.Data.Spatial.
DbGeometry
GeometryMultiLineFromText(string multiLineText, int srid)
458
public override System.Data.Spatial.
DbGeometry
GeometryMultiPolygonFromText(string multiPolygonText, int srid)
465
public override System.Data.Spatial.
DbGeometry
GeometryCollectionFromText(string geometryCollectionText, int srid)
472
public override System.Data.Spatial.
DbGeometry
GeometryFromBinary(byte[] geometryBytes)
479
public override System.Data.Spatial.
DbGeometry
GeometryFromBinary(byte[] geometryBytes, int srid)
486
public override System.Data.Spatial.
DbGeometry
GeometryPointFromBinary(byte[] pointBytes, int srid)
493
public override System.Data.Spatial.
DbGeometry
GeometryLineFromBinary(byte[] lineBytes, int srid)
500
public override System.Data.Spatial.
DbGeometry
GeometryPolygonFromBinary(byte[] polygonBytes, int srid)
507
public override System.Data.Spatial.
DbGeometry
GeometryMultiPointFromBinary(byte[] multiPointBytes, int srid)
514
public override System.Data.Spatial.
DbGeometry
GeometryMultiLineFromBinary(byte[] multiLineBytes, int srid)
521
public override System.Data.Spatial.
DbGeometry
GeometryMultiPolygonFromBinary(byte[] multiPolygonBytes, int srid)
528
public override System.Data.Spatial.
DbGeometry
GeometryCollectionFromBinary(byte[] geometryCollectionBytes, int srid)
535
public override System.Data.Spatial.
DbGeometry
GeometryFromGml(string geometryGml)
542
public override System.Data.Spatial.
DbGeometry
GeometryFromGml(string geometryGml, int srid)
549
public override int GetCoordinateSystemId(System.Data.Spatial.
DbGeometry
geometryValue)
557
public override string GetSpatialTypeName(System.Data.Spatial.
DbGeometry
geometryValue)
565
public override int GetDimension(System.Data.Spatial.
DbGeometry
geometryValue)
573
public override System.Data.Spatial.
DbGeometry
GetEnvelope(System.Data.Spatial.
DbGeometry
geometryValue)
581
public override byte[] AsBinary(System.Data.Spatial.
DbGeometry
geometryValue)
589
public override string AsGml(System.Data.Spatial.
DbGeometry
geometryValue)
597
public override string AsText(System.Data.Spatial.
DbGeometry
geometryValue)
605
public override bool GetIsEmpty(System.Data.Spatial.
DbGeometry
geometryValue)
613
public override bool GetIsSimple(System.Data.Spatial.
DbGeometry
geometryValue)
621
public override System.Data.Spatial.
DbGeometry
GetBoundary(System.Data.Spatial.
DbGeometry
geometryValue)
629
public override bool GetIsValid(System.Data.Spatial.
DbGeometry
geometryValue)
637
public override bool SpatialEquals(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
646
public override bool Disjoint(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
655
public override bool Intersects(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
664
public override bool Touches(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
673
public override bool Crosses(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
682
public override bool Within(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
691
public override bool Contains(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
700
public override bool Overlaps(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
709
public override bool Relate(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2, string matrix)
718
public override System.Data.Spatial.
DbGeometry
Buffer(System.Data.Spatial.
DbGeometry
geometryValue, double distance)
726
public override double Distance(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
735
public override System.Data.Spatial.
DbGeometry
GetConvexHull(System.Data.Spatial.
DbGeometry
geometryValue)
743
public override System.Data.Spatial.
DbGeometry
Intersection(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
752
public override System.Data.Spatial.
DbGeometry
Union(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
761
public override System.Data.Spatial.
DbGeometry
Difference(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
770
public override System.Data.Spatial.
DbGeometry
SymmetricDifference(System.Data.Spatial.
DbGeometry
geometryValue1, System.Data.Spatial.
DbGeometry
geometryValue2)
779
public override int? GetElementCount(System.Data.Spatial.
DbGeometry
geometryValue)
787
public override System.Data.Spatial.
DbGeometry
ElementAt(System.Data.Spatial.
DbGeometry
geometryValue, int nValue)
795
public override double? GetXCoordinate(System.Data.Spatial.
DbGeometry
geometryValue)
803
public override double? GetYCoordinate(System.Data.Spatial.
DbGeometry
geometryValue)
811
public override double? GetElevation(System.Data.Spatial.
DbGeometry
geometryValue)
819
public override double? GetMeasure(System.Data.Spatial.
DbGeometry
geometryValue)
827
public override double? GetLength(System.Data.Spatial.
DbGeometry
geometryValue)
835
public override System.Data.Spatial.
DbGeometry
GetStartPoint(System.Data.Spatial.
DbGeometry
geometryValue)
843
public override System.Data.Spatial.
DbGeometry
GetEndPoint(System.Data.Spatial.
DbGeometry
geometryValue)
851
public override bool? GetIsClosed(System.Data.Spatial.
DbGeometry
geometryValue)
859
public override bool? GetIsRing(System.Data.Spatial.
DbGeometry
geometryValue)
867
public override int? GetPointCount(System.Data.Spatial.
DbGeometry
geometryValue)
875
public override System.Data.Spatial.
DbGeometry
PointAt(System.Data.Spatial.
DbGeometry
geometryValue, int nValue)
883
public override double? GetArea(System.Data.Spatial.
DbGeometry
geometryValue)
891
public override System.Data.Spatial.
DbGeometry
GetCentroid(System.Data.Spatial.
DbGeometry
geometryValue)
899
public override System.Data.Spatial.
DbGeometry
GetPointOnSurface(System.Data.Spatial.
DbGeometry
geometryValue)
907
public override System.Data.Spatial.
DbGeometry
GetExteriorRing(System.Data.Spatial.
DbGeometry
geometryValue)
915
public override int? GetInteriorRingCount(System.Data.Spatial.
DbGeometry
geometryValue)
923
public override System.Data.Spatial.
DbGeometry
InteriorRingAt(System.Data.Spatial.
DbGeometry
geometryValue, int nValue)
System\Data\SqlClient\SqlTypesAssembly.cs (2)
400
internal string GeometryAsTextZM(
DbGeometry
geometryValue)
437
internal object ConvertToSqlTypesGeometry(
DbGeometry
geometryValue)
System.Web.DynamicData (2)
DynamicData\FieldTemplateFactory.cs (1)
90
_typesFallBacks[typeof(
DbGeometry
)] = typeof(string);
DynamicData\MetaColumn.cs (1)
339
if (ColumnType == typeof(
DbGeometry
)) return true;
System.Web.Entity (8)
System\Data\WebControls\EntityDataSourceUtil.cs (8)
531
DbGeometry
geometryResult;
540
else if (type.IsAssignableFrom(typeof(
DbGeometry
)) && TryParseGeometry(s, out geometryResult))
584
/// <remarks>The <paramref name="stringValue"/> must be in the format returned by <see cref="
DbGeometry
.AsText()"/> method.</remarks>
596
/// <remarks>The <paramref name="stringValue"/> must be in the format returned by <see cref="
DbGeometry
.ToString()"/> method.</remarks>
597
private static bool TryParseGeometry(string stringValue, out
DbGeometry
result)
599
return TryParseGeo<
DbGeometry
>(stringValue, (geometryText, srid) =>
DbGeometry
.FromText(geometryText, srid), out result);
614
Debug.Assert(typeof(DbGeography).IsAssignableFrom(typeof(T)) || typeof(
DbGeometry
).IsAssignableFrom(typeof(T)), "This method should be called only for spatial type");