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 32 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 44 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 92 of file dolgeophp.class.php.

◆ getWkt()

DolGeoPHP::getWkt ( $geojson)

Return wkt.

Parameters
string$geojsonA json string
Returns
mixed Value key

Definition at line 109 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 75 of file dolgeophp.class.php.

◆ parseGeoString()

DolGeoPHP::parseGeoString ( $value)

Return data from a value.

Parameters
string$valueValue
Returns
array Centroid

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


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