May 2017
Beginner to intermediate
328 pages
7h 17m
English
TopoJSON is another topological format, designed with web mapping in mind. It is supported directly by the D3 and OpenLayers (starting with version 3) frameworks, and can be converted to GeoJSON with a TopoJSON library for use with other tools.
One difficulty with this format is that the edges (called arcs in TopoJSON parlance) are defined by index, while in PostGIS topology they are defined by IDs. To overcome this, an intermediate table called edgemap has to be created:
CREATE TABLE edgemap(arc_id serial, edge_id int unique);
Now the function is ready to be used. It accepts two arguments: the TopoGeometry column and the name ...
Read now
Unlock full access