Justin Bronn
b0291347db
gis: Merged revisions 7355-7403 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-07 20:29:36 +00:00
Justin Bronn
147bd6ac36
gis: geos: GEOSGeometry
objects may now be pickled; added the clone
keyword to transform
which returns a cloned transformed geometry rather than transforming in-place.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-07 20:15:04 +00:00
Justin Bronn
4a636ec3a3
gis: GoogleMap
: The Google Maps JavaScript API is now used for automatic zoom level determination; the center_lat
and center_lon
keywords have been removed.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-04 12:57:19 +00:00
Justin Bronn
17baee8789
gis: Added the add_postgis_srs
utility to ease the creation of spatial_ref_sys
table entries.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-04 12:32:58 +00:00
Justin Bronn
282bccfbc1
gis: Fixed geographic models produced by inspectdb
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-01 22:40:32 +00:00
Jeremy Dunck
f273b371a4
[gis] Tweaked layermapping to note updates to unique'd models.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-30 21:45:39 +00:00
Justin Bronn
2efc34dc5e
gis: Merged revisions 7280-7353 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-23 17:18:58 +00:00
Justin Bronn
b0a895f9e8
gis: Merged revisions 7181-7277 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18 04:05:09 +00:00
Justin Bronn
34df2c0da9
gis: LayerMapping
: OGR string fields may now be coerced into Django IntegerField
; added support for more Django field types.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-10 21:13:52 +00:00
Justin Bronn
ae0e583510
gis: Fixed #6746 by marking safe GoogleMap
internal XHTML/JavaScript; added support for GPolygon
and GPolyline
overlays via the polygons
and polylines
keywords; the zoom
keyword may now take a geometry for automatic zoom level determination; *.pyc files are now ignored in django.contrib.gis
modules.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-10 20:45:51 +00:00
Justin Bronn
22e016ff6c
gis: Merged revisions 7105-7168 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-28 21:24:51 +00:00
Justin Bronn
0b52413cc9
gis: Added geographic introspection capabilities for PostGIS and MySQL; fixed typo in GeoQuerySet
(Thanks seanl).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-28 21:06:27 +00:00
Justin Bronn
6fef560d97
gis: Fixed bug in GeoQuerySet.distance
caused by SQL substitution that shouldn't be done there (thanks robotika); an exception is no longer raised when trying to import the spatial metadata models on backends that do not support them (e.g., MySQL).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-20 21:15:43 +00:00
Justin Bronn
bdab7abe2c
gis: gdal: Fixed new _version_info
definition for win32 platforms; made GeoJSON regex more strict.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-18 03:03:25 +00:00
Justin Bronn
ccf9baca86
gis: geos: Added GeoJSON input/output support for GEOSGeometry
(requires GDAL 1.5+); Polygons may now be instantiated with tuples of coordinates instead of only LinearRing
instances; added extent
property; added coords
property alias for tuple
(and added tuple
for GeometryCollection
); made small optimizations to KML and coordinate array generators. Small GDAL protochange that didn't make last commit: get_envelope
is now generated w/the previously unused env_func
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 16:33:16 +00:00
Justin Bronn
6a692e8031
gis: gdal: Fixed GDAL version string parsing for development versions; GEOJSON constant now in root module; added extent
property and coords
property alias for tuple
; added x,y,z properties for OGR LineStrings.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 16:05:44 +00:00
Justin Bronn
d88c9ac644
gis: gdal: Added support for GeoJSON input/output in OGRGeometry
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-13 00:38:36 +00:00
Justin Bronn
21a019681c
gis: Fixed 6414, and applied DRY to spatial backend internals. Changes include:
...
(1) Support for distance calculations on geometry fields with geodetic coordinate systems (e.g., WGS84, the default).
(2) The `get_db_prep_save` and `get_db_prep_lookup` have been moved from the spatial backends to common implementations in `GeometryField`.
(3) Simplified SQL construction for `GeoQuerySet` methods.
(4) `SpatialBackend` now contains all spatial backend dependent settings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-11 02:25:01 +00:00
Justin Bronn
d06e33a54d
gis: Merged revisions 7044-7102 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 20:57:56 +00:00
Justin Bronn
40e0a964ea
gis: gdal: SpatialReference
objects may now be constructed with PROJ.4 strings without specifying a keyword.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 19:10:00 +00:00
Justin Bronn
c703452841
gis: geos: Fixed bug in transform
where coordinate sequence pointer was not after transformation (and added tests). Thanks robotika.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 17:36:43 +00:00
Justin Bronn
ead0dad735
gis: geos: Fixed declaration of geos_version
to explicitly set restype to c_char_p
due to incompatibilities with 64-bit platforms. Thanks jlivni.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 14:42:37 +00:00
Justin Bronn
06f2ddeb51
gis: Fixed #6440 . Removed degree conversion from Distance
-- should not have been placed here because it is a spherical conversion factor in radians (not meters).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 16:31:41 +00:00
Justin Bronn
00292ad02e
gis: Merged revisions 6990-7043 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 15:35:46 +00:00
Justin Bronn
398eca3fb2
gis: Added the extent
method to GeoQuerySet
; moved various spatial-backend settings into the SpatialBackend
container class.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-22 01:22:27 +00:00
Justin Bronn
feebe39429
gis: Fixed #6289 (added extra_context
keyword to GoogleMap
). Thanks omat & arien.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7027 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-18 16:49:51 +00:00
Justin Bronn
8da13e60c2
gis: Fixed #6357 , and added a validator to WKTField
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-18 16:38:51 +00:00
Justin Bronn
3dd6b422ca
gis: LayerMapping
: Fixed bug that would occur when mapping OFTReal
fields with precision > 0 to an IntegerField
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7024 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-18 15:52:37 +00:00
Justin Bronn
730b1f6d7a
gis: LayerMapping
: Added the fid_range
and step
keywords to save()
; moved the silent
, strict
, and pipe
(now stream
) keywords from __init__()
to save()
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7013 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-10 17:11:02 +00:00
Justin Bronn
5655cf1b2a
gis: gdal: GeometryCollection.add()
now accepts other collections, and associated tests.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 19:42:23 +00:00
Justin Bronn
298074d5b8
gis: gdal: Fixed Driver and DataSource bug reported by David Hancock in django-users and reproduced by tlp.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@7003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 22:20:39 +00:00
Justin Bronn
1d5e689af2
gis: gdal: Now supports the official GDAL 1.5 binaries for Windows, greatly simplifying installation for that platform; implemented STDCALL aliases for OSR routines that have inconsistent calling convention via the std_call
function; removed unused prototypes module code.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-04 06:41:13 +00:00
Justin Bronn
b11172e4e7
gis: LayerMapping
: Improved the internals (i.e., checking every feature in OGR Layer is no longer needed, removed unnecessary class constants); added real support ForeignKey
model fields; added field_types
property to Layer
; fixed county shapefile because of Harris County, Georgia.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-03 19:02:18 +00:00
Justin Bronn
7e322b5908
gis: Merged revisions 6920-6989 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 16:57:53 +00:00
Justin Bronn
ef0f46f1d0
gis: LayerMapping
: Added the unique
keyword parameter and tests for the transform
keyword and geometry collection conversion.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-29 07:48:08 +00:00
Justin Bronn
387e6cca92
gis: lowered test transformation precision due to variations in updated PROJ and GDAL versions (i.e., tests run for GDAL 1.5 and PROJ 4.6.0).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6979 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-27 21:44:33 +00:00
Justin Bronn
31111857cb
gis: geos: all pointer access is now done via the ptr
property to prevent calling GEOS routines on NULL pointers; added the geos_version_info
routine; added __copy__
and __deepcopy__
interfaces that return clones (for compatibility w/queryset-refactor); __eq__
may now compare WKT strings (for compatibility w/newforms-admin); made tests compatible w/GEOS 3.0.0 release.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-25 21:27:56 +00:00
Justin Bronn
24617b1667
gis: Fixed #6246 (Thanks jos3ph); removed unnecessary commented debugging code.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-21 21:36:54 +00:00
Justin Bronn
34560a01da
gis: Merged revisions 6672,6686-6688,6690,6693,6707-6708,6726,6730,6753,6755-6762,6764,6776-6777,6779,6782-6919 via svnmerge from trunk; reverted oracle backend base.py
due to ikelly's patch in r6905.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-15 01:38:43 +00:00
Justin Bronn
5799c2e048
gis: Applied DRY to spatial SQL generation in anticipation of queryset-refactor; fixed gml
function for PostGIS 1.3.2 parameter ordering.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-15 00:30:48 +00:00
Justin Bronn
9270d47d80
gis: Fixed #6196 in GeoIP refactor. Added unit tests, improved path setup, and made mostly compatible w/existing MaxMind Python API.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-14 21:42:37 +00:00
Justin Bronn
40a7292a8d
gis: gdal: Fixed bug in the property so that no exception is raised when the spatial reference is undefined (Thanks Joe).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-13 03:08:06 +00:00
Justin Bronn
6349985e70
gis: gdal: removed errcheck_flag, not needed after all (I misread the C header file).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6914 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11 16:18:48 +00:00
Justin Bronn
fae19f8ced
gis: Added distance querying capabilites via the distance
manager method and the distance_[gt|gte|lt|lte]
lookup types (works for both PostGIS and Oracle); improved Oracle query construction and fixed transform
issues.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6886 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04 17:44:37 +00:00
Justin Bronn
cc0cc9fa08
gis: geos: Added support for EWKT (SRID only), and a transform
routine that uses the GDAL facilities to transform the GEOS geometry.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04 15:09:06 +00:00
Justin Bronn
d2fd4f0dc6
gis: added additional units (including WKT aliases) and the unit_attname
class method to Distance
.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-03 18:15:57 +00:00
Justin Bronn
1c45c6f753
gis: gdal: Added GDAL_LIBRARY_PATH
setting; added tests and extended support geometry transform; added the units
method for spatial reference objects.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-03 08:16:09 +00:00
Justin Bronn
facc725d21
gis: renamed GEOSGeometryIndexError
to GEOSIndexError
; added GEOS_LIBRARY_PATH settings option.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-03 06:27:16 +00:00
Jeremy Dunck
23384af79b
gis: Merged 6672-6783 vis svnmerge from trunk
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-01 22:12:44 +00:00
Justin Bronn
85ce45bc44
gis: Fixed DecimalField verification in LayerMapping.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@6708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-20 15:13:55 +00:00