Lines Matching refs:data
81 * Converts data to Geometry using geo adapters
83 * If $data is an array, all passed in values will be combined into a single geometry
85 * @param mixed $data The data in any supported format, including geoPHP Geometry
92 public static function load($data)
96 $data = array_shift($args);
102 if (is_object($data)) {
103 if ($data instanceof Geometry) {
104 return $data;
108 $detected = geoPHP::detectFormat($data);
125 if (!is_array($data)) {
126 $result = call_user_func_array([$adapter, "read"], array_merge([$data], $args));
129 foreach ($data as $item) {