postgis 查看gis字段定义
postgis中有时候我们需要查看gis表中定义的字段类型 point、linestring。polygon等。可以通过 geomerty_colums 去查看,example:
gistest=# select * from geometry_columns where f_table_schema = ‘public’ and f_t
able_name = ‘gis_person’ and f_geometry_column = ‘geom’;
f_table_catalog | f_table_schema | f_table_name | f_geometry_column | coord_dim
ension | srid | type
—————–+—————-+————–+——————-+———-
——-+——+———
gistest | public | gis_person | geom |
2 | 4326 | POLYGON
(1 行记录)
转载自:https://blog.csdn.net/jjxliu306/article/details/84731517