pyrosm icon indicating copy to clipboard operation
pyrosm copied to clipboard

Invalid Projection CRSError

Open khelzor31415 opened this issue 3 years ago • 4 comments

I'm trying out the sample code from the official page osm = pyrosm.OSM(get_data('Helsinki')) drive_net = osm.get_network(network_type="driving") drive_net.plot()

and get the error CRSError: Invalid projection: epsg:4326: (Internal Proj Error: proj_create: no database context specified)

what are the possible courses of action?

khelzor31415 avatar Dec 11 '21 02:12 khelzor31415

Hmm, this sounds like a problem with the pyproj library. Perhaps an installation issue.

Have you tried plotting some other data with geopandas? Does it work?

HTenkanen avatar Dec 11 '21 06:12 HTenkanen

geopandas works fine with other projects, and can plot too. Can you suggest possible solutions to fix it if it's a problem with the pyproj library? Sorry if this seems like a beginner question.

khelzor31415 avatar Dec 11 '21 09:12 khelzor31415

Hmm, okay interesting. Have you used conda for installing the packages?

Could you provide a list of packages and their versions in your environment? Eg conda list command from terminal will provide you the list, if you use conda (which I highly recommend).

HTenkanen avatar Dec 11 '21 10:12 HTenkanen

@khelzor31415 : Any update on this one? Are you still having this issue?

HTenkanen avatar Jan 03 '22 13:01 HTenkanen