geoIntersects method
dynamic
geoIntersects(
- dynamic geometry
Implementation
geoIntersects(geometry) {
if (!(geometry is Point ||
geometry is LineString ||
geometry is Polygon ||
geometry is MultiPoint ||
geometry is MultiLineString ||
geometry is MultiPolygon)) {
throw CloudBaseException(
code: CloudBaseExceptionCode.INVALID_PARAM,
message:
'"geometry" must be of type Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon.',
);
}
return this._queryOP(QueryCommandsLiteral.GEO_INTERSECTS, {
'geometry': geometry,
});
}