You are here

public function Geometry::out in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/geometry/Geometry.class.php \Geometry::out()
3 calls to Geometry::out()
Geometry::asBinary in geoPHP/lib/geometry/Geometry.class.php
Geometry::asText in geoPHP/lib/geometry/Geometry.class.php
Geometry::geos in geoPHP/lib/geometry/Geometry.class.php

File

geoPHP/lib/geometry/Geometry.class.php, line 87

Class

Geometry
Geometry abstract class

Code

public function out() {
  $args = func_get_args();
  $format = array_shift($args);
  $type_map = geoPHP::getAdapterMap();
  $processor_type = $type_map[$format];
  $processor = new $processor_type();
  array_unshift($args, $this);
  $result = call_user_func_array(array(
    $processor,
    'write',
  ), $args);
  return $result;
}