May 2017
Beginner to intermediate
328 pages
7h 17m
English
There are two levels of polygon geometry decomposition: they can be broken down either into LineStrings or into points. Decomposition into points is very similar to decomposition of a LineString: the ST_DumpPoints is used:
SELECT ST_DumpPoints( ST_MakePolygon( ST_MakeLine(ARRAY[ST_MakePoint(20,50),ST_MakePoint(19.95,49.98), ST_MakePoint(19.90,49.90),ST_MakePoint(20,50)]), ARRAY[ST_MakeLine(ARRAY[ST_MakePoint(19.95,49.97),ST_MakePoint(19.943,49.963), ST_MakePoint(19.955,49.965),ST_MakePoint(19.95,49.97)])] )); st_dumppoints ------------------------------------------------------ ("{1,1}",010100000000000000000034400000000000004940) ("{1,2}",01010000003333333333F333403D0AD7A370FD4840) ("{1,3}",01010000006666666666E633403333333333F34840) ...Read now
Unlock full access