[Django] #11433: Complete support for 3D Geometries

View: New views
6 Messages — Rating Filter:   Alert me  

[Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
----------------------+-----------------------------------------------------
 Reporter:  jbronn    |       Owner:  jbronn    
   Status:  new       |   Milestone:  1.2      
Component:  GIS       |     Version:  SVN      
 Keywords:  gis 3d z  |       Stage:  Unreviewed
Has_patch:  0         |  
----------------------+-----------------------------------------------------
 While !GeoDjango has most the internal infrastructure to support 3D
 geometries, it does not completely work yet.  Using the `dim=3` on the
 model definition sets up the proper schema, but `PostGISAdaptor` only
 sends 2D data to the database no matter what.

--
Ticket URL: <http://code.djangoproject.com/ticket/11433>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
---------------------------------+------------------------------------------
          Reporter:  jbronn      |         Owner:  jbronn  
            Status:  new         |     Milestone:  1.2    
         Component:  GIS         |       Version:  SVN    
        Resolution:              |      Keywords:  gis 3d z
             Stage:  Unreviewed  |     Has_patch:  1      
        Needs_docs:  1           |   Needs_tests:  1      
Needs_better_patch:  1           |  
---------------------------------+------------------------------------------
Changes (by jbronn):

  * needs_better_patch:  => 1
  * has_patch:  0 => 1
  * needs_tests:  => 1
  * needs_docs:  => 1

--
Ticket URL: <http://code.djangoproject.com/ticket/11433#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
---------------------------------+------------------------------------------
          Reporter:  jbronn      |         Owner:  jbronn  
            Status:  new         |     Milestone:  1.2    
         Component:  GIS         |       Version:  SVN    
        Resolution:              |      Keywords:  gis 3d z
             Stage:  Unreviewed  |     Has_patch:  1      
        Needs_docs:  1           |   Needs_tests:  1      
Needs_better_patch:  1           |  
---------------------------------+------------------------------------------
Comment (by wibge):

 I applied the patch, and then ran into problems since I have some objects
 that are 2d and some 3d. I was getting "psycopg2.IntegrityError: new row
 for relation "site_trip" violates check constraint "enforce_dims_extent""
 when I tried to save 2d objects. I slightly changed the patch to check if
 it the geometry has a third dimension when it converts it to wkb.

--
Ticket URL: <http://code.djangoproject.com/ticket/11433#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
---------------------------------+------------------------------------------
          Reporter:  jbronn      |         Owner:  jbronn  
            Status:  new         |     Milestone:  1.2    
         Component:  GIS         |       Version:  SVN    
        Resolution:              |      Keywords:  gis 3d z
             Stage:  Unreviewed  |     Has_patch:  1      
        Needs_docs:  1           |   Needs_tests:  1      
Needs_better_patch:  1           |  
---------------------------------+------------------------------------------
Comment (by christian@...):

 I does not know if this belongs to my problem: I save in my model with

 {{{
 from django.contrib.gis.geos import Point
 ...
 class Point(...):
     ....
     x = models.DecimalField(max_digits=12, decimal_places=5, blank=True,
 null=True)
     y = models.DecimalField(max_digits=12, decimal_places=5, blank=True,
 null=True)
     z = models.DecimalField(max_digits=12, decimal_places=5, blank=True,
 null=True)
     xyz = models.PointField(default="SRID=4326;POINT(8.2122802734375
 50.0042724609375 260.00)", blank=True)
     ....

 def save():
     self.xyz = Point(x=float(self.x), y=float(self.y), z=float(self.z),
 srid=self.xyz.srid)
     ...
 }}}

 But when I go into the django shell, I get for

 {{{
 >>> p = Point.objects.get(pk=1)
 >>> p.xyz.z
 >>> p.xyz.hasz
 False
 }}}

--
Ticket URL: <http://code.djangoproject.com/ticket/11433#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
---------------------------------+------------------------------------------
          Reporter:  jbronn      |         Owner:  jbronn  
            Status:  new         |     Milestone:  1.2    
         Component:  GIS         |       Version:  SVN    
        Resolution:              |      Keywords:  gis 3d z
             Stage:  Unreviewed  |     Has_patch:  1      
        Needs_docs:  1           |   Needs_tests:  1      
Needs_better_patch:  1           |  
---------------------------------+------------------------------------------
Comment (by ckarrie):

 The patch seems not to work for me, I still get False for p.xyz.hasz, what
 am I doing wrong?

 (Btw, my Model class name is SinglePoint, not Point. Point is the class
 name of the geos Point)

--
Ticket URL: <http://code.djangoproject.com/ticket/11433#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #11433: Complete support for 3D Geometries

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#11433: Complete support for 3D Geometries
-------------------------------+--------------------------------------------
          Reporter:  jbronn    |         Owner:  jbronn  
            Status:  assigned  |     Milestone:  1.2    
         Component:  GIS       |       Version:  SVN    
        Resolution:            |      Keywords:  gis 3d z
             Stage:  Accepted  |     Has_patch:  1      
        Needs_docs:  1         |   Needs_tests:  1      
Needs_better_patch:  1         |  
-------------------------------+--------------------------------------------
Changes (by jbronn):

  * status:  new => assigned

Comment:

 (In [11728]) Added `ewkb` and `hexewkb` properties to `GEOSGeometry`.
 Refs #11433, #12010.

--
Ticket URL: <http://code.djangoproject.com/ticket/11433#comment:8>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---