postgis 查看gis字段定义 博客分类: GISpostgresql postgiscolumntype
程序员文章站
2024-02-24 20:55:52
...
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 行记录)