Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different results when accessing geojson file multiple times #891

Open
henrymartin1 opened this issue Apr 22, 2020 · 3 comments
Open

Different results when accessing geojson file multiple times #891

henrymartin1 opened this issue Apr 22, 2020 · 3 comments
Labels

Comments

@henrymartin1
Copy link

Dear Fiona team,
thanks for your great work, I appreciate Fiona a lot!

Expected behavior and actual behavior.

I want to read all entries from a geojson file. However, when I iterate over it in different ways it omits some rows without a warning.

Steps to reproduce the problem.

The code
with fiona.open(os.path.join('data', 'meuse.json'), 'r') as meuse:
    print('keys:', list(meuse.keys()), '\n\n')
    
    # iterate all items
    i = 0
    for item in meuse.items():
        i +=1
        
    # iterate all keys without doing anything
    j = 0
    for key in meuse.keys():
        j +=1

    # iterate all keys and call item
    k = 0
    for key in meuse.keys():
        meuse[key]
        k +=1
    
    l = 0
    for key in meuse.keys():
        meuse[key]
        l +=1
        
    m = 0
    for key in meuse.keys():
        meuse[key]
        m +=1
        
# reopen file
with fiona.open(os.path.join('data', 'meuse.json'), 'r') as meuse:
    n = 0
    for key in meuse.keys():
        meuse[key]
        n +=1
    
    o = 0
    for key in meuse.keys():
        o +=1

print('i:', i,'j:', j, 'k:', k, 'l:',l, 'm:', m, 'n:', n, 'o:', o)
The output
keys: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154] 

i: 155 j: 155 k: 140 l: 139 m: 139 n: 140 o: 155

The expected output would be either an error, a warning or the same number for all ways to iterate the file.

Here is the geojson file (The data comes from the meuse dataset):

The data (very long geojson paste...)

