2
0
forked from Wavyzz/dolibarr

NEW add geometrics extrafield (#28239)

* add extrafield point

* wip

* wip

* wip

* input

* input

* output values

* update values

* update values

* update values

* update values

* update values

* wip

* add geomapeditor

* add geomapeditor

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* add linestring and polygon

* wip

* wip

* can store and retrieve linestring

* can store and retrieve linestring

* coordinates are inverted

* coordinates are inverted

* add multipoints

* use text instead binary

* auto center map

* wip

wip

* doc

* fix

* wip

* wip

* translation dynamic

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE
2024-04-24 15:27:38 +02:00
committed by GitHub
parent 26920d2cb3
commit 7ea6a406bd
51 changed files with 35346 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
<?php
/**
* MultiLineString: A collection of LineStrings
*/
class MultiLineString extends Collection
{
protected $geom_type = 'MultiLineString';
// MultiLineString is closed if all it's components are closed
public function isClosed()
{
foreach ($this->components as $line) {
if (!$line->isClosed()) {
return false;
}
}
return true;
}
}