353 Commits

Author SHA1 Message Date
Nyall Dawson
ffa99b7b64 Fix doxygen blocks which don't use the * prefix on all lines, which
prevents the auto format and sipify scripts from doing their full
formatting magic
2021-04-19 12:54:13 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
e18584239f Force c++14 only for sip builds, as sip generated code uses deprecated c++ removed in c++17 2021-02-25 11:08:56 +10:00
Nyall Dawson
a7fd8e07f5 Revert 2021-02-25 11:08:56 +10:00
Nyall Dawson
d8a6d36780 Nice and friendly API 2021-02-21 15:18:57 +10:00
Nyall Dawson
fd7149ac97 Create class QgsGcpGeometryTransformer, which allows transformation
of geometry objects via a ground control points based transformation
2021-02-21 15:18:57 +10:00
Nyall Dawson
ce54321220 Rename pixel/layer/map coordinates to "source" and "destination", to
make classes more generic and avoid confusion with non-raster based
GCPs

Also flip function arguments to source, destination order instead
of destination, source
2021-02-21 15:18:57 +10:00
Nyall Dawson
ef78bf9a51 Add public transform method 2021-02-21 15:18:57 +10:00
Nyall Dawson
30245eef4d Add clone method 2021-02-21 15:18:57 +10:00
Nyall Dawson
ff195b373d Pixel -> layer 2021-02-21 15:18:57 +10:00
Nyall Dawson
f2f1d70fa7 Add factory method which creates an initialized transformer from method and list of GCPs 2021-02-21 15:18:57 +10:00
Nyall Dawson
125c33bf5c Move factory method to base class 2021-02-21 15:18:57 +10:00
Nyall Dawson
6628d5d27a Move method to string to QgsGcpTransformerInterface class 2021-02-21 15:18:57 +10:00
Nyall Dawson
fe8c768682 Move transform enum to base class 2021-02-21 15:18:57 +10:00
Nyall Dawson
8bf253d6ef Move classes representing GCP based transformations from app to analysis,
and make ready for exposure to public API
2021-02-21 15:18:57 +10:00
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