前言 一、建立索引 二、检索 三、自定义矩形
前言
Geo-Shape和Geo-point都属于地理数据类型,Geo-point表示经纬度的坐标点,Geo-shape用以表示复杂图形,比如多边形、矩形等。geo_shape 支持 intersects(相交)、disjoint(相离)、within(内含)、contains(包含)。
本文针对intersects(相交)做示例。
一、建立索引
1、实体类
shape字段用注解@GeoShapeField标识
@Data @Accessors(chain = true) @



