5262 Commits

Author SHA1 Message Date
Juergen E. Fischer
4cdf05f90f fix typo 2015-10-19 23:54:01 +02:00
Matthias Kuhn
1132867622 Make cadDockWidget available in python
Followup efcbbfd
2015-10-19 17:47:54 +02:00
Nyall Dawson
5f1bb6cf1f Geometry fixes:
- when creating geometry from WKT, upgrade dimensionality of geometry
if coordinates are 3/4 dimensional
- match dimensionality of collections to child dimensionality
- fix area of curves was non-zero if curve is closed
- don't consider m values when testing for curve closedness
- add unit tests for closedness
- add unit tests for CircularStrings, CompoundCurves, CurvePolygon,
tests with geometries with Z/M values
2015-10-18 21:03:15 +11:00
Juergen E. Fischer
cc9c789760 avoid on duplicate user functions (fixes #13579) 2015-10-18 00:27:28 +02:00
Juergen E. Fischer
3e0badcb55 Fix sip conversion from QgsFields to QList<QgsField> (fixes #9208) 2015-10-17 22:03:03 +02:00
Nyall Dawson
8c5f3f88a9 [geometry] Fix calculation of length/perimeter for collections
Split length from perimeter calculation in geometry API, as
returning perimeter for length for polygons is misleading and
results in incorrect length/perimeter calculations for mixed
geometry collections.

Enable length & perimeter unit tests against reference geometries.
Now the length & perimeter values match those calculated by
PostGIS.
2015-10-17 15:40:36 +11:00
Nyall Dawson
fab5a32d9a Fix geometry casting in python bindings (missing MultiLineString and
GeometryCollection casts)
2015-10-17 15:02:11 +11:00
volaya
545a90de8f [processing] fixed scrolling to anchor in help pages
fixes #13506
2015-10-16 14:00:13 +02:00
Nyall Dawson
2e1d2d1862 Fix calculation of area/length of mixed geometry collections 2015-10-16 21:38:13 +11:00
Nyall Dawson
55c27ce710 Add some extra unit tests for geometry:
- Add some tests for conversion to/from WKT, using a bulk lot of testsdata
from PostGIS
- Add some tests for area/length calculation, using some test data and
results from PostGIS/geos unit tests
- Add tests for spatial relations, using test data from PostGIS. Note
that this required adding support for calculating the DE-9IM relation. I'll
expose this to users via the expression engine in 2.14.

Along the way this also fixes a number of bugs relating to WKT geometry
import, such as
- add support for alternate MultiPoint(1 1,2 2,...) format
- fix GeometryCollection to support collections with multi* children
and GeometryCollection children (allowed by spec)
2015-10-16 17:46:06 +11:00
Nyall Dawson
34dc314345 Fix exporting geometry collections to WKT
Child types were incorrectly being dropped when the collection
consisted of mixed geometry types (eg line & polygon) (refs #13608)
2015-10-16 07:48:42 +11:00
Giovanni Manghi
ec3fb23afb fix saga 2.2.0 flow accumulaiton modules (ex catchment areas). Files added. 2015-10-15 17:19:26 +01:00
Giovanni Manghi
2bf1e6870c fix saga 2.2.0 flow accumulaiton modules (ex catchment areas) 2015-10-15 17:19:03 +01:00
Nyall Dawson
5654eeca55 Fix area calculation when OTF active and no ellipsoid (fix #13601) 2015-10-15 17:51:07 +11:00
Nyall Dawson
5ed3d1b73f Use QString::arg multi argument method to avoid extra heap allocations 2015-10-15 17:51:06 +11:00
volaya
2f9db5adef [processing] fixed handling output html files in grass 7 2015-10-14 13:24:16 +02:00
volaya
70bc957439 [processing] do not assume singleton Processing when defining temp folder
fixes #13588
2015-10-14 13:14:02 +02:00
volaya
5ca556670a [processing] do not write CRS file if output is not a layer
fixes #13590
2015-10-14 13:14:01 +02:00
Paolo Cavallini
c41852649c Merge pull request #2369 from neteler/patch-73
Update to GRASS GIS 7.0.x
2015-10-14 07:19:05 +02:00
Paolo Cavallini
52c50673f7 Merge pull request #2370 from neteler/patch-72
Update to GRASS GIS 7.0.x
2015-10-14 07:17:43 +02:00
Nyall Dawson
a333fc8248 Add method to geometries for adding z/m dimension, initialized
to a specified value
2015-10-14 08:39:05 +11:00
Nyall Dawson
665379645f Add method to QgsWKBTypes to add z/m dimension to a wkb type
Also add some unit tests for QgsWKBTypes
2015-10-14 08:39:05 +11:00
Juergen E. Fischer
53c507d3a7 db manager: add credentials to postgis rasters (fixes #13594) 2015-10-13 22:54:01 +02:00
Markus Neteler
cfdf5cf609 Update to GRASS GIS 7.0.x 2015-10-13 22:12:59 +02:00
Markus Neteler
47565a949f Update to GRASS GIS 7.0.x 2015-10-13 22:12:54 +02:00
volaya
c3839b3ad3 [processing] fixed getMinCoveringExtent when there are multiple input parameters 2015-10-13 20:03:47 +02:00
volaya
c87646a9a7 [processing] fixed modeler calcualtor when opening dialog for the first time
fixes #13587
2015-10-13 19:59:17 +02:00
volaya
ca27277bb3 [processing] do not set an upper limit for points in random points layer
fixes #13483
2015-10-13 19:59:16 +02:00
Paolo Cavallini
3d1c7148d8 Update CatchmentArea(Parallel).txt
Fixes https://hub.qgis.org/issues/13588 (but probably there are others)
2015-10-13 18:50:03 +02:00
Paolo Cavallini
ccdb70239f Update ShapestoGrid.txt
Fixes #13585
2015-10-13 16:57:34 +02:00
Paolo Cavallini
9cd5eed9bf Update Grid.py
Fixes a broken module. Possibly more broken ones around.
2015-10-13 13:30:43 +02:00
Nyall Dawson
ad10b5264e Fix using add part tool to add part to geometryless rows
(fix #12885, #11319)

Also fix some potential crashes with edit tools and null geometry
2015-10-13 16:59:52 +11:00
Nyall Dawson
f9559003d4 Really fix #13545
I'm not sure what sip voodoo is preventing the bindings from
calling methods in the base class, so for QGIS <3.0 I've aliased
all the new signatures and will rename them back for 3.0
2015-10-12 21:56:30 +11:00
mhugent
c7b9fa646b Merge pull request #2353 from manisandro/geos_snap
Replace GEOS C++ dependency with hand-rolled snap-to-grid implementation
2015-10-12 10:50:36 +02:00
arnaud.morvan@camptocamp.com
7e2ffd46d8 fixup! Include parameterselection dropdown contents in processing translations 2015-10-12 09:30:25 +02:00
Juergen E. Fischer
8e2b791092 case-sensitivity of vector layer field (fixes #13032)
* fieldNameIndex: resort to case-insensitive lookup only if
  case-sensitive lookup has no match
* file writer: fix handling of fields that only differ by case
2015-10-11 22:42:28 +02:00
Nyall Dawson
a784d6bc3d If svg files with params do not have a default value set, then don't
reset the fill/border color and border width when changing svg
marker/svg fill SVG files

This change makes the behaviour consistent between the svg marker
symbol and the other marker symbols. Additionally, svg files
which have customisable colors and NO default values set will
be shaded in gray fill/black outline in the svg selector widget,
to follow the same behaviour as the other marker symbol selectors.

Note that this change has NO EFFECT unless the svg files are
modified to remove the default param value, so there will be no
change for users' custom symbols. A follow up commit will need
to remove the default param values from the preinstalled SVG
files though. If you want to test in the meantime, I've modified
just the first two symbols in the accomodation group to make
this change for testing.

(refs #10908)
2015-10-11 23:00:01 +11:00
Nyall Dawson
9287ee7d40 [console] Move run button earlier in console editor toolbar
Otherwise on small screens the run button is hidden away in the
overflow menu, which isn't ideal given its importance
2015-10-11 16:36:10 +11:00
Nyall Dawson
d72587f436 Fix Coverity issues:
- uninitialized members
- memory leaks
2015-10-10 13:25:58 +11:00
Giuseppe Sucameli
9f67f4cde0 DBManager: add table/layer to canvas double clicking on it 2015-10-10 00:42:27 +02:00
Nyall Dawson
4925a54f35 Followup e5ea5ff, better API 2015-10-09 20:35:28 +11:00
alexbruy
c64d5ff7b5 Merge pull request #2357 from spatialthoughts/patch-1
[processing] remove unused argument
2015-10-09 09:59:50 +03:00
alexbruy
5426ebe8be Merge pull request #2343 from PedroVenancio/grass7_plugin
remove "-write_absolute_path" option from gdaltindex (addresses #11428, #4064)
2015-10-09 09:53:23 +03:00
Nyall Dawson
b55708ec7b Fix doxygen warning 2015-10-09 06:52:04 +11:00
Nyall Dawson
d1be2ff214 Fix hardcoded border for raster legend items (fix #13540)
Previously raster legend items always had a fixed black border.
Now there's options to change the color/width of this border or
disable it entirely.
2015-10-09 06:12:37 +11:00
Ujaval Gandhi
b379e93b95 Remove the extra argument to getConsoleCommands()
getConsoleCommands takes only 1 arg. The extra arg in the method definition causes an error when running the algorithm
2015-10-08 20:29:40 +05:30
Nyall Dawson
3520f038dd Fix missing sip bindings for renderers (fix #13545) 2015-10-08 23:47:51 +11:00
Nyall Dawson
e5ea5ff89a Fix add ring/fill ring tool works on first polygon (fix #13069)
Now the tools will prefer to operate on selected features first.
Improves editing of overlapping features.
2015-10-08 23:33:58 +11:00
Nyall Dawson
45a6f715b3 Fix fill ring tool creates more features than needed (fix #13354) 2015-10-08 22:40:58 +11:00
Sandro Mani
c927073e20 Add some docstrings 2015-10-08 11:28:32 +02:00