INNER CODE UNIT · Python

is_polygon

mongodb/mongo-snippets · 2dsphere/www.py:21

def is_polygon(list):
    n = len(list)
    if n < 4:
        return False
    elif list[0][0] != list[n - 1][0]:
            return False
    elif list[0][1] != list[n - 1][1]:
        return False
    return True

class GeoDemo(object):

    def GET(self):
        return render.mapstest()


class GeoSearch(object):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…