Branches

attic/gis

View source
attic/gis
  • Contributors
    1. Loading...
Author Commit Message Labels Comments Date
250+ commits behind default.
uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Move the original GIS branch into the attic.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Now plays nice with the Django test suite if the spatial prerequisites aren't installed.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Removed unused `KMLSitemap` code that crept in outside the `contrib.gis` namespace.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Changed the inches attribute name from `in` (a Python reserved keyword) to `inch`. Thanks, andre_pl.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Removed the `sites` module and use the `site` instance from `django.contrib.admin` instead.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7873, `GEOSGeometry` equivalence comparison with `None` should not raise an exception. Thanks, Denis.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Features may now be fetched from OGR layers that do not support random access reading, but no more negative indexes are allowed; cleaned up `OGRGeomType`; moved test vector data into its own directory.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Now use `ctypes.util.find_library` to get the C library names. This is preferrable to manually specifying the different library naming schemes used by different platforms/distributions.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Removed vestige code containing references to the now defunct 'NoField' database creation type and `Field.get_placeholder` (which should only exist on the `GeometryField` subclass).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the geographic-enabled forms and admin modules.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7921,7926-7928,7938-7941,7945-7947,7949-7950,7952,7955-7956,7961,7964-7968,7970-7978 via svnmerge from trunk. This includes the newforms-admin branch, and thus is backwards-incompatible. The geographic admin is _not_ in this changeset, and is forthcoming.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7837-7838,7842-7852,7856-7869,7871,7876-7877,7882-7891,7900-7917 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7705; forgot to import `get_field_name` from the ctypes prototypes. Thanks, Denis.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed bug in `GeoQuery.get_default_columns`; forgot to make Oracle spatial lookup terms structure a dictionary.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7619. Added support Google Maps markers (`GMarker`) and events (`GEvent`). Thanks, Ludwig Brinckmann.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7579; no longer attempt to transform input geometries if `GeometryField` has its SRID set to -1.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Revised changes to `GeoWhereNode` to reduce code duplication. Thanks, Malcolm.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7772-7808,7811-7814,7816-7823,7826-7829,7831-7833,7835 via svnmerge from trunk. Modified `GeoWhereNode` accordingly for changes in r7835.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7643-7662,7667-7668,7672-7682,7686-7693,7695-7698,7700-7702,7704-7706,7710,7712-7729,7731-7732,7738-7758,7760-7766 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7540 -- fixed the GeoJSON regex to accept minus signs. Thanks, Kenichi Ueda.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `ogrinspect` management command.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed spatial aggregates when an ordering was specified (thanks ingenieroariel); added `bboverlaps` to MySQL lookup types for API consistency.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Improvements to `get_srid_info`, including raising no exception when the srid == -1 and making the error checking and message more robust; tweaked testing tolerance in `distapp` for those running older versions of GEOS.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Fixed #7434 (no real defect, just clarified how to disable GDAL); fixed `!=` operator and added support for 'Unknown` on `OGRGeomType`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7574-7583,7585-7586,7590-7602,7614-7615,7619-7625,7629,7632-7636 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Refactor of the `GeoQuerySet`; new features include: (1) Creation of internal API that eases generation of `GeoQuerySet` methods. (2) `GeoQuerySet.distance` now returns `Distance` objects instead of floats. (3) Added the new `GeoQuerySet` methods: `area`, `centroid`, `difference`, `envelope`, `intersection`, `length`, `make_line`, `mem_size`, `num_geom`, `num_points`, `perimeter`, `point_on_surface`, `scale`, `svg`, `sym_difference`, `translate`, `union`. (4) The `model_att` keyword may be used to customize the attribute that `GeoQuerySet` methods attach output to. (5) Geographic distance lookups and `GeoQuerySet.distance` calls now use `ST_distance_sphere` by default (performance benefits far outweigh small loss in accuracy); `ST_distance_spheroid` may still be used by specifyin… Backward Incompatibilites: * The aggregate union method is now known as `unionagg`. * The `field_name` keyword used for `GeoQuerySet` methods may no longer be specified via positional arguments. * `Distance` objects returned instead of floats from `GeoQuerySet.distance`. * `ST_Distance_sphere` used by default for geographic distance calculations.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Modified the Oracle database backend so that the input size of parameters may be customized (this was preventing the `gis` branch from working because Oracle's WKT stored procedures require CLOB rather than NCLOB as input). Ian Kelly has approved this patch; notwithstanding any further concerns, its functionality should appear in trunk sometime in the future.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7545-7546,7548-7561,7563-7565,7567-7569 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Disabled query counting test in `relatedapp` because of its brittleness (number of queries may depend on external factors).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Made error message when opening an invalid `DataSource` more clear.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Went through and cleaned up `ogrinspect` code and added features provided in patch from springmeyer (thanks); `add_postgis_srs` requires GDAL, so modified `utils` imports accordingly.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `precision_wkt` utility; `add_postgis_srs` may now take WKT/PROJ.4 strings and integer SRIDs.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7526,7534-7539 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7514,7520-7521 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed `_post_create_sql` hook to not generate additional SQL for fields belonging to a parent model via model inheritance. Thanks, robotika.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #7126 (with tests); moved `GeoQuery` and `GeoWhereNode` into `sql` submodule; the `GeoQuerySet.transform` may now be used on geometry fields related via foreign key.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7499,7501-7502,7504,7509-7510 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7485-7491,7493-7497 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Forgot to include Oracle `relate` patch with the other qsrf changes.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7458,7471-7473,7476-7478,7480 via svnmerge from trunk. This includes all necessary patches for compatibility with queryset-refactor.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: The `WKTAdaptor` needs the SRID for Oracle; now test geodetic `dwithin` lookups on Oracle.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed GEOS tests for those still running 3.0.0RC4.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed bug where extra parameters were passed into SQL for `dwithin` lookups for geodetic fields; now degree values (no `Distance` objects) may be used with `dwithin` lookups.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7408-7415,7420-7424,7435 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Updated KML tests for PostGIS 1.3.3 and GDAL tests to not perform `close_rings` test for versions 1.4.1 and below.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Applied DRY to Oracle and MySQL geometry adaptors; the `PostGISAdaptor` now stores WKB in raw string form to support pickling; added an equivalence method to all adaptors.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Added the `clone` keyword to `OGRGeometry.transform`; removed unnecessary `__nonzero__` function from `SpatialReference`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7355-7403 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `add_postgis_srs` utility to ease the creation of `spatial_ref_sys` table entries.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed geographic models produced by `inspectdb`.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[gis] Tweaked layermapping to note updates to unique'd models.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7280-7353 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7181-7277 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: `LayerMapping`: OGR string fields may now be coerced into Django `IntegerField`; added support for more Django field types.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7105-7168 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added geographic introspection capabilities for PostGIS and MySQL; fixed typo in `GeoQuerySet` (Thanks seanl).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Fixed new `_version_info` definition for win32 platforms; made GeoJSON regex more strict.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Added support for GeoJSON input/output in `OGRGeometry`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 7044-7102 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: `SpatialReference` objects may now be constructed with PROJ.4 strings without specifying a keyword.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Fixed bug in `transform` where coordinate sequence pointer was not after transformation (and added tests). Thanks robotika.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Fixed declaration of `geos_version` to explicitly set restype to `c_char_p` due to incompatibilities with 64-bit platforms. Thanks jlivni.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6990-7043 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `extent` method to `GeoQuerySet`; moved various spatial-backend settings into the `SpatialBackend` container class.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #6289 (added `extra_context` keyword to `GoogleMap`). Thanks omat & arien.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #6357, and added a validator to `WKTField`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: `LayerMapping`: Fixed bug that would occur when mapping `OFTReal` fields with precision > 0 to an `IntegerField`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: `LayerMapping`: Added the `fid_range` and `step` keywords to `save()`; moved the `silent`, `strict`, and `pipe` (now `stream`) keywords from `__init__()` to `save()`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: `GeometryCollection.add()` now accepts other collections, and associated tests.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Fixed Driver and DataSource bug reported by David Hancock in django-users and reproduced by tlp.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6920-6989 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: `LayerMapping`: Added the `unique` keyword parameter and tests for the `transform` keyword and geometry collection conversion.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #6246 (Thanks jos3ph); removed unnecessary commented debugging code.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Applied DRY to spatial SQL generation in anticipation of queryset-refactor; fixed `gml` function for PostGIS 1.3.2 parameter ordering.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #6196 in GeoIP refactor. Added unit tests, improved path setup, and made mostly compatible w/existing MaxMind Python API.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Fixed bug in the property so that no exception is raised when the spatial reference is undefined (Thanks Joe).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: removed errcheck_flag, not needed after all (I misread the C header file).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Added support for EWKT (SRID only), and a `transform` routine that uses the GDAL facilities to transform the GEOS geometry.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added additional units (including WKT aliases) and the `unit_attname` class method to `Distance`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Added `GDAL_LIBRARY_PATH` setting; added tests and extended support geometry transform; added the `units` method for spatial reference objects.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: renamed `GEOSGeometryIndexError` to `GEOSIndexError`; added GEOS_LIBRARY_PATH settings option.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged 6672-6783 vis svnmerge from trunk
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed DecimalField verification in LayerMapping.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Fixed memory leak introduced in the refactor caused by unnecessary cloning of SpatialReference objects from Features; fixed windows-compatibility issues (no error code returned by some destruction routines by windows libraries); OFTDate/Time fields return None if invalid date is encountered (thanks tlp).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `ogrinspect` module (via patch from tlp), which provides utilities for the generation of GeoDjango models from OGR data sources as well as generation of LayerMapping dictionaries.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: LayerMapping refactor (1) Moved all routines into LayerMapping class (for easier subclassing) and modularized the routines. (2) OFTString and OFTReal OGR fields are verified w/the Django fields prior to insertion, thus avoiding invalidating a large transaction. (3) Added keyword options for specifying the transaction mode, not performing transformations, and status printing. (4) Created unit tests. Other Changes: …
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: refactor of the GDAL ctypes interface (1) All interactions with the GDAL library take place through predefined ctypes prototypes, abstracting away error-checking. (2) Fixed memory leaks by properly freeing pointers allocated w/in GDAL. (3) Improved OFTField support, and added support for the OGR date/time fields. (4) Significantly improved the OGRGeometry tests.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6614-6671 via svnmerge from trunk.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Re-factored GEOS interface. Improvements include: (1) All interactions with the GEOS library take place through pre-defined ctypes prototypes, abstracting away return-value error-checking. (2) Mutability is now safe. Because GEOS geometry pointers are marked as `const` (Thanks Hobu), previous modification techniques caused unpredictable instability when geometries were constructed from the pointers of other geometries (e.g., a Polygon with rings from another Polygon). Geometry components are cloned first before creation of the modified geometry. (3) Fixed memory leaks by freeing pointers from strings allocated in GEOS because ctypes only frees pointers allocated in Python. Backwards-Incompatibility Notice: All children geometries (e.g., rings from a Polygon, geometries from a collection) are now clones -- modifications will not propagate up to the parent geometry as before.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: (1) Added the `field_widths` and `field_precision` properties to Layer with patch from tlp. (2) Field definition is now passed into the Feature from the Layer. (3) Fixed memory leak issue with Feature not being properly deleted. (4) OGR_L_GetNextFeature() now used for iteration on Layer. (5) Added the `gdal_version`, `gdal_full_version`, and `gdal_release_date` functions. (6) Made all initia…
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6525-6613 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added `get_srid()` spatial backend utility that takes into account -1 SRID values; removed `from_hex` flag from GEOS initialization; added tests for SRID values, and changed `test_gdal` module docstring.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5779, thanks tlp; added type checking to SpatialReference.__getitem__.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added preliminary spatial backend for MySQL (which only supports MBR queries), and added limited test suite for it; updated a few comments in the Oracle backend.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Merged revisions 6442-6524 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added preliminary spatial backend for Oracle; added GEOS routine `fromfile`.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: removed import to the PostGIS proxy module.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: spatial-backend enhancements: (1) GEOS no longer has psycopg2-specific routines, functionality now part of PostGIS adaptor in the spatial backend. (2) ST_GeomFromWKB() now used to enhance performance. (3) Moved GeometryProxy back to its original location. (4) Should resolve #5498, but not yet confirmed. (5) Test-sql files are now backend-specific.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: spatial-database compatibility and usability changes: (1) The SpatialRefSys and GeometryColumns models and GeometryProxy have been moved to the PostGIS backend because their functionality depends on the spatial databse. (2) The GeoMixin is no longer required, as all the functionality contributed by the extra instance methods has been moved to the GeometryProxy. (3) The `_post_create_sql` field now returns a tuple of SQL statements, instead of a st…
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Fixed #5630 with patch from rcoup; added the `ogr` and `srs` properties.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: added support exporting/creating geometries to/from WKB and HEX.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: The OGRGeometry `srs` property is now mutable, and added the `srid` property.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6394-6441 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the gml() and union() GeoQuerySet routines w/tests.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: fixed GML property, and added tests.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: PostGIS backend improvements: test spatial databases may now be created on NT platforms; changed exception style.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5629 with patch from rcoup.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: OSGeo sprint -- cleaned up spatial references associated with geometries (fixed a segfault); cleaned up Envelope module (thanks to ww for help), and added tests; added a test module for invoking all gdal tests; changed exception style.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: SpatialRefSys model now uses HAS_GDAL flag, no longer uses _cache_osr(), and improved docstrings.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: renamed inspect_data and sample() to ogrinfo, and now displays the extent and field type information.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the `encoding` keyword for string fields in OGR data sources; improved docstrings.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: The feature and layer modules now uses OGRIndexError.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: utils module now only imports LayerMapping when GDAL is installed; the `source_srs` keyword lf LayerMapping may now take integer and string parameters (for SRID and WKT spatial references, respectively).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: modifed tests and mixin to use the HAS_GDAL flag.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: Changed name of OGRGeometryIndexError to OGRIndexError and moved to errors mdoule; added HAS_GDAL flag to module; improved docstrings in srs.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed sqlall and sqlcustom commands for this branch.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6021-6393 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed improper import in utils module.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added the GeoIP utility for IP-based geolocation; got rid of camel case and fixed relative imports in utils module.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5434, GEOS `simplify()` may now preserve topologies via patch from rcoup.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5440 with patches from rcoup; cleaned up notice handler in libgeos.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5438 with patches from rcoup.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5437 with patch from rcoup.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5435 with patch from rcoup.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5436, for Python 2.4 test runner compatibility with patch from rcoup; GDAL tests now print that IllegalArgumentException is expected.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed #5433 -- GDAL is not a prerequisite.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed #5531.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added the beginnings of a `maps` module, for generating mapping framework JavaScript; cleaned up the sitemaps module and KML templates; added shortcuts module.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: cleaned up the error module; got rid of relative imports in __init__; added the utility functions get_fields() and get_geoms() to Layer.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed deprecated `backend` references in _get_sql_clause(); quote_name() no longer a GeoQuerySet attribute; PostGIS db creation now tries to use `pg_config` to obtain the POSTGIS_SQL_PATH.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: Memory-management refactor, changes include: (1) Moved GEOSPointer to its own module, and now tracks children geometries. (2) Fixed 'deep-indexing' issues for nested rings in GeometryCollections/MultiPolygons (e.g., mpoly[0][1] = new_ring). (3) Added simplify() -- simplifies geometries using the Douglas-Peucker algorithm. (4) Conformed docstrings to Django coding style. (5) GEOSGeometry no longer uses `parent` and `input_type` keywords.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 6000-6020 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Made necessary modifications for unicode, manage refactor, backend refactor and merged 5584-6000 via svnmerge from [repos:django/trunk trunk].
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: added length property and distance method; no more relative imports in geos module; tamed unruly docstrings in base.py.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added transform() manager method; _get_sql_clause() moved to GeoQuerySet; cleaned up PostGIS backend for 1.3.0; added tests for 'equals' and 'relate' lookups.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: fixed 3d linestring constructor bug, and added tests; GEOM_FUNC_PREFIX no longer needed, since ST_Transform used.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added tests, added precision keyword, and generally improved GeoQuerySet.kml(); commented, improved, and added tests for GeometryProxy.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: added support for KML; added coords property to Point.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: wktfield now takes advantage of lazy geometries; geos may take unicode input; fixed utils module
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: fully-mutable geometries have landed; fixed GEOSPointer boolean value; equivalence now uses equals_exact (vertex-by-vertex matching); added in-place set operations; improved tests; getquoted() will return ST_* for PostGIS 1.2.2+.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: created backend module, that will (in the future) allow for support of different spatial databases; improved postgis-specific code in preparation for PostGIS 1.2.2 (and beyond).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: provenance: inserted notes about public domain sources of geographic test data fixtures.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed support for 'isnull' lookup type on geometry columns, and added corresponding tests; added tests for 'left' and 'right' lookup types; added interactive keyword to create_spatial_db().
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: provenance: measure module is released under BSD license, assent given by Robert Coup in email correspondence dated 7/25/2007; math imports not used, and ensured that default unit is string when passed in.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geographic models may now be tested; started test geographic application to test geographic queries and lookup types.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geographic queries may now take geos geometry objects as an argument and geometry objects with different srid's are automatically transformed to the srid of the field; synced up parse_lookup() and lookup_inner() to r5609; minor change in GeometryProxy.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added spatial database creation utility and fixed a bug in gdal geomtype module.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geos: added srid keyword and added psycopg2 adaptor routines.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added get_placeholder() routine for the Field class; fixed bug in management _post_create_sql() hook and added _post_delete_sql() hook.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed utils bugs related to gdal module name changes.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: gdal: fixed area function, place field pointer within class, integer and float fields return None when empty.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Added KML sitemap support.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: got rid of CamelCase module names and made minor improvements in gdal; made srid a mutable property in geos geometries
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: made gdal srs tests less brittle for platforms with different proj.4 versions
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed OGR bug and removed unnecessary imports from GeoMixin.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: lazy-geometry support has landed -- thanks Robert Coup!
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: the geometry objects and collections were placed into these modules, missing in the last commit.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: no more camelcase module names; GEOSGeometry now autodetects WKT or HEXEWKB (hex).
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis LayerMapping now supports loading while mapping ForeignKey to other tables.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Switched back to non-generator __getitem__, since even specific-item index returned generator.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: made sure to reset the Layer before iteration; LayerMapping now supports specifying a source SRS.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed mistake where no srs is returned at all from Layer
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Return field value from Feature.get based on either field name or the field itself.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Improved LayerMapping error message when model field doesn't match feature geom type. Tweaked Field.__str__. Fixed geom_name aliasing bug.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 5540-5582 via svnmerge from http://code.djangoproject.com/svn/django/trunk
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Noted test error messages that should be ignored since they're issued by geos on an expected failure.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 5491-5539 via svnmerge from http://code.djangoproject.com/svn/django/trunk
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added the utils package with the introduction of the LayerMapping class.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added the Envelope class, used in getting layer and geometry extents; also added boundary and convex_hull properties.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added support for Solaris
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 4786-5490 via svnmerge from http://code.djangoproject.com/svn/django/trunk
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: GDAL improvements; added Driver class, improved tests, removed non-existent exception, updated geometries for tests, updated documentation.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: GEOSGeometry updates, improved initialization & tests, simplified some routines.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Some GEOSGeometry patches, biggest change is that __iter__, __getitem__, and __len__ now supported on Polygon and LineString
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Committed todo notes.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: width parameter on buffer() should be a double (thanks Todd Small\!). minor docstring tweaks.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Fixed segfault on invalid WKT (added test for both invalid HEX and WKT). GEOSException now a proper exception. Updated error handler.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: fixed bugs in GEOSCoordSeq (and added a test case). added preliminary support for Mac OSX compiled GEOS libraries.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: added models for the PostGIS/OGC geometric tables 'spatial_ref_sys' and 'geometry_columns'.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: geographic oldforms, allows editing of geometries as WKT in admin
jbr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: module for interfacing with GEOS routines.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 4799-4809 via svnmerge. Last revision prior to 0.96 release.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 4796-4797 via svnmerge
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: And added missing fields init.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Moved files to their appropriate locations from bad commit in [4785].
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 4669-4785 via svnmerge from trunk.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: checked in latest from jbronn from Mar 19.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: changed fields.GeometryField to implement get_internal_type.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
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.
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Merged revisions 4564-4668 via svnmerge from http://code.djangoproject.com/svn/django/trunk
jdu...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
gis: Initialized merge tracking via "svnmerge" with revisions "1-4563" from http://code.djangoproject.com/svn/django/trunk
ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Created GIS support branch