public static function getGeomFromTextMultiPoint(
    $databasetype, $points)
    {
        $wkt = "";
        switch(strtoupper($databasetype))
        {
            case SrsPoint::$POSTGIS:
//                $wkt .= "ST_GEOMFROMTEXT('MULTIPOINT(";
                foreach($points as $point)
                {
                    $wkt .= "," . $point->getLon() . " " . $point->getLat();
                }
                $wkt = "ST_GEOMFROMTEXT('MULTIPOINT("
                        . substr($wkt, 1) . ")'," . $point->getSrs() . ")";
                break;

            default:
                break;
        }
        return $wkt;
    }