summaryrefslogtreecommitdiff
path: root/tests/gis_tests
AgeCommit message (Collapse)Author
2021-03-23[3.2.x] Refs #32353, Refs #32352 -- Fixed GIS tests with PROJ 7.X.Mariusz Felisiak
Different PROJ versions use different transformations, all are correct as having a 1 meter accuracy. These are differences in PROJ versions that cannot and should not be handled in Django itself. Thanks Jani Tiainen and David Smith for reports. See: https://github.com/OSGeo/gdal/issues/3377 Backport of 2cd40263348a9c345a58c44d48922ac3b370a119 from main
2021-01-29[3.2.x] Fixed GeoIPTest.test04_city() failure with the latest GeoIP2 database.Mariusz Felisiak
Backport of 135c800fe6138d7818501a384c0ebbdc5442762c from master
2021-01-18[3.2.x] Fixed #32358 -- Fixed queryset crash when grouping by annotation ↵Illia Volochii
with Distance()/Area(). Made MeasureBase hashable. Backport of bef6f7584280f1cc80e5e2d80b7ad073a93d26ec from master
2021-01-13Removed redundant database vendor helpers in gis_tests/utils.py.Tim Graham
2021-01-13Added SpatialFeatures.empty_intersection_returns_none.Tim Graham
2021-01-02Replaced DatabaseFeatures.supports_left_right_lookups with skipUnlessGISLookup.Tim Graham
2020-12-14Relaxed MemSize test for CockroachDB.Tim Graham
2020-12-10Fixed #32178 -- Allowed database backends to skip tests and mark expected ↵Hasan Ramezani
failures. Co-authored-by: Tim Graham <timograham@gmail.com>
2020-11-30Added SpatialFeatures.supports_tolerance_parameter.Tim Graham
2020-11-28Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to ↵Giannis Adamopoulos
'Geometry'.
2020-11-28Added assertion for geom_type in BaseGeometryWidget.get_context().Giannis Adamopoulos
2020-11-28Refs #32230 -- Made LayerMapping support pathlib.Path.Mariusz Felisiak
2020-11-28Fixed #32230 -- Made DataSource support pathlib.Path.Hasan Ramezani
2020-11-11Added SpatialFeatures.unsupported_geojson_options.Tim Graham
2020-11-09Renamed BaseSpatialOperations.geography to ↵Tim Graham
BaseSpatialFeatures.supports_geography.
2020-11-06Refs #31910 -- Fixed GeoQuerySetTest.test_geoagg_subquery() test on Oracle 18c.Mariusz Felisiak
2020-11-04Fixed #31910 -- Fixed crash of GIS aggregations over subqueries.Simon Charette
Regression was introduced by fff5186 but was due a long standing issue. AggregateQuery was abusing Query.subquery: bool by stashing its compiled inner query's SQL for later use in its compiler which made select_format checks for Query.subquery wrongly assume the provide query was a subquery. This patch prevents that from happening by using a dedicated inner_query attribute which is compiled at a later time by SQLAggregateCompiler. Moving the inner query's compilation to SQLAggregateCompiler.compile had the side effect of addressing a long standing issue with aggregation subquery pushdown which prevented converters from being run. This is now fixed as the aggregation_regress adjustments demonstrate. Refs #25367. Thanks Eran Keydar for the report.
2020-10-27Removed unneeded @no_oracle skips.Tim Graham
2020-10-27Made OracleSpatialAdapter clone geometries rather than mutate them.Tim Graham
2020-10-22Replaced @no_oracle skips with DatabaseFeatures.allows_group_by_lob.Tim Graham
2020-10-19Added DatabaseFeatures.can_alter_geometry_field.Tim Graham
2020-09-15Prevented creation of 3D test models if not supported.Tim Graham
There's no problem creating the models on MySQL and Oracle (which don't support 3D storage) but CockroachDB currently crashes with a syntax error.
2020-09-14Removed hardcoded paths to SpatialRefSys models in tests.Tim Graham
2020-09-14Refs #26697 -- Removed empty gis_tests.maps.Tim Graham
2020-09-11Fixed #31766 -- Made GDALRaster.transform() return a clone for the same SRID ↵Barton Ip
and driver. Thanks Daniel Wiesmann for the review.
2020-07-30Bumped minimum isort version to 5.1.0.David Smith
Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
2020-07-14Refs #30446 -- Defined output_field of BoundingCircle() GIS database function.Simon Charette
This prevented the default behavior of BaseExpression._resolve_output_field from error'ing out when such functions accepted both expressions from mixed types (e.g. BoundingCircle(Polygon, num_seg=12)).
2020-07-07Fixed #31713 -- Added SpatialReference support to GDALRaster.transform().rico-ci
2020-05-13Renamed PROJ.4 to PROJ.Claude Paroz
2020-05-12Fixed #30678 -- Added support for GDAL 3.Claude Paroz
2020-05-12Fixed E128, E741 flake8 warnings.Mariusz Felisiak
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-04-28Changed django.forms.ValidationError imports to ↵François Freitag
django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-15Fixed #31459 -- Fixed handling invalid indentifiers in URL path conversion.Adam Johnson
This patch adjusted existing tests that used invalid identifiers.
2020-04-14Refs #31196 -- Installed postgis_raster extension on PostGIS 3+.Claude Paroz
2020-03-10Fixed #26513 -- Added tests for <Backend>GeometryColumns.geom_col_name().Hasan Ramezani
2020-03-10Fixed typos in tolerance gis_tests.Mariusz Felisiak
2020-03-07Refs #30489 -- Fixed RasterFieldTest.test_deserialize_with_pixeltype_flags() ↵Mariusz Felisiak
when run without numpy.
2020-03-07Replaced deprecated assertEquals() with assertEqual() in RasterFieldTest.Mariusz Felisiak
2020-03-05Fixed #30489 -- Fixed RasterField deserialization with pixeltype flags.Hasan Ramezani
Thanks Ivor Bosloper for the original patch.
2020-03-05Fixed GeoQuerySetTest.test_unionagg_tolerance() test on Oracle 18c.Mariusz Felisiak
2020-03-04Fixed CVE-2020-9402 -- Properly escaped tolerance parameter in GIS functions ↵Mariusz Felisiak
and aggregates on Oracle. Thanks to Norbert Szetei for the report.
2020-02-24Fixed #31292 -- Fixed django.contrib.gis.gdal.gdal_full_version() crash.Diederik van der Boor
2020-02-24Added test for django.contrib.gis.gdal.gdal_version().Diederik van der Boor
2020-02-10Fixed #30846 -- Made PostGIS backend respect Index's name argument.=Pratik Kumar
2020-02-10Fixed #31248 -- Added missing space before USING SQL on PostGIS.Hannes Ljungberg
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2020-01-21Fixed #31195 -- Relaxed GeometryDistance test for PROJ 5.2+.Sergey Fedoseev
2020-01-21Fixed #30274 -- Prevented segmentation fault on LineString iteration.Sergey Fedoseev
This reverts commit 138a78ec8cab5e1df0c8ba2a3ee895cb756ff1ae and adds a test for the regression.
2020-01-20Fixed #31142 -- Fixed MakeValid.output_field when geometry type is changed.Sergey Fedoseev
Regression in 2ef4b4795e29be8c33a6de9cc0c05b59025d13a5.