On Mon, 13 Oct 2014 23:34:04 -0700 (PDT)
Shoaib Ijaz <shoaib.ij...@gmail.com> wrote:

> 
> 
> I am trying to convert a SQL into Django Query:
> 
> SELECT * from tbl_name where geometrytype(geometry) LIKE 'POINT';
> 
> I have searched on it but cannot find any geometry type function.
> 

You can't, at least not with current Django versions. Geodjango assumes
that geometry column contains just one type of a geometries.

But you should be able to use .raw() query to get what you want to.

-- 

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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/20141014101328.5d20ed42%40jns42-l.w2k.keypro.fi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to