Sergey Fedoseev
03c6ad7ad4
Fixed #25664 -- Fixed `dims` for `Point`
2015-11-02 19:52:16 +01:00
Sergey Fedoseev
7127eb287f
Fixed #25659 -- Added missing support for MySQL 5.6.1 GIS functions
...
Added support for ST_Difference/ST_Intersection/ST_SymDifference.
2015-11-02 19:25:53 +01:00
Sergey Fedoseev
b78226cd3d
Fixed #25655 -- Dropped support for GEOS < 3.3
2015-11-01 20:41:52 +01:00
Sergey Fedoseev
8ad923b9d0
Fixed #25636 -- Dropped support for SpatiaLite < 3.0
2015-10-31 14:22:34 +01:00
Sergey Fedoseev
7521bb95d5
Fixed #25630 -- Replaced `AsGeoHash` with `GeoHash` in unsupported GIS functions
2015-10-29 13:34:12 +01:00
Daniel Wiesmann
48548d1a47
Refs #25588 -- Added the srid property to GDALRaster
...
Geometry objects have an srid property, so this addition makes the raster api
more similar to the geometries api.
2015-10-28 15:27:19 +01:00
Claude Paroz
b55b34129b
Moved around imports in PostGIS operations
...
Thanks Daniel Wiesmann for inspiration.
2015-10-27 20:38:21 +01:00
Tim Graham
0b5d32faca
Fixed #25611 -- Standardized descriptor signatures.
2015-10-26 11:31:16 -04:00
Sergey Fedoseev
a7bb5af50b
Fixed #25583 -- Allowed calling `transform` with `CoordTransform` even if SRID is invalid.
2015-10-24 11:39:24 -04:00
Claude Paroz
c08f85fd54
Fixed #25592 -- Fixed misnamed strictly_above PostGIS lookup
...
Fixes a regression from 2bd1bbc42
. Thanks Daniel Wiesmann for the report
and Tim Graham for the review.
2015-10-22 20:32:31 +02:00
Sergey Fedoseev
0dbe897ab5
Fixed #25585 -- Allowed setting OGRGeometry srid/srs attributes to `None`.
2015-10-21 18:54:28 -04:00
Sergey Fedoseev
a272db7008
Fixed #25580 -- Allowed `None` to be set as SRID value.
2015-10-21 09:35:17 +02:00
Tim Graham
67732a9b18
Fixed #24687 -- Added select_related() validation for nested non-relational fields.
...
The removed test was added in the original select_related() validation
patch (45d4e43d2d
), but there doesn't
seem to be any reason for it.
Thanks Claude Paroz for help and review.
2015-10-10 09:48:50 -04:00
Claude Paroz
00db71d452
Refs #25499 -- Fixed expressions in distance lookups on Oracle.
2015-10-09 14:08:42 -04:00
Claude Paroz
f233aa3ff9
Updated translation catalogs
...
Forward port of f717cb2ab4
from stable/1.9.x.
2015-10-09 18:02:47 +02:00
Daniel Wiesmann
5d8985005e
Fixed #25533 -- Changed datatype mapping for GDALRasters
2015-10-09 15:35:00 +02:00
Claude Paroz
37d06cfc46
Fixed #25499 -- Added the ability to pass an expression in distance lookups
...
Thanks Bibhas Debnath for the report and Tim Graham for the review.
2015-10-09 15:27:47 +02:00
Claude Paroz
41ed6338a4
Upgraded OpenLayers version from 2.13 to 2.13.1
...
Thanks Daniel Hahler for the initial patch.
2015-10-03 12:36:39 +02:00
Tim Graham
5d383549ee
Refs #24152 -- Removed deprecated GeoQuerySet aggregate methods.
...
Per deprecation timeline.
2015-09-23 19:31:10 -04:00
Tim Graham
fd6a299cd0
Refs #14030 -- Removed backwards compatiblity for old-style aggregates.
...
Per deprecation timeline.
2015-09-23 19:31:10 -04:00
Claude Paroz
c9a02bc8f5
Fixed #25448 -- Eased GISLookup subclassing with custom lookups
...
When someone needs to build a custom backend-specific GIS lookup, it
is much easier done if getting the spatial operator class happens in
a dedicated method (no need to rewrite the entire as_sql() method).
2015-09-23 22:01:56 +02:00
Alex Hill
134ca4d438
Fixed #24509 -- Added Expression support to SQLInsertCompiler
2015-09-22 23:35:24 +10:00
Jani Tiainen
fcf494b48f
Fixed #24688 -- Added Oracle support for new-style GIS functions.
2015-09-21 13:52:14 -04:00
Daniel Hahler
da5747f8e4
Fixed #25400 -- Fixed regression in nonexistent features on gis backends.
2015-09-17 09:30:46 -04:00
elky
86cd89095a
Fixed #25348 -- Removed unused gif/png images from contrib.admin.
2015-09-04 08:55:36 -04:00
Maxime Lorant
c92cd22d02
Refs #25345 -- Updated links to code.google.com.
2015-09-04 08:14:21 -04:00
Maxime Lorant
5153a3bfdc
Fixed #25331 -- Removed trailing blank lines in docstrings.
2015-08-31 17:37:21 -04:00
Keryn Knight
d4b10a7256
Refs #24121 -- Added a repr() to gis.GeoIP and gis.GeoIP2.
2015-08-31 16:12:40 -04:00
Jani Tiainen
1b8d7eff3b
Refs #12400 -- Added supports_geometry_field_unique_index GIS db feature.
2015-08-19 19:02:30 -04:00
Tim Graham
197b187810
Fixed #25225 -- Simplified code to remove GEOSIndexError
...
The test is a regression for refs #4740 to show that the original
fix of GEOSIndexError is no longer needed.
2015-08-18 19:10:47 -04:00
Tim Graham
b27547f9d1
Removed deprecated GeoManager from inspectdb/ogrinspect output.
...
refs ea27e26b09
2015-08-10 10:29:36 -04:00
Caio Ariede
ec9004728e
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
2015-08-07 09:33:17 -04:00
aroche
cc3d2fa731
Made the @register decorator importable from contrib.gis.admin.
2015-08-03 07:29:31 -04:00
Flavio Curella
1e2362ca0f
Refs #25184 -- Started deprecation for contrib.gis.geoip.
2015-07-31 10:09:06 -04:00
Flavio Curella
7f0953ce1f
Fixed #25184 -- Added support for MaxMind GeoLite2 database format
2015-07-31 09:45:03 -04:00
Tim Graham
77a112cb88
Fixed JavaScript "no-eval" violation.
2015-07-22 17:09:53 -04:00
Tim Graham
fbb4f0797c
Fixed JavaScript "strict" violations.
2015-07-22 17:09:53 -04:00
Claude Paroz
1da170a203
Fixed #25141 -- Diminished GDAL dependence during geojson serialization
...
Only require GDAL if contained geometries need coordinate transformations.
Thanks drepo for the report and Tim Graham for the review.
2015-07-20 20:22:29 +02:00
Tim Graham
efc144aba0
Fixed JavaScript "space-infix-ops" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
ec6563f585
Fixed JavaScript "dot-notation" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
2d6466c295
Fixed JavaScript "comma-spacing" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
b647d64408
Fixed JavaScript "indent" violations.
2015-07-18 06:57:10 -04:00
Tim Graham
8606bea3bc
Fixed JavaScript space-before-function-paren violations.
2015-07-18 06:57:10 -04:00
Tim Graham
ac6164948e
Fixed JavaScript "curly" violations.
2015-07-18 06:57:10 -04:00
Thomas Stephenson
035b0fa60d
Fixed #24716 -- Deprecated Field._get_val_from_obj()
...
The method duplicates the functionality of Field.value_from_object()
and has the additional downside of being a privately named public
API method.
2015-07-14 09:13:22 -04:00
Claude Paroz
d72f8862cb
Fixed #25072 -- Prevented GDALRaster memory to be uncollectable
...
Setting GDALRaster.bands as a cached property was creating a circular
reference with objects having __del__ methods, which means the memory
could never be freed.
Thanks Daniel Wiesmann for the report and test, and Tim Graham for the review.
2015-07-10 19:56:17 +02:00
Trey Hunner
ec4f219ecb
Fixed #22463 -- Added code style guide and JavaScript linting (EditorConfig and ESLint)
2015-06-27 16:36:26 -04:00
Tim Graham
7da3923ba0
Sorted imports in __init__.py files.
2015-06-27 11:53:33 -04:00
Greg Chapple
4a66a69239
Fixed #24887 -- Removed one-arg limit from models.aggregate
2015-06-27 11:44:33 -04:00
Claude Paroz
60879a2193
Loaded real destructor functions before garbage time
...
This is an alternative patch to the unsuccessful b43b27bcd
.
2015-06-26 13:41:48 +02:00
Claude Paroz
ad82d0003b
Revert "Reverted lazy initialization of GIS destroy functions"
...
This reverts commit b43b27bcdf
.
This commit broke tests initialization on systems without GIS libraries.
2015-06-25 23:37:36 +02:00
Claude Paroz
b43b27bcdf
Reverted lazy initialization of GIS destroy functions
...
Partial revert of 61d09e61
. At __del__ time, it might be to late to bind
those functions.
2015-06-25 21:05:48 +02:00
Tim Graham
aaacaeb096
Renamed RemovedInDjangoXYWarnings for new roadmap.
...
Forwardport of ae1d663b79
from stable/1.8.x plus more.
2015-06-24 16:08:20 -04:00
Daniel Wiesmann
c078021555
Refs #24840 -- Added GDALRaster Warp and transform methods
...
Thanks to Tim Graham for the review.
2015-06-24 18:31:22 +02:00
Daniel Wiesmann
c0fff64486
Fixed #25011 , Refs #23804 -- Added check for GDAL on RasterField initialization
2015-06-23 16:11:42 -04:00
Claude Paroz
ffdf507ec0
Added GDAL 2.0 support
2015-06-20 14:40:50 +02:00
Daniel Wiesmann
b769bbd4f6
Fixed #23804 -- Added RasterField for PostGIS.
...
Thanks to Tim Graham and Claude Paroz for the reviews and patches.
2015-06-19 14:36:43 -04:00
Tim Graham
3872a33132
Fixed #24979 -- Removed usage of inspect.getargspec().
2015-06-15 13:43:22 -04:00
Tim Graham
4b600ed244
Removed django.utils.functional.total_ordering()
2015-06-15 13:15:24 -04:00
Sylvain Fankhauser
0a89915783
Fixed #24862 -- Improved PostGIS database connection error message
...
Thanks brycenesbitt for the patch.
2015-06-05 21:58:30 +02:00
Tim Graham
0eaef8e527
Added contrib.gis.admin.__all__
2015-05-15 09:41:44 -04:00
Piotr Jakimiak
4157c502a5
Removed unnecessary arguments in .get method calls
2015-05-13 20:51:18 +02:00
Claude Paroz
d1df1fd2bb
Fixed #24207 -- Added 25D-type geometry field support to ogrinspect
...
Thanks Michael Diener for the report and sample data, and Tim Graham
for the review.
2015-05-06 20:31:36 +02:00
Tim Graham
783572abc4
Fixed #24750 -- Updated two contrib.gis comment links
2015-05-06 12:01:56 -04:00
Tim Graham
3c4fca271b
Fixed #24724 -- Fixed GIS initialization crash on Windows.
2015-05-01 15:47:34 -04:00
Claude Paroz
6aed5cfc6f
Updated translations from Transifex
...
Updates for languages: Indonesian, Belarusian, Persian, and Dutch.
Forward port of cb370f8510
from stable/1.8.x
2015-04-30 14:29:08 +02:00
Tim Graham
26996e2d55
Fixed #24499 -- Dropped support for PostGIS 1.5.
2015-04-25 12:21:16 -04:00
Claude Paroz
a37dcfd0a3
Delayed GDAL check for OSMGeoAdmin
2015-04-24 20:30:23 +02:00
Claude Paroz
b695153852
Rearranged imports in geos files
2015-04-24 20:30:23 +02:00
Claude Paroz
d9bcba9b29
Removed many HAS_GEOS conditional imports
2015-04-24 20:30:23 +02:00
Claude Paroz
61d09e61f5
Lazy loading of GEOS functions
2015-04-24 20:30:23 +02:00
Claude Paroz
6d685b1674
Fixed failures with older Spatialite versions
2015-04-23 18:54:07 +02:00
Claude Paroz
ea27e26b09
Deprecated legacy GeoManager/GeoQuerySet methods
2015-04-22 19:54:17 +02:00
Claude Paroz
71e20814fc
Added MySQL support to GIS functions
2015-04-22 19:54:17 +02:00
Claude Paroz
44bdbbc316
Added Spatialite support to GIS functions
2015-04-22 19:54:17 +02:00
Claude Paroz
d9ff5ef36d
Fixed #24214 -- Added GIS functions to replace geoqueryset's methods
...
Thanks Simon Charette and Tim Graham for the reviews.
2015-04-22 19:54:17 +02:00
Anssi Kääriäinen
fb5c7748da
Fixed #24615 -- ordering by expression not part of SELECT
...
Fixed queries where an expression was used in order_by() but the
expression wasn't in the query's select clause (for example the
expression could be masked by .values() call)
Thanks to Trac alias MattBlack85 for the report.
2015-04-16 09:40:47 +02:00
Tim Graham
c7679f1b58
Removed unused methods in GIS adapter.
2015-04-09 08:57:29 -04:00
Claude Paroz
88dfe544f6
Fetched updated contrib translations from Transifex
...
Forward port of 5483c66f85
from stable/1.8.x
2015-04-01 19:51:50 +02:00
Moritz Sichert
1f2abf784a
Fixed #24469 -- Refined escaping of Django's form elements in non-Django templates.
2015-03-27 19:46:20 -04:00
Anssi Kääriäinen
8f30556329
Renamed Field.rel attribute to remote_field
...
Field.rel is now deprecated. Rel objects have now also remote_field
attribute. This means that self == self.remote_field.remote_field.
In addition, made the Rel objects a bit more like Field objects. Still,
marked ManyToManyFields as null=True.
2015-03-25 08:16:12 -04:00
Daniel Wiesmann
0d9b018e07
Fixed gis test failures when numpy isn't installed.
...
Thanks to Bas Peschier for pointing this out. Refs #23804 .
2015-03-20 13:42:55 -04:00
Tim Graham
02d78bb1a8
Fixed build failure introduced by refs #23757 .
2015-03-18 18:46:06 -04:00
Claude Paroz
65129aac07
Fixed #23757 -- Added 3D introspection support to Spatialite backend
...
Thanks Tim Graham for the review.
2015-03-18 19:27:44 +01:00
Claude Paroz
465edf2bb2
Updated translation catalogs
...
Strings are frozen in anticipation of the Django 1.8 release.
Forward port of 1cd2584c98
from stable/1.8.x
2015-03-18 09:31:00 +01:00
Josh Smeaton
88d798d71a
Refs #24485 -- Renamed some expression types
2015-03-17 08:40:18 -04:00
Daniel Wiesmann
b9cb81570e
Made SRID a required parameter for GDALRaster instantiation; refs #23804 .
...
Earlier versions of GDAL do not allow the srid to be set to 0,
so it should be a required parameter to ensure compatibility.
2015-03-17 08:16:12 -04:00
Daniel Wiesmann
f269c1d6f6
Added write support for GDALRaster
...
- Instantiation of GDALRaster instances from dict or json data.
- Retrieve and write pixel values in GDALBand objects.
- Support for the GDALFlushCache in gdal C prototypes
- Added private flush method to GDALRaster to make sure all
data is written to files when file-based rasters are changed.
- Replaced ``ptr`` with ``_ptr`` for internal ptr variable
Refs #23804 . Thanks Claude Paroz and Tim Graham for the reviews.
2015-03-16 19:37:43 +01:00
Tim Graham
21ffbb06ec
Fixed #24480 -- Marked strings in contrib.gis templates for translation.
2015-03-14 14:46:09 -04:00
Marc Tamlyn
32d4db66b9
Update converters to take a consistent set of parameters.
...
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.
2015-02-20 11:35:52 +00:00
Tim Graham
ad0be620ae
Moved contrib.gis tests out of contrib.
2015-02-11 10:29:54 -05:00
Daniel Wiesmann
32ed4c202f
Moved numpy import helper to shortcuts
...
Numpy will be used in both the geos and gdal modules,
so the import should sit in the parent module gis.
2015-02-09 15:51:19 +01:00
Collin Anderson
db77915c9f
Fixed E265 comment style
2015-02-06 09:30:35 -05:00
Tim Graham
0ed7d15563
Sorted imports with isort; refs #23860 .
2015-02-06 08:16:28 -05:00
Claude Paroz
a0b5f15ea5
Fixed #14483 -- Allowed using subqueries with GIS lookups
2015-01-30 20:27:18 +01:00
Loic Bistuer
4c3bfe9053
Fixed #24211 -- Removed ValuesQuerySet() and ValuesListQuerySet().
...
Thanks Anssi Kääriäinen, Marc Tamlyn, and Tim Graham for the reviews.
2015-01-30 22:02:58 +07:00
Josh Smeaton
8196e4bdf4
Fixed #24154 -- Backends can now check support for expressions
2015-01-27 12:20:06 +11:00
Tim Graham
1e219ac62f
Moved imports in GIS tests to avoid failure if dependencies aren't installed.
2015-01-23 16:03:30 -05:00
Adam Taylor
039465a6a7
Fixed typos in code comments.
2015-01-20 12:18:03 -05:00
Tim Graham
2b039d966f
Removed obsolete SQL generation methods.
2015-01-18 15:58:06 -05:00
Claude Paroz
aff0e54d51
Fixed PostGIS crosses lookup and added crosses test
2015-01-17 15:44:49 +01:00
Tim Graham
9ce36512fa
Removed backwards compatibility shims for "util" modules per deprecation timeline.
...
refs #17627 .
2015-01-17 07:40:12 -05:00
Claude Paroz
428c884083
Used features in GIS sitemap view conditionals
2015-01-17 12:41:18 +01:00
Claude Paroz
53e1423eda
Updated en translation catalogs
...
Forward port of 666c12e52
from stable/1.8.x
2015-01-17 11:19:37 +01:00
Claude Paroz
d69ecf922d
Complemented test about non-supported aggregation exception
2015-01-17 10:01:55 +01:00
Sander Smits
374c2419e5
Tested that geo aggregates support slicing
...
Refs #15101 . Patch slightly reworked by Claude Paroz.
2015-01-16 20:10:25 +01:00
Claude Paroz
a79e6b6717
Fixed #24152 -- Deprecated GeoQuerySet aggregate methods
...
Thanks Josh Smeaton and Tim Graham for the reviews.
2015-01-16 19:53:02 +01:00
Claude Paroz
a34fba5e59
Simplified a bit GeoAggregate classes
...
Thanks Josh Smeaton for the review. Refs #24152 .
2015-01-16 10:40:45 +01:00
Claude Paroz
67bcae1e58
Moved check_aggregate_support to BaseSpatialOperations
2015-01-14 22:03:41 +01:00
Tim Graham
28308078f3
Fixed #22603 -- Reorganized classes in django.db.backends.
2015-01-14 14:16:20 -05:00
Claude Paroz
e084ff01f2
Fixed #24136 -- Prevented crash when convert_extent input is None
...
Thanks Max Demars for the report.
2015-01-13 17:27:11 +01:00
Collin Anderson
58833f5197
Made Django's templates get their own LANGUAGE_* variables.
...
Refs #24117
2015-01-12 10:54:59 -05:00
Claude Paroz
b86107ced1
Fixed #24114 -- Improved error message in GEOSGeometry constructor
2015-01-10 18:53:55 +01:00
Anssi Kääriäinen
0c7633178f
Fixed #24020 -- Refactored SQL compiler to use expressions
...
Refactored compiler SELECT, GROUP BY and ORDER BY generation.
While there, also refactored select_related() implementation
(get_cached_row() and get_klass_info() are now gone!).
Made get_db_converters() method work on expressions instead of
internal_type. This allows the backend converters to target
specific expressions if need be.
Added query.context, this can be used to set per-query state.
Also changed the signature of database converters. They now accept
context as an argument.
2015-01-08 14:07:54 -05:00
Daniel Pyrathon
fb48eb0581
Fixed #12663 -- Formalized the Model._meta API for retrieving fields.
...
Thanks to Russell Keith-Magee for mentoring this Google Summer of
Code 2014 project and everyone else who helped with the patch!
2015-01-06 19:25:12 -05:00
Andriy Sokolovskiy
839f431ef5
Fixed #24064 -- Prevented database access at compile time in spatialite models.
2015-01-02 12:04:57 -05:00
Daniel Pyrathon
8958170755
Fixed #9104 -- Moved FieldDoesNotExist to core.exceptions
2015-01-02 10:46:04 -05:00
Claude Paroz
51890ce889
Applied ignore_warnings to Django tests
2014-12-30 18:16:25 +01:00
Aymeric Augustin
fdbfc98003
Deprecated some arguments of django.shortcuts.render(_to_response).
...
dictionary and context_instance and superseded by context.
Refactored tests that relied context_instance with more modern idioms.
2014-12-28 17:02:29 +01:00
Claude Paroz
234a2e0b6b
Fixed #23866 -- Harmonized refs to Django documentation from code
2014-12-25 13:53:13 +01:00
Claude Paroz
6e08bde8c4
Added RasterSource/GDALBand GDAL objects
...
Based on Daniel Wiesmann's raster branch. Thanks Daniel Wiesmann
and Tim Graham for the reviews. Refs #23804 .
2014-12-23 16:36:18 +01:00
Claude Paroz
9c1f501d7b
Fixed #24014 -- Unified OGRException and GDALException
...
Thanks Tim Graham for the review.
2014-12-18 11:28:17 +01:00
Tim Graham
f3eed95175
Removed netCDF from GIS driver testing; refs #23804 .
...
It may not be installed on all systems.
2014-12-17 09:30:59 -05:00
Michael Hall
895dc880eb
Fixed #23812 -- Changed django.utils.six.moves.xrange imports to range
2014-12-13 12:45:58 -05:00
Claude Paroz
a5499b0916
Removed empty gis models.py
...
Refs #22645 .
2014-12-13 16:23:49 +01:00
Claude Paroz
df30ae07fc
Fixed postgis test database initialization
...
Refs #20968 . Allow querying template_postgis presence without
existing test database.
Thanks Tim Graham for the review.
2014-12-12 20:08:07 +01:00
Claude Paroz
bac7664f27
Ran 'CREATE EXTENSION postgis' during prepare_database hook
...
DatabaseWrapper.prepare_database has been introduced in 307de67073
.
2014-12-08 22:22:53 +01:00
Claude Paroz
8f97413fae
Fixed #20968 -- Checked Spatialite metadata before migrations
...
Thanks Kenial S. Lee for the initial patch and Tim Graham for
the review.
2014-12-08 22:22:53 +01:00
Jon Dufresne
4468c08d70
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
2014-12-08 07:58:23 -05:00
Berker Peksag
560b4207b1
Removed redundant numbered parameters from str.format().
...
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
2014-12-03 14:27:38 -05:00
Claude Paroz
00fa1474d7
Added raster support for GDAL Driver class
...
Based on Daniel Wiesmann's work. Refs #23804 .
2014-12-02 19:56:50 +01:00
Daniel Wiesmann
ac51496ceb
Added cpl error codes to errcheck functions
...
GDAL raster methods return different error codes from the vector
API.
2014-12-02 19:56:50 +01:00
Daniel Wiesmann
4df3a3e0e9
Added GDAL prototypes for raster support
...
Refs #23804 .
2014-12-02 19:56:35 +01:00
wrwrwr
9136ceb6fb
Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933 .
2014-12-01 11:34:15 -05:00
Anssi Kääriäinen
cbb5cdd155
Fixed #23867 -- removed DateQuerySet hacks
...
The .dates() queries were implemented by using custom Query, QuerySet,
and Compiler classes. Instead implement them by using expressions and
database converters APIs.
2014-11-26 17:49:25 -05:00
Carl Meyer
d2bcb05980
Fixed #23873 -- Improved GIS error message when GEOS is not installed.
...
Thanks Claude for writing the patch.
2014-11-19 19:23:13 -07:00
Carl Meyer
4932a7b8e0
Fixed GIS tests to again skip without error when GEOS is not installed.
2014-11-19 14:29:05 -07:00
Aymeric Augustin
45db7f7db8
Replaced caching of a property with @cached_property.
2014-11-19 21:53:24 +01:00
Carl Meyer
0eba8bd8f6
Fixed GeoSQLCompiler to pass itself correctly to column as_sql.
2014-11-19 08:33:38 -07:00
Carl Meyer
84d88f5cbe
Removed a deprecated use of SQLCompiler as quote_name in GIS.
2014-11-19 08:03:48 -07:00
Claude Paroz
fc36437434
Added assertion error message for test_make_line
...
Refs #23842 . Thanks Thomas Chaumeny for the suggestion.
2014-11-17 14:17:08 +01:00
Josh Smeaton
f61256da3a
Renamed qn to compiler
2014-11-16 13:19:34 +01:00
Claude Paroz
35dac5070b
Added a new GeoJSON serialization format for GeoDjango
...
Thanks Reinout van Rees for the review.
2014-11-15 18:07:18 +01:00
Josh Smeaton
f59fd15c49
Fixed #14030 -- Allowed annotations to accept all expressions
2014-11-15 14:00:43 +00:00
Veres Lajos
a71a2ea756
Fixed typos using https://github.com/vlajos/misspell_fixer
2014-11-03 20:59:30 -05:00
Berker Peksag
f7969b0920
Fixed #23620 -- Used more specific assertions in the Django test suite.
2014-11-03 11:56:37 -05:00
Tim Graham
d6d55368d4
Fixed #23731 -- Fixed migrations crash when adding blank GeometryFields on PostGIS.
...
Thanks raratiru for the report and Claude Paroz for review.
2014-10-31 18:37:52 -04:00
Tim Graham
e548d08f24
Renamed SpatiaLite feature flag introduced in refs #23152 .
...
Thanks Doug Goldstein for the suggestion.
2014-10-31 15:55:45 -04:00
Tim Graham
57e40551e4
Fixed #23152 -- Added support for transactional Spatialite metadata initialization.
...
Thanks Doug Goldstein for the initial patch.
2014-10-30 13:52:42 -04:00
Tim Graham
03bd79ed21
Fixed #23719 -- Fixed MySQL 5.6 crash with GeometryFields in migrations.
2014-10-29 08:21:24 -04:00
Claude Paroz
d49183e4be
Removed unused import
2014-10-24 17:07:50 +02:00
Claude Paroz
1bdf1cb1c0
Updated gis_migrations tests
2014-10-24 15:10:39 +02:00
Claude Paroz
bbc3505ef8
Removed unneeded override_system_checks
...
Refs #23685 .
2014-10-21 20:54:32 +02:00
Claude Paroz
2e5b2c612e
Fixed #23579 -- Changed GEOSGeometry.__str__ to include the SRID
...
Thanks Tim Graham for the review.
2014-10-16 09:30:37 +02:00
Claude Paroz
bc46e4d4fa
Fixed two more tuple/int comparisons in gis tests
...
Refs 63ff417746
.
2014-10-11 17:14:29 +02:00
Claude Paroz
63ff417746
Fixed a tuple/int comparison in spatialite backend
...
On Python 3, comparing tuple with int raises a TypeError.
2014-10-11 16:56:48 +02:00
Claude Paroz
65c1a37490
Converted GIS lookups for Oracle
2014-10-09 21:38:50 +02:00
Claude Paroz
2bd1bbc424
Converted GIS lookups to use the new Lookup API
...
Thanks Tim Graham, Anssi Kääriäinen and Marc Tamlyn for the
reviews.
2014-10-09 21:38:50 +02:00
Tim Graham
0af4ddabf4
Fixed typos in comments.
2014-10-08 15:59:19 -04:00
Claude Paroz
3339605821
Added a dumpdata/loaddata test for geographic content
2014-10-01 21:31:35 +02:00
Claude Paroz
d6a15026c4
Updated translations from Transifex
...
Forward port of e9c8aefbce
from stable/1.7.x
2014-09-30 20:55:50 +02:00
Tim Graham
df578bf175
Added ordering to fix non-deterministic relatedapp test.
2014-09-29 08:53:44 -04:00
Thomas Chaumeny
b2aad7b836
Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.
...
Thanks Collin Anderson for the review.
2014-09-29 00:01:38 +07:00
Claude Paroz
d1ca70110f
Factorized schema_editor() at BaseDatabaseWrapper level
2014-09-26 08:50:16 +02:00
Tim Graham
a8f07530a7
Fixed #23537 -- Added Oracle GIS SchemaEditor.
...
Thanks Shai Berger for review.
2014-09-25 20:16:54 -04:00
Tim Graham
74e7f91e6d
Fixed #23538 -- Added SchemaEditor for MySQL GIS.
...
Thanks Claude Paroz for suggestions and review.
2014-09-25 13:53:44 -04:00
Thomas Chaumeny
9f576dd54f
Added tolerance in equality testing to avoid random build failure
2014-09-25 07:19:23 -04:00
Thomas Chaumeny
ac2e7f08d8
Fixed use of assert* functions in some gis tests
2014-09-25 07:19:23 -04:00
Tim Graham
a1709220d5
Added an Oracle workaround for a geogapp test; refs #23504 .
2014-09-23 20:47:08 -04:00
Tim Graham
729cd6a11a
Skipped a broken geoapp test on Oracle; refs #23504 .
2014-09-23 19:51:14 -04:00
Claude Paroz
2a1bdf5ced
Called table_names instead of get_table_list in migrations
2014-09-23 20:13:31 +02:00
Marc Tamlyn
c6fd1e904c
Fixed Oracle GIS gml() test failure introduced by e910340; refs #18757 .
2014-09-22 13:10:03 +01:00
Loic Bistuer
c9a53035d6
Generate GeoManager from GeoQuerySet. Refs #20625 .
...
This cleanup lays the groundwork for #23533 and also addresses
the issue that GeoManager.get_queryset() failed to pass the
database router hints to the QuerySet constructor.
Thanks Anssi Kääriäinen for the review.
2014-09-22 17:18:08 +07:00
Tim Graham
828edc5ba9
Skipped a broken GIS test on Oracle; refs #23504 .
2014-09-19 15:03:55 -04:00
Tim Graham
7add30df01
Made a GIS test work on Oracle.
...
Thanks Josh Smeaton and Claude Paroz for advice.
2014-09-19 14:38:58 -04:00
Tim Graham
185ab9ffef
Fixed Oracle GIS failures introduced by e9103402c0; refs #18757 .
...
Thanks Marc Tamlyn for the patch.
2014-09-19 07:51:42 -04:00
Claude Paroz
abc11b0a33
Fixed #23514 -- Prevented queries in PostGISOperations init
...
Thanks Mattia Procopio for the report.
2014-09-18 20:00:35 +02:00
Claude Paroz
4dcfacb5b9
Fixed string length check in LayerMapping
2014-09-18 18:56:31 +02:00
Tim Graham
7fc13178d6
Removed unnecessary order_by() from a GIS test that crashed Oracle.
...
Oracle cannot order_by() a TextField; refs #23504 .
2014-09-18 12:42:55 -04:00
Tim Graham
8facb02faf
Improved GIS migration test cleanup; refs #23504 .
2014-09-18 09:00:55 -04:00
Tim Graham
33e817a6d8
Added feature flag for geometry_field_introspection; refs #22632 and #23504 .
2014-09-18 07:32:51 -04:00
Tim Graham
6c1a0581ab
Added a feature flag for add_srs_entry support; refs #22632 and #23504 .
2014-09-18 07:28:05 -04:00
Tim Graham
d8ee13789b
Avoided a crash on an Oracle GIS test; refs #23504 .
2014-09-17 17:35:11 -04:00
Tim Graham
7fce7f51ef
Skipped some broken tests on Oracle GIS; refs #23504 .
2014-09-17 15:33:50 -04:00
Claude Paroz
8f334e55be
Fixed #13843 -- Prevented AttributeError during geometry objects deletion
2014-09-12 20:45:59 +02:00
Claude Paroz
b011afe6c8
Prevented Attribute error in GDAL objects deletion
2014-09-12 20:31:22 +02:00
Flavio Curella
ce078ef976
Fixed #19139 -- Made OpenLayersWidget follow GeoModelAdmin's modifiable attribute
...
Thanks Tim Graham for the review.
2014-09-12 08:48:38 +02:00
Tim Graham
9a5fe5b29f
Added ordering to prevent non-deterministic test failure; refs #23099 .
2014-09-10 13:30:04 -04:00
Tim Graham
1101467ce0
Limited lines to 119 characters in django/
...
refs #23395 .
2014-09-05 09:22:16 -04:00
Marc Tamlyn
e9103402c0
Fixed #18757 , #14462 , #21565 -- Reworked database-python type conversions
...
Complete rework of translating data values from database
Deprecation of SubfieldBase, removal of resolve_columns and
convert_values in favour of a more general converter based approach and
public API Field.from_db_value(). Now works seamlessly with aggregation,
.values() and raw queries.
Thanks to akaariai in particular for extensive advice and inspiration,
also to shaib, manfre and timograham for their reviews.
2014-09-03 20:36:03 +01:00
Tim Graham
135a58f9dc
Fixed a non-deterministic test; refs #23099 .
2014-08-29 20:40:53 -04:00
Simon Charette
19e6397f82
Removed an unused import.
2014-08-27 17:32:01 -04:00
Claude Paroz
60428ed5db
Removed some more hardcoded backends in GIS tests
...
Refs #22632 . Thanks Tim Graham for the review.
2014-08-26 20:08:00 +02:00
Claude Paroz
ba1d707b0f
Replaced no_mysql by connection features
...
Refs #22632 . Thanks Tim Graham for the review.
2014-08-23 15:44:34 +02:00
Claude Paroz
a7d964ab87
Replaced no_spatialite by connection features
...
Refs #22632 . Thanks Tim Graham for the review.
2014-08-23 15:41:13 +02:00
Claude Paroz
46c7707e50
Replaced HAS_SPATIALREFSYS by a database feature
2014-08-23 15:41:13 +02:00
Claude Paroz
efa67b897b
Fetched translations from Transifex
...
Forward port of 49280a73ea
from stable/1.7.x
2014-08-20 10:22:41 +02:00
Tim Graham
ad9ba9d27b
Removed unused imports.
2014-08-19 12:40:49 -04:00
Claude Paroz
6295ea0027
Replaced HAS_SPATIAL_DB by testing database feature
...
Refs #22632 . This should be the base for using more database
features to exclude specific backends in GIS tests.
Thanks Tim Graham for the review.
2014-08-19 17:57:01 +02:00
Claude Paroz
dfde0b3b06
Stopped skipping GIS forms tests on MySQL
2014-08-16 13:32:33 +02:00
Gabriel Muñumel
deed00c0d8
Fixed #23162 -- Renamed forms.Field._has_changed() to has_changed().
2014-08-15 08:14:45 -04:00
Claude Paroz
12adcd505e
Complemented 1.6 release notes for 457c16d0d6
...
And accessorily added missing bits fixing #23293 .
Forward port of 2cbafd814
from stable/1.7.x
2014-08-15 10:14:55 +02:00
Trey Hunner
6868643063
Added newlines to the ends of CSS, HTML, and JavaScript files missing them.
2014-08-12 19:22:09 -04:00
Florian Apolloner
f915d39afe
Fixed remove_field for spatialite schema changes.
2014-08-10 16:24:19 +02:00
Tim Graham
09c0fa2c53
Fixed a non-deterministic test; refs #23099 .
2014-08-08 15:42:48 -04:00
Tim Graham
f53b1c779b
Fixed #23099 -- Removed usage of deprecated initial data in Django's test suite.
...
Thanks Claude Paroz for assistance with debugging the tests.
2014-08-08 14:01:59 -04:00
Andrew Godwin
5f6558f82f
Stop errors on older Spatialite versions that miss some tables
2014-08-05 21:09:37 +10:00
Andrew Godwin
d4f62a7ae7
Fixed #23161 : Drop PostGIS geography fields correctly
2014-08-04 14:06:33 +10:00
Andrew Godwin
b508c1c317
Fixed #23153 : Properly recreate spatialite triggers on alter table
2014-08-04 13:15:32 +10:00
Tim Graham
a9bdce7e55
Fixed #23108 -- Dropped support for PostgreSQL 8.4 & PostGIS 1.3, 1.4.
...
Thanks Claude Paroz for the review.
2014-08-01 10:26:00 -04:00
Mitar
1ed6fbcf44
Fixed #21940 -- Added kwargs to contribute_to_class() of model fields..
...
Thanks Kronuz for the suggestion.
2014-08-01 07:41:28 -04:00
Claude Paroz
8c30df15f1
Fixed #23030 -- Properly handled geometry columns metadata during migrations
...
Thanks kunitoki for the report and initial patches.
2014-07-23 12:10:23 +02:00
Claude Paroz
19d8f2ebf4
Adapted SpatialiteGeometryColumns model to spatialite >= 4
...
See also:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0
2014-07-23 12:10:23 +02:00
Claude Paroz
3f1412ff7b
Fixed #23064 -- Added lib detection support for GDAL 1.10/1.11
...
Note that GDAL 1.11 is not yet officially supported, until someone
has tested it and can confirm it has no issues with Django.
2014-07-21 19:05:19 +02:00
Damien Nozay
70c54a3694
Fixed #23028 : Added unique_togther support to inspectdb.
2014-07-18 16:10:59 +00:00
Alex Gaynor
985ad99a71
Fixed a flake8 warning
2014-06-29 11:15:50 -07:00
Claude Paroz
f12b68af71
Fixed #16184 -- Fixed multiple PostGIS types introspection
...
Thanks radim.blazek@gmail.com for the report and initial patch.
Testing is tricky, as the failure condition is a bit of an edge
case. inspectapp.InspectDbTests should at least guarantee non
regression.
2014-06-28 16:18:24 +02:00
Claude Paroz
bc19ff6479
Fixed #22793 -- Updated import location for GeometryColumns in tests
...
The old location was removed in cebd8753c6
.
Thanks Aymeric Augustin for the report.
2014-06-21 14:10:07 +02:00
Tim Graham
95cc0e15b4
Fixed #22819 -- Renamed output_type -> output_field in query expression API.
...
Thanks jorgecarleitao for the suggestion.
2014-06-17 11:57:16 -04:00
Claude Paroz
f17b24e407
Converted remaining management commands to argparse
2014-06-14 13:43:44 +02:00
Tim Graham
bc0aba7786
Dropped support for SpatiaLite < 2.4.
2014-06-09 17:53:25 -04:00
Tim Graham
6b97ae3521
Added rollback emulation to spatialite backend; refs #22487 .
2014-06-09 14:14:58 -04:00
Aymeric Augustin
6e5651e514
Gave unique names to SpatialRefSysModels.
...
Prevented clashes in the app registry.
Fixed #22790 . Thanks timo for the report.
2014-06-08 21:15:47 +02:00
Tim Graham
250e2b422b
Silenced some GIS deprecation warnings; refs #22384 .
2014-06-07 19:35:57 -04:00
Egor Semiguzov
c5226eb72a
Removed erroneous trailing comma in OLMapWidget.js.
2014-06-03 07:44:06 -04:00
Fabio Rueda
f384b638e2
Fixed syntax error in ogrinspect.py management command.
2014-06-01 13:19:42 -04:00
Aymeric Augustin
2a5c750ad1
Merge pull request #2726 from gchp/ticket-20550
...
Fixed #20550 -- Added ability to preserve test db between runs
2014-06-01 17:26:56 +02:00
Alex Gaynor
1dcc603eff
Fixed several typos in Django
2014-05-28 17:39:14 -07:00
Greg Chapple
b7aa7c4ab4
Fixed #20550 -- Added ability to preserve test db between runs
2014-05-28 16:22:46 +01:00
Claude Paroz
e97b7a2677
Fixed #22714 -- Made contrib.gis use six-provided memoryview type
...
Thanks Tim Graham for the report.
2014-05-28 09:24:08 +02:00
Claude Paroz
c5d73b687d
Removed comment forgotten in 3caf957ed5
2014-05-24 16:22:08 +02:00
Claude Paroz
3caf957ed5
Removed GeoWhereNode, obsoleted by GISLookup
2014-05-24 16:18:45 +02:00
Claude Paroz
1a69d276bd
Updated translation catalogs
2014-05-19 15:17:35 +02:00
Baptiste Mispelon
a0d5970d44
Fixed contrib.gis tests breaking in some edge cases.
...
The tests would error out with an ImproperlyConfigured error
if the user had psycopg installed but not geos.
Thanks to mcgohier for the report.
2014-05-17 15:01:06 +02:00
Florian Apolloner
9a4bf72fbd
Fixed jenkins breakage, apparently migrations need a models module.
...
Workaround for now, Andrew will look into it.
2014-05-17 10:15:58 +02:00
Marc Tamlyn
cebd8753c6
Remove old compatibility shims from d.c.gis.
2014-05-16 12:11:35 +02:00
Claude Paroz
e520a73eee
Harmonized some PEP 0263 coding preambles
2014-05-15 19:58:41 +02:00
Alex Gaynor
2bcb8bfc8d
Fix many many typos in comments throughout the codebase
2014-04-26 10:18:45 -07:00
Claude Paroz
2ffa6ca73a
Added Spatialite support to the new migration framework
...
Refs #22451 .
2014-04-23 13:46:11 +02:00
Claude Paroz
48c4ea4146
Used migration framework in GIS test tearDown
2014-04-23 13:45:41 +02:00
Claude Paroz
ab90c4707b
Fixed table cleanup in GIS migration tests
2014-04-21 23:08:00 +02:00
Claude Paroz
1667e736a7
Fixed PostGIS remove_field implementation
...
Fixed bad code introduced in 2f9d1576e8
.
2014-04-21 22:42:11 +02:00
Claude Paroz
2f9d1576e8
Fixed removal of GIS column in PostGIS 1.x migration
...
Refs #22481 .
2014-04-21 21:17:14 +02:00
Claude Paroz
fb09a489ca
Fixed adding new GIS column in PostGIS 1.x migration
...
Refs #22451 .
2014-04-21 20:58:09 +02:00
Aymeric Augustin
428c0bbe1b
Appeased flake8 2.1.0.
2014-04-21 12:27:34 +02:00
Claude Paroz
c082f3c74c
Fixed #22456 -- Replaced 900913 EPSG code by 3857 in some tests
...
3857 is now the official EPSG code for the Google spherical mercator
projection and some recent versions of GDAL do not recognize 900913
any longer.
Thanks Tim Graham for the report and initial patch.
2014-04-17 21:18:07 +02:00
Aymeric Augustin
2791fbf59d
Used more specific test assertions.
2014-04-09 22:20:22 +02:00
Anubhav Joshi
cd914e31c9
Fixed #21977 -- Deprecated SimpleTestCase.urls
2014-04-06 17:33:43 -04:00
Tim Graham
d73d0e071c
Fixed #22218 -- Deprecated django.conf.urls.patterns.
...
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-04-03 07:28:10 -04:00
Alex Gaynor
778ce245dd
Corrected many style guide violations that the newest version of flake8 catches
2014-03-30 12:11:05 -07:00