Despite reading a lot of materials on the subject, including the PostGIS manual I still haven't been able to understand, I'm a beginner in this world of geographic objects. I have two tables in my database that have a column called the_geom
. Table ways
and ways_vertices_pgr
.
ways
:the_geom
->geometry (Point, 4326)
Example of the_geom
data with a select in a column:
POINT (-48.2486036 -18.8790378)
ways_vertices_pgr
:the_geom
->geometry (LineString, 4326)
Example of the_geom data with a select in a column:
LINESTRING (-48.2662325 -18.9026985, -48.2657083 -18.902022)
The geometry
type is a PostGIS spatial data type used to represent a feature in coordinate systems. OpenGIS Consortium has defined two ways to represent spatial objects in a bank, WKT and WKB.
In my example, I am using WKT and not EWKT, correct? Because I'm using a Cartesian coordinate system, 2D plane. From my database, is it correct to say that the geometry
type is represented in my database as a WKT text representation? With Point and SRID? Explaining better, is it correct to say that the entire the_geom column is represented in WKT format?
Or not, the WKT text representation is only for the POINT
type, and does PostGIS extend this pattern by adding the SRID?
wkb_geometry