30
31
# library. Not a substitute for good web security programming practices.
31
32
hex_regex = re.compile(r'^[0-9A-F]+$', re.I)
32
33
wkt_regex = re.compile(r'^(SRID=(?P<srid>\d+);)?(?P<wkt>(POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)[ACEGIMLONPSRUTY\d,\.\-\(\) ]+)$', re.I)
35
35
class GEOSGeometry(object):
36
36
"A class that, generally, encapsulates a GEOS geometry."