How to add your knowledge

Spatial Reference Identifier (SRID)

    Table of contents
    No headers

    An SRID (Spatial Reference IDentifier) is an integer value key into a table containing spatial reference information. For Oracle Spatial, that table is MDSYS.CS_SRS. Together with other information, each table has a column containing a text string that describes a coordinate system. This string is often referred to as the projection string. For Oracle, the column is called WKTEXT.

    Oracle Spatial stores a large number of predefined projection strings in the table MDSYS.CS_SRS. The primary key into this table is the Oracle SRID.

    Other databases like SQLite don't feature any spatial support and therefore don't have an SRID.

    All API with an SRID in Topobase has therefore been replaced with an Topobase.Graphic.ICsDescription interface. This interface still has the srid for Oracle, but other database might not have the same id. The unique property in the interface is the Well Know Text (WKT).

    Create FeatureClass (old constructor):

    [Obsolete("Use constructor with coordinate system instead.", false)]
    public FeatureClass(TBConnection connection, string name, FeatureClassType type, Topic parentTopic, int dimensions, double tolerance, int srid, string spatialMask, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
    
    Note

    Note that int srid (above) is replaced with iCsDescription coordinateSystem (below).

    Create FeatureClass (new API):

    public FeatureClass([NotNull] TBConnection connection, string name, FeatureClassType type,	Topic parentTopic, int dimensions, double tolerance, ICsDescription coordinateSystem, string spatialMask, double minX, double maxX, double minY, double maxY, double minZ, double maxZ)
    

    Other Examples:

    Obsolete APINew API
    Topobase.Data.Table.SRIDTopobase.Data.Table.CoordinateSystem
    Topobase.Data.FeatureClass.SDOSRIDTopobase.Data.FeatureClass. SDOCoordinateSystem
    Topobase.Data.TBConnection. DefaultSRIDTopobase.Data.TBConnection. DefaultCoordinateSystem