Changes between Initial Version and Version 1 of Ticket #12416


Ignore:
Timestamp:
12/21/2009 04:39:54 AM (9 years ago)
Author:
jbronn
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12416 – Description

    initial v1  
    77 3. Allow specification of an `id` for geometries, so that styling rules may be easily applied by the user.
    88
    9  4. For polygons: "the `<coordinates>` for polygons must be specified in counterclockwise order. Polygons follow the "right-hand rule," which states that if you place the fingers of your right hand in the direction in which the coordinates are specified, your thumb points in the general direction of the geometric normal for the polygon." [http://code.google.com/apis/kml/documentation/kmlreference.html#polygon KML Reference].
    10 
    11  I'm not sure about implementing this within the 'dumb' `kml` properties of `GEOSGeometry` and `OGRGeometry`, rather `GeoQueryset.kml` should wrap `ST_AsKml` in the necessary routines, e.g., `ST_Reverse(ST_ForceRHR(ST_AsKml(the_geom)))`.
     9 4. For polygons: "the `<coordinates>` for polygons must be specified in counterclockwise order. Polygons follow the "right-hand rule," which states that if you place the fingers of your right hand in the direction in which the coordinates are specified, your thumb points in the general direction of the geometric normal for the polygon." [http://code.google.com/apis/kml/documentation/kmlreference.html#polygon KML Reference].  I'm not sure about implementing this within the 'dumb' `kml` properties of `GEOSGeometry` and `OGRGeometry`, rather `GeoQueryset.kml` should wrap `ST_AsKml` in the necessary routines, e.g., `ST_Reverse(ST_ForceRHR(ST_AsKml(the_geom)))`.
    1210
    1311Attached is an initial idea for a `write_kml` routine.
Back to Top