Re: manipulate n insert field values

2016-05-04 Thread Shameema Mohsin
Thanks Erik. Doing so. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: manipulate n insert field values

2016-05-04 Thread Shameema Mohsin
Z value calculation step1: converting lat and long to int latitude int = (latitude + 90) × 10^6 longitude int = (latitude + 180) × 10^6 note 10^6 = 100 We compute the Morton value for a spatial point P (x, y) by interleaving the bits of x and y. For

Re: manipulate n insert field values

2016-05-03 Thread Shameema Mohsin
#Z value calculation # #step1: converting lat and long to int latitude int = (latitude + 90) × 10^6 longitude int = (latitude + 180) × 10^6 #note 10^6 = 100 We compute the Morton value for a spatial point P (x, y) by interleaving the bits of x and y. For

Re: manipulate n insert field values

2016-05-03 Thread Shameema Mohsin
to improve efficiency. I do not know the python syntax. Kindly help. On Tue, May 3, 2016 at 3:22 PM, Erik Cederstrand <erik+li...@cederstrand.dk> wrote: > > > Den 3. maj 2016 kl. 02.45 skrev Shameema Mohsin <itz.shame...@gmail.com > >: > > > > > > Stil st

Re: manipulate n insert field values

2016-05-02 Thread Shameema Mohsin
Stil stuck with the z order calculation and usage of the property field. Kindly help. I am new to Django, only knows php well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: manipulate n insert field values

2016-05-02 Thread Shameema Mohsin
Thank you Erik. I will try the property method. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: manipulate n insert field values

2016-05-02 Thread Shameema Mohsin
Could anybody help me out as I am new to Django. *In my model:* from django.db import models class Employees(models.Model): empId = models.AutoField(primary_key=True) empName = models.CharField(max_length=200) empEmail = models.EmailField() empMob =

manipulate n insert field values

2016-05-02 Thread Shameema Mohsin
i have 2 fields latitude n longitude, and need to calculate z order value of lat n long n insert to a field -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to