__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Contains the factory class that handles the creation of geometric objects
*/
declare(strict_types=1);
namespace PhpMyAdmin\Gis;
use function strtoupper;
/**
* Factory class that handles the creation of geometric objects.
*/
class GisFactory
{
/**
* Returns the singleton instance of geometric class of the given type.
*
* @param string $type type of the geometric object
*
* @return GisGeometry|false the singleton instance of geometric class of the given type
*
* @static
*/
public static function factory($type)
{
switch (strtoupper($type)) {
case 'MULTIPOLYGON':
return GisMultiPolygon::singleton();
case 'POLYGON':
return GisPolygon::singleton();
case 'MULTIPOINT':
return GisMultiPoint::singleton();
case 'POINT':
return GisPoint::singleton();
case 'MULTILINESTRING':
return GisMultiLineString::singleton();
case 'LINESTRING':
return GisLineString::singleton();
case 'GEOMETRYCOLLECTION':
return GisGeometryCollection::singleton();
default:
return false;
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| GisFactory.php | File | 1.26 KB | 0644 |
|
| GisGeometry.php | File | 12.25 KB | 0644 |
|
| GisGeometryCollection.php | File | 11.1 KB | 0644 |
|
| GisLineString.php | File | 9.93 KB | 0644 |
|
| GisMultiLineString.php | File | 12.52 KB | 0644 |
|
| GisMultiPoint.php | File | 12.13 KB | 0644 |
|
| GisMultiPolygon.php | File | 18.5 KB | 0644 |
|
| GisPoint.php | File | 10.17 KB | 0644 |
|
| GisPolygon.php | File | 17.92 KB | 0644 |
|
| GisVisualization.php | File | 20.51 KB | 0644 |
|