PHP Класс GeoJson\Feature\Feature

См. также: http://www.geojson.org/geojson-spec.html#feature-objects
С версии: 1.0
Наследование: extends GeoJson\GeoJson
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$geometry GeoJson\Geometry\Geometry
$id mixed
$properties array Properties are a JSON object, which corresponds to an associative array.
$type

Открытые методы

Метод Описание
__construct ( GeoJson\Geometry\Geometry $geometry = null, array $properties = [], mixed $id = null ) Constructor.
getGeometry ( ) : GeoJson\Geometry\Geometry Return the Geometry object for this Feature object.
getId ( ) : mixed Return the identifier for this Feature object.
getProperties ( ) : array Return the properties for this Feature object.
jsonSerialize ( )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( GeoJson\Geometry\Geometry $geometry = null, array $properties = [], mixed $id = null )
$geometry GeoJson\Geometry\Geometry
$properties array
$id mixed

getGeometry() публичный Метод

Return the Geometry object for this Feature object.
public getGeometry ( ) : GeoJson\Geometry\Geometry
Результат GeoJson\Geometry\Geometry

getId() публичный Метод

Return the identifier for this Feature object.
public getId ( ) : mixed
Результат mixed

getProperties() публичный Метод

Return the properties for this Feature object.
public getProperties ( ) : array
Результат array

jsonSerialize() публичный Метод

См. также: http://php.net/manual/en/jsonserializable.jsonserialize.php
public jsonSerialize ( )

Описание свойств

$geometry защищенное свойство

protected Geometry,GeoJson\Geometry $geometry
Результат GeoJson\Geometry\Geometry

$id защищенное свойство

protected mixed $id
Результат mixed

$properties защищенное свойство

Properties are a JSON object, which corresponds to an associative array.
protected array $properties
Результат array

$type защищенное свойство

protected $type