Using the spatial reference +proj=rhealpix and comparing with "pure WGS84", in separate tables to avoid confusion in the QGIS renderization. But no visualization... is a QGIS bug? For example:
CREATE TABLE test1_b AS -- Pure WGS84
SELECT 1 AS gid,
ST_SetSRID(ST_GeomFromGeoHash('d2g6b'), 4326) AS geom
;
CREATE TABLE test1_c AS -- rHEALPix to WGS84 (double transform)
SELECT 1 AS gid,
ST_Transform(
ST_Transform(
ST_SetSRID(ST_GeomFromGeoHash('d2g6c'),4326),
'+proj=rhealpix +ellps=WGS84 +south_square=0 +north_square=2'
),
4326
) AS geom
; -- BUG!? ERROR: ST_Transform: Input geometry has unknown (0) SRID
CREATE TABLE test1_f AS -- rHEALPix
SELECT 1 AS gid,
ST_Transform(
ST_SetSRID(ST_GeomFromGeoHash('d2g6f'),4326),
'+proj=rhealpix +ellps=WGS84 +south_square=0 +north_square=2'
) AS geom
;
QGIS v3 only shows test1_b:
Notes
Geohashes
d2g6b,d2g6candd2g6fare small boxes and horizontal neighbors.In a related question, "How to see ISEA with QGIS?", no clues about visualization, except that rHEALPix is fine because has inverse — as Proj guide say about available forms, "Forward and inverse, spherical and ellipsoidal".
Double transform also not works.
Dump to text seems good:
select st_astext(geom) from test1_fresults the WKT below
POLYGON((
-8238641.204453768 612551.682534819,
-8238641.204453768 618263.7731066671,
-8233754.703146263 618263.7731066671,
-8233754.703146263 612551.682534819,
-8238641.204453768 612551.682534819
))
- Using WGS84 as option after alert,


