Jsor\Doctrine\PostGIS\Schema\SchemaManager::buildSpatialColumnInfo PHP Method

buildSpatialColumnInfo() protected method

protected buildSpatialColumnInfo ( $row )
    protected function buildSpatialColumnInfo($row)
    {
        $type = strtoupper($row['type']);
        if ('M' !== substr($type, -1)) {
            if (4 === (int) $row['coord_dimension']) {
                $type .= 'ZM';
            }
            if (3 === (int) $row['coord_dimension']) {
                $type .= 'Z';
            }
        }
        return array('type' => $type, 'srid' => max((int) $row['srid'], 0));
    }