AirLay backend

FeatureBuilder extends Injectable
in package
implements AirlayLoggerDi, AirlayCollectionDi

Interfaces, Classes, Traits and Enums

AirlayLoggerDi
Interface AirlayLoggerDi
AirlayCollectionDi
Interface AirlayCollectionDi

Table of Contents

MIN_AREA  = 0.1
$dataSetCollection  : DependentDataSet|RelatedDataSet
$errors  : array<string|int, mixed>
$featuresToDelete  : array<string|int, mixed>
$geocoder  : SearchEngine
$validator  : SchemeValidator|null
$warnings  : array<string|int, mixed>
$multiLineStringOptimizer  : MultiLineStringOptimizer
__construct()  : mixed
build()  : FeatureEntity|null
buildFeatures()  : int
Build feature in dataset
getErrors()  : array<string|int, ErrorInterface>
getWarnings()  : array<string|int, ErrorInterface>
addErrorRecursive()  : void
addAddressError()  : void
addError()  : void
addPropertyErrors()  : void
checkArea()  : void
checkDuplicatePoints()  : void
checkMaxLength()  : void
checkSelfIntersect()  : void
findAddress()  : string|null
getBarycenterGeometry()  : Point|MultiPoint|null
getGeometry()  : Geometry
getNode()  : NodeEntity
getNodeGeometryById()  : Point|null
getObjectId()  : string|int
getObjectIdForErrorByNode()  : string
getRelationsNodes()  : array<string|int, NodeEntity>|array<string|int, array<string|int, NodeEntity>>
possibleGeocoding()  : bool
relationErrorProcess()  : void
setAddressByCoordinates()  : void
setAddressError()  : void
setBarycenter()  : void
setIsGeocodingError()  : void
throwNodeNotFoundError()  : void
throwSystemError()  : void
toPoints()  : array<string|int, Point>|array<string|int, array<string|int, Point>>
validateSchemeFields()  : void

Constants

Properties

$featuresToDelete

protected array<string|int, mixed> $featuresToDelete = []

Methods

buildFeatures()

Build feature in dataset

public buildFeatures([array<string|int, mixed>|null $relations = null ]) : int
Parameters
$relations : array<string|int, mixed>|null = null
Return values
int

findAddress()

private findAddress(Point $point) : string|null
Parameters
$point : Point
Return values
string|null

getNodeGeometryById()

private getNodeGeometryById(ObjectId $nodeId) : Point|null
Parameters
$nodeId : ObjectId
Return values
Point|null

getRelationsNodes()

private getRelationsNodes(ObjectId $relationId, array<string|int, ObjectId>|array<string|int, array<string|int, ObjectId>> $nodes) : array<string|int, NodeEntity>|array<string|int, array<string|int, NodeEntity>>
Parameters
$relationId : ObjectId
$nodes : array<string|int, ObjectId>|array<string|int, array<string|int, ObjectId>>
Tags
throws
FeatureBuilderException|Exception
Return values
array<string|int, NodeEntity>|array<string|int, array<string|int, NodeEntity>>

throwNodeNotFoundError()

private throwNodeNotFoundError(ObjectId $nodeId, ObjectId $relationId) : void
Parameters
$nodeId : ObjectId
$relationId : ObjectId
Tags
throws
FeatureBuilderException|Exception
Return values
void

toPoints()

private toPoints(array<string|int, NodeEntity>|array<string|int, array<string|int, NodeEntity>> $nodes) : array<string|int, Point>|array<string|int, array<string|int, Point>>
Parameters
$nodes : array<string|int, NodeEntity>|array<string|int, array<string|int, NodeEntity>>
Return values
array<string|int, Point>|array<string|int, array<string|int, Point>>

Search results