338 Commits

Author SHA1 Message Date
Alessandro Pasotti
7b2fc4c1f8 More doxy nonsense, pt 2 2021-02-19 08:15:29 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Nyall Dawson
578813ac78 Geocoder algorithms can be run in in-place mode too 2020-12-14 16:49:48 +10:00
Nyall Dawson
6ae7a17bf0 [API] Add an adapter class QgsBatchGeocodeAlgorithm which creates
a batch geocoding algorithm from a QgsGeocoderInterface

Example usage:

  # create a class which implements the QgsGeocoderInterface interface:
  class MyGeocoder(QgsGeocoderInterface):

     def geocodeString(self, string, context, feedback):
        # calculate and return results...

  my_geocoder = MyGeocoder()

  # create an algorithm which allows for batch geocoding operations using the custom geocoder interface
  # and implement the few required pure virtual methods
  class MyGeocoderAlgorithm(QgsBatchGeocodeAlgorithm):

      def __init__(self):
          super().__init__(my_geocoder)

      def displayName(self):
          return "My Geocoder"

      def name(self):
          return "my_geocoder_alg"

      def createInstance(self):
          return MyGeocoderAlgorithm()

      # optionally, the group(), groupId(), tags(), shortHelpString() and other metadata style methods can be overridden and customized:
      def tags(self):
          return 'geocode,my service,batch'
