Changes between Version 33 and Version 34 of GeoDjango


Ignore:
Timestamp:
Mar 11, 2007, 7:33:42 PM (18 years ago)
Author:
jbronn
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjango

    v33 v34  
    4040 * Allow for Geometry-enabled queries.  Status: complete (not yet in SVN).
    4141 * Here is an example of how the model API currently works (assume this example is in geo_app/models.py):
    42 
    4342{{{
    4443from django.contrib.gis.db import models
     
    5958
    6059 * Use the manage.py just like you normally would:
    61 
    6260{{{
    6361$ python manage.py sqlall geo_app
     
    8078
    8179  * PostGIS additions to the API may now be used:
    82 
    8380{{{
    8481>>> from geo_app.models import District, School
    8582>>> qs1 = District.objects.filter(poly__bbcontains='POINT(-95.362293 29.756539)') # Same as PostGIS '&&' operator
    8683>>> qs2 = District.objects.filter(poly__intersects='POINT(-95.362293 29.756539)') # Same as PostGIS Intersects() (from GEOS)
    87 
    8884}}}
    8985
Back to Top