You are here

static function geoPHP::geosInstalled in geoPHP 8

Same name and namespace in other branches
  1. 7 geoPHP/geoPHP.inc \geoPHP::geosInstalled()
10 calls to geoPHP::geosInstalled()
AdaptersTests::testAdapters in geoPHP/tests/tests/adaptersTest.php
Geometry::geos in geoPHP/lib/geometry/Geometry.class.php
geoPHP::geosToGeometry in geoPHP/geoPHP.inc
geophp_requirements in ./geophp.module
Implementation of hook_requirements().
MethodsTests::_methods_tester_with_geos in geoPHP/tests/tests/methodsTest.php

... See full list

File

geoPHP/geoPHP.inc, line 120

Class

geoPHP

Code

static function geosInstalled($force = NULL) {
  static $geos_installed = NULL;
  if ($force !== NULL) {
    $geos_installed = $force;
  }
  if ($geos_installed !== NULL) {
    return $geos_installed;
  }
  $geos_installed = class_exists('GEOSGeometry');
  return $geos_installed;
}