>
> Can you elaborate following statement, i am at beginner level in django
> what why i cannot understand your reply
* One option would be to return the data and then transform it once you
have the spatial objects into python variables. *
Thank you
>
--
You received this message
On 03/27/2014 04:53 AM, Shoaib Ijaz wrote:
>
>>
>> I am doing sql queries in django, the queries that i mentioned above are
>> print queries of django
>
>
> Network.objects.transform(srid=3857).values('geometry', 'bbox')
>
> *This is printed SQL query output of above django query *
>
>
*(*)* I am not doing sql queries in django
On Thursday, 27 March 2014 16:53:30 UTC+5, Shoaib Ijaz wrote:
>
> I am doing sql queries in django, the queries that i mentioned above are
>> print queries of django
>
>
> Network.objects.transform(srid=3857).values('geometry', 'bbox')
>
> *This is
>
> I am doing sql queries in django, the queries that i mentioned above are
> print queries of django
Network.objects.transform(srid=3857).values('geometry', 'bbox')
*This is printed SQL query output of above django query *
SELECT ST_Transform("tbl_network"."geometry", 3857),
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"
>>
>>
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
I am trying to transform geometry column type in django, here is my model
class Network(models.Model):
name = models.CharField(max_length=50, blank=True)
alias = models.CharField(max_length=100, blank=True)
geometry = models.GeometryField(srid=3857, null=True, blank=True)
bbox =
7 matches
Mail list logo