0

I am trying to fetch data from data.cityofnewyork.us with the Python client sodapy. It generally works as it should, but I just can't figure out how to perform spatial queries. For example, I would like to get the simplified geometry data by leveraging simplify(), but it doesn't return a geometry at all. How can I get this to work?

from sodapy import Socrata

identifier_build = 'qjdb-bxqz'
client_build = Socrata(domain, None)

results_build = client_build.get(identifier_build,limit=5, 
                                 select="CNSTRCT_YR,simplify(the_geom,0.01) AS the_geom", 
                                 where ="FEAT_CODE==2100")

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.