As shown in the below table grid_cell_data
, I have geometryOfCellRepresentativeToTreatment
and geometryOfCellRepresentativeToBuffer
columns, and they contain geometries.
I want to apply both of ST_AsMVTGeom
and ST_AsMVT
as stated in the PostGIS documentation, ST_AsMVT
takes a geometry column. but when I execute the following code:
SELECT ST_AsMVT(grid_cell_data.geometryOfCellRepresentativeToTreatment)
AS geom
FROM grid_cell_data
I get the following error:
pgis_asmvt_transfn: parameter row cannot be other than a rowtype
please let me know how to use both of functions ST_AsMVTGeom
and ST_AsMVT
image: