FreeCAD Trails Workbench (Transportation and Geomatics)

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
bidandou
Posts: 7
Joined: Sat Sep 07, 2019 9:35 pm

Re: Geomatics Workbench

Post by bidandou »

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.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Geomatics Workbench

Post by vocx »

HakanSeven12 wrote: Thu Sep 19, 2019 7:39 am You can use this images.
Okay, it's done.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Geomatics Workbench

Post by paullee »

Trying to use GeoData and Geomatics again, but unfortunately not working

Import OSM (GeoData)

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'
Running same Import OSM on Geomatics WB

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'

FreeCAD_0.19-17646-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
on Fedora 30
Python version: 3.7.3
bidandou
Posts: 7
Joined: Sat Sep 07, 2019 9:35 pm

Re: Geomatics Workbench

Post by bidandou »

Features from the GeoData Workbench are only included as quicklinks in the Geomatics Workbench.
In my opinion this link and the underlying code should be removed in the next release.
I add an issue in the github repo for that.
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Geomatics Workbench

Post by paullee »

From the error message, I thought GeoData in Geomatics has some fixes done ?
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Geomatics Workbench

Post by paullee »

Trying Import Point Files... with these errors message:-

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: 
XYZ data (~120mB) from
https://bezreg-koeln.nrw.de/brk_interne ... e/dgm1.zip

Any idea?
Screenshot from 2019-09-20 10-54-30.png
Screenshot from 2019-09-20 10-54-30.png (203.96 KiB) Viewed 1767 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Geomatics Workbench

Post by HakanSeven12 »

paullee wrote: Fri Sep 20, 2019 2:59 am Any idea?
Your data file has more than one whitespace between coordinates. The wb only allow one whitespace.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Geomatics Workbench

Post by HakanSeven12 »

paullee wrote: Thu Sep 19, 2019 6:23 pm Trying to use GeoData and Geomatics again, but unfortunately not working
If you ticked "Process elevation data" it's not working. Also you need to install required python packages.
Last edited by HakanSeven12 on Fri Sep 20, 2019 9:00 am, edited 1 time in total.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Geomatics Workbench

Post by HakanSeven12 »

paullee wrote: Fri Sep 20, 2019 2:56 am From the error message, I thought GeoData in Geomatics has some fixes done ?
I fixed what I can. But some part of it still don't works.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Geomatics Workbench

Post by Joel_graff »

HakanSeven12 wrote: Fri Sep 20, 2019 8:45 am Your data file has more than one whitespace between coordinates. The wb only allow one whitespace.
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... ;)
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
Post Reply