Lines Matching refs:input
27 * @param string|object $input The GeoJSON string or object
31 public function read($input)
33 if (is_string($input)) {
34 $input = json_decode($input);
36 if (!is_object($input)) {
39 if (!isset($input->type) || !is_string($input->type)) {
44 if ($input->type == 'FeatureCollection' && isset($input->features)) {
46 foreach ($input->features as $feature) {
53 if ($input->type == 'Feature') {
54 return $this->geoJSONFeatureToGeometry($input);
58 return $this->geoJSONObjectToGeometry($input);
62 * @param object $input
65 private function getSRID($input)
67 if (isset($input->crs->properties->name)) {
69 preg_match('#EPSG[:]+(\d+)#', $input->crs->properties->name, $m);