Lines Matching refs:obj
76 * @param object $obj
80 private function geoJSONFeatureToGeometry($obj)
82 $geometry = $this->read($obj->geometry);
83 if (isset($obj->properties)) {
84 foreach ($obj->properties as $property => $value) {
93 * @param object $obj
97 private function geoJSONObjectToGeometry($obj)
99 $type = $obj->type;
102 return $this->geoJSONObjectToGeometryCollection($obj);
106 $geometry = $this->$method($obj->coordinates);
107 $geometry->setSRID($this->getSRID($obj));
193 * @param object $obj
197 private function geoJSONObjectToGeometryCollection($obj)
200 if (!property_exists($obj, 'geometries')) {
203 foreach ($obj->geometries ?: [] as $componentObject) {
207 $collection->setSRID($this->getSRID($obj));