This is the same formatting as the accepted answer to this question except that I removed the unnecessary backslashes after the list numbers, and instead enclosed the list numbers by a pair of <span>
HTML tags to override the default markdown numbered list formatting.
The results of these modifications to the accepted answer are shown below.
1. Get the outlines of the circles (ran very fast)
create table circle_outlines as
SELECT distinct ST_ExteriorRing(the_circle) AS the_geom FROM circle_list;
create index idx_geom_circle_outlines on circle_outlines using gist (the_geom);
select distinct geometrytype(the_geom) from circle_outlines ; -- LINESTRING
2. Combine the lines
3A. Check out the geom type created, if interested (should be GEOMETRYCOLLECTION)
3B. Polygonize from the merged borders (ST_Dump((ST_Polygonize(the_geom)))
4. Add points inside using ST_PointOnSurface(polygonized_geoms)
5. Calculate num_overlaps
This is the same example as above, except that it can be further improved by indenting numbered list items 3a and 3b with the
non-breaking space HTML entity, however this breaks up the logical sequence of the list unless a new numbered list item 3 is created. As you can see, the pretty formatted numbered list shown below is easier to read than the first example.
1. Get the outlines of the circles (ran very fast).
create table circle_outlines as
SELECT distinct ST_ExteriorRing(the_circle) AS the_geom FROM circle_list;
create index idx_geom_circle_outlines on circle_outlines using gist (the_geom);
select distinct geometrytype(the_geom) from circle_outlines ; -- LINESTRING
2. Combine the lines.
3. Check out the geom type created and polygonize from the merged borders.
3a. Check out the geom type created, if interested (should be GEOMETRYCOLLECTION).
3b. Polygonize from the merged borders. (ST_Dump((ST_Polygonize(the_geom)))
4. Add points inside using ST_PointOnSurface(polygonized_geoms).
5. Calculate num_overlaps.