Wednesday, March 26, 2014

Re: How transform specific geometry column using Django GIS GeoQuerySet

On 03/26/2014 06:28 AM, Shoaib Ijaz wrote:
> Sorry i mistype queries
>
> Network.objects.transform(srid=3857).values('geometry', 'bbox')
>>
>> SELECT ST_Transform("tbl_network"."geometry", 3857), "tbl_network"."bbox" FROM "tbl_network"
>>
>> Network.objects.transform(srid=3857).values('bbox')
>>
>> SELECT "tbl_network"."bbox" FROM "tbl_network"
>>

You might get more responses on the GeoDjango mailing list:
geodjango@googlegroups.com

I think you syntax might be wrong.
https://docs.djangoproject.com/en/dev/ref/contrib/gis/gdal/#coordtransform

But since your mixing django code and SQL code it's hard to tell what
your doing.

Thanks,
Alex

--
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+unsubscribe@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/5333738C.5010403%40wildintellect.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment