66732 Commits

Author SHA1 Message Date
Nyall Dawson
08f65f2f8d Cleanup variable names, fix error string 2020-11-04 10:35:26 +10:00
vcloarec
9fbe87202d fix geometry validator
Fixes #39770
2020-11-04 10:26:09 +10:00
vcloarec
9a7efe029b fix bad QTime constructor 2020-11-04 08:39:27 +10:00
Denis Rouzaud
6d52771e6c Fix copy 2020-11-04 08:21:24 +10:00
Denis Rouzaud
7d1ca81618
improve geometry equality report in tests (#39772)
from https://github.com/qgis/QGIS/pull/8154/files#diff-dbb55b6871a9157f22dc7a979009676cb03f2fadefc557ad0e66a47c92a93503
2020-11-03 09:30:14 +01:00
Vincent Cloarec
1fbba79a0f
Mesh export processes, first part : infrastructure and export vertices (#39664)
[processing] Infrastructure for QgsMeshLayer to add processing algorithms, dataset group paramater and dataset time parameter to allow the user to easily choose a dataset.
2020-11-03 06:05:28 +01:00
Nyall Dawson
a1fcc7da4a Fix missing canvas flash after locating to geocode result with viewport 2020-11-03 13:39:24 +10:00
Nyall Dawson
1acfe1fbe6 Add group and description to QgsGeocoderResult, link in to locator,
and populate group in Google Maps geocoding results
2020-11-03 12:11:56 +10:00
Nyall Dawson
cbaeb99a72 Add optional viewport property for geocoder results
Allows specifying an optional recommended viewport bounds for
displaying the geocode result (e.g. the canvas extent to zoom
to for showing the results)
2020-11-03 12:11:56 +10:00
Nyall Dawson
e70caeb3e1 Add getter/setter for api key, region 2020-11-03 12:11:56 +10:00
Nyall Dawson
98d09715a4 [api] Add new class QgsGoogleMapsGeocoder
This geocoder utilises the Google Maps "geocoding" API in order to geocode
strings. The Google Maps service is not publicly available, and accordingly
an API key must be first obtained from Google and specified when constructing
this class.

(The user is responsible for managing their Google Maps API key, and ensuring
that the use of this geocoder does not exceed their usage limits! Excessive use
of the Google Maps geocoder API can result in charges being applied to the API key
holder.)

This is raw underlying API only. It is intended to be exposed to QGIS users only
via plugins, and does not result in any out-of-the-box Google Maps functionality.

In order for a plugin to use it, they must do something like this:

    # create a google maps geocoder
    api_key = 'my api key'
    coder = QgsGoogleMapsGeocoder(api_key)

    # add it to the locator bar
    filter = QgsGeocoderLocatorFilter('Google', 'Google', 'addr', coder, iface.mapCanvas())
    iface.registerLocatorFilter(filter)

Mini FAQ:

Q: Why is this being added to core, instead of a plugin?
A: While a plugin would be perfectly acceptable if we are only targetting QGIS desktop,
the intention here is to allow this underlying, low level class to be reused outside
of QGIS desktop (e.g. on QField) with a minimal amount of duplicate effort.
2020-11-03 12:11:56 +10:00
Juergen E. Fischer
71a755a023 debian packaging: add qt5-image-formats-plugins dependency (closes #39763) 2020-11-02 21:29:19 +01:00
Juergen E. Fischer
09d6185b06 debian packaging: drop ubuntu eoan add ubuntu groovy 2020-11-02 21:29:19 +01:00
Alexander Bruy
47a08a4445
Merge pull request #39575 from alexbruy/processing-dxf
Native DXF export algorithm
2020-11-02 13:23:47 +02:00
Martin Dobias
d304614630
Remove workaround for an Entwine issue (binary/zstandard encoding) (#39733)
Entwine was creating incorrectly encoded index when binary/zstandard
data type was used with a recent PDAL:
https://github.com/connormanning/entwine/issues/240

We have introduced a temporary workaround for it in EPT provider,
but now that the bug is fixed, let's remove the workaround.

Note: if you have any dataset encoded with binary or zstandard dataType,
you need to re-index it with Entwine from master.
2020-11-02 11:44:25 +01:00
tomasMizera
d6247fd6ab fix type error in value relation 2020-11-02 11:17:41 +01:00
tomasMizera
ed709c18fa fix bunch of small bugs 2020-11-02 11:17:41 +01:00
Alexander Bruy
ee241edb87 completely hide parameter type definition from SIP 2020-11-02 09:50:05 +02:00
Alexander Bruy
3feb0ad447 tests for parameterAsLayers() call 2020-11-02 09:49:05 +02:00
Alexander Bruy
24f2c621a9 address remaining review comments 2020-11-02 09:49:05 +02:00
Alexander Bruy
3651365787 add other supported parameter types to the list 2020-11-02 09:49:05 +02:00
Alexander Bruy
5a155f7c23 make QgsProcessingParameterDxfLayers public 2020-11-02 09:49:05 +02:00
Alexander Bruy
76c1557e69 raise exceptions instead of fatal errors 2020-11-02 09:47:29 +02:00
Alexander Bruy
d40a7db9a0 fix condition statement 2020-11-02 09:47:29 +02:00
Alexander Bruy
3c0d5971b8 longer help 2020-11-02 09:47:29 +02:00
Alexander Bruy
24bad2e3b6 fix strings capitalization 2020-11-02 09:47:29 +02:00
Alexander Bruy
a7339e6fbf fix missed cond 2020-11-02 09:47:29 +02:00
Alexander Bruy
bdce38bc0b drop useless test 2020-11-02 09:47:29 +02:00
Alexander Bruy
e5e87aca41 more fixes to support other input types 2020-11-02 09:47:29 +02:00
Alexander Bruy
6f10e65120 accept layer list and individual layers as dxf inputs 2020-11-02 09:47:29 +02:00
Alexander Bruy
ad6922b507 typo in the license header 2020-11-02 09:47:29 +02:00
Alexander Bruy
9414e3f54a test for DXF export algorithm 2020-11-02 09:47:29 +02:00
Alexander Bruy
c1b6547d3b init default split attribute 2020-11-02 09:47:29 +02:00
Alexander Bruy
769dafaef4 typo 2020-11-02 09:47:29 +02:00
Alexander Bruy
7b36a22074 [processing] add dxf export algorithm (fix #25392) 2020-11-02 09:47:29 +02:00
Alexander Bruy
8f487694e6 test for dxf layer wrapper 2020-11-02 09:47:29 +02:00
Alexander Bruy
4f91bd80d7 [processing] widget wrapper for dxf layers parameter 2020-11-02 09:47:29 +02:00
Alexander Bruy
7e798d40b8 test for dxf layers parameter 2020-11-02 09:47:29 +02:00
Alexander Bruy
b7997e0fd8 [processing] new parameter for DXF export input layers 2020-11-02 09:47:29 +02:00
Nyall Dawson
45f12cbb1e Pressing escape should cancel the Change Data Source dialog 2020-11-02 14:37:21 +10:00
Nyall Dawson
9935bbe05e Add adapter class QgsGeocoderLocatorFilter
This class implements the required logic to bridge a
class which implements the QgsGeocoderInterface interface to a
QgsLocatorFilter. It allows easy creation of a locator filter
from a geocoder.

E.g.

    class GoogleGeocoder(QgsGeocoderInterface):
      ... class which implements QgsGeocoderInterface...

    my_google_geocoder = GoogleGeocoder(api_key)
    my_google_locator_filter = QgsGeocoderLocatorFilter('google', 'Google Maps', 'google', my_google_geocoder, iface.mapCanvas())
    iface.registerLocatorFilter(my_google_locator_filter)

Note:

There's an abstract base class QgsAbstractGeocoderLocatorFilter which
lives in core. This base class has the guts of the geocoder to filter
adapter logic, but it does NOT implement the part which actually zooms
the canvas to the geocode results (because it's in core!)

This abstract base class is in place for applications like QField,
where the GUI library and QgsMapCanvas is NOT used. Those applications
can then implement their own concrete class based on QgsAbstractGeocoderLocatorFilter
with the correct logic to zoom their interface to a region. Ultimately,
a single QgsGeocoderInterface could be usable across QGIS desktop, QField,
with almost all logic shared via the common abstract adapter class.
2020-11-02 11:22:48 +10:00
Alexander Bruy
2f9236b254 remove from SIP some parameter type definitions 2020-11-02 07:49:04 +10:00
Alexander Bruy
c79ebcd3ae make QgsProcessingContext member variable in vector tile layers wrapper
to avoid dangling pointers
2020-11-02 07:49:04 +10:00
Alexander Bruy
5271ca26f5 make QgsProcessingParameterVectorTileWriterLayers public
hide parameter types definitions for TIN and vector tile parameters from
SIPP
2020-11-02 07:49:04 +10:00
nirvn
f36701c4f8 [processing] Fix add (single) row tool button broken 2020-11-02 07:47:39 +10:00
Denis Rouzaud
a6fe85f056 fix code layout 2020-11-02 07:46:15 +10:00
Denis Rouzaud
74017adbee use forwarding reference to fix reference copy warning 2020-11-02 07:46:15 +10:00
Andrea Giudiceandrea
fa1b704a5c [processing] fix method name in GUI wrapper 2020-11-02 07:44:51 +10:00
Juergen E. Fischer
9e04323351 Fix windows build 2020-11-01 00:17:12 +01:00
Denis Rouzaud
7ab1f19a95
fixes reading of legacy setting of WMS/WFS exclusion for joined fields (#39714)
fixes #39699
2020-10-30 13:46:17 +01:00