Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-14 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by Claude Paroz ):

 In [changeset:"9176fa70c1541d29d4d1865770d48b174e5dd968"]:
 {{{
 #!CommitTicketReference repository=""
 revision="9176fa70c1541d29d4d1865770d48b174e5dd968"
 [1.5.x] Fixed geojson detection with Spatialite

 This is a partial backport of commit eb9430fc4be1. Without this,
 geojson support is never detected with Spatialite.
 Refs #20252 and #19028.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by burton449geo@…):

 I do not have the error anymore with the patch installed. Good job and
 thank you!

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by claudep):

 OK, now I see the bug, which has been fixed in master by commit
 [eb9430fc4be1]. It was unfortunately a bit late to enter the 1.5 branch. I
 will try to make a more limited patch for the stable branch. Could you
 test the following patch to see if it resolves your issue?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by burton449geo@…):

 In the django project shell: print(connection.ops.spatial_version())
 returns 3.0.1 and connection.ops.spatialite_version_tuple() returns
 (u'3.0.1', 3,0,1)

 In spatialite prompt: SELECT spatialite_version(); returns 4.0.0

 There is no error on those results, it was done on the same spatilatie db
 defined in settings.py

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by claudep):

 Oh, sorry, `spatial_version` is a cached property in master, but it is a
 method in 1.5. So the last snippet line should read
 {{{print(connection.ops.spatial_version())}}}. Here is the code:
 
https://github.com/django/django/blob/stable/1.5.x/django/contrib/gis/db/backends/spatialite/operations.py#L246

 Basically, this executes the SQL query `SELECT spatialite_version();` (you
 can also try it at the spatialite prompt).
 It would also be interesting to get the result of
 `connection.ops.spatialite_version_tuple()`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by burton449geo@…):

 The return is None. I have made a test and re-creating a new spatialite db
 from spatialite_gui v.4.0, but it still returned None. When I use a
 PostGIS settings it returns 2.0.3. Do you know what could be the meaning?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by claudep):

 Could you try this snippet inside your project:
 {{{
 $ python manage.py shell
 >>> from django.db import connection
 >>> print(connection.ops.spatial_version)
 }}}
 It may be that your Django instance does not use the expected Spatialite
 installation.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.5-rc-1
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-
Changes (by burton449geo@…):

 * version:  1.4 => 1.5-rc-1


Comment:

 This error using Django 1.5.1 ans Spatialite 4.0 when calling function
 GeoQuerySet.geojson()

 Traceback:
 File "C:\python27\lib\site-packages\django\core\handlers\base.py" in
 get_response
   115. response = callback(request,
 *callback_args, **callback_kwargs)
 File "C:\python27\lib\site-packages\django\contrib\auth\decorators.py" in
 _wrapped_view
   25. return view_func(request, *args, **kwargs)
 File "c:\mygeosite\geodjango\ezmapping\views.py" in editShapefile
   59. bounds = features.geojson()
 File "C:\python27\lib\site-packages\django\contrib\gis\db\models\query.py"
 in geojson
   149. raise NotImplementedError('Only PostGIS 1.3.4+ and
 SpatiaLite 3.0+ '

 Exception Type: NotImplementedError at /ezmapping/layer/edit/1
 Exception Value: Only PostGIS 1.3.4+ and SpatiaLite 3.0+ support GeoJSON
 serialization.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-13 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.4
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by claudep):

 For the record, this was added in #19028 - [95f7ea3af185]

 If you get an error with 1.5.1, we'll need the traceback, please.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-12 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.4
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-

Comment (by anonymous):

 I dont understand, I have updated Django to 1.5.1 and still got an error.
 Is this function implement with Spatialite 4.0? Thats the version im
 using.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-12 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |  Version:  1.4
Component:  GIS  |   Resolution:  fixed
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-
Changes (by Claude Paroz ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"991ce52bc872f827de8e7b5b441e2dfa2185bfd2"]:
 {{{
 #!CommitTicketReference repository=""
 revision="991ce52bc872f827de8e7b5b441e2dfa2185bfd2"
 [1.5.x] Fixed #20252 -- Mentionned geojson Spatialite support from 1.5

 Thanks burton449geo at gmail.com for the report.
 Backport of d58e985aa from master.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-12 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
-+-
 Reporter:  burton449geo@…   |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |  Version:  1.4
Component:  GIS  |   Resolution:
 Severity:  Normal   | Triage Stage:  Accepted
 Keywords:  GeoDjango,   |  Needs documentation:  0
  Spatialite |  Patch needs improvement:  0
Has patch:  0|UI/UX:  0
  Needs tests:  0|
Easy pickings:  0|
-+-
Changes (by claudep):

 * needs_better_patch:   => 0
 * stage:  Unreviewed => Accepted
 * type:  Uncategorized => Cleanup/optimization
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 geojson support for Spatialite has been added in Django 1.5. I'll add the
 missing notice to the docs.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Django] #20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite

2013-04-12 Thread Django
#20252: GeoDjango - GeoQuerySet.geojson NotImplementedError with Spatialite
+---
 Reporter:  burton449geo@…  |  Owner:  nobody
 Type:  Uncategorized   | Status:  new
Component:  GIS |Version:  1.4
 Severity:  Normal  |   Keywords:  GeoDjango, Spatialite
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0   |  UI/UX:  0
+---
 As the documentation mentions
 
(https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#django.contrib.gis.db.models.GeoQuerySet.geojson)
 GeoQuerySet.geojson should be available with Spatialite but it is not.

 Traceback:
 File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in
 get_response
   111. response = callback(request,
 *callback_args, **callback_kwargs)
 File "C:\Python27\lib\site-packages\django\contrib\auth\decorators.py" in
 _wrapped_view
   20. return view_func(request, *args, **kwargs)
 File "c:\mygeosite\geodjango\ezmapping\views.py" in editShapefile
   55. feature_geoJson = features.geojson()
 File "C:\Python27\lib\site-packages\django\contrib\gis\db\models\query.py"
 in geojson
   145. raise NotImplementedError('Only PostGIS 1.3.4+ supports
 GeoJSON serialization.')

 Exception Type: NotImplementedError at /ezmapping/layer/edit/1
 Exception Value: Only PostGIS 1.3.4+ supports GeoJSON serialization.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.