Skip to content

Instantly share code, notes, and snippets.

@mloskot
Last active August 29, 2015 14:08
Show Gist options
  • Save mloskot/993c38232c88675488e8 to your computer and use it in GitHub Desktop.
Save mloskot/993c38232c88675488e8 to your computer and use it in GitHub Desktop.
Quick report of the Boost.Geoemtry implementation support status in plain text format, with modified code for text_outputter.hpp to pretty-print with geometry names included.
        PT      RNG
PT      OK      OK
SEG     OK      OK
BOX     OK      OK
LS      OK      OK
RIN     OK      OK
PL      OK      OK
MPT     OK      OK
MLS     OK      OK
MPL     OK      OK

area
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

buffer
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      -       -       -       -       -       -       -       -       -
SEG     -       -       -       -       -       -       -       -       -
BOX     -       -       OK      -       -       -       -       -       -
LS      -       -       -       -       -       -       -       -       -
RIN     -       -       -       -       -       -       -       -       -
PL      -       -       -       -       -       -       -       -       -
MPT     -       -       -       -       -       -       -       -       -
MLS     -       -       -       -       -       -       -       -       -
MPL     -       -       -       -       -       -       -       -       -

centroid
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

clear
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

convert
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      -       -       -       -       -       -       -       -
SEG     -       OK      -       -       -       -       -       -       -
BOX     OK      -       OK      -       -       -       -       -       -
LS      -       OK      -       OK      -       -       -       -       -
RIN     -       -       OK      -       OK      OK      -       -       -
PL      -       -       OK      -       OK      OK      -       -       -
MPT     OK      -       -       -       -       -       OK      -       -
MLS     -       OK      -       OK      -       -       -       OK      -
MPL     -       -       OK      -       OK      OK      -       -       OK

convex_hull
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

correct
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

covered_by
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      -       -       -       -       -       -       -       -
SEG     OK      -       -       -       -       -       -       -       -
BOX     OK      -       OK      -       -       -       -       -       -
LS      OK      -       -       OK      -       -       -       OK      -
RIN     OK      -       -       OK      OK      OK      -       OK      OK
PL      OK      -       -       OK      OK      OK      -       OK      OK
MPT     OK      -       -       -       -       -       -       -       -
MLS     OK      -       -       OK      -       -       -       OK      -
MPL     OK      -       -       OK      OK      OK      -       OK      OK

disjoint
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      OK      OK      OK      OK      OK      OK      OK      OK
SEG     OK      OK      OK      OK      OK      OK      -       OK      OK
BOX     OK      OK      OK      OK      OK      OK      -       OK      OK
LS      OK      OK      OK      OK      OK      OK      OK      OK      OK
RIN     OK      OK      OK      OK      OK      OK      -       OK      OK
PL      OK      OK      OK      OK      OK      OK      OK      OK      OK
MPT     -       OK      OK      -       OK      -       -       OK      OK
MLS     OK      OK      OK      OK      OK      OK      -       OK      OK
MPL     OK      OK      OK      OK      OK      OK      -       OK      OK

distance
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      OK      OK      OK      OK      OK      OK      OK      OK
SEG     OK      OK      OK      OK      OK      OK      OK      OK      OK
BOX     OK      OK      OK      OK      OK      OK      OK      OK      OK
LS      OK      OK      OK      OK      OK      OK      OK      OK      OK
RIN     OK      OK      OK      OK      OK      OK      OK      OK      OK
PL      OK      OK      OK      OK      OK      OK      OK      OK      OK
MPT     OK      OK      OK      OK      OK      OK      OK      OK      OK
MLS     OK      OK      OK      OK      OK      OK      OK      OK      OK
MPL     OK      OK      OK      OK      OK      OK      OK      OK      OK

envelope
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

equals
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      -       -       -       -       -       -       -       -
SEG     -       OK      -       -       -       -       -       -       -
BOX     -       -       OK      -       OK      OK      -       -       -
LS      -       -       -       OK      -       -       -       OK      -
RIN     -       -       OK      -       OK      OK      -       -       -
PL      -       -       OK      -       OK      OK      -       -       OK
MPT     -       -       -       -       -       -       -       -       -
MLS     -       -       -       OK      -       -       -       OK      -
MPL     -       -       -       -       -       OK      -       -       OK

expand
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      -       -       OK      -       -       -       -       -       -
SEG     -       -       OK      -       -       -       -       -       -
BOX     -       -       OK      -       -       -       -       -       -
LS      -       -       -       -       -       -       -       -       -
RIN     -       -       -       -       -       -       -       -       -
PL      -       -       -       -       -       -       -       -       -
MPT     -       -       -       -       -       -       -       -       -
MLS     -       -       -       -       -       -       -       -       -
MPL     -       -       -       -       -       -       -       -       -

for_each_point
PT      OK
SEG     -
BOX     -
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

for_each_segment
PT      OK
SEG     -
BOX     -
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

is_simple
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

is_valid
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

length
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

num_geometries
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

num_interior_rings
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

num_points
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

overlaps
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      -       -       -       -       -       OK      -       -
SEG     -       -       -       -       -       -       -       -       -
BOX     -       -       OK      -       -       -       -       -       -
LS      -       -       -       OK      -       -       -       OK      -
RIN     -       -       -       -       OK      OK      -       -       OK
PL      -       -       -       -       OK      OK      -       -       OK
MPT     OK      -       -       -       -       -       OK      -       -
MLS     -       -       -       OK      -       -       -       OK      -
MPL     -       -       -       -       OK      OK      -       -       OK

perimeter
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

reverse
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

simplify
PT      OK
SEG     -
BOX     -
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

transform
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      OK      OK      OK      OK      OK      OK      OK      OK
SEG     OK      OK      OK      OK      OK      OK      OK      OK      OK
BOX     OK      OK      OK      OK      OK      OK      OK      OK      OK
LS      OK      OK      OK      OK      OK      OK      OK      OK      OK
RIN     OK      OK      OK      OK      OK      OK      OK      OK      OK
PL      OK      OK      OK      OK      OK      OK      OK      OK      OK
MPT     OK      OK      OK      OK      OK      OK      OK      OK      OK
MLS     OK      OK      OK      OK      OK      OK      OK      OK      OK
MPL     OK      OK      OK      OK      OK      OK      OK      OK      OK

unique
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK

within
        PT      SEG     BOX     LS      RIN     PL      MPT     MLS     MPL
PT      OK      -       -       -       -       -       -       -       -
SEG     OK      -       -       -       -       -       -       -       -
BOX     OK      -       OK      -       -       -       -       -       -
LS      OK      -       -       OK      -       -       -       OK      -
RIN     OK      -       -       OK      OK      OK      -       OK      OK
PL      OK      -       -       OK      OK      OK      -       OK      OK
MPT     OK      -       -       -       -       -       -       -       -
MLS     OK      -       -       OK      -       -       -       OK      -
MPL     OK      -       -       OK      OK      OK      -       OK      OK

wkt
PT      OK
SEG     OK
BOX     OK
LS      OK
RIN     OK
PL      OK
MPT     OK
MLS     OK
MPL     OK
@mkaravel
Copy link

There seems to be something wrong with the disjoint matrix. It should be symmetric, but it is not...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment