2883{
2884
2888
2889 if (PG_ARGISNULL(0))
2890 {
2891 PG_RETURN_NULL();
2892 }
2893
2894 geom = PG_GETARG_GSERIALIZED_P(0);
2895
2896 if (!PG_ARGISNULL(1))
2897 {
2899 }
2900
2902 if (geohash)
2903 PG_RETURN_TEXT_P(geohash);
2904 PG_RETURN_NULL();
2905}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
lwvarlena_t * lwgeom_geohash(const LWGEOM *lwgeom, int precision)
Calculate the GeoHash (http://geohash.org) string for a geometry.