Jeremy Dunck
8f644283ee
gis: Added KML sitemap support.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-23 08:47:40 +00:00
Justin Bronn
0be7b58460
gis: got rid of CamelCase module names and made minor improvements in gdal; made srid a mutable property in geos geometries
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22 05:13:22 +00:00
Justin Bronn
265bb46dd9
gis: made gdal srs tests less brittle for platforms with different proj.4 versions
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-22 04:54:29 +00:00
Justin Bronn
e922445186
gis: big changes within in GEOS internals:
...
(1) All Geometry types and Collections now have their own constructor (e.g., Polygon(LinearRing(..)), MultiPoint(Point(..), Point(..)))
(2) Memory management improved, laying the foundation for fully mutable geometries.
(3) Added set-like operations (|, &, -, ^)
(4) Added & improved tests.
(5) docstring changes
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-21 17:39:09 +00:00
Justin Bronn
8162e3543c
gis: fixed OGR bug and removed unnecessary imports from GeoMixin.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12 12:26:40 +00:00
Justin Bronn
abccccc095
gis: lazy-geometry support has landed -- thanks Robert Coup!
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12 06:47:40 +00:00
Justin Bronn
5292d44806
gis: the geometry objects and collections were placed into these modules, missing in the last commit.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5656 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12 06:10:14 +00:00
Justin Bronn
382632a26e
gis: no more camelcase module names; GEOSGeometry now autodetects WKT or HEXEWKB (hex).
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5655 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-12 06:05:42 +00:00
Justin Bronn
342dbc6738
gis: GEOS library has been re-factored to, changes include:
...
(1) allow write-access to Geometries (for future lazy-geometries)
(2) Point, LineString, LinearRing have their own constructors (e.g., p = Point(5, 17))
(3) improved ctypes memory management (as part of writability enhancements)
(4) improved tests and comments
(5) numpy support
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-09 06:16:06 +00:00
Jeremy Dunck
c31d20858d
gis: Added django.contrib.gis.measure, closing #4797 . Thanks, Robert.
...
Also removed dead test_with_swig suite and re-worked django.contrib.gis.tests.__init__ to drive tests a little more easily.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-08 08:56:29 +00:00
Jeremy Dunck
d92f68f14b
gis LayerMapping now supports loading while mapping ForeignKey to other tables.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-08 07:07:36 +00:00
Jeremy Dunck
f7a23a103a
gis: Switched back to non-generator __getitem__, since even specific-item index returned generator.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-08 07:06:53 +00:00
Justin Bronn
5f7c6f758b
gis: made sure to reset the Layer before iteration; LayerMapping now supports specifying a source SRS.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04 15:27:01 +00:00
Justin Bronn
f34300e57a
gis: fixed mistake where no srs is returned at all from Layer
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04 08:30:03 +00:00
Jeremy Dunck
a925a3afe2
gis: Added utils.inspect_data.sample, which allows a shows a convenient bit of the supplied data_source
...
Added support for feature slicing and negative indices.
Handled missing Feature field values.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04 06:55:32 +00:00
Jeremy Dunck
a183dd8225
gis: Return field value from Feature.get based on either field name or the field itself.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5604 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04 06:52:40 +00:00
Justin Bronn
44069054d7
gis: fixed ticket 4740 with the addition of new exceptions; updated tests for prev change in Field; added get() method to Feature; fixed bug in Layer for geometries w/o srs; SpatialRefSys now uses ellipsoid
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-02 23:47:40 +00:00
Jeremy Dunck
858ae54a11
gis: Improved LayerMapping error message when model field doesn't match feature geom type.
...
Tweaked Field.__str__.
Fixed geom_name aliasing bug.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-02 15:45:46 +00:00
Jeremy Dunck
7d915d5589
gis: Merged revisions 5540-5582 via svnmerge from
...
http://code.djangoproject.com/svn/django/trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5583 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-01 19:40:39 +00:00
Jeremy Dunck
bea0a500da
gis: Noted test error messages that should be ignored since they're issued by geos on an expected failure.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5541 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 23:53:43 +00:00
Jeremy Dunck
fc779fe55a
gis: Merged revisions 5491-5539 via svnmerge from
...
http://code.djangoproject.com/svn/django/trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 19:33:37 +00:00
Justin Bronn
b0a56a9919
gis: added the utils package with the introduction of the LayerMapping class.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 03:20:26 +00:00
Justin Bronn
8648cf78cd
gis: added the Envelope class, used in getting layer and geometry extents; also added boundary and convex_hull properties.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-25 01:29:01 +00:00
Justin Bronn
c953f188dd
gis: added support for Solaris
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5510 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-22 01:25:09 +00:00
Jeremy Dunck
bdcc95e5cc
gis: Merged revisions 4786-5490 via svnmerge from
...
http://code.djangoproject.com/svn/django/trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-18 16:48:27 +00:00
Justin Bronn
48c9f87e1f
gis: GDAL improvements; added Driver class, improved tests, removed non-existent exception, updated geometries for tests, updated documentation.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 06:02:04 +00:00
Justin Bronn
b0b7bbced7
gis: GEOSGeometry updates, improved initialization & tests, simplified some routines.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-15 03:49:25 +00:00
Justin Bronn
6538a26a47
gis: NULL geometries are now allowed (thanks Robert Coup!), field parameter no longer needed for _post_create_sql(), and added extra instance methods for SpatialReference/SRID.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-09 19:55:42 +00:00
Justin Bronn
b962a44a4d
gis: Added an intial ctypes interface to GDAL/OGR
...
(1) SpatialReference allows for rich access to properties of spatial
reference systems.
(2) OGRGeometry provides access to the OGR Geometry classes -- may be
accessed from models with the get_GEOM_ogr() extra instance method.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-01 01:15:35 +00:00
Justin Bronn
38ff3cff45
gis: Some GEOSGeometry patches, biggest change is that __iter__, __getitem__, and __len__ now supported on Polygon and LineString
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-31 23:29:16 +00:00
Jeremy Dunck
3a618c7824
gis: Committed todo notes.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-29 14:12:37 +00:00
Justin Bronn
f84bb1b18f
gis: (1) fixed WKT admin bug
...
(2) cleaned up GeometryField (moved SQL creation into field, index creation now on by default)
(3) now have exact lookup type, e.g., filter(geom='...') works
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-25 01:29:10 +00:00
Justin Bronn
58aa35e7a5
gis: width parameter on buffer() should be a double (thanks Todd Small\!). minor docstring tweaks.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-01 04:04:50 +00:00
Justin Bronn
e30720a2dc
gis: Fixed segfault on invalid WKT (added test for both invalid HEX and WKT). GEOSException now a proper exception. Updated error handler.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-19 12:49:40 +00:00
Justin Bronn
522400d8ef
gis: fixed bugs in GEOSCoordSeq (and added a test case). added preliminary support for Mac OSX compiled GEOS libraries.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-18 00:13:25 +00:00
Justin Bronn
39f9d48e4e
gis: added GEOSGeometry, a ctypes wrapper for the GEOS library, providing:
...
(1) an interface with the GEOS C API, using only python and ctypes (can be accessed w/get_GEOM_geos)
(2) independence from the GEOS Python SWIG module that is deprecated and no longer maintained
(3) portability, currently works on both Linux and Win32 platforms
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-16 03:43:53 +00:00
Justin Bronn
fdbbd652bc
gis: added models for the PostGIS/OGC geometric tables 'spatial_ref_sys' and
...
'geometry_columns'.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-11 21:11:48 +00:00
Justin Bronn
8ef0b01e72
gis: two big changes:
...
(1) the addition of the GeoMixin class, which gives geometry fields contributed functions (e.g. get_GEOM_area).
(2) geo_filter() is no more, all queries use filter() now.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:25:29 +00:00
Justin Bronn
0bf6355918
gis: geographic oldforms, allows editing of geometries as WKT in admin
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:18:05 +00:00
Justin Bronn
b6359772b1
gis: module for interfacing with GEOS routines.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-31 21:14:22 +00:00
Jeremy Dunck
1a657ecf52
gis: Merged revisions 4799-4809 via svnmerge.
...
Last revision prior to 0.96 release.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:58:58 +00:00
Jeremy Dunck
2f15f72c89
gis: Merged revisions 4796-4797 via svnmerge
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:56:56 +00:00
Jeremy Dunck
177a49ae5e
gis: From jbronn:
...
Renamed LineString to LineStringField.
Changed qs kwargs format, e.g. overlapsleft -> overlaps_left.
Added oldforms WKTField, allowing read-only viewing of Geom fields (for people that know Well-Known Text).
Index creation working for common case.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-29 16:51:20 +00:00
Jeremy Dunck
8fe2413527
gis: And added missing fields init.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4788 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 17:47:48 +00:00
Jeremy Dunck
631f30f7c8
gis: Moved files to their appropriate locations from bad commit in [4785].
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 17:45:19 +00:00
Jeremy Dunck
fa3ed6e134
gis: Merged revisions 4669-4785 via svnmerge from trunk.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 16:35:57 +00:00
Jeremy Dunck
8b279b63be
gis: checked in latest from jbronn from Mar 19.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-23 16:32:00 +00:00
Jeremy Dunck
68309c8a33
gis: changed fields.GeometryField to implement get_internal_type.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-07 23:22:37 +00:00
Jeremy Dunck
5edcbdc826
gis: Added beginnings of django.contrib.gis.
...
Changed ManyToManyField to provide get_internal_type() -> 'NoField'.
GIS fields use NoField? and new _post_create_sql for AddGeometryColumn.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-07 23:09:33 +00:00
Jeremy Dunck
5514d87319
gis: Merged revisions 4564-4668 via svnmerge from
...
http://code.djangoproject.com/svn/django/trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-03-06 14:21:30 +00:00