On Mon, Sep 14, 2009 at 7:17 AM, Nicola Manica <nicola.man...@gmail.com>wrote:

> Hi, I'm a student that try to learn geodjango.
> I have the following code in one view:
> ...
> for t_path in path.the_geom:
>       print t_path.json
>       print t_path.wkt
>       print t_path.kml
> ...
>
> path.the_geom is a multilinestring.
> The output that I obtain is
> ...
> { "type": "LineString", "coordinates": [ [ 11.128620, 46.056345 ], [
> 11.128456, 46.056653 ], [ 11.128398, 46.056771 ] ] }
> LINESTRING (11.1286202000000003 46.0563451000000015, 11.1284556000000006
> 46.0566533000000007, 11.1283981999999995 46.0567709999999977)
> <LineString><coordinates>11.1286202,46.0563451,0 11.1284556,46.0566533,0
> 11.1283982,46.056771,0</coordinates></LineString>
> ....
>
> json is correct and also wkt.
> But kml? Is it correct? Why some points have coordinates equal to zero?
> Thank for your help
>

Looks like x,y,z coordinates if I were guessing. If you had elevation data,
maybe it wouldn't be zeros.

-dsb


> Nicola
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to