🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 GeometryCollection.class.php

📁 Path: /home/s/t/a/stakrfrcol/dolibarr/htdocs/includes/geoPHP/lib/geometry/GeometryCollection.class.php
📊 Size: 913 B
🔒 Perm: 0604
📝 MIME: text/x-php
<?php
/**
 * GeometryCollection: A heterogenous collection of geometries
 */
class GeometryCollection extends Collection
{
	protected $geom_type = 'GeometryCollection';

	// We need to override asArray. Because geometryCollections are heterogeneous
	// we need to specify which type of geometries they contain. We need to do this
	// because, for example, there would be no way to tell the difference between a
	// MultiPoint or a LineString, since they share the same structure (collection
	// of points). So we need to call out the type explicitly.
	public function asArray()
	{
		$array = array();
		foreach ($this->components as $component) {
			$array[] = array(
			'type' => $component->geometryType(),
			'components' => $component->asArray(),
			);
		}
		return $array;
	}

	// Not valid for this geomettry
	public function boundary()
	{
		return null; }
	public function isSimple()
	{
		return null; }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