/** * Creates a new {@link PreparedGeometry} appropriate for the argument {@link Geometry}. * * @param geom the geometry to prepare * @return the prepared geometry */ public static PreparedGeometry prepare(Geometry geom) { return (new PreparedGeometryFactory()).create(geom); }
/** * Constructor * @param polygon * Polygon that makes up the shape of the influence * @param scalar * Multiplier on the cost of a route. */ public Influence(final Polygon polygon, final double scalar) { this.preparedPolygon = (PreparedPolygon) preparedFactory.create(polygon); this.scalar = scalar; }
/** * Creates a new {@link PreparedGeometry} appropriate for the argument {@link Geometry}. * * @param geom the geometry to prepare * @return the prepared geometry */ public static PreparedGeometry prepare(Geometry geom) { return (new PreparedGeometryFactory()).create(geom); }
PreparedGeometry preparedGeom = pgFact.create(geometry);
PreparedGeometry preparedGeom = pgFact.create(geometry);