Ticket #7540: minus4json.diff
File minus4json.diff, 692 bytes (added by , 16 years ago) |
---|
-
django/contrib/gis/gdal/geometries.py
62 62 # Regular expressions for recognizing HEXEWKB and WKT. 63 63 hex_regex = re.compile(r'^[0-9A-F]+$', re.I) 64 64 wkt_regex = re.compile(r'^(?P<type>POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)[ACEGIMLONPSRUTY\d,\.\-\(\) ]+$', re.I) 65 json_regex = re.compile(r'^\{[\s\w,\ .\"\'\:\[\]]+\}$')65 json_regex = re.compile(r'^\{[\s\w,\-\.\"\'\:\[\]]+\}$') 66 66 67 67 #### OGRGeometry Class #### 68 68 class OGRGeometry(object):