[Qgis-user] How can I export Vector & Raster layers together to import into mapshaper

2021-08-11 Thread Kris Lagocki
Hi - I created a shape file using QGIS with a US Postal Code shape file
that I found on the Census website and joined it with a data file listing
the Postal Codes and which Sales Territory they belong to.  I added in a
raster layer OpenStreetMap.  I'd like to export both layers together and
import them into mapshaper so that I can export as Topojson.  It has to be
in this format to use within Power BI.  Has anyone accomplished this?  Any
help is appreciated.  Thanks.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help with new plugin for AEC project syncing

2021-08-11 Thread Basques, Bob (CI-StPaul)
Sebastian,

Thanks for the heads up.  Very interesting project.  Big AutoCAD user here.  
And being able to talk CAD (stuff) from inside of QGIS would be an interesting 
approach to some of our workflows.

Bobb



From: Qgis-user  On Behalf Of Sebastian 
Gutwein
Sent: Tuesday, August 10, 2021 8:57 AM
To: Qgis List 
Subject: [Qgis-user] Help with new plugin for AEC project syncing

Think Before You Click: This email originated outside our organization.

Hello,
I am writing on behalf of a developer working on creating a new plugin that 
connects QGIS to Speckle. Speckle is an opensource GIT like system for 
Architecture, Engineering, and Construction (AEC) that syncs geometry and other 
data between various proprietary and open source software including Blender, 
Revit, AutoCAD and Rhino. https://speckle.systems/
A few months ago I wrote to them to see if they were interested in having a 
plugin (connector in their terms) that syncs between Speckle and QGIS. They 
were excited about this and have started working on it.
See the thread here: https://speckle.community/t/qgis-connector-wip/1619

They are looking for advice and If you have experience writing plugins or work 
in GIS and the AEC industry they would love to hear your thoughts!

-Sebastian
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] 3.16.8+ LTR vs. old 3.16.x for SIP and PyQt5 imports

2021-08-11 Thread Ari Meyer
Hi,

I mistakenly posted this to the Nabble list just before it got shut down.

I wrote (adding some specifics):
There were clearly major changes in 3.16.8+ LTR compared with the older
3.16.x and 3.18.y (apparently to bring it in line with 3.20+).  We have had
problems with the new LTR versions when attempting to import SIP and
PyQt5.  Everything else seems to work fine, at least so far.
V2 installer:
* Desktop
* qgis-ltr 3.16.9-1
* saga: SAGA
* Libs
* qgis-ltr-grass-plugin
* python3-geopandas
* python3-pip
* python3-scipy
* python3-setuptools

Test with python-qgis-ltr.bat:
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sip
Traceback (most recent call last):
  File "", line 1, in 
ModuleNotFoundError: No module named 'sip'
>>> import PyQt5
>>> from PyQt5.QtWidgets import QHBoxLayout, QLabel, QPushButton,
QTreeWidgetItem, QWidget
Traceback (most recent call last):
  File "", line 1, in 
ImportError: DLL load failed while importing QtWidgets: The specified
module could not be found.
>>>

With 3.16.3, for instance, we don't see these errors.  I have tried to
trace through everything in the old and new versions, but can't seem to
identify the problem with 3.16 LTR.  Any ideas?  Is this a problem
specifically with the Windows DLLs, or are users on other platforms
experiencing similar problems?


Andrea Giudiceandrea responded:
I think the changes are not in QGIS itself, but in the new versions of the
dependencies installed with the new installer.
If you need to use previous dependencies, then you need to install QGIS
using the installers from from the "old OSGeo4W" repository.


I replied:
It doesn't appear to be merely a difference in dependency versions -- I
can't reference these dependencies at all now.  SIP and PyQt5 must be
included with QGIS 3.16.9 LTR, as our plugin code runs fine within it, but
I now can't import them from outside QGIS via the included
python-qgis-ltr.bat script, though, as shown, it works fine when using the
python-qgis.bat in the old 3.16.3.  Am I missing something?


He responded:
I think the issue is not in QGIS 3.16.9 itself, compared with QGIS 3.16.3.
It seems the issue is in the packaging of QGIS and its dependencies within
the new (v2/msi) OSGeo4W repository, while there is no issue with the old
(v1/exe) OSGeo4W repository.
QGIS 3.16.9 LTR is also available, with old packaging dependencies, using
the old OSGeo4W installer. Have you tried it?



So I tried with the V1 installer.  I installed with *essentially* the same
options:
- not sure about the GRASS plugin: common or 7? -- I picked common
- there are different versions of various dependencies between V1 and V2,
as expected

In any case, with the V1 install of 3.16.9 LTR, at least SIP/PyQt5 imported
fine.  One big difference I could immediately see, though, is that it
installed Python 3.7.0 instead of 3.9.5, which is usable, but 3.9 would
definitely be preferable.  I am concerned that if we stuck with V1 that we
wouldn't be supported to the same degree -- not sure if that's unwarranted.

I do believe, though, that the problems we are seeing after installing
qgis-ltr 3.16.9-1 with the V2 installer indicate some problem with the
installation and the python-qgis-ltr.bat environment config.  Is there
something else I need to do to get it to work?

Thanks,
Ari
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] 3.16.8+ LTR vs. old 3.16.x for SIP and PyQt5 imports

2021-08-11 Thread Jürgen E . Fischer
Hi Ari,

On Wed, 11. Aug 2021 at 17:16:35 -0500, Ari Meyer wrote:
> Test with python-qgis-ltr.bat:
> Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64
> bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sip

This issue is due to Python 3.9.  It doesn't use PATH to find DLLs anymore.
Thereore the qgis module now splits PATH and uses os.add_dll_directory on each,
After that it should behave as before.  So your fix should be to import qgis
first.

BTW the latest LTR is also in old osgeo4w and should be not affected.


Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Nordenhttps://www.norbit.de
QGIS release manager (PSC)  Germany IRC: jef on Libera|OFTC


signature.asc
Description: PGP signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user