Changes between Version 3 and Version 4 of GEOSGeometry


Ignore:
Timestamp:
11/01/2007 09:13:59 AM (7 years ago)
Author:
tlp
Comment:

Added information about MultiPoint

Legend:

Unmodified
Added
Removed
Modified
  • GEOSGeometry

    v3 v4  
    9393=== !MultiPoint ===
    9494
     95{{{
     96#!python
     97>>> from django.contrib.gis.geos import Point
     98>>> from django.contrib.gis.geos import MultiPoint
     99>>> p1 = Point((0,0))
     100>>> p2 = Point((1,2))
     101>>> mp = MultiPoint(p1, p2)
     102>>> mp
     103<MultiPoint object>
     104>>> mp[0].wkt
     105'POINT (0.0000000000000000 0.0000000000000000)'
     106>>> len(mp)
     1072
     108>>> [ p.wkt for p in mp ]
     109['POINT (0.0000000000000000 0.0000000000000000)', 'POINT (1.0000000000000000 2.0000000000000000)']
     110>>> mp.ring
     111False
     112}}}
     113
    95114=== !MultiLineString ===
    96115
Back to Top