Lines Matching defs:Geometry
5 use geoPHP\Geometry\Geometry;
6 use geoPHP\Geometry\GeometryCollection;
7 use geoPHP\Geometry\Point;
8 use geoPHP\Geometry\MultiPoint;
9 use geoPHP\Geometry\LineString;
10 use geoPHP\Geometry\MultiLineString;
11 use geoPHP\Geometry\Polygon;
12 use geoPHP\Geometry\MultiPolygon;
23 * PHP Geometry/WKB encoder/decoder
51 /** @var array Maps Geometry types to WKB type codes */
53 Geometry::POINT => 1,
54 Geometry::LINE_STRING => 2,
55 Geometry::POLYGON => 3,
56 Geometry::MULTI_POINT => 4,
57 Geometry::MULTI_LINE_STRING => 5,
58 Geometry::MULTI_POLYGON => 6,
59 Geometry::GEOMETRY_COLLECTION => 7,
61 Geometry::CIRCULAR_STRING => 8,
62 Geometry::COMPOUND_CURVE => 9,
63 Geometry::CURVE_POLYGON => 10,
64 Geometry::MULTI_CURVE => 11,
65 Geometry::MULTI_SURFACE => 12,
66 Geometry::CURVE => 13,
67 Geometry::SURFACE => 14,
68 Geometry::POLYHEDRAL_SURFACE => 15,
69 Geometry::TIN => 16,
70 Geometry::TRIANGLE => 17,
79 * @return Geometry
103 * @return Geometry
166 $geometry = $this->getMulti('Geometry');
170 'Geometry type ' . $geometryType .
258 case 'Geometry':
267 * @param Geometry $geometry The geometry
273 public function write(Geometry $geometry, $writeAsHex = false, $bigEndian = false)
284 * @param Geometry $geometry
295 case Geometry::POINT:
299 case Geometry::LINE_STRING:
303 case Geometry::POLYGON:
307 case Geometry::MULTI_POINT:
311 case Geometry::MULTI_LINE_STRING:
315 case Geometry::MULTI_POLYGON:
319 case Geometry::GEOMETRY_COLLECTION:
399 * @param Geometry $geometry