pub struct Stub {
pub name: &'static str,
pub hint: &'static str,
}
pub const STUBS: &[Stub] = &[
Stub {
name: "ST_Collect",
hint: "kenro never produces GeometryCollection values; for areal dissolve use \
the ST_Union aggregate, otherwise collect rows on the application side.",
},
];
pub const TRANSFORM_OFF: &[Stub] = &[Stub {
name: "ST_Transform",
hint: "kenro was built without the `transform` cargo feature.",
}];
pub const H3_OFF: &[Stub] = &[
Stub {
name: "h3_latlng_to_cell",
hint: "kenro was built without the `h3` cargo feature.",
},
Stub {
name: "h3_cell_to_parent",
hint: "kenro was built without the `h3` cargo feature.",
},
Stub {
name: "h3_cell_to_string",
hint: "kenro was built without the `h3` cargo feature.",
},
Stub {
name: "h3_string_to_cell",
hint: "kenro was built without the `h3` cargo feature.",
},
];
pub const OVERLAY_OFF: &[Stub] = &[
Stub {
name: "ST_MakeValid",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Intersection",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Difference",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_SymDifference",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_SymmetricDifference",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Union",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_UnaryUnion",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_ClipByBox2D",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Subdivide",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Split",
hint: "kenro was built without the `overlay` cargo feature.",
},
Stub {
name: "ST_Buffer",
hint: "kenro was built without the `overlay` cargo feature.",
},
];
pub const MVT_OFF: &[Stub] = &[
Stub {
name: "ST_AsMVTGeom",
hint: "kenro was built without the `mvt` cargo feature.",
},
Stub {
name: "ST_AsMVT",
hint: "kenro was built without the `mvt` cargo feature.",
},
];
pub const ROUTING_OFF: &[Stub] = &[
Stub {
name: "kenro_dijkstra",
hint: "kenro was built without the `routing` cargo feature.",
},
Stub {
name: "kenro_dijkstra_cost",
hint: "kenro was built without the `routing` cargo feature.",
},
Stub {
name: "kenro_drivingdistance",
hint: "kenro was built without the `routing` cargo feature.",
},
];
pub const GEOJSON_OFF: &[Stub] = &[
Stub {
name: "ST_AsGeoJSON",
hint: "kenro was built without the `geojson` cargo feature.",
},
Stub {
name: "ST_GeomFromGeoJSON",
hint: "kenro was built without the `geojson` cargo feature.",
},
];
pub static SPHEROID_OFF: &[Stub] = &[
Stub {
name: "ST_DistanceSpheroid",
hint: "kenro was built without the `spheroid` cargo feature; \
ST_DistanceSphere (spherical) is available in every build.",
},
Stub {
name: "ST_LengthSpheroid",
hint: "kenro was built without the `spheroid` cargo feature.",
},
Stub {
name: "ST_Length2DSpheroid",
hint: "kenro was built without the `spheroid` cargo feature.",
},
];
pub static CONCAVE_HULL_OFF: &[Stub] = &[Stub {
name: "ST_ConcaveHull",
hint: "kenro was built without the `concave-hull` cargo feature; \
ST_ConvexHull is available in every build.",
}];
pub static DELAUNAY_OFF: &[Stub] = &[
Stub {
name: "ST_DelaunayTriangles",
hint: "kenro was built without the `delaunay` cargo feature.",
},
Stub {
name: "ST_TriangulatePolygon",
hint: "kenro was built without the `delaunay` cargo feature.",
},
];
pub static VORONOI_OFF: &[Stub] = &[
Stub {
name: "ST_VoronoiPolygons",
hint: "kenro was built without the `voronoi` cargo feature.",
},
Stub {
name: "ST_VoronoiLines",
hint: "kenro was built without the `voronoi` cargo feature.",
},
];
pub static TEXT_ENCODINGS_OFF: &[Stub] = &[
Stub {
name: "ST_AsKML",
hint: "kenro was built without the `text-encodings` cargo feature.",
},
Stub {
name: "ST_AsSVG",
hint: "kenro was built without the `text-encodings` cargo feature.",
},
];
pub static GML_OFF: &[Stub] = &[
Stub {
name: "ST_AsGML",
hint: "kenro was built without the `gml` cargo feature.",
},
Stub {
name: "ST_GeomFromGML",
hint: "kenro was built without the `gml` cargo feature.",
},
Stub {
name: "ST_GMLToSQL",
hint: "kenro was built without the `gml` cargo feature.",
},
];