Code Monkey home page Code Monkey logo

covid19-preprocess's People

Contributors

djgroen avatar imahmood786 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

covid19-preprocess's Issues

Bug log: pyproj outdated

I went through the slides and was trying to follow the steps. However, there seems to be an error which I am unable to fix when I run the 'extract_*.py' files. The error is as follows:

Traceback (most recent call last):
File "extract_hospitals.py", line 25, in
extract_hospitals(tree)
File "extract_hospitals.py", line 15, in extract_hospitals
print("hospital,{},{},{}".format(p.centroid.x, p.centroid.y, int(calc_geom_area(p))))
File "/home/arindam/Dropbox/Brunel/FACS/PreProcessing/covid19-preprocess/parse_osm.py", line 58, in calc_geom_area
pyproj.Proj('EPSG:4326'),
File "/home/arindam/anaconda3/lib/python3.8/site-packages/pyproj/init.py", line 362, in new
return _proj.Proj.new(self, projstring)
File "_proj.pyx", line 129, in _proj.Proj.cinit
RuntimeError: b'projection not named'

Could someone in the group help me with that?

I have downloaded an OSM map (a .osm file) for a region near my home in Croydon. I was trying to extract the houses, hospitals, parks etc. from the map in order to pre-process the data for FACS simulation. So I ran

python3 extract_hospitals.py maps/home.osm

I am running Python 3.8.8 on Ubuntu 20.04. The list of installed packages I have is attached.

---> Solution shown to work: (by Imran)

From the error you mentioned, it seems your pyproj package is not correctly installed or using the wrong version. Could you update it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.