class DolGeoPHP (View source)

Class to manage Geo processing Usage: $dolgeophp=new DolGeoPHP($db);

Properties

DoliDB $db

Methods

__construct($db)

Create an object to build an HTML area to edit a large string content

array{}|Geometry, centroidjson: string}
parseGeoString(string $value)

Return data from a value

string
getXYString(mixed $value)

Return a string with x and y

string
getPointString(mixed $value)

Return a string with x and y

mixed
getWkt(string $geojson)

Return wkt

Details

__construct($db)

Create an object to build an HTML area to edit a large string content

@param DoliDB $db Database handler

Parameters

$db

array{}|Geometry, centroidjson: string} parseGeoString(string $value)

Return data from a value

Parameters

string $value Value

Return Value

array{}|Geometry, centroidjson: string} Centroid

string getXYString(mixed $value)

Return a string with x and y

Parameters

mixed $value Value

Return Value

string

X space Y

string getPointString(mixed $value)

Return a string with x and y

Parameters

mixed $value Value

Return Value

string

Class : num points

mixed getWkt(string $geojson)

Return wkt

Parameters

string $geojson

A json string

Return Value

mixed

Value key