My geoJSON looks like so
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [{
"type": "Feature",
"properties": {
"value1": "abc",
"value2": 0,
"value3": 0.99,
"value4": "def",
"value5": "882.3",
"value6": 12,
},
"geometry": {
"type": "Point",
"coordinates": [1, 1]
}
}
]
}
I want to access properties
and check some values
for a key
for features in geoJsonPoints["features"]:
for interesting in features["properties"]["value1"]:
print interesting
print "!"
I get
a
!
b
!
c
!
Why is that?! It seems like my loop does not return me a dictionary?!
If I do this
for features in geoJsonPoints["features"]:
for interesting in features["properties"]:
print type(intereseting)
print interesting
I get
type 'unicode'
value1
type 'unicode'
value2
...
Why isnt that a dictionary? And, if its not a dictionary, why can I access the values behind the "unicode" like in the first loop I showed?!