This is the link of the geojson, it is a FeatureCollection which I later convert into simple JSON. it has 66,153 Records. and the size is 174MB
https://opendata.arcgis.com/datasets/a779d051865f461eb2a1f50f10940ec4_161.geojson
I get the data using requests in python.
after getting the response I pass the response to a function and try to load data with json.loads(), which takes quite some time even after that, it is killed by the manjaro. , I have 12 gigs of ram.
def getJson(document):
a = json.loads(document.text) <= GETS STUCK HERE
del document
try:
p = json.loads('[]')
for i in a['features']:
print('Detected GeoJson of type FeatureCollection')
g = json.loads('{}')
for key, value in i.items():
if key == 'properties':
for k, v in value.items():
g.update({k:v})
elif key != 'type':
try:
x = shape(value)
g.update({key:x.wkt})
except Exception as e:
g.update({key:value})
p.append(g)
return p