29209 Commits

Author SHA1 Message Date
Radim Blazek
6426be343f [GRASS] fixed cmake build with G7 without G6 2015-10-18 14:38:58 +02:00
Radim Blazek
e37ae8bad0 [GRASS] cmake fix 2015-10-18 14:22:49 +02:00
Juergen E. Fischer
c373d7bc06 heatmap plugin: fix labeling s/metre/layer units/ (fixes #11276) 2015-10-18 13:09:52 +02:00
Radim Blazek
6bd96b2810 [GRASS] temporal modules input 2015-10-18 12:58:09 +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
Matthias Kuhn
63cea76313 Merge pull request #2374 from slarosa/editor_widget_take_2
Attribute table filter: follow up #2316 and 5ac5217

Fix #13486 Don't hide search widget in attribute table when typing
Properly connect the signals for the search case checkbox on the attribute table filter
2015-10-18 11:09:21 +02:00
Juergen E. Fischer
cc9c789760 avoid on duplicate user functions (fixes #13579) 2015-10-18 00:27:28 +02:00
Juergen E. Fischer
6496bc4955 fix grass <7.1 build 2015-10-17 23:20:10 +02:00
Sebastian Dietrich
ab943f8b06 the test for uniqueness now also works for multiple columns 2015-10-17 23:20:10 +02:00
Sebastian Dietrich
a4124da2a9 When loading a query as a postgis layer the primary key may now also span multiple columns. 2015-10-17 23:20:10 +02:00
Sebastian Dietrich
a721949040 Moved the code to determine the primary key for a view using the URI keyColumn to a separate function. 2015-10-17 23:20:10 +02:00
Juergen E. Fischer
3e0badcb55 Fix sip conversion from QgsFields to QList<QgsField> (fixes #9208) 2015-10-17 22:03:03 +02:00
Juergen E. Fischer
968673591c feature request: set filter to filterrect if it's unset (fixes #13463) 2015-10-17 16:16:39 +02:00
Radim Blazek
60efb82e6e [GRASS] get off_t size 2015-10-17 12:31:57 +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
785d9952a0 Add a bunch of geometry unit tests against reference geometries
(inc geometry count, node count, ring count, area, centroid,
x/y min/max)

TODO:
- invesigate whether Z/M is required for GeometryCollection WKT
data type if children have Z/M dimension
- fix QGIS handling of mixing length and perimeter for collections
resulting in incorrect length calculation for mixed Collections
2015-10-17 15:02:18 +11:00
Nyall Dawson
fab5a32d9a Fix geometry casting in python bindings (missing MultiLineString and
GeometryCollection casts)
2015-10-17 15:02:11 +11:00
Nyall Dawson
24b18bc426 Call qDeleteAll on containers themselves, rather than using
qDeleteAll( container.values() ). The values() call isn't
needed and requires building a QList of values first.

Thanks clazy - keep the good optimisations coming!
2015-10-17 09:15:51 +11:00
Radim Blazek
6a1f1fdf0d [GRASS] fixed input region check 2015-10-16 19:33:12 +02:00
Radim Blazek
b2ca9d5141 [GRASS] fixed crash when edit renderer is set manually 2015-10-16 19:14:29 +02:00
Radim Blazek
f810573e72 [GRASS] update table after new feature cat was set 2015-10-16 19:01:49 +02:00
Radim Blazek
15af98745b [GRASS] add edit renderer when plugin is inited 2015-10-16 18:35:21 +02:00
Radim Blazek
3c85c7ec95 [GRASS] distinguish symbol for left/right broken boundary 2015-10-16 17:27:17 +02:00
Steven Mizuno
7f731ae309 fix legendLayerZoomNative to use diagonal of source raster pixel
to match the use of the diagonal of mapCanvas pixel.
Also fix spelling in a comment.

(fixes #3609)
2015-10-16 16:44:41 +02:00
Larry Shaffer
872d5b3a82 [auth] Move pass file support to manager class; for both server/app
- Ensure pass file env var is skipped by application and later stripped
2015-10-16 06:42:18 -06:00
volaya
545a90de8f [processing] fixed scrolling to anchor in help pages
fixes #13506
2015-10-16 14:00:13 +02:00
Radim Blazek
51a692dc22 [GRASS] disable view output if output was not entered 2015-10-16 13:39:20 +02:00
Radim Blazek
5e441ac684 coverity fixes 2015-10-16 13:26:45 +02:00
Nyall Dawson
f7550b3515 Add some more basic area and length unit test cases 2015-10-16 22:12:07 +11:00
Nyall Dawson
0151227b10 Allow shortcut calculation of perimeter when no ellipsoid set 2015-10-16 21:48:51 +11:00
Nyall Dawson
2e1d2d1862 Fix calculation of area/length of mixed geometry collections 2015-10-16 21:38:13 +11:00
Nyall Dawson
725f973840 Fix various Coverity errors (inc mem leaks) 2015-10-16 21:36:38 +11:00
Nyall Dawson
772ab8e249 Update test mask images 2015-10-16 17:46:22 +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
Nathan Woodrow
7f325d5015 Merge pull request #2377 from nirvn/toolbar_icon_improvements
improve and vectorize several edit toolbar icons
2015-10-16 16:16:03 +10:00
nirvn
f3a45cd400 improve and vectorize several edit toolbar icons 2015-10-16 09:32:29 +07: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
Paolo Cavallini
d70a0adc2a Merge pull request #2375 from NaturalGIS/saga_flow_accu
Fix SAGA 2.2.0 flow accumulation modules
2015-10-15 18:29:46 +02:00
Larry Shaffer
d19165b7c9 [server] Fix #13291; reinstate default project read in fcgi directory
- Ensure no reassignment of mConfigFilePath by MAP parameter or from
  QGIS_PROJECT_FILE env var
2015-10-15 10:23:26 -06: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
Marco Hugentobler
f205acf2ba Fix geometry icons in postgres dialog for new wkb types 2015-10-15 16:23:02 +02:00
Salvatore Larosa
c7e732b2c7 [widget editor][fix #13486] follow up #2316 and 5ac5217 2015-10-15 14:48:43 +02:00
Radim Blazek
0ded8553bf [GRASS] show init error in tools title 2015-10-15 12:44:10 +02:00
Radim Blazek
c358aea04d [GRASS] create new cat on attribute change if it does not exist 2015-10-15 11:58:42 +02:00
Radim Blazek
afdf4e1ac4 [GRASS] use text type with sqlite 2015-10-15 11:28:15 +02:00
Radim Blazek
fb76501fe3 [GRASS] minor fixes 2015-10-15 10:30:47 +02:00
Marco Hugentobler
81dc11a924 Fix numerical problems in circular string rendering 2015-10-15 09:15:28 +02: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