Re: [Qgis-user] [QGIS-Developer] QGIS Select by Location, but no within a distance of
On Wed, 3 Mar 2021 at 04:59, C Hamilton wrote: > > I just had a user tell me he had to go back to ArcGIS so that he could use > the Select by Location function and specify a distance from the feature. He > could not believe that it was not available in QGIS. See > > https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm > > What he is looking for is the "Are within a distance of" operator. Am I > missing it in QGIS if not this is a really important operator to include. I > know you can always prebuffer the layer, but for an analyst who does this > regularly ours will go back to using ArcGIS. > > Would this be fairly easy to implement? Reasonably so - the bulk of the required changes would all sit within QgsLocationBasedAlgorithm , specifically in QgsLocationBasedAlgorithm::processByIteratingOverTargetSource and QgsLocationBasedAlgorithm::processByIteratingOverIntersectSource (there's two code paths there, and the one called will depend on whether its more efficient to iterate over the first or second layer -- this dual-logic approach is why these algorithms and join by location are much faster then the intersection algorithm as previously discussed!). In both of these you'd basically expand out the size of the bounding box used to request matching features via QgsRectangle::grow (so the larger bounding box is handed off to the underlying data provider spatial index for filtering), and then change the "isMatch" test to use engine->distance( ) <= buffer distance. (Might also be worth first testing if the geometries intersect before calculating the distance as it may be more efficient to do this, but would need to be tested to verify.). On GEOS >= 3.9 based builds the distance(... ) check is optimised and uses indexes, so it should be very fast to perform this check! (As opposed to the inefficient "buffer the geometries" approach). Basically we'd want to follow PostGIS ST_DWithin approach, not a ST_Intersects(ST_Buffer(...)) approach. If I was quoting for a customer I'd estimate 5 hours total for the change, but of course YMMV. Nyall > > Calvin > ___ > QGIS-Developer mailing list > qgis-develo...@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer ___ 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] sry for greenhorn problem...
Hello Helen, I installed the plugin for trying to reproduce your problem. I noticed, that the plugin needs to download additional data after installing it via plugin manager. After cancelling this download I received a similar, but not the same, error like you. Did you downloaded the additional stuff after installing the plugin? Maybe it would be better to create a new issue with your question at the Github repository of the plugin to address your question directly to the plugin author. Greetings, Christoph > Am 02.03.2021 um 18:02 schrieb Helen Willems : > > Dear experts! > > > > I think I have a real "greenhorn problem", but nevertheless can´t solve it on > my own... > > > > I used to work with QGIS 3.10 and wanted to use the UMEP Plugin, but > following error message occured: > > Ein Fehler trat bei der Ausführung von Python-Code auf: > RuntimeError: module compiled against API version 0xe but this version of > numpy is 0xd > > RuntimeError: module compiled against API version 0xe but this version of > numpy is 0xd > > Python-Version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 > (clang-1001.0.46.3)] > QGIS-Version: 3.10.4-A Coruña A Coruña, 10bc9f2ff2 > Python-Pfad: > > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins/geometric_attributes > /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins > /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/plugins > /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/geos > /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7 > /Applications/QGIS3.10.app/Contents/Resources/python > /Users/helenwillems/Library/Python/3.7/lib/python/site-packages > /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages > /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip > /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python > > > Then I updated QGIS to QGIS-LTR (3.16.4) and tried to install the UMEP plugin > again, but then this error message poped up: > > > > Konnte Erweiterung 'UMEP' nicht laden aufgrund eines Fehlers beim Aufruf der > classFactory() Methode > ModuleNotFoundError: No module named 'osr' > > Traceback (most recent call last): > File > "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", > line 334, in _startPlugin > plugins[packageName] = package.classFactory(iface) > File "/Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/__init__.py", line > 34, in classFactory > from .UMEP import UMEP > File > "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", > line 792, in _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File "/Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/UMEP.py", line 42, in > from .UMEPDownloader.umep_downloader import UMEP_Data_Download > File > "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", > line 792, in _import > mod = _builtin_import(name, globals, locals, fromlist, level) > File "/Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/UMEPDownloader/umep_downloader.py", > line 41, in > import osr > File > "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", > line 792, in _import > mod = _builtin_import(name, globals, locals, fromlist, level) > ModuleNotFoundError: No module named 'osr' > > Python-Version: 3.8.7 (default, Feb 10 2021, 09:04:08) [Clang 12.0.0 > (clang-1200.0.32.29)] > QGIS-Version: 3.16.4-Hannover Hannover, 81ba6c0826 > Python-Pfad: > > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins/geometric_attributes > /Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python > /Users/helenwillems/Library/Application > Support/QGIS/QGIS3/profiles/default/python/plugins > /Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins > /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/click_plugins-1.1.1-py3.8.egg > /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/patsy-0.5.1-py3.8.egg > /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/cftime-1.2.1-py3.8-macosx-10.13.0-x86_64.egg >
Re: [Qgis-user] QGIS Select by Location, but no within a distance of
Hi, The easiest way to implement would be to use the graphical modeler. Nicolas Cadieux https://gitlab.com/njacadieux > Le 2 mars 2021 à 13:59, C Hamilton a écrit : > > > I just had a user tell me he had to go back to ArcGIS so that he could use > the Select by Location function and specify a distance from the feature. He > could not believe that it was not available in QGIS. See > > https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm > > What he is looking for is the "Are within a distance of" operator. Am I > missing it in QGIS if not this is a really important operator to include. I > know you can always prebuffer the layer, but for an analyst who does this > regularly ours will go back to using ArcGIS. > > Would this be fairly easy to implement? > > Calvin > ___ > 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 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] QGIS Select by Location, but no within a distance of
I just had a user tell me he had to go back to ArcGIS so that he could use the Select by Location function and specify a distance from the feature. He could not believe that it was not available in QGIS. See https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-select-by-location.htm What he is looking for is the "Are within a distance of" operator. Am I missing it in QGIS if not this is a really important operator to include. I know you can always prebuffer the layer, but for an analyst who does this regularly ours will go back to using ArcGIS. Would this be fairly easy to implement? Calvin ___ 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] DEM Scale problem
Dear QGIS comunity I'm working With QGIS 3.16 and realized that my DEM in UTM Sirgas 2000 24S suffered a change after I added the scale bar (view/decoration). The distances in the DEM are now 1.000.000 times smaller. (The SRC still the same). Where it was supposed to show 1 km long, now is measuring 0.01 m. I did remove the escape bar, but the problem remains! Anyone can help me to resolve the problem? Best regards, Aloísio ___ 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] sry for greenhorn problem...
Dear experts! I think I have a real "greenhorn problem", but nevertheless can´t solve it on my own... I used to work with QGIS 3.10 and wanted to use the UMEP Plugin, but following error message occured: Ein Fehler trat bei der Ausführung von Python-Code auf: RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd Python-Version: 3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)] QGIS-Version: 3.10.4-A Coruña A Coruña, 10bc9f2ff2 Python-Pfad: * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/geometric_attributes * /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins * /Applications/QGIS3.10.app/Contents/MacOS/../Resources/python/plugins * /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages/geos * /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7 * /Applications/QGIS3.10.app/Contents/Resources/python * /Users/helenwillems/Library/Python/3.7/lib/python/site-packages * /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages * /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip * /Applications/QGIS3.10.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python Then I updated QGIS to QGIS-LTR (3.16.4) and tried to install the UMEP plugin again, but then this error message poped up: Konnte Erweiterung 'UMEP' nicht laden aufgrund eines Fehlers beim Aufruf der classFactory() Methode ModuleNotFoundError: No module named 'osr' Traceback (most recent call last): File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/__init__.py", line 34, in classFactory from .UMEP import UMEP File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/UMEP.py", line 42, in from .UMEPDownloader.umep_downloader import UMEP_Data_Download File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/UMEP/UMEPDownloader/umep_downloader.py", line 41, in import osr File "/Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 792, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'osr' Python-Version: 3.8.7 (default, Feb 10 2021, 09:04:08) [Clang 12.0.0 (clang-1200.0.32.29)] QGIS-Version: 3.16.4-Hannover Hannover, 81ba6c0826 Python-Pfad: * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/geometric_attributes * /Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python * /Users/helenwillems/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins * /Applications/QGIS-LTR.app/Contents/MacOS/../Resources/python/plugins * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/click_plugins-1.1.1-py3.8.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/patsy-0.5.1-py3.8.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/cftime-1.2.1-py3.8-macosx-10.13.0-x86_64.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/pandas-1.1.0-py3.8-macosx-10.13.0-x86_64.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/geopandas-0.8.1-py3.8.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/GDAL-3.2.1-py3.8-macosx-10.13.0-x86_64.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/Rtree-0.9.4-py3.8.egg * /Applications/QGIS-LTR.app/Contents/MacOS/lib/python3.8/site-packages/matplotlib-3.3.0-py3.8-macosx-10.13.0-x86_64.egg *
[Qgis-user] GRASS provider not working
Dear list members I have installed , using the OSGeo4W installer on a pc running Windows 7 home edition, QGIS 3.16.4 with GRASS 7.8 After the installation the situation of the processing settings is the one described in the attached document "GRASS_settings.pdf". There is no place for specifying the location of the folder where GRASS has been installed (in my case "C:\OSGeo4W64\apps\grass\grass78\bin". So when I try to run the v.clean command I receive the error message described in the attached document "GRASS_error.pdf". Could someone give me an advice ? Antonio Valanzano GRASS_settings.pdf Description: Adobe PDF document GRASS_error.pdf Description: Adobe PDF document ___ 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