PHP Class GeoJson\Feature\Feature

See also: http://www.geojson.org/geojson-spec.html#feature-objects
Since: 1.0
Inheritance: extends GeoJson\GeoJson
Afficher le fichier Open project: jmikola/geojson Class Usage Examples

Protected Properties

Свойство Type Description
$geometry GeoJson\Geometry\Geometry
$id mixed
$properties array Properties are a JSON object, which corresponds to an associative array.
$type

Méthodes publiques

Méthode Description
__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 ( )

Method Details

__construct() public méthode

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

getGeometry() public méthode

Return the Geometry object for this Feature object.
public getGeometry ( ) : GeoJson\Geometry\Geometry
Résultat GeoJson\Geometry\Geometry

getId() public méthode

Return the identifier for this Feature object.
public getId ( ) : mixed
Résultat mixed

getProperties() public méthode

Return the properties for this Feature object.
public getProperties ( ) : array
Résultat array

jsonSerialize() public méthode

See also: http://php.net/manual/en/jsonserializable.jsonserialize.php
public jsonSerialize ( )

Property Details

$geometry protected_oe property

protected Geometry,GeoJson\Geometry $geometry
Résultat GeoJson\Geometry\Geometry

$id protected_oe property

protected mixed $id
Résultat mixed

$properties protected_oe property

Properties are a JSON object, which corresponds to an associative array.
protected array $properties
Résultat array

$type protected_oe property

protected $type