src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiSpatialTypeSchemaGenerator.cs
/// <summary>
/// Create the dictionary of <see cref="OpenApiSchema"/> object.
/// The name of each pair is the namespace-qualified name of the type. It uses the namespace instead of the alias.
/// The value of each pair is a <see cref="OpenApiSchema"/>.
/// </summary>
/// <param name="context">The OData to Open API context.</param>
/// <returns>The string/schema dictionary.</returns>
Create the dictionary of  object.
The name of each pair is the namespace-qualified name of the type. It uses the namespace instead of the alias.
The value of each pair is a .
Create the dictionary of object . The name of each pair is the namespace - qualified name of the type . It uses the namespace instead of the alias . The value of each pair is a .
public static IDictionary<string, OpenApiSchema> CreateSpatialSchemas(this ODataContext context)
        {
            Utils.CheckArgumentNull(context, nameof(context));
            IDictionary<string, OpenApiSchema> schemas = new Dictionary<string, OpenApiSchema>();
            if (context.IsSpatialTypeUsed)
            {
                schemas.Add("Edm.Geography", CreateEdmGeographySchema());
                schemas.Add("Edm.GeographyPoint", CreateEdmGeographyPointSchema());
                schemas.Add("Edm.GeographyLineString", CreateEdmGeographyLineStringSchema());
                schemas.Add("Edm.GeographyPolygon", CreateEdmGeographyPolygonSchema());
                schemas.Add("Edm.GeographyMultiPoint", CreateEdmGeographyMultiPointSchema());
                schemas.Add("Edm.GeographyMultiLineString", CreateEdmGeographyMultiLineStringSchema());
                schemas.Add("Edm.GeographyMultiPolygon", CreateEdmGeographyMultiPolygonSchema());
                schemas.Add("Edm.GeographyCollection", CreateEdmGeographyCollectionSchema());
                schemas.Add("Edm.Geometry", CreateEdmGeometrySchema());
                schemas.Add("Edm.GeometryPoint", CreateEdmGeometryPointSchema());
                schemas.Add("Edm.GeometryLineString", CreateEdmGeometryLineStringSchema());
                schemas.Add("Edm.GeometryPolygon", CreateEdmGeometryPolygonSchema());
                schemas.Add("Edm.GeometryMultiPoint", CreateEdmGeometryMultiPointSchema());
                schemas.Add("Edm.GeometryMultiLineString", CreateEdmGeometryMultiLineStringSchema());
                schemas.Add("Edm.GeometryMultiPolygon", CreateEdmGeometryMultiPolygonSchema());
                schemas.Add("Edm.GeometryCollection", CreateEdmGeometryCollectionSchema());
                schemas.Add("GeoJSON.position", CreateGeoJsonPointSchema());
            }
            return schemas;
        }
public static IDictionary < string , OpenApiSchema > CreateSpatialSchemas ( this ODataContext context ) { Utils . CheckArgumentNull ( context , nameof ( context ) ) ; IDictionary < string , OpenApiSchema > schemas = new Dictionary < string , OpenApiSchema > ( ) ; if ( context . IsSpatialTypeUsed ) { schemas . Add ( " " , CreateEdmGeographySchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyPointSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyLineStringSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyPolygonSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyMultiPointSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyMultiLineStringSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyMultiPolygonSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeographyCollectionSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometrySchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryPointSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryLineStringSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryPolygonSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryMultiPointSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryMultiLineStringSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryMultiPolygonSchema ( ) ) ; schemas . Add ( " " , CreateEdmGeometryCollectionSchema ( ) ) ; schemas . Add ( " " , CreateGeoJsonPointSchema ( ) ) ; } return schemas ; }
Create the dictionary of  object.
Create the dictionary of object .
The string/schema dictionary.
The string / schema dictionary .
ODataContext
this
context
The OData to Open API context.
The OData to Open API context .