{ "type": "FeatureCollection", "name": "meuse", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::28992" } }, "features": [ { "type": "Feature", "properties": { "cadmium": 11.7, "copper": 85.0, "lead": 299.0, "zinc": 1022.0, "elev": 7.909, "dist": 0.00135803, "om": 13.6, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 50.0 }, "geometry": { "type": "Point", "coordinates": [ 181072.0, 333611.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.6, "copper": 81.0, "lead": 277.0, "zinc": 1141.0, "elev": 6.983, "dist": 0.0122243, "om": 14.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 30.0 }, "geometry": { "type": "Point", "coordinates": [ 181025.0, 333558.0 ] } }, { "type": "Feature", "properties": { "cadmium": 6.5, "copper": 68.0, "lead": 199.0, "zinc": 640.0, "elev": 7.8, "dist": 0.103029, "om": 13.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 150.0 }, "geometry": { "type": "Point", "coordinates": [ 181165.0, 333537.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.6, "copper": 81.0, "lead": 116.0, "zinc": 257.0, "elev": 7.655, "dist": 0.190094, "om": 8.0, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ga", "dist.m": 270.0 }, "geometry": { "type": "Point", "coordinates": [ 181298.0, 333484.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.8, "copper": 48.0, "lead": 117.0, "zinc": 269.0, "elev": 7.48, "dist": 0.27709, "om": 8.7, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 380.0 }, "geometry": { "type": "Point", "coordinates": [ 181307.0, 333330.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.0, "copper": 61.0, "lead": 137.0, "zinc": 281.0, "elev": 7.791, "dist": 0.364067, "om": 7.8, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ga", "dist.m": 470.0 }, "geometry": { "type": "Point", "coordinates": [ 181390.0, 333260.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.2, "copper": 31.0, "lead": 132.0, "zinc": 346.0, "elev": 8.217, "dist": 0.190094, "om": 9.2, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 240.0 }, "geometry": { "type": "Point", "coordinates": [ 181165.0, 333370.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.8, "copper": 29.0, "lead": 150.0, "zinc": 406.0, "elev": 8.49, "dist": 0.0921516, "om": 9.5, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ab", "dist.m": 120.0 }, "geometry": { "type": "Point", "coordinates": [ 181027.0, 333363.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.4, "copper": 37.0, "lead": 133.0, "zinc": 347.0, "elev": 8.668, "dist": 0.184614, "om": 10.6, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ab", "dist.m": 240.0 }, "geometry": { "type": "Point", "coordinates": [ 181060.0, 333231.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.6, "copper": 24.0, "lead": 80.0, "zinc": 183.0, "elev": 9.049, "dist": 0.309702, "om": 6.3, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 420.0 }, "geometry": { "type": "Point", "coordinates": [ 181232.0, 333168.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.4, "copper": 25.0, "lead": 86.0, "zinc": 189.0, "elev": 9.015, "dist": 0.315116, "om": 6.4, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Fh", "dist.m": 400.0 }, "geometry": { "type": "Point", "coordinates": [ 181191.0, 333115.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.8, "copper": 25.0, "lead": 97.0, "zinc": 251.0, "elev": 9.073, "dist": 0.228123, "om": 9.0, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ag", "dist.m": 300.0 }, "geometry": { "type": "Point", "coordinates": [ 181032.0, 333031.0 ] } }, { "type": "Feature", "properties": { "cadmium": 11.2, "copper": 93.0, "lead": 285.0, "zinc": 1096.0, "elev": 7.32, "dist": 0.0, "om": 15.4, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 180874.0, 333339.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.5, "copper": 31.0, "lead": 183.0, "zinc": 504.0, "elev": 8.815, "dist": 0.113932, "om": 8.4, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 130.0 }, "geometry": { "type": "Point", "coordinates": [ 180969.0, 333252.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.0, "copper": 27.0, "lead": 130.0, "zinc": 326.0, "elev": 8.937, "dist": 0.168336, "om": 9.1, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 220.0 }, "geometry": { "type": "Point", "coordinates": [ 181011.0, 333161.0 ] } }, { "type": "Feature", "properties": { "cadmium": 9.5, "copper": 86.0, "lead": 240.0, "zinc": 1032.0, "elev": 7.702, "dist": 0.0, "om": 16.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180830.0, 333246.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.0, "copper": 74.0, "lead": 133.0, "zinc": 606.0, "elev": 7.16, "dist": 0.0122243, "om": 16.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180763.0, 333104.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.1, "copper": 69.0, "lead": 148.0, "zinc": 711.0, "elev": 7.1, "dist": 0.0122243, "om": 16.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180694.0, 332972.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.7, "copper": 69.0, "lead": 207.0, "zinc": 735.0, "elev": 7.02, "dist": 0.0, "om": 13.7, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180625.0, 332847.0 ] } }, { "type": "Feature", "properties": { "cadmium": 12.9, "copper": 95.0, "lead": 284.0, "zinc": 1052.0, "elev": 6.86, "dist": 0.0, "om": 14.8, "ffreq": "1", "soil": "1", "lime": "1", "landuse": null, "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180555.0, 332707.0 ] } }, { "type": "Feature", "properties": { "cadmium": 5.5, "copper": 53.0, "lead": 194.0, "zinc": 673.0, "elev": 8.908, "dist": 0.0703468, "om": 10.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 180642.0, 332708.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.8, "copper": 35.0, "lead": 123.0, "zinc": 402.0, "elev": 8.99, "dist": 0.0975136, "om": 7.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 140.0 }, "geometry": { "type": "Point", "coordinates": [ 180704.0, 332717.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.9, "copper": 35.0, "lead": 110.0, "zinc": 343.0, "elev": 8.83, "dist": 0.113932, "om": 7.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ag", "dist.m": 160.0 }, "geometry": { "type": "Point", "coordinates": [ 180704.0, 332664.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.7, "copper": 24.0, "lead": 85.0, "zinc": 218.0, "elev": 9.02, "dist": 0.342321, "om": 7.0, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 440.0 }, "geometry": { "type": "Point", "coordinates": [ 181153.0, 332925.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.4, "copper": 26.0, "lead": 75.0, "zinc": 200.0, "elev": 8.976, "dist": 0.385804, "om": 6.9, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 490.0 }, "geometry": { "type": "Point", "coordinates": [ 181147.0, 332823.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.5, "copper": 22.0, "lead": 76.0, "zinc": 194.0, "elev": 8.973, "dist": 0.429289, "om": 6.3, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 530.0 }, "geometry": { "type": "Point", "coordinates": [ 181167.0, 332778.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.3, "copper": 27.0, "lead": 73.0, "zinc": 207.0, "elev": 8.507, "dist": 0.315116, "om": 5.6, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ab", "dist.m": 400.0 }, "geometry": { "type": "Point", "coordinates": [ 181008.0, 332777.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.3, "copper": 24.0, "lead": 67.0, "zinc": 180.0, "elev": 8.743, "dist": 0.320574, "om": 4.4, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ag", "dist.m": 400.0 }, "geometry": { "type": "Point", "coordinates": [ 180973.0, 332687.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.8, "copper": 22.0, "lead": 87.0, "zinc": 240.0, "elev": 8.973, "dist": 0.249863, "om": 5.3, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 330.0 }, "geometry": { "type": "Point", "coordinates": [ 180916.0, 332753.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.5, "copper": 21.0, "lead": 65.0, "zinc": 180.0, "elev": 9.043, "dist": 0.489064, "om": 4.8, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ag", "dist.m": 630.0 }, "geometry": { "type": "Point", "coordinates": [ 181352.0, 332946.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.3, "copper": 29.0, "lead": 78.0, "zinc": 208.0, "elev": 8.688, "dist": 0.472778, "om": 2.6, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "B", "dist.m": 570.0 }, "geometry": { "type": "Point", "coordinates": [ 181133.0, 332570.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.3, "copper": 21.0, "lead": 64.0, "zinc": 198.0, "elev": 8.727, "dist": 0.287957, "om": 1.0, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ag", "dist.m": 390.0 }, "geometry": { "type": "Point", "coordinates": [ 180878.0, 332489.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.1, "copper": 27.0, "lead": 77.0, "zinc": 250.0, "elev": 8.328, "dist": 0.271622, "om": 2.4, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 360.0 }, "geometry": { "type": "Point", "coordinates": [ 180829.0, 332450.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 26.0, "lead": 80.0, "zinc": 192.0, "elev": 7.971, "dist": 0.385807, "om": 1.9, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "B", "dist.m": 500.0 }, "geometry": { "type": "Point", "coordinates": [ 180954.0, 332399.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.6, "copper": 27.0, "lead": 82.0, "zinc": 213.0, "elev": 7.809, "dist": 0.418417, "om": 3.1, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "B", "dist.m": 550.0 }, "geometry": { "type": "Point", "coordinates": [ 180956.0, 332318.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.0, "copper": 32.0, "lead": 97.0, "zinc": 321.0, "elev": 6.986, "dist": 0.244474, "om": 1.6, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ab", "dist.m": 340.0 }, "geometry": { "type": "Point", "coordinates": [ 180710.0, 332330.0 ] } }, { "type": "Feature", "properties": { "cadmium": 5.8, "copper": 50.0, "lead": 166.0, "zinc": 569.0, "elev": 7.756, "dist": 0.135709, "om": 3.5, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ab", "dist.m": 210.0 }, "geometry": { "type": "Point", "coordinates": [ 180632.0, 332445.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.9, "copper": 67.0, "lead": 217.0, "zinc": 833.0, "elev": 7.784, "dist": 0.0484965, "om": 8.1, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 60.0 }, "geometry": { "type": "Point", "coordinates": [ 180530.0, 332538.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.1, "copper": 77.0, "lead": 219.0, "zinc": 906.0, "elev": 7.0, "dist": 0.0, "om": 7.9, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180478.0, 332578.0 ] } }, { "type": "Feature", "properties": { "cadmium": 14.1, "copper": 108.0, "lead": 405.0, "zinc": 1454.0, "elev": 6.92, "dist": 0.00135803, "om": 9.5, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 180383.0, 332476.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.4, "copper": 32.0, "lead": 102.0, "zinc": 298.0, "elev": 7.516, "dist": 0.135709, "om": 1.4, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 170.0 }, "geometry": { "type": "Point", "coordinates": [ 180494.0, 332330.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 21.0, "lead": 48.0, "zinc": 167.0, "elev": 8.18, "dist": 0.26622, "om": null, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ga", "dist.m": 320.0 }, "geometry": { "type": "Point", "coordinates": [ 180561.0, 332193.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.7, "copper": 22.0, "lead": 65.0, "zinc": 176.0, "elev": 8.694, "dist": 0.211843, "om": null, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 260.0 }, "geometry": { "type": "Point", "coordinates": [ 180451.0, 332175.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.3, "copper": 21.0, "lead": 62.0, "zinc": 258.0, "elev": 9.28, "dist": 0.320572, "om": 2.0, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 360.0 }, "geometry": { "type": "Point", "coordinates": [ 180410.0, 332031.0 ] } }, { "type": "Feature", "properties": { "cadmium": 4.2, "copper": 51.0, "lead": 281.0, "zinc": 746.0, "elev": 7.94, "dist": 0.081222, "om": 5.1, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 100.0 }, "geometry": { "type": "Point", "coordinates": [ 180355.0, 332299.0 ] } }, { "type": "Feature", "properties": { "cadmium": 4.3, "copper": 50.0, "lead": 294.0, "zinc": 746.0, "elev": 6.36, "dist": 0.190086, "om": 5.3, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 200.0 }, "geometry": { "type": "Point", "coordinates": [ 180292.0, 332157.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.1, "copper": 38.0, "lead": 211.0, "zinc": 464.0, "elev": 7.78, "dist": 0.287941, "om": 4.5, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 320.0 }, "geometry": { "type": "Point", "coordinates": [ 180283.0, 332014.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.7, "copper": 26.0, "lead": 135.0, "zinc": 365.0, "elev": 8.18, "dist": 0.423826, "om": 4.9, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 480.0 }, "geometry": { "type": "Point", "coordinates": [ 180282.0, 331861.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.7, "copper": 24.0, "lead": 112.0, "zinc": 282.0, "elev": 9.42, "dist": 0.554289, "om": 4.5, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Bw", "dist.m": 660.0 }, "geometry": { "type": "Point", "coordinates": [ 180270.0, 331707.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.1, "copper": 32.0, "lead": 162.0, "zinc": 375.0, "elev": 8.867, "dist": 0.603225, "om": 5.5, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Bw", "dist.m": 690.0 }, "geometry": { "type": "Point", "coordinates": [ 180199.0, 331591.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.7, "copper": 24.0, "lead": 94.0, "zinc": 222.0, "elev": 8.292, "dist": 0.614071, "om": 3.4, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "Ab", "dist.m": 710.0 }, "geometry": { "type": "Point", "coordinates": [ 180135.0, 331552.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.2, "copper": 47.0, "lead": 191.0, "zinc": 812.0, "elev": 8.06, "dist": 0.00135803, "om": 11.1, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180237.0, 332351.0 ] } }, { "type": "Feature", "properties": { "cadmium": 17.0, "copper": 128.0, "lead": 405.0, "zinc": 1548.0, "elev": 7.98, "dist": 0.0, "om": 12.3, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 180103.0, 332297.0 ] } }, { "type": "Feature", "properties": { "cadmium": 12.0, "copper": 117.0, "lead": 654.0, "zinc": 1839.0, "elev": 7.9, "dist": 0.0054321, "om": 16.5, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 179973.0, 332255.0 ] } }, { "type": "Feature", "properties": { "cadmium": 9.4, "copper": 104.0, "lead": 482.0, "zinc": 1528.0, "elev": 7.74, "dist": 0.0054321, "om": 13.9, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 179826.0, 332217.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.2, "copper": 76.0, "lead": 276.0, "zinc": 933.0, "elev": 7.552, "dist": 0.0054321, "om": 8.1, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179687.0, 332161.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.6, "copper": 36.0, "lead": 180.0, "zinc": 432.0, "elev": 7.76, "dist": 0.146578, "om": 3.1, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Fw", "dist.m": 200.0 }, "geometry": { "type": "Point", "coordinates": [ 179792.0, 332035.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.5, "copper": 34.0, "lead": 207.0, "zinc": 550.0, "elev": 6.74, "dist": 0.135684, "om": 5.8, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Fw", "dist.m": 140.0 }, "geometry": { "type": "Point", "coordinates": [ 179902.0, 332113.0 ] } }, { "type": "Feature", "properties": { "cadmium": 10.9, "copper": 90.0, "lead": 541.0, "zinc": 1571.0, "elev": 6.68, "dist": 0.0703333, "om": 10.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Fw", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 180100.0, 332213.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.3, "copper": 80.0, "lead": 310.0, "zinc": 1190.0, "elev": 7.4, "dist": 0.0484831, "om": 12.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179604.0, 332059.0 ] } }, { "type": "Feature", "properties": { "cadmium": 9.4, "copper": 78.0, "lead": 210.0, "zinc": 907.0, "elev": 7.44, "dist": 0.0054321, "om": 14.1, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 179526.0, 331936.0 ] } }, { "type": "Feature", "properties": { "cadmium": 8.3, "copper": 77.0, "lead": 158.0, "zinc": 761.0, "elev": 7.36, "dist": 0.0054321, "om": 14.5, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Fw", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 179495.0, 331770.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.0, "copper": 65.0, "lead": 141.0, "zinc": 659.0, "elev": 7.2, "dist": 0.0316663, "om": 14.8, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179489.0, 331633.0 ] } }, { "type": "Feature", "properties": { "cadmium": 6.8, "copper": 66.0, "lead": 144.0, "zinc": 643.0, "elev": 7.22, "dist": 0.0122243, "om": 13.3, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 10.0 }, "geometry": { "type": "Point", "coordinates": [ 179414.0, 331494.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.4, "copper": 72.0, "lead": 181.0, "zinc": 801.0, "elev": 7.36, "dist": 0.0122243, "om": 15.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179334.0, 331366.0 ] } }, { "type": "Feature", "properties": { "cadmium": 6.6, "copper": 75.0, "lead": 173.0, "zinc": 784.0, "elev": 5.18, "dist": 0.0373395, "om": 11.4, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179255.0, 331264.0 ] } }, { "type": "Feature", "properties": { "cadmium": 7.8, "copper": 75.0, "lead": 399.0, "zinc": 1060.0, "elev": 5.8, "dist": 0.211846, "om": 9.0, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 270.0 }, "geometry": { "type": "Point", "coordinates": [ 179470.0, 331125.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.7, "copper": 22.0, "lead": 45.0, "zinc": 119.0, "elev": 7.64, "dist": 0.451037, "om": 3.6, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Fw", "dist.m": 560.0 }, "geometry": { "type": "Point", "coordinates": [ 179692.0, 330933.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.4, "copper": 55.0, "lead": 325.0, "zinc": 778.0, "elev": 6.32, "dist": 0.575877, "om": 6.9, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Bw", "dist.m": 750.0 }, "geometry": { "type": "Point", "coordinates": [ 179852.0, 330801.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.9, "copper": 47.0, "lead": 268.0, "zinc": 703.0, "elev": 5.76, "dist": 0.0756869, "om": 7.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ab", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 179140.0, 330955.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.5, "copper": 46.0, "lead": 252.0, "zinc": 676.0, "elev": 6.48, "dist": 0.12481, "om": 6.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ab", "dist.m": 130.0 }, "geometry": { "type": "Point", "coordinates": [ 179128.0, 330867.0 ] } }, { "type": "Feature", "properties": { "cadmium": 4.7, "copper": 55.0, "lead": 315.0, "zinc": 793.0, "elev": 6.48, "dist": 0.103024, "om": 6.5, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 110.0 }, "geometry": { "type": "Point", "coordinates": [ 179065.0, 330864.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.9, "copper": 49.0, "lead": 260.0, "zinc": 685.0, "elev": 6.32, "dist": 0.157469, "om": 5.7, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 200.0 }, "geometry": { "type": "Point", "coordinates": [ 179007.0, 330727.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.1, "copper": 39.0, "lead": 237.0, "zinc": 593.0, "elev": 6.32, "dist": 0.200976, "om": 7.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Ah", "dist.m": 260.0 }, "geometry": { "type": "Point", "coordinates": [ 179110.0, 330758.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.9, "copper": 45.0, "lead": 228.0, "zinc": 549.0, "elev": 6.16, "dist": 0.200976, "om": 7.3, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 270.0 }, "geometry": { "type": "Point", "coordinates": [ 179032.0, 330645.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.9, "copper": 48.0, "lead": 241.0, "zinc": 680.0, "elev": 6.56, "dist": 0.26622, "om": 8.2, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 320.0 }, "geometry": { "type": "Point", "coordinates": [ 179095.0, 330636.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.7, "copper": 36.0, "lead": 201.0, "zinc": 539.0, "elev": 6.9, "dist": 0.298835, "om": 4.3, "ffreq": "1", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 360.0 }, "geometry": { "type": "Point", "coordinates": [ 179058.0, 330510.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.5, "copper": 36.0, "lead": 204.0, "zinc": 560.0, "elev": 7.54, "dist": 0.0812247, "om": 4.4, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 178810.0, 330666.0 ] } }, { "type": "Feature", "properties": { "cadmium": 5.6, "copper": 68.0, "lead": 429.0, "zinc": 1136.0, "elev": 6.42, "dist": 0.070355, "om": 8.2, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 100.0 }, "geometry": { "type": "Point", "coordinates": [ 178912.0, 330779.0 ] } }, { "type": "Feature", "properties": { "cadmium": 9.4, "copper": 88.0, "lead": 462.0, "zinc": 1383.0, "elev": 6.28, "dist": 0.0122243, "om": 8.5, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 178981.0, 330924.0 ] } }, { "type": "Feature", "properties": { "cadmium": 10.8, "copper": 85.0, "lead": 333.0, "zinc": 1161.0, "elev": 6.34, "dist": 0.0, "om": 9.6, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 20.0 }, "geometry": { "type": "Point", "coordinates": [ 179076.0, 331005.0 ] } }, { "type": "Feature", "properties": { "cadmium": 18.1, "copper": 76.0, "lead": 464.0, "zinc": 1672.0, "elev": 7.307, "dist": 0.0537723, "om": 17.0, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 50.0 }, "geometry": { "type": "Point", "coordinates": [ 180151.0, 330353.0 ] } }, { "type": "Feature", "properties": { "cadmium": 6.3, "copper": 63.0, "lead": 159.0, "zinc": 765.0, "elev": 5.7, "dist": 0.0593662, "om": 12.8, "ffreq": "1", "soil": "1", "lime": "1", "landuse": "W", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 179211.0, 331175.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.1, "copper": 32.0, "lead": 116.0, "zinc": 279.0, "elev": 7.72, "dist": 0.211843, "om": 5.9, "ffreq": "1", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 290.0 }, "geometry": { "type": "Point", "coordinates": [ 181118.0, 333214.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.8, "copper": 25.0, "lead": 81.0, "zinc": 241.0, "elev": 7.932, "dist": 0.12481, "om": 2.9, "ffreq": "2", "soil": "2", "lime": "1", "landuse": "Ah", "dist.m": 160.0 }, "geometry": { "type": "Point", "coordinates": [ 179474.0, 331304.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.2, "copper": 27.0, "lead": 131.0, "zinc": 317.0, "elev": 7.82, "dist": 0.12481, "om": 4.5, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 160.0 }, "geometry": { "type": "Point", "coordinates": [ 179559.0, 331423.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.8, "copper": 36.0, "lead": 216.0, "zinc": 545.0, "elev": 8.575, "dist": 0.0921516, "om": 10.7, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 140.0 }, "geometry": { "type": "Point", "coordinates": [ 179022.0, 330873.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.4, "copper": 41.0, "lead": 145.0, "zinc": 505.0, "elev": 8.536, "dist": 0.113941, "om": 9.4, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 150.0 }, "geometry": { "type": "Point", "coordinates": [ 178953.0, 330742.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.6, "copper": 33.0, "lead": 163.0, "zinc": 420.0, "elev": 8.504, "dist": 0.179216, "om": 9.0, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 220.0 }, "geometry": { "type": "Point", "coordinates": [ 178875.0, 330516.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.8, "copper": 27.0, "lead": 129.0, "zinc": 332.0, "elev": 8.659, "dist": 0.233596, "om": 7.0, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 280.0 }, "geometry": { "type": "Point", "coordinates": [ 178803.0, 330349.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.0, "copper": 38.0, "lead": 148.0, "zinc": 400.0, "elev": 7.633, "dist": 0.336861, "om": 6.5, "ffreq": "2", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 450.0 }, "geometry": { "type": "Point", "coordinates": [ 179029.0, 330394.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.7, "copper": 37.0, "lead": 214.0, "zinc": 553.0, "elev": 8.538, "dist": 0.070355, "om": 9.4, "ffreq": "2", "soil": "1", "lime": "1", "landuse": "Am", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 178605.0, 330406.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.7, "copper": 34.0, "lead": 226.0, "zinc": 577.0, "elev": 7.68, "dist": 0.0593662, "om": 10.2, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 178701.0, 330557.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.9, "copper": 19.0, "lead": 54.0, "zinc": 155.0, "elev": 7.564, "dist": 0.255341, "om": 6.4, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 340.0 }, "geometry": { "type": "Point", "coordinates": [ 179547.0, 330245.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.9, "copper": 22.0, "lead": 70.0, "zinc": 224.0, "elev": 7.76, "dist": 0.364067, "om": 7.6, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 470.0 }, "geometry": { "type": "Point", "coordinates": [ 179301.0, 330179.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 26.0, "lead": 73.0, "zinc": 180.0, "elev": 7.653, "dist": 0.429295, "om": 7.0, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 630.0 }, "geometry": { "type": "Point", "coordinates": [ 179405.0, 330567.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 25.0, "lead": 87.0, "zinc": 226.0, "elev": 7.951, "dist": 0.380328, "om": 5.6, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 460.0 }, "geometry": { "type": "Point", "coordinates": [ 179462.0, 330766.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 22.0, "lead": 76.0, "zinc": 186.0, "elev": 8.176, "dist": 0.249874, "om": 6.5, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 320.0 }, "geometry": { "type": "Point", "coordinates": [ 179293.0, 330797.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 24.0, "lead": 81.0, "zinc": 198.0, "elev": 8.468, "dist": 0.266212, "om": 6.6, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 320.0 }, "geometry": { "type": "Point", "coordinates": [ 179180.0, 330710.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 18.0, "lead": 68.0, "zinc": 187.0, "elev": 8.41, "dist": 0.451037, "om": 5.9, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 540.0 }, "geometry": { "type": "Point", "coordinates": [ 179206.0, 330398.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 23.0, "lead": 66.0, "zinc": 199.0, "elev": 7.61, "dist": 0.30971, "om": 6.5, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 420.0 }, "geometry": { "type": "Point", "coordinates": [ 179618.0, 330458.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 22.0, "lead": 49.0, "zinc": 157.0, "elev": 7.792, "dist": 0.293359, "om": 6.4, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "SPO", "dist.m": 380.0 }, "geometry": { "type": "Point", "coordinates": [ 179782.0, 330540.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 23.0, "lead": 63.0, "zinc": 203.0, "elev": 8.76, "dist": 0.532351, "om": 7.2, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 500.0 }, "geometry": { "type": "Point", "coordinates": [ 179980.0, 330773.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 23.0, "lead": 48.0, "zinc": 143.0, "elev": 9.879, "dist": 0.619513, "om": 6.6, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Am", "dist.m": 760.0 }, "geometry": { "type": "Point", "coordinates": [ 180067.0, 331185.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 23.0, "lead": 51.0, "zinc": 136.0, "elev": 9.097, "dist": 0.684725, "om": 4.3, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 750.0 }, "geometry": { "type": "Point", "coordinates": [ 180162.0, 331387.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 18.0, "lead": 50.0, "zinc": 117.0, "elev": 9.095, "dist": 0.809742, "om": 5.3, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Fw", "dist.m": 1000.0 }, "geometry": { "type": "Point", "coordinates": [ 180451.0, 331473.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 20.0, "lead": 39.0, "zinc": 113.0, "elev": 9.717, "dist": 0.880389, "om": 4.1, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Ah", "dist.m": 860.0 }, "geometry": { "type": "Point", "coordinates": [ 180328.0, 331158.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 22.0, "lead": 48.0, "zinc": 130.0, "elev": 9.924, "dist": 0.749591, "om": 6.1, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Ah", "dist.m": 680.0 }, "geometry": { "type": "Point", "coordinates": [ 180276.0, 330963.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 27.0, "lead": 64.0, "zinc": 192.0, "elev": 9.404, "dist": 0.575752, "om": 7.5, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Fw", "dist.m": 500.0 }, "geometry": { "type": "Point", "coordinates": [ 180114.0, 330803.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 25.0, "lead": 84.0, "zinc": 240.0, "elev": 10.52, "dist": 0.581484, "om": 8.8, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "STA", "dist.m": 650.0 }, "geometry": { "type": "Point", "coordinates": [ 179881.0, 330912.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 30.0, "lead": 67.0, "zinc": 221.0, "elev": 8.84, "dist": 0.49452, "om": 5.7, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "DEN", "dist.m": 630.0 }, "geometry": { "type": "Point", "coordinates": [ 179774.0, 330921.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 23.0, "lead": 49.0, "zinc": 140.0, "elev": 8.472, "dist": 0.32058, "om": 6.1, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Fw", "dist.m": 410.0 }, "geometry": { "type": "Point", "coordinates": [ 179657.0, 331150.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 24.0, "lead": 48.0, "zinc": 128.0, "elev": 9.634, "dist": 0.336851, "om": 7.1, "ffreq": "2", "soil": "3", "lime": "0", "landuse": "Ah", "dist.m": 390.0 }, "geometry": { "type": "Point", "coordinates": [ 179731.0, 331245.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 21.0, "lead": 56.0, "zinc": 166.0, "elev": 9.206, "dist": 0.249852, "om": 4.1, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 310.0 }, "geometry": { "type": "Point", "coordinates": [ 179717.0, 331441.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 24.0, "lead": 65.0, "zinc": 191.0, "elev": 8.47, "dist": 0.0756869, "om": 6.0, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 179446.0, 331422.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 21.0, "lead": 84.0, "zinc": 232.0, "elev": 8.463, "dist": 0.0756869, "om": 6.6, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 179524.0, 331565.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 23.0, "lead": 75.0, "zinc": 203.0, "elev": 9.691, "dist": 0.162853, "om": 6.8, "ffreq": "2", "soil": "1", "lime": "1", "landuse": "STA", "dist.m": 150.0 }, "geometry": { "type": "Point", "coordinates": [ 179644.0, 331730.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.7, "copper": 53.0, "lead": 250.0, "zinc": 722.0, "elev": 8.704, "dist": 0.0974916, "om": 9.1, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Bw", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 180321.0, 330366.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 33.0, "lead": 81.0, "zinc": 210.0, "elev": 9.42, "dist": 0.440142, "om": 5.9, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 450.0 }, "geometry": { "type": "Point", "coordinates": [ 180162.0, 331837.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 22.0, "lead": 72.0, "zinc": 198.0, "elev": 9.573, "dist": 0.4619, "om": 4.9, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Aa", "dist.m": 530.0 }, "geometry": { "type": "Point", "coordinates": [ 180029.0, 331720.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 23.0, "lead": 86.0, "zinc": 139.0, "elev": 9.555, "dist": 0.222701, "om": 7.1, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 240.0 }, "geometry": { "type": "Point", "coordinates": [ 179797.0, 331919.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 25.0, "lead": 94.0, "zinc": 253.0, "elev": 8.779, "dist": 0.103024, "om": 8.1, "ffreq": "2", "soil": "1", "lime": "1", "landuse": "Tv", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 179642.0, 331955.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 30.0, "lead": 244.0, "zinc": 703.0, "elev": 8.54, "dist": 0.0921353, "om": 8.3, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Fw", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 179849.0, 332142.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.4, "copper": 47.0, "lead": 297.0, "zinc": 832.0, "elev": 8.809, "dist": 0.0484884, "om": 10.0, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 60.0 }, "geometry": { "type": "Point", "coordinates": [ 180265.0, 332297.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 31.0, "lead": 96.0, "zinc": 262.0, "elev": 9.523, "dist": 0.168331, "om": 5.9, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 190.0 }, "geometry": { "type": "Point", "coordinates": [ 180107.0, 332101.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 20.0, "lead": 56.0, "zinc": 142.0, "elev": 9.811, "dist": 0.38581, "om": 5.0, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Ah", "dist.m": 450.0 }, "geometry": { "type": "Point", "coordinates": [ 180462.0, 331947.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 16.0, "lead": 49.0, "zinc": 119.0, "elev": 9.604, "dist": 0.489064, "om": 4.5, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 550.0 }, "geometry": { "type": "Point", "coordinates": [ 180478.0, 331822.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 17.0, "lead": 50.0, "zinc": 152.0, "elev": 9.732, "dist": 0.57602, "om": 5.4, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 650.0 }, "geometry": { "type": "Point", "coordinates": [ 180347.0, 331700.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.4, "copper": 26.0, "lead": 148.0, "zinc": 415.0, "elev": 9.518, "dist": 0.0812194, "om": 2.3, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 100.0 }, "geometry": { "type": "Point", "coordinates": [ 180862.0, 333116.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.6, "copper": 34.0, "lead": 162.0, "zinc": 474.0, "elev": 9.72, "dist": 0.0373369, "om": 7.5, "ffreq": "2", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 170.0 }, "geometry": { "type": "Point", "coordinates": [ 180700.0, 332882.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 18.0, "lead": 37.0, "zinc": 126.0, "elev": 9.036, "dist": 0.771698, "om": 4.6, "ffreq": "2", "soil": "3", "lime": "1", "landuse": "Ah", "dist.m": 860.0 }, "geometry": { "type": "Point", "coordinates": [ 180201.0, 331160.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 23.0, "lead": 80.0, "zinc": 210.0, "elev": 9.528, "dist": 0.336829, "om": 5.8, "ffreq": "2", "soil": "2", "lime": "0", "landuse": "W", "dist.m": 410.0 }, "geometry": { "type": "Point", "coordinates": [ 180173.0, 331923.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 20.0, "lead": 80.0, "zinc": 220.0, "elev": 9.155, "dist": 0.228123, "om": 4.4, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Aa", "dist.m": 290.0 }, "geometry": { "type": "Point", "coordinates": [ 180923.0, 332874.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.2, "copper": 14.0, "lead": 49.0, "zinc": 133.0, "elev": 10.08, "dist": 0.597761, "om": 4.4, "ffreq": "3", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 680.0 }, "geometry": { "type": "Point", "coordinates": [ 180467.0, 331694.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 46.0, "lead": 42.0, "zinc": 141.0, "elev": 9.97, "dist": 0.44558, "om": 4.5, "ffreq": "3", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 540.0 }, "geometry": { "type": "Point", "coordinates": [ 179917.0, 331325.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.0, "copper": 29.0, "lead": 48.0, "zinc": 158.0, "elev": 10.136, "dist": 0.396675, "om": 5.2, "ffreq": "3", "soil": "2", "lime": "0", "landuse": "Am", "dist.m": 480.0 }, "geometry": { "type": "Point", "coordinates": [ 179822.0, 331242.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 19.0, "lead": 41.0, "zinc": 129.0, "elev": 10.32, "dist": 0.581478, "om": 4.6, "ffreq": "3", "soil": "3", "lime": "0", "landuse": "W", "dist.m": 720.0 }, "geometry": { "type": "Point", "coordinates": [ 179991.0, 331069.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 31.0, "lead": 73.0, "zinc": 206.0, "elev": 9.041, "dist": 0.287966, "om": 6.9, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 380.0 }, "geometry": { "type": "Point", "coordinates": [ 179120.0, 330578.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.0, "copper": 27.0, "lead": 146.0, "zinc": 451.0, "elev": 7.86, "dist": 0.233596, "om": 7.0, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 310.0 }, "geometry": { "type": "Point", "coordinates": [ 179034.0, 330561.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.5, "copper": 29.0, "lead": 95.0, "zinc": 296.0, "elev": 8.741, "dist": 0.364067, "om": 5.4, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 430.0 }, "geometry": { "type": "Point", "coordinates": [ 179085.0, 330433.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.1, "copper": 22.0, "lead": 72.0, "zinc": 189.0, "elev": 7.822, "dist": 0.331454, "om": 6.2, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 370.0 }, "geometry": { "type": "Point", "coordinates": [ 179236.0, 330046.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 20.0, "lead": 51.0, "zinc": 154.0, "elev": 7.78, "dist": 0.211846, "om": 5.0, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Fw", "dist.m": 290.0 }, "geometry": { "type": "Point", "coordinates": [ 179456.0, 330072.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 20.0, "lead": 54.0, "zinc": 169.0, "elev": 8.121, "dist": 0.103029, "om": 5.1, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 150.0 }, "geometry": { "type": "Point", "coordinates": [ 179550.0, 329940.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.1, "copper": 29.0, "lead": 136.0, "zinc": 403.0, "elev": 8.231, "dist": 0.070355, "om": 8.1, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Bw", "dist.m": 70.0 }, "geometry": { "type": "Point", "coordinates": [ 179445.0, 329807.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.5, "copper": 38.0, "lead": 170.0, "zinc": 471.0, "elev": 8.351, "dist": 0.146576, "om": 8.0, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Bw", "dist.m": 220.0 }, "geometry": { "type": "Point", "coordinates": [ 179337.0, 329870.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.8, "copper": 39.0, "lead": 179.0, "zinc": 612.0, "elev": 7.3, "dist": 0.0537723, "om": 8.8, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 80.0 }, "geometry": { "type": "Point", "coordinates": [ 179245.0, 329714.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.2, "copper": 35.0, "lead": 200.0, "zinc": 601.0, "elev": 7.536, "dist": 0.119286, "om": 9.3, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 120.0 }, "geometry": { "type": "Point", "coordinates": [ 179024.0, 329733.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.1, "copper": 42.0, "lead": 258.0, "zinc": 783.0, "elev": 7.706, "dist": 0.0921435, "om": 8.4, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 120.0 }, "geometry": { "type": "Point", "coordinates": [ 178786.0, 329822.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.5, "copper": 24.0, "lead": 93.0, "zinc": 258.0, "elev": 8.07, "dist": 0.249863, "om": 7.7, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 260.0 }, "geometry": { "type": "Point", "coordinates": [ 179135.0, 329890.0 ] } }, { "type": "Feature", "properties": { "cadmium": 1.2, "copper": 20.0, "lead": 68.0, "zinc": 214.0, "elev": 8.226, "dist": 0.37494, "om": 5.7, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 440.0 }, "geometry": { "type": "Point", "coordinates": [ 179030.0, 330082.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 20.0, "lead": 49.0, "zinc": 166.0, "elev": 8.128, "dist": 0.423837, "om": 4.7, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Am", "dist.m": 540.0 }, "geometry": { "type": "Point", "coordinates": [ 179184.0, 330182.0 ] } }, { "type": "Feature", "properties": { "cadmium": 3.1, "copper": 39.0, "lead": 173.0, "zinc": 496.0, "elev": 8.577, "dist": 0.423837, "om": 9.1, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 520.0 }, "geometry": { "type": "Point", "coordinates": [ 179085.0, 330292.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.1, "copper": 31.0, "lead": 119.0, "zinc": 342.0, "elev": 8.429, "dist": 0.27709, "om": 6.5, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "Ah", "dist.m": 350.0 }, "geometry": { "type": "Point", "coordinates": [ 178875.0, 330311.0 ] } }, { "type": "Feature", "properties": { "cadmium": 0.8, "copper": 21.0, "lead": 51.0, "zinc": 162.0, "elev": 9.406, "dist": 0.358606, "om": 5.7, "ffreq": "3", "soil": "1", "lime": "0", "landuse": "W", "dist.m": 460.0 }, "geometry": { "type": "Point", "coordinates": [ 179466.0, 330381.0 ] } }, { "type": "Feature", "properties": { "cadmium": 2.7, "copper": 27.0, "lead": 124.0, "zinc": 375.0, "elev": 8.261, "dist": 0.0122243, "om": 5.5, "ffreq": "3", "soil": "3", "lime": "0", "landuse": "W", "dist.m": 40.0 }, "geometry": { "type": "Point", "coordinates": [ 180627.0, 330190.0 ] } } ] }

Operating system

Windows 10

Fiona and GDAL version and provenance

fiona 1.8.13 py36hb7fdc2d_0 conda-forge
gdal 3.0.4 py36h0406e7e_2 conda-forge

@henrymartin1 henrymartin1 changed the title Different results when accesing geojson files multiple times Different results when accessing geojson file multiple times Apr 22, 2020
@rbuffat
Copy link
Contributor

rbuffat commented Apr 22, 2020

@henrymartin1 👋

Would it be possible to enable logging and report the output?

import logging
import fiona

logging.basicConfig(
    level=logging.WARN,
)

With that I get the following output:

keys: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154] 


ERROR:fiona._env:At line 1, character 40966: Unexpected state
ERROR:fiona._env:At line 1, character 40966: Unexpected state
ERROR:fiona._env:At line 1, character 40966: Unexpected state
ERROR:fiona._env:At line 1, character 40966: Unexpected state
i: 155 j: 155 k: 140 l: 139 m: 139 n: 140 o: 155

Process finished with exit code 0

The errors here could be completely unrelated, as I copy-pasted the geojson and everything is on one line, which could cause problems.

@rbuffat
Copy link
Contributor

rbuffat commented Apr 22, 2020

I think the issue is with the combination of the iteration over a collection and simultaneous random access (meuse[key]) .

Opening two separate instances of the same file seems to work:

with fiona.open(fpath, 'r') as meuse:
    with fiona.open(fpath, 'r') as meuse2:

        print(meuse)

        print('keys:', list(meuse.keys()), '\n\n')

        # # iterate all items
        i = 0
        for item in meuse.items():
            i += 1

        # iterate all keys without doing anything
        j = 0
        for key in meuse.keys():
            j += 1

        # iterate all keys and call item
        k = 0
        for key in meuse.keys():
            meuse2[key]
            k += 1

        l = 0
        for key in meuse.keys():
            meuse2[key]
            l += 1

        m = 0
        for key in meuse.keys():
            meuse2[key]
            m += 1

# reopen file
with fiona.open(fpath, 'r') as meuse:
    with fiona.open(fpath, 'r') as meuse2:
        n = 0
        for key in meuse.keys():
            meuse2[key]
            n += 1

        o = 0
        for key in meuse.keys():
            o += 1

gives the following output:

keys: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154] 


i: 155 j: 155 k: 155 l: 155 m: 155 n: 155 o: 155

@henrymartin1
Copy link
Author

Hoi @rbuffat ;-)

I get a similar output when I run it with logging:

ERROR:fiona._env:At line 146, character 4: Unexpected state
ERROR:fiona._env:At line 146, character 4: Unexpected state
ERROR:fiona._env:At line 146, character 4: Unexpected state
ERROR:fiona._env:At line 146, character 4: Unexpected state
keys: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154] 


i: 155 j: 155 k: 140 l: 139 m: 139 n: 140 o: 155

I think the issue is with the combination of the iteration over a collection and simultaneous random access (meuse[key]) .

Oh wow... that sounds deep... For me as a user it would be enough to give a warning so that I see that there is something wrong or that I am doing it the wrong way ;-) . Right now I only noticed it by accident because it returns a different number of entries when you iterate the file the first time vs. when you iterate it the second time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants