Common Postgis  OGR geometries handling.

Implemented a subset of OGR features as native types and their
respective backend/native coding.