microelly2 / geodata Goto Github PK
View Code? Open in Web Editor NEWgeodata support for freecad
License: GNU Lesser General Public License v3.0
geodata support for freecad
License: GNU Lesser General Public License v3.0
Per this GeoData discussion:
gdal is only needed for aster import and cv2 only for creating colored textures
Is there a way we can inform the user about this optionality so they can decide if they want to install these 3rdparty packages ?
Related to: FreeCAD/FreeCAD-addons#29
https://github.com/microelly2/geodata/blob/master/geodat/elevationgrid.py#L336
should be != instead the <>
cheers bernd
Microelly,
I see that there has not been much activity on the github forum. Are you still actively working on Geodata WB?
I am having difficulty getting most functions to run; some basic functions do work like importing CSV with the test data.
But the more sophisticated features do not appear to be working; and the same python error is being thrown for each of them. I am not able to capture the error - it flyes by too quickly. But since it is the same error; I suspect a dependency problem that is not documented.
Any assistance would be most appreciated.
Kind Regards,
Michael Fene'
Carlsbad, California
Started Workbench teminal shows warning below, I cannot use the workbench.
Geodat WB: Cannot import module named cv2
Geodat WB: Cannot import module named gdal gdalconst
Running the Python command 'Geodat_importOSM' failed:
Traceback (most recent call last):
File "", line 466, in Activated
'NoneType' object has no attribute 'openTransaction'
What can I do to run the workbench?
It would be a great addition!
Thanks!
Did not install numpy or scipy and matplot does not display with Win 7.
https://forum.freecadweb.org/viewtopic.php?f=3&t=23636&start=10#p184756. Version details at first post.
Hi!
I am trying to make this module work on my Mac, for the navigator. (I did not find any alternative for a good control of "camera-like" tool to change the view)
Here is my progress so far:
In navigator.py
, I have changed:
- mw=QtGui.qApp # this was `None` and methods call would fail
+ mw=QtGui.QApplication
(there are two occurrences in that file)
Now, I am stuck on the following error:
- Running the Python command 'Navigator' failed:
- Traceback (most recent call last):
- File "<string>", line 245, in Activated
- File "/Applications/FreeCAD.app/Contents/Mod/geodata/geodat/navigator.py", line 1168, in navi
- mw.installEventFilter(ef)
-
- installEventFilter() takes exactly one argument (0 given)
The line is the following in navigator.py
:
mw.installEventFilter(ef)
Interestingly, when I test the value of ef
before this call, it is correctly defined, so I don't know what is the issue.
Any idea?
Thanks!
Hi @microelly2,
I am totally new at GitHub and a non very experienced user of FreeCAD.
Firstly, I want to give you thanks for your public and kindly distributed workS.
I have some problems (I hope this is the place to report this kind of problem) using Geodat. I have already copied Geodat inside Mod folder and I am FreeCAD_0.17.8443_x64_dev_win on Win7 Ultimate.
Some of the features work, such as Navigator, but those that call say Python packages do not work.
I have type in the Python console next: and received the next message:
>>> from say import *
Traceback (most recent call last):
File "", line 1, in
File "C:\ING\FreeCAD\c_0.17_pre\FreeCAD_0.17.8443_x64_dev_win\bin\lib\site-packages\say-1.4.2-py2.7.egg\say__init_.py", line 1, in
from .core import say, Say, SayReturn, fmt, Fmt, caller_fmt, FmtException, numberer
File "C:\ING\FreeCAD\c_0.17_pre\FreeCAD_0.17.8443_x64_dev_win\bin\lib\site-packages\say-1.4.2-py2.7.egg\say\core.py", line 149, in
class Say(object):
File "C:\ING\FreeCAD\c_0.17_pre\FreeCAD_0.17.8443_x64_dev_win\bin\lib\site-packages\say-1.4.2-py2.7.egg\say\core.py", line 159, in Say
files=[get_stdout()], # where is output headed? a list of write() able objects
File "C:\ING\FreeCAD\c_0.17_pre\FreeCAD_0.17.8443_x64_dev_win\bin\lib\site-packages\say-1.4.2-py2.7.egg\say\core.py", line 104, in get_stdout
if sys.stdout.encoding == 'UTF-8':
AttributeError: encoding_
I am nearly sure that this malfunction is due to some lack in my installation or maybe some library is missing (I found say inside .\FreeCAD_0.17.8443_x64_dev_win\bin\Lib\site-packages, I also installed from the .zip I downloaded). My Python version in PC is 2.7.12 for 32bit.
Thank you for your time!
Josean
Hi microelly2
Thanks for the great idea to implement geodata in FreeCad.
I tried to use your workbench function Import.
I get following errors independent what I choice osm, csv, xyz,...
Running the Python command 'Import OSM Map' failed:
Traceback (most recent call last):
File "", line 165, in Activated
File "C:\Users\Kurt\AppData\Roaming\FreeCAD\Mod\geodata-master\geodat_init_.py", line 2, in
import geodat.import_aster
File "C:\Users\Kurt\AppData\Roaming\FreeCAD\Mod\geodata-master\geodat\import_aster.py", line 23, in
import geodat.geodat_lib
File "C:\Users\Kurt\AppData\Roaming\FreeCAD\Mod\geodata-master\geodat\geodat_lib.py", line 11, in
import cv2
No module named cv2
Environment:
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6706 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: f86a4e411ff7848dea98d7242f43b7774bee8fa0
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Please can you help on this error
Thanks in advance and greetings from the nice area
Upperaustria
Kurt
I got it working but the menu is to see in the windows task bar and is to see as thumbnail but I am not able to make that menu window active, I can close that window thats it. No errors are to see.
Hey @microelly2 let's soup up the README with
Let's also create a roadmap so devs could grok what could be needed
New install of FreeCAD. Install geodata via plugin installer.
geodata causes FreeCAD not to start. Starting FreeCAD from command line gives the following errors:
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 7f616868f320
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
*** Abort *** an exception was raised, but no catch was found.
... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
Moving geodata out of .FreeCAD/Mod resolves issue, but of course geodata still not working.
Installed version:
Name : freecad
Epoch : 1
Version : 0.16
Release : 10.fc26
Arch : x86_64
Size : 82 M
Source : freecad-0.16-10.fc26.src.rpm
Environment:
# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 26 (Twenty Six)
Release: 26
Codename: TwentySix
# uname -a
Linux 4.13.4-200.fc26.x86_64 #1 SMP Thu Sep 28 20:46:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# FreeCADCmd --dump-config
AppDataSkipVendor=true
AppHomePath=/usr/lib64/freecad/
BinPath=/usr/lib64/freecad/bin/
BuildRepositoryURL=Unknown
BuildRevision=Unknown
BuildRevisionDate=Unknown
BuildVersionMajor=0
BuildVersionMinor=16
CopyrightInfo=(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Debug=0
DocPath=/usr/lib64/freecad/doc/
ExeName=FreeCAD
ExeVendor=FreeCAD
ExeVersion=0.16
PythonSearchPath=/usr/bin/../lib/python27.zip:/usr/bin/../lib64/python2.7:/usr/bin/../lib64/python2.7/plat-linux2:/usr/bin/../lib64/python2.7/lib-tk:/usr/bin/../lib64/python2.7/lib-old:/usr/bin/../lib64/python2.7/lib-dynload
RunMode=Exit
Other installed modules:
assembly2 flamingo TabBar
BOLTSFC Manipulator timber
CADExchanger NavigationIndicator WebTools
drawing_dimensioning parts_library workfeature
dxf-library persistenttoolbars
fasteners symbols_library
Upon loading a gpx track, it failed with this error:
File "/home/gabriel/snap/freecad/8/.FreeCAD/Mod/geodata/geodat/import_gpx.py", line 434, in run
self.root.ids['h'].text(),
--> File "/home/gabriel/snap/freecad/8/.FreeCAD/Mod/geodata/geodat/import_gpx.py", line 111, in import_gpx
f=open(filename,"r")
--> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 17: ordinal not in range(128)
Unfortunately GeoData is not py3 complaint ATM.
Would you please have a look at it?
FC is going toward py3 and I would like to have this WB py3 ready too ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.