src/main/java/com/lf/server/mapper/all/GeomBaseMapper.java
@@ -16,6 +16,15 @@ * @param gid GID * @return WKT */ @Select("select st_astext(geom) geom from ${tab} where gid = #{gid}") @Select("select ST_AsText(geom) geom from ${tab} where gid = #{gid}") public String selectWktById(@Param("tab") String tab, @Param("gid") Integer gid); /** * 根据表名查询空间参考 * * @param tab 表名 * @return SRID */ @Select("select ST_SRID(geom) from ${tab} limit 1") public Integer selectSrid(@Param("tab") String tab); }