Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 436 Bytes

ST_AsBinary.md

File metadata and controls

19 lines (13 loc) · 436 Bytes

ST_AsBinary

bytea ST_AsBinary(geometry g1);

bytea ST_AsBinary(geometry g1, text NDR_or_XDR);

bytea ST_AsBinary(geography geog);

bytea ST_AsBinary(geography geog, text NDR_or_XDR);

Example:

    $queryBuilder = $manager->createQueryBuilder();
    $queryBuilder
        ->select("id, ST_Area(things.geometry) as area")
        ->from("geometryOfThings", "things");
    $results = $queryBuilder->getQuery()->getResult();