Hi,

Apparently you have mistaken what GeoDjango is.

GeoDjango is a GIS framework, that is it deals with (usually) real world coordinates.

And in most cases coordinates are 3D. Two well known coordinate systems are WGS84 (GPS uses this) and second one is Google Transverse Mercator.

GIS is usually used to do spatial lookups, like does two geometries intersect, or is point within specific polygon.

In GIS you do have few math ops, mainly distance and area. Distance and area math depends a bit of used coordinate system since some coordinate systems can take earth curvature in to account.

What you asking is actually is more like trigonometry which GeoDjango can't really do.

On 11.1.2018 6.53, Shazia Nusrat wrote:
For Instance...lets say I need to let customer calculate Azimuth for the home roof with ModelForm. Its not a simple one single direction. If you can do it let me know with example.

Regards,
Shazia.

On Wed, Jan 10, 2018 at 11:30 PM, Jani Tiainen <rede...@gmail.com <mailto:rede...@gmail.com>> wrote:

    Hi.

    So what is your actual problem?

    11.1.2018 3.04 "Shazia Nusrat" <shazianu...@gmail.com
    <mailto:shazianu...@gmail.com>> kirjoitti:

        Hi,

        I need quick help about using the fields in the following model:

        class Size(models.Model):
           azimuth = models.CharField(max_length=200, blank=True,
        null=True)
         tilt = models.CharField(max_length=200, blank=True, null=True)
         boundary_coordinates = models.CharField(max_length=200,
        blank=True)
         height = models.CharField(max_length=200, blank=True)
         width = models.CharField(max_length=200, blank=True)

        I know there is a function reference for it but I don't know
        how to use it as per the link below because I am newbie.

        https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/
        <https://docs.djangoproject.com/en/2.0/ref/contrib/gis/functions/>

        Please advise.
-- 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
        <mailto:django-users+unsubscr...@googlegroups.com>.
        To post to this group, send email to
        django-users@googlegroups.com
        <mailto:django-users@googlegroups.com>.
        Visit this group at
        https://groups.google.com/group/django-users
        <https://groups.google.com/group/django-users>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%40mail.gmail.com
        
<https://groups.google.com/d/msgid/django-users/CAD83tOz2xe4mHbbd1Xyag-Tad%2B3zsRjtQyTgC1C4Q35V1Wf4gg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.

-- 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
    <mailto:django-users+unsubscr...@googlegroups.com>.
    To post to this group, send email to django-users@googlegroups.com
    <mailto:django-users@googlegroups.com>.
    Visit this group at https://groups.google.com/group/django-users
    <https://groups.google.com/group/django-users>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%3DpVWTUvEsJwNHrA%40mail.gmail.com
    
<https://groups.google.com/d/msgid/django-users/CAHn91oeB9c1axU-p7hyXZz5tD8sSbAskK7d%3DpVWTUvEsJwNHrA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.


--
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 <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD83tOwpUu9xy4Qo4FiFO6OB4_8ocFt6sjuk3dB_tqV_Zm5nhQ%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAD83tOwpUu9xy4Qo4FiFO6OB4_8ocFt6sjuk3dB_tqV_Zm5nhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Jani Tiainen

--
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 django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f20dd83a-d3af-7d0e-9377-8649bf5f5d8a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to