Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Can anyone tell me what the purpose of the the geography_columns view and the geometry_columns table are used for in a PostGIS database?

My geography_columns view is empty so I can't see what the purpose of it is.

Thanks

share|improve this question
2  
Please see this Question and Accepted answer - gis.stackexchange.com/questions/6681/… –  Mapperz Mar 18 '13 at 17:03

2 Answers 2

up vote 2 down vote accepted

geometry_columns is part of the Simple Features specification for OGC and ISO 19125-2:2004 Standards compliance. geography_columns is a non-Standard variation to support the geography type.

From http://postgis.net:

PostGIS follows the Open Geospatial Consortium’s “Simple Features for SQL Specification”

share|improve this answer

Those views (tables in older versions) is there to help client software fast understand what it can expect of the datasets. Most of the information in those views is also in each geometry, like srid, number of dimensions and so on. But it would take a very long time for a client program to scan all the geometries to find that out.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.