dotConnect for Oracle Documentation
In This Topic
    SpatialTypeNameRepresentation
    In This Topic

    DbGeometry and DbGeography classes have the SpatialTypeName property. As Oracle does not offer any standard way to get the type name, we offer several ways to determine SpatialTypeName. You can specify the way with SpatialTypeNameRepresentation setting. The default value is OpenGisCompatibleName.

    var config = OracleEntityProviderConfig.Instance;
    config.SpatialOptions.SpatialTypeNameRepresentation = SpatialTypeNameRepresentation.OracleNumeric;
    
    
    Dim config = OracleEntityProviderConfig.Instance
    config.SpatialOptions.SpatialTypeNameRepresentation = SpatialTypeNameRepresentation.OracleNumeric
    
    

    Alternatively, you may specify the method, determining SpatialTypeName, in the project config file. For this, you need to update or add the configSections element like it is described in the Entity Framework Provider Configuration section and then add the following Devart.Data.Oracle.Entity tag to the configuration tag:

     <Devart.Data.Oracle.Entity xmlns="http://devart.com/schemas/Devart.Data.Oracle.Entity/1.0">
      <SpatialOptions SpatialTypeNameRepresentation="OracleNumeric" />
     </Devart.Data.Oracle.Entity>
    

    Note: If you need to set multiple Entity Framework provider options for dotConnect for Oracle, don't add multiple Devart.Data.Oracle.Entity tags. Specify all settings in one Devart.Data.Oracle.Entity tag.

    The following SpatialTypeNameRepresentation values are available:

    See Also

    Choosing Spatial Service  | Default SRID  | Tolerance  | Area and Distance Units  | Spatials Comparison  | Oracle Spatial Engine