2020-12-14 16:49:48 +10:00
vcloarec
0a2af53c28 fix spelling doc ans SIP 2020-11-10 15:11:48 +01:00
Nyall Dawson
4f6f163ead Move geocoder classes to core 2020-10-30 14:31:04 +10:00
Nyall Dawson
d484beb7f3 Spelling 2020-10-30 09:19:48 +10:00
Nyall Dawson
0725112196 Spelling, since updates 2020-10-30 09:19:48 +10:00
Nyall Dawson
94f3ea0d14 Add interface API for geocoders 2020-10-30 09:19:48 +10:00
Matthias Kuhn
6ec342b4c0 Fix dox 2020-10-22 21:09:49 +02:00
vcloarec
abc112befc typo and spelling 2020-10-19 14:53:08 +10:00
vcloarec
b5c787bd06 fix feedback of TIN mesh creation 2020-10-19 14:53:08 +10:00
Nyall Dawson
746ee315bd Fix boolean literal presentation in dox/PyQGIS docs 2020-10-16 16:03:26 +10:00
vcloarec
89e4d4925a enable QgsMeshTriangulation with SIP and change SIP_CONCAT_PARTS 2020-09-10 20:16:44 -04:00
vcloarec
0f60631711 disable analysis/mesh/QgsMeshTriangulation with SIP 2020-09-10 14:50:25 -04:00
vcloarec
5ffc4f298a some fixes and add tests 2020-09-10 14:03:11 -04:00
vcloarec
07714f3931 port alg to c++
and minor fixes
2020-09-10 14:03:11 -04:00
vcloarec
9db4032d59 fix sip and doc 2020-09-10 14:03:11 -04:00
vcloarec
d2f4c40f8a TIN Mesh creation 2020-09-10 14:03:11 -04:00
Matthias Kuhn
3df789f8ff Sipdate 2020-09-09 19:22:55 +02:00
Matthias Kuhn
47a48bb0da More docs 2020-09-09 09:47:49 +02:00
Matthias Kuhn
94fe2f8d1d Add new algorithm to calculate zonal statistics into a new sink 2020-09-09 08:21:27 +02:00
Matthias Kuhn
c20ebcf182 [processing] Zonal Statistics create a new output instead of updating an existing one
Implements #29504
2020-09-08 20:16:21 +02:00
Nyall Dawson
f496173bd7 Fix messy doxygen blocks which mess with sipify script
Fixes #38291
2020-08-20 17:01:35 +10:00
Vincent Cloarec
de68f83cc3
Virtual dataset groups for mesh layer (#37605)
[FEATURE] Introduces mesh virtual datasets

With the mesh calculator the user can choose to create those "virtual" dataset groups that will be added to the layer. Then, for these dataset groups, values are not stored in memory but each dataset is calculated when needed whit the formula entered in the mesh calculator.

Those virtual dataset groups are saved with the project.

If needed, the user can remove them or can persist them on files to make them persistent.

Co-authored-by: Étienne Trimaille <gustrimaille@yahoo.fr>
2020-07-23 07:39:28 +02:00
Vincent Cloarec
6be16a5bfe
Memory dataset group and possibility to persist it (#37389)
[FEATURE] Introduces memory dataset groups for mesh layer. These dataset groups are temporary and are not kept when the project is closed.

Memory dataset groups can be created from the mesh calculator with a new option.

Allows the possibility to remove or save these memory dataset groups to a file with specified driver.
2020-07-01 10:18:27 +02:00
Denis Rouzaud
044a05d828 run sipify 2020-06-19 08:47:23 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
a5101f2ade [sipify] Fix header formatting 2020-06-13 16:49:14 +10:00
Blottiere Paul
385f6399cb Fix use of deleted function for QgsGeometryCheckErrorSingle 2020-06-12 08:45:13 +10:00
Nyall Dawson
c795ddb1e9 Updates 2020-06-11 13:29:59 +10:00
Even Rouault
c70e180df1
QgsGraphBuilder: declare deleted copy constructor and assignment operators as the class has pointer member variables 2020-05-29 23:30:20 +02:00
Vincent Cloarec
34d44c08ed
[MESH] Resampling from vertex values to face values (#35264)
[FEATURE] Implements resampling from values on vertices to values on faces with the neighbor average method. (note that resampling method for datasets defined on faces, e.g., the value on vertices is calculated from value on faces was added in the previous QGIS release)

The default method is set to "none" for resampling from vertices to faces and to "neighbor average" for resampling from faces to vertices. Then the default rendering is now always smooth.
2020-03-24 10:03:54 +01:00
nirvn
3c64bbdcf9 Make QgsExifTools QML friendly 2020-02-09 12:20:20 +07:00
Matthias Kuhn
ba672639c4 Fix docstring 2020-01-16 15:11:02 +01:00
Matthias Kuhn
5dfb5f6bb5 Followup review comments 2020-01-15 07:43:34 +01:00
Matthias Kuhn
8b62eb9572 Better doc strings 2020-01-14 19:07:59 +01:00
Matthias Kuhn
952d704814 Rename QgsGeometryCheckFix to QgsGeometryCheckResolutionMethod 2020-01-14 16:51:59 +01:00
Matthias Kuhn
6cdd75bbab More geometry fix goodness 2020-01-14 16:38:38 +01:00
Matthias Kuhn
35d5176210 Analysis again 2020-01-14 16:38:38 +01:00
Matthias Kuhn
f6e388af9b Geometry gap analysis update 2020-01-14 16:38:38 +01:00
Denis Rouzaud
105ebc4683
test commit for backport bot (#33444) 2019-12-17 16:25:39 +01:00
Alexander Bruy
cc5b6e74f4 [processing] port zonal statistics to C++ 2019-12-09 13:28:32 +02:00
Peter Petrik
b93dfdd0b3
[feature] Support datasets with data defined on faces in mesh calculator (#33248)
* [feature] support datasets with data defined on faces in mesh calculator, fix #30219, fix #30170

added "driver" and "group name" to the calculator interface.
MDAL now supports 3 drivers for storing results, so user must be able to choose appropriate driver and dataset group name (some drivers store multiple groups to 1 file)
2019-12-06 18:27:28 +01:00
Nyall Dawson
ab6239b753 Don't report success when a calculation error occurred 2019-11-26 18:25:26 +10:00
Nyall Dawson
64b52bf31b Fix handling of interpolation layers with differing input coordinate reference systems
Fixes #27048
2019-11-05 16:57:33 +10:00
Matthias Kuhn
4294dda083 Resipify 2019-11-03 21:05:34 +01:00
Peter Petrik
dd98331ace [feature] [mesh] fix #31550 Expose new methods in analysis library for exporting contours for mesh layers
The mesh styling dialog now has new combo box for selection of resampling method for datesets defined on faces.
Also the analysis library has new class QgsMeshContours with export function for contour lines and contour polygons.
2019-10-29 23:16:04 +01:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00
Alessandro Pasotti
e59c1134d7 Code layout 2019-09-27 11:48:06 +02:00