Mapbender 3.0.6.1 API documenation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • FOM
    • CoreBundle
      • Component
      • DependencyInjection
      • Doctrine
        • Types
      • Form
        • DataTransformer
        • Type
    • ManagerBundle
      • Component
      • Configuration
      • Controller
      • DependencyInjection
        • Compiler
      • Form
        • Type
      • Routing
    • UserBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
        • Factory
      • Entity
      • EventListener
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Firewall
  • Mapbender
    • Component
    • CoreBundle
      • Asset
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
          • Application
      • DependencyInjection
        • Compiler
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
      • Tests
        • Controller
      • Utils
      • Validator
        • Constraints
    • DataSourceBundle
      • Component
        • Drivers
          • Interfaces
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Extension
      • Tests
    • DigitizerBundle
      • Component
      • Element
        • Type
      • Entity
      • Utils
    • DrupalIntegrationBundle
      • DependencyInjection
      • Security
        • Authentication
          • Provider
          • Token
        • Authorization
          • Voter
        • Factory
        • Firewall
        • User
      • Session
    • KmlBundle
      • Element
    • ManagerBundle
      • Component
        • Exception
      • Controller
      • Form
        • DataTransformer
        • Type
      • Template
    • MobileBundle
      • DependencyInjection
      • Template
    • PrintBundle
      • Component
      • Element
        • Type
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
      • Tests
        • Component
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • DataTransformer
        • EventListener
        • Type
      • Entity
      • Event
      • Form
        • DataTransformer
        • EventListener
        • Type
  • None
  • OwsProxy3
    • CoreBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Entity
      • Event
      • EventListener
      • Worker
  • PHP

Classes

  • BaseConfiguration
  • DataItem
  • Feature

Class Feature

Class Feature

Mapbender\DataSourceBundle\Entity\DataItem
Extended by Mapbender\DataSourceBundle\Entity\Feature
Namespace: Mapbender\DataSourceBundle\Entity
Package: Mapbender\CoreBundle\Entity
Author: Andriy Oblivantsev <eslider@gmail.com>
Located at data-source/Entity/Feature.php

Methods summary

public mixed
# setGeom( mixed $geom )

Parameters

$geom

Returns

mixed
$this
public mixed
# getGeom( )

Returns

mixed
mixed
public mixed
# getSrid( )

Returns

mixed
mixed
public
# setSrid( mixed $srid )

Parameters

$srid
public
# hasSrid( )

has SRID?

has SRID?

public
# __construct( mixed $args = null, integer $srid = null, string $uniqueIdField = 'id', string $geomField = "geom" )

Parameters

$args
JSON or array(
$srid
$uniqueIdField
ID field name
$geomField
GEOM field name

Overrides

Mapbender\DataSourceBundle\Entity\DataItem::__construct
public array
# toGeoJson( boolean $decodeGeometry = true )

Get GeoJSON

Get GeoJSON

Parameters

$decodeGeometry

Returns

array
in GeoJSON format

Throws

exception
\exception
public string
# __toString( )

Return GeoJSON string

Return GeoJSON string

Returns

string
string

Overrides

Mapbender\DataSourceBundle\Entity\DataItem::__toString
public mixed
# toArray( )

Return array

Return array

Returns

mixed
mixed

Overrides

Mapbender\DataSourceBundle\Entity\DataItem::toArray
public boolean
# hasGeom( )

Has geom data

Has geom data

Returns

boolean
bool
public string
# getType( )

Get geometry type

Get geometry type

TODO: recover type from geometry.

Returns

string
string
public
# setType( string $type )

Set geometry type

Set geometry type

Parameters

$type
Feature::TYPE_*

Methods inherited from Mapbender\DataSourceBundle\Entity\DataItem

getAttribute(), getAttributes(), getChildren(), getId(), hasId(), setAttribute(), setAttributes(), setChildren(), setId()

Magic methods summary

Constants summary

string TYPE_POINT
#'POINT'
string TYPE_LINESTRING
#'LINESTRING'
string TYPE_POLYGON
#'POLYGON'
string TYPE_MULTIPOINT
#'MULTIPOINT'
string TYPE_MULTILINESTRING
#'MULTILINESTRING'
string TYPE_MULTIPOLYGON
#'MULTIPOLYGON'
string TYPE_GEOMETRYCOLLECTION
#'GEOMETRYCOLLECTION'

Properties summary

public static array $simpleGeometries
#array( Feature::TYPE_POINT, Feature::TYPE_LINESTRING, Feature::TYPE_POLYGON, )
public static array $complexGeometries
#array( Feature::TYPE_MULTIPOLYGON, Feature::TYPE_MULTILINESTRING, Feature::TYPE_MULTIPOINT )
protected mixed $geom

Geometries as WKT

Geometries as WKT

ORM\Column(name="geom",

type="text", nullable=true)
#
protected mixed $srid

Geometry SRID

Geometry SRID

ORM\Column(name="srid",

type="text", nullable=true)
#
protected mixed $geomField

GEOM field name

GEOM field name

ORM\Column(name="geomFieldName",

type="text", nullable=true)
#
protected mixed $type

Geometry type.

Geometry type.

ORM\Column(name="type",

type="text", nullable=true)
#

Properties inherited from Mapbender\DataSourceBundle\Entity\DataItem

$attributes, $children, $id, $uniqueIdField

Mapbender 3.0.6.1 API documenation API documentation generated by ApiGen 2.8.0