dolibarr 21.0.0-alpha
DolGeoPHP Class Reference

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

Public Member Functions

 __construct ($db)
 Create an object to build an HTML area to edit a large string content.
 
 parseGeoString ($value)
 Return data from a value.
 
 getXYString ($value)
 Return a string with x and y.
 
 getPointString ($value)
 Return a string with x and y.
 
 getWkt ($geojson)
 Return wkt.
 

Detailed Description

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

Definition at line 33 of file dolgeophp.class.php.

Constructor & Destructor Documentation

◆ __construct()

DolGeoPHP::__construct ( $db)

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

Parameters
DoliDB$dbDatabase handler

Definition at line 45 of file dolgeophp.class.php.

Member Function Documentation

◆ getPointString()

DolGeoPHP::getPointString ( $value)

Return a string with x and y.

Parameters
mixed$valueValue
Returns
string Class : num points

Definition at line 96 of file dolgeophp.class.php.

◆ getWkt()

DolGeoPHP::getWkt ( $geojson)

Return wkt.

Parameters
string$geojsonA json string
Returns
mixed Value key

Definition at line 114 of file dolgeophp.class.php.

◆ getXYString()

DolGeoPHP::getXYString ( $value)

Return a string with x and y.

Parameters
mixed$valueValue
Returns
string X space Y

Definition at line 78 of file dolgeophp.class.php.

◆ parseGeoString()

DolGeoPHP::parseGeoString ( $value)

Return data from a value.

Parameters
string$valueValue
Returns
array{}|array{geojson:string,centroid:Geometry,centroidjson:string} Centroid

Definition at line 56 of file dolgeophp.class.php.


The documentation for this class was generated from the following file: