I created a pull request with some changes to make all the commands working (import point/surface/contours/sections).
I will be glad if someone can check the dev branch before the merge.
Okay, it's done.
Code: Select all
Running the Python command 'Geodat_importOSM' failed:
Traceback (most recent call last):
File "<string>", line 476, in Activated
File "<string>", line 1, in <module>
File "/home/paullee/.FreeCAD/Mod/geodata/geodat/import_osm.py", line 27, in <module>
from say import *
No module named 'say'
Code: Select all
I try to read data from cache file ...
/home/paullee/.FreeCAD/geodat3/50.340722-11.232647-0.25
no cache file, so I connect to openstreetmap.org...
http://api.openstreetmap.org/api/0.6/map?bbox=11.229140688639552,50.338475818508535,11.236153311360448,50.342968181491464
Traceback (most recent call last):
File "/home/paullee/.FreeCAD/Mod/Geomatics/GeoDataWB/import_osm.py", line 128, in import_osm2
f = open(fn, "r")
FileNotFoundError: [Errno 2] No such file or directory: '/home/paullee/.FreeCAD/geodat3/50.340722-11.232647-0.25'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/paullee/.FreeCAD/Mod/Geomatics/GeoDataWB/import_osm.py", line 695, in downloadData
rc = import_osm2(float(b), float(l), float(s)/10, self.root.ids['progb'], self.root.ids['status'], elevation)
File "/home/paullee/.FreeCAD/Mod/Geomatics/GeoDataWB/import_osm.py", line 141, in import_osm2
import requests
ModuleNotFoundError: No module named 'requests'
Code: Select all
Traceback (most recent call last):
File "/home/paullee/.FreeCAD/Mod/Geomatics/Data/ImportPointFile.py", line 302, in ImportFile
self.FileReader(File, "Import")
File "/home/paullee/.FreeCAD/Mod/Geomatics/Data/ImportPointFile.py", line 256, in FileReader
float(row[Z])))
ValueError: could not convert string to float:
Your data file has more than one whitespace between coordinates. The wb only allow one whitespace.
If you ticked "Process elevation data" it's not working. Also you need to install required python packages.
I fixed what I can. But some part of it still don't works.
Might want to put implementing a text file parser on the list to avoid this in the future. I imagine there's plenty of format variations that would have to be coded for...HakanSeven12 wrote: ↑Fri Sep 20, 2019 8:45 amYour data file has more than one whitespace between coordinates. The wb only allow one whitespace.