PHP 클래스 Tdt\Core\Formatters\GEOJSONFormatter

저자: Jan Vansteenlandt ([email protected])
상속: implements Tdt\Core\Formatters\IFormatter
파일 보기 프로젝트 열기: tdt/core

공개 메소드들

메소드 설명
boundingBox ( $features ) : array Returns an array of n*2 numbers, where n is the maximum dimension of each coordinate present in the dataset. The first n numbers are the lower bounds of each dimension, the latter n numbers are the upper bounds of each dimension.
convertCoordinateArray ( $str ) : array
convertCoordinateMultiArray ( $str ) : array
convertCoordinateSingleArray ( $str ) : array
createResponse ( $dataObj )
findGeometry ( array $geo, array $dataRow ) : array
getBody ( $dataObj )
getDocumentation ( )
toCoordinateList ( $coordinates_array, &$out ) Converts a coordinate array of a feature of any type to an array containing all used coordinates. Each coordinate is represented by an array of numbers, with one number for each dimension.

메소드 상세

boundingBox() 공개 정적인 메소드

Returns an array of n*2 numbers, where n is the maximum dimension of each coordinate present in the dataset. The first n numbers are the lower bounds of each dimension, the latter n numbers are the upper bounds of each dimension.
public static boundingBox ( $features ) : array
$features array features for which to calculate the bounds
리턴 array

convertCoordinateArray() 공개 정적인 메소드

public static convertCoordinateArray ( $str ) : array
$str string eg: "1.1,2.2 3.3,4.4"
리턴 array eg: ((1.1, 2.2), (3.3, 4.4))

convertCoordinateMultiArray() 공개 정적인 메소드

public static convertCoordinateMultiArray ( $str ) : array
$str string eg: "1.1,2.2 3.3,4.4; 5.5,6.6 7.7,8.8"
리턴 array eg: (((1.1, 2.2), (3.3, 4.4)), ((5.5, 6.6), (7.7, 8.8))

convertCoordinateSingleArray() 공개 정적인 메소드

public static convertCoordinateSingleArray ( $str ) : array
$str string eg: "1.1,2.2; 3.3,4.4; 5.5,6.6"
리턴 array eg: ((1.1, 2.2), (3.3, 4.4), (5.5, 6.6), (7.7, 8.8))

createResponse() 공개 정적인 메소드

public static createResponse ( $dataObj )

findGeometry() 공개 정적인 메소드

public static findGeometry ( array $geo, array $dataRow ) : array
$geo array an array holding the identifier(s) for the geographical attribute
$dataRow array an array holding data
리턴 array an array containing the identifier(s) of the selected attribute and an object representing the extracted geometry

getBody() 공개 정적인 메소드

public static getBody ( $dataObj )

getDocumentation() 공개 정적인 메소드

public static getDocumentation ( )

toCoordinateList() 공개 정적인 메소드

Converts a coordinate array of a feature of any type to an array containing all used coordinates. Each coordinate is represented by an array of numbers, with one number for each dimension.
public static toCoordinateList ( $coordinates_array, &$out )
$coordinates_array
$out array eg for 2D data: ((1, 1), (2, 2), (3, 3))