/** * If JtsGeometry shapes should be automatically "prepared" (i.e. optimized) when read via from a {@link ShapeReader}. * * @see org.locationtech.spatial4j.shape.jts.JtsGeometry#index() */ @Deprecated public boolean isAutoIndex() { return getShapeFactory().isAutoIndex(); }
/** * INTERNAL * @see #makeShape(org.locationtech.jts.geom.Geometry) * * @param geom Non-null * @param dateline180Check if both this is true and {@link SpatialContext#isGeo()}, then JtsGeometry will check * for adjacent coordinates greater than 180 degrees longitude apart, and * it will do tricks to make that line segment (and the shape as a whole) * cross the dateline even though JTS doesn't have geodetic support. * @param allowMultiOverlap See {@link #isAllowMultiOverlap()}. */ public JtsGeometry makeShape(Geometry geom, boolean dateline180Check, boolean allowMultiOverlap) { JtsGeometry jtsGeom = new JtsGeometry(geom, (JtsSpatialContext) ctx, dateline180Check, allowMultiOverlap); if (isAutoIndex()) { jtsGeom.index(); } return jtsGeom; }