将SRS参数写入SQL代码中,并使用ST_Transform函数将数据集的SRS转换为EPSG 4326(WGS84)或其他所需的投影。示例如下:
SELECT ST_Intersection( ST_Transform(a.geom, 4326), ST_Transform(b.geom, 4326) ) FROM table_a a, table_b b WHERE ST_Intersects(a.geom, b.geom);