Class FeatureType
Class FeatureType handles Feature objects.
Main goal of the handler is, to get manage GeoJSON Features for communication between OpenLayers and databases with spatial abilities like Oracle or PostgreSQL.
- Symfony\Component\DependencyInjection\ContainerAware
-
Mapbender\DataSourceBundle\Component\DataStore
-
Mapbender\DataSourceBundle\Component\FeatureType
Package: Mapbender\CoreBundle\Entity
Copyright: 2015 by WhereGroup GmbH & Co. KG
Author: Andriy Oblivantsev <eslider@gmail.com>
Link: https://github.com/mapbender/mapbender-digitizer
Located at data-source/Component/FeatureType.php
Methods summary
public
|
#
__construct( Symfony\Component\DependencyInjection\ContainerInterface $container, null $args = null )
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
#
save( array|
Save feature |
public
|
|
public
boolean|string
|
|
public
|
|
public
|
|
public
mixed
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
|
#
prepareResults(
Convert results to Feature objects |
public
Doctrine\DBAL\Query\QueryBuilder
|
#
getSelectQueryBuilder( null $srid = null )
Get query builder prepared to select from the source table |
public
|
|
public
integer
|
|
public
array
|
#
toFeatureCollection(
Convert Features[] to FeatureCollection |
public
boolean
|
#
addGeometryColumn( string $tableName, string $type, string $srid, string $geomFieldName = "geom", string $schemaName = "public", integer $dimensions = 2 )
Add geometry column |
public
|
|
public
|
|
public
string
|
|
public
|
|
protected
|
#
setFilter( mixed $sqlFilter )
Set FeatureType permanent SQL filter used by $this->search() https://trac.wheregroup.com/cp/issues/3733 |
public
string
|
|
public
integer
|
#
repairTableSequence( )
Repair table sequence. Set sequence next ID to (highest ID + 1) in the table |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
array
|
|
public
mixed|null
|
|
public static
string
|
|
public
|
|
public
array
|
|
public
|
|
public
array|mixed|null
|
|
public
array
|
Methods inherited from Mapbender\DataSourceBundle\Component\DataStore
connect()
,
get()
,
getConnection()
,
getDriver()
,
getParent()
,
getParentField()
,
getPlatformName()
,
getTree()
,
getTroughMapping()
,
getTypes()
,
isOracle()
,
isPostgres()
,
isSqlite()
,
preventRemove()
,
preventSave()
,
remove()
,
secureEval()
,
setMapping()
,
setParentField()
Magic methods summary
Constants summary
string |
UPLOAD_DIR_NAME
Default upload directory |
# "featureTypes" |
string |
EVENT_ON_BEFORE_UPDATE
Events |
# 'onBeforeUpdate' |
string |
EVENT_ON_AFTER_UPDATE
|
# 'onAfterUpdate' |
string |
EVENT_ON_BEFORE_INSERT
|
# 'onBeforeInsert' |
string |
EVENT_ON_AFTER_INSERT
|
# 'onAfterInsert' |
integer |
MAX_RESULTS
Default max results by search |
# 5000 |
Constants inherited from Mapbender\DataSourceBundle\Component\DataStore
EVENT_ON_AFTER_REMOVE
,
EVENT_ON_AFTER_SAVE
,
EVENT_ON_AFTER_SEARCH
,
EVENT_ON_BEFORE_REMOVE
,
EVENT_ON_BEFORE_SAVE
,
EVENT_ON_BEFORE_SEARCH
,
ORACLE_PLATFORM
,
POSTGRESQL_PLATFORM
,
SQLITE_PLATFORM
Properties summary
protected
string
|
$geomField
Geometry field name |
# 'geom' |
protected
integer
|
$srid
SRID to get geometry converted to |
# null |
protected
string
|
$sqlFilter
SQL where filter |
|
protected
array
|
$filesInfo
file info list |
# array() |
protected
string
|
$waysTableName
Routing ways node table name. |
# "ways" |
protected
string
|
$waysVerticesTableName
Way vertices table name |
# 'ways_vertices_pgr' |
protected
string
|
$waysGeomFieldName
Routing ways geometry field name |
# "the_geom" |
protected
boolean
|
$allowInsert
Allow insert feature flag |
|
protected
boolean
|
$allowUpdate
Allow update feature flag |
|
protected
array
|
$_args
Initial arguments |
# array() |
Properties inherited from Mapbender\DataSourceBundle\Component\DataStore
$allowRemove
,
$allowSave
,
$connectionName
,
$connectionType
,
$driver
,
$events
,
$fields
,
$mapping
,
$parentField