133 references to Geometry
System.Data.Entity (132)
System\Data\Common\CommandTrees\AbstractExpressions.cs (1)
559
return ExpressionBuilder.DbExpressionBuilder.CreatePrimitiveNullExpression(PrimitiveTypeKind.
Geometry
);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
44
private static readonly DbNullExpression _geometryNull = Null(EdmProviderManifest.Instance.GetCanonicalModelTypeUsage(PrimitiveTypeKind.
Geometry
));
2678
case PrimitiveTypeKind.
Geometry
:
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
790
&& !(Helper.IsGeometricType(primitiveType) && valueKind == PrimitiveTypeKind.
Geometry
))
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
248
case PrimitiveTypeKind.
Geometry
:
System\Data\Common\Internal\Materialization\Shaper.cs (1)
619
Debug.Assert(spatialTypeKind == PrimitiveTypeKind.Geography || spatialTypeKind == PrimitiveTypeKind.
Geometry
, "Spatial primitive type kind is not geography or geometry?");
System\Data\Common\Internal\Materialization\Translator.cs (1)
1073
primitiveColumnType = Helper.IsGeographicType((PrimitiveType)columnType.EdmType) ? PrimitiveTypeKind.Geography : PrimitiveTypeKind.
Geometry
;
System\Data\Common\Utils\MetadataHelper.cs (1)
123
spatialNormalizedEdmType = PrimitiveType.GetEdmPrimitiveType(isGeographic ? PrimitiveTypeKind.Geography : PrimitiveTypeKind.
Geometry
);
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
255
case PrimitiveTypeKind.
Geometry
:
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
72
typeDefaultMap[PrimitiveTypeKind.
Geometry
] = DbGeometry.FromText("POINT EMPTY");
System\Data\Metadata\Edm\PrimitiveType.cs (1)
176
case PrimitiveTypeKind.
Geometry
:
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (3)
142
primitiveTypeKind = PrimitiveTypeKind.
Geometry
;
215
primitiveTypes[(int)PrimitiveTypeKind.
Geometry
] = CreatePrimitiveType(typeof(DbGeometry), PrimitiveTypeKind.
Geometry
);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (7)
140
primitiveTypes[(int)PrimitiveTypeKind.
Geometry
] = new PrimitiveType();
180
InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.
Geometry
], PrimitiveTypeKind.
Geometry
, EdmConstants.Geometry, typeof(DbGeometry));
307
list = EdmProviderManifest.GetInitialFacetDescriptions(PrimitiveTypeKind.
Geometry
);
308
applicableType = _primitiveTypes[(int)PrimitiveTypeKind.
Geometry
];
436
case PrimitiveTypeKind.
Geometry
:
827
PrimitiveTypeKind.
Geometry
);
System\Data\Metadata\Edm\Provider\EdmProviderManifestSpatialFunctions.cs (96)
30
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromText", PrimitiveTypeKind.String, "geometryText");
31
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromText", PrimitiveTypeKind.String, "geometryText", PrimitiveTypeKind.Int32, "srid");
32
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryPointFromText", PrimitiveTypeKind.String, "pointText", PrimitiveTypeKind.Int32, "srid");
33
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryLineFromText", PrimitiveTypeKind.String, "lineText", PrimitiveTypeKind.Int32, "srid");
34
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryPolygonFromText", PrimitiveTypeKind.String, "polygonText", PrimitiveTypeKind.Int32, "srid");
35
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiPointFromText", PrimitiveTypeKind.String, "multiPointText", PrimitiveTypeKind.Int32, "srid");
36
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiLineFromText", PrimitiveTypeKind.String, "multiLineText", PrimitiveTypeKind.Int32, "srid");
37
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiPolygonFromText", PrimitiveTypeKind.String, "multiPolygonText", PrimitiveTypeKind.Int32, "srid");
38
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryCollectionFromText", PrimitiveTypeKind.String, "geometryCollectionText", PrimitiveTypeKind.Int32, "srid");
39
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromBinary", PrimitiveTypeKind.Binary, "geometryBytes");
40
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromBinary", PrimitiveTypeKind.Binary, "geometryBytes", PrimitiveTypeKind.Int32, "srid");
41
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryPointFromBinary", PrimitiveTypeKind.Binary, "pointBytes", PrimitiveTypeKind.Int32, "srid");
42
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryLineFromBinary", PrimitiveTypeKind.Binary, "lineBytes", PrimitiveTypeKind.Int32, "srid");
43
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryPolygonFromBinary", PrimitiveTypeKind.Binary, "polygonBytes", PrimitiveTypeKind.Int32, "srid");
44
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiPointFromBinary", PrimitiveTypeKind.Binary, "multiPointBytes", PrimitiveTypeKind.Int32, "srid");
45
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiLineFromBinary", PrimitiveTypeKind.Binary, "multiLineBytes", PrimitiveTypeKind.Int32, "srid");
46
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryMultiPolygonFromBinary", PrimitiveTypeKind.Binary, "multiPolygonBytes", PrimitiveTypeKind.Int32, "srid");
47
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryCollectionFromBinary", PrimitiveTypeKind.Binary, "geometryCollectionBytes", PrimitiveTypeKind.Int32, "srid");
48
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromGml", PrimitiveTypeKind.String, "geometryGml");
49
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "GeometryFromGml", PrimitiveTypeKind.String, "geometryGml", PrimitiveTypeKind.Int32, "srid");
50
functions.AddFunction(PrimitiveTypeKind.Int32, "CoordinateSystemId", PrimitiveTypeKind.
Geometry
, "geometryValue");
51
functions.AddFunction(PrimitiveTypeKind.String, "SpatialTypeName", PrimitiveTypeKind.
Geometry
, "geometryValue");
52
functions.AddFunction(PrimitiveTypeKind.Int32, "SpatialDimension", PrimitiveTypeKind.
Geometry
, "geometryValue");
53
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialEnvelope", PrimitiveTypeKind.
Geometry
, "geometryValue");
54
functions.AddFunction(PrimitiveTypeKind.Binary, "AsBinary", PrimitiveTypeKind.
Geometry
, "geometryValue");
55
functions.AddFunction(PrimitiveTypeKind.String, "AsGml", PrimitiveTypeKind.
Geometry
, "geometryValue");
56
functions.AddFunction(PrimitiveTypeKind.String, "AsText", PrimitiveTypeKind.
Geometry
, "geometryValue");
57
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsEmptySpatial", PrimitiveTypeKind.
Geometry
, "geometryValue");
58
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsSimpleGeometry", PrimitiveTypeKind.
Geometry
, "geometryValue");
59
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialBoundary", PrimitiveTypeKind.
Geometry
, "geometryValue");
60
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsValidGeometry", PrimitiveTypeKind.
Geometry
, "geometryValue");
61
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialEquals", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
62
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialDisjoint", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
63
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialIntersects", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
64
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialTouches", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
65
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialCrosses", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
66
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialWithin", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
67
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialContains", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
68
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialOverlaps", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
69
functions.AddFunction(PrimitiveTypeKind.Boolean, "SpatialRelate", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2", PrimitiveTypeKind.String, "matrix");
70
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialBuffer", PrimitiveTypeKind.
Geometry
, "geometryValue", PrimitiveTypeKind.Double, "distance");
71
functions.AddFunction(PrimitiveTypeKind.Double, "Distance", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
72
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialConvexHull", PrimitiveTypeKind.
Geometry
, "geometryValue");
73
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialIntersection", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
74
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialUnion", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
75
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialDifference", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
76
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialSymmetricDifference", PrimitiveTypeKind.
Geometry
, "geometryValue1", PrimitiveTypeKind.
Geometry
, "geometryValue2");
77
functions.AddFunction(PrimitiveTypeKind.Int32, "SpatialElementCount", PrimitiveTypeKind.
Geometry
, "geometryValue");
78
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "SpatialElementAt", PrimitiveTypeKind.
Geometry
, "geometryValue", PrimitiveTypeKind.Int32, "nValue");
79
functions.AddFunction(PrimitiveTypeKind.Double, "XCoordinate", PrimitiveTypeKind.
Geometry
, "geometryValue");
80
functions.AddFunction(PrimitiveTypeKind.Double, "YCoordinate", PrimitiveTypeKind.
Geometry
, "geometryValue");
81
functions.AddFunction(PrimitiveTypeKind.Double, "Elevation", PrimitiveTypeKind.
Geometry
, "geometryValue");
82
functions.AddFunction(PrimitiveTypeKind.Double, "Measure", PrimitiveTypeKind.
Geometry
, "geometryValue");
83
functions.AddFunction(PrimitiveTypeKind.Double, "SpatialLength", PrimitiveTypeKind.
Geometry
, "geometryValue");
84
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "StartPoint", PrimitiveTypeKind.
Geometry
, "geometryValue");
85
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "EndPoint", PrimitiveTypeKind.
Geometry
, "geometryValue");
86
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsClosedSpatial", PrimitiveTypeKind.
Geometry
, "geometryValue");
87
functions.AddFunction(PrimitiveTypeKind.Boolean, "IsRing", PrimitiveTypeKind.
Geometry
, "geometryValue");
88
functions.AddFunction(PrimitiveTypeKind.Int32, "PointCount", PrimitiveTypeKind.
Geometry
, "geometryValue");
89
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "PointAt", PrimitiveTypeKind.
Geometry
, "geometryValue", PrimitiveTypeKind.Int32, "nValue");
90
functions.AddFunction(PrimitiveTypeKind.Double, "Area", PrimitiveTypeKind.
Geometry
, "geometryValue");
91
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "Centroid", PrimitiveTypeKind.
Geometry
, "geometryValue");
92
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "PointOnSurface", PrimitiveTypeKind.
Geometry
, "geometryValue");
93
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "ExteriorRing", PrimitiveTypeKind.
Geometry
, "geometryValue");
94
functions.AddFunction(PrimitiveTypeKind.Int32, "InteriorRingCount", PrimitiveTypeKind.
Geometry
, "geometryValue");
95
functions.AddFunction(PrimitiveTypeKind.
Geometry
, "InteriorRingAt", PrimitiveTypeKind.
Geometry
, "geometryValue", PrimitiveTypeKind.Int32, "nValue");
System\Data\Metadata\Helper.cs (3)
417
return kind == PrimitiveTypeKind.
Geometry
|| IsStrongGeometricTypeKind(kind);
579
else if (IsGeometricType(primitiveType) && primitiveType.PrimitiveTypeKind != PrimitiveTypeKind.
Geometry
)
581
return PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.
Geometry
);
System\Data\Metadata\ObjectItemCollection.cs (1)
554
modelType = PrimitiveTypeKind.
Geometry
;
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1844
PlanCompiler.Assert(md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.Geography) || md.TypeSemantics.IsPrimitiveType(n.Child0.Op.Type, md.PrimitiveTypeKind.
Geometry
), "Union spatial type expected.");
System\Data\SqlClient\IDbSpatialValue.cs (1)
175
public PrimitiveTypeKind PrimitiveType { get { return PrimitiveTypeKind.
Geometry
; } }
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (6)
449
string functionNameWithSrid = (TypeSemantics.IsPrimitiveType(functionExpression.ResultType, PrimitiveTypeKind.
Geometry
) ? "geometry::STGeomFromText" : "geography::STGeomFromText");
450
string functionNameWithoutSrid = (TypeSemantics.IsPrimitiveType(functionExpression.ResultType, PrimitiveTypeKind.
Geometry
) ? "geometry::Parse" : "geography::Parse");
466
return HandleSpatialStaticMethodFunctionAppendSrid(sqlgen, functionExpression, (TypeSemantics.IsPrimitiveType(functionExpression.ResultType, PrimitiveTypeKind.
Geometry
) ? "geometry::GeomFromGml" : "geography::GeomFromGml"));
471
return HandleSpatialStaticMethodFunctionAppendSrid(sqlgen, functionExpression, (TypeSemantics.IsPrimitiveType(functionExpression.ResultType, PrimitiveTypeKind.
Geometry
) ? "geometry::STGeomFromWKB" : "geography::STGeomFromWKB"));
485
DbExpression sridExpression = (TypeSemantics.IsPrimitiveType(functionExpression.ResultType, PrimitiveTypeKind.
Geometry
) ? defaultGeometrySridExpression : defaultGeographySridExpression);
744
Debug.Assert(spatialTypeKind == PrimitiveTypeKind.Geography || spatialTypeKind == PrimitiveTypeKind.
Geometry
, "Spatial function does not refer to a valid spatial primitive type kind?");
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
990
case PrimitiveTypeKind.
Geometry
:
System\Data\SqlClient\SqlProviderManifest.cs (1)
553
case PrimitiveTypeKind.
Geometry
:
System\Data\SqlClient\SqlProviderServices.cs (1)
500
case PrimitiveTypeKind.
Geometry
:
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
150
(primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.Geography || primitiveType.PrimitiveTypeKind == PrimitiveTypeKind.
Geometry
